2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.50'
576 PACKAGE_STRING
='emacs 23.0.50'
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
714 x_default_search_path
731 ac_precious_vars
='build_alias
743 # Initialize some variables set by options.
745 ac_init_version
=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name
=s
,x
,x
,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir
='${exec_prefix}/bin'
770 sbindir
='${exec_prefix}/sbin'
771 libexecdir
='${exec_prefix}/libexec'
772 datarootdir
='${prefix}/share'
773 datadir
='${datarootdir}'
774 sysconfdir
='${prefix}/etc'
775 sharedstatedir
='${prefix}/com'
776 localstatedir
='${prefix}/var'
777 includedir
='${prefix}/include'
778 oldincludedir
='/usr/include'
779 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir
='${datarootdir}/info'
785 libdir
='${exec_prefix}/lib'
786 localedir
='${datarootdir}/locale'
787 mandir
='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\
$ac_option
801 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
811 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
813 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
816 -build |
--build |
--buil |
--bui |
--bu)
817 ac_prev
=build_alias
;;
818 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
819 build_alias
=$ac_optarg ;;
821 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
822 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
823 ac_prev
=cache_file
;;
824 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
825 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
826 cache_file
=$ac_optarg ;;
829 cache_file
=config.cache
;;
831 -datadir |
--datadir |
--datadi |
--datad)
833 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
834 datadir
=$ac_optarg ;;
836 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
837 |
--dataroo |
--dataro |
--datar)
838 ac_prev
=datarootdir
;;
839 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
840 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
841 datarootdir
=$ac_optarg ;;
843 -disable-* |
--disable-*)
844 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_
$ac_feature=no
;;
852 -docdir |
--docdir |
--docdi |
--doc |
--do)
854 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
857 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
859 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
862 -enable-* |
--enable-*)
863 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_
$ac_feature=\
$ac_optarg ;;
871 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
872 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
873 |
--exec |
--exe |
--ex)
874 ac_prev
=exec_prefix
;;
875 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
876 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
877 |
--exec=* |
--exe=* |
--ex=*)
878 exec_prefix
=$ac_optarg ;;
880 -gas |
--gas |
--ga |
--g)
881 # Obsolete; use --with-gas.
884 -help |
--help |
--hel |
--he |
-h)
886 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
887 ac_init_help
=recursive
;;
888 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
889 ac_init_help
=short
;;
891 -host |
--host |
--hos |
--ho)
892 ac_prev
=host_alias
;;
893 -host=* |
--host=* |
--hos=* |
--ho=*)
894 host_alias
=$ac_optarg ;;
896 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
898 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
900 htmldir
=$ac_optarg ;;
902 -includedir |
--includedir |
--includedi |
--included |
--include \
903 |
--includ |
--inclu |
--incl |
--inc)
904 ac_prev
=includedir
;;
905 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
906 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
907 includedir
=$ac_optarg ;;
909 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
911 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
912 infodir
=$ac_optarg ;;
914 -libdir |
--libdir |
--libdi |
--libd)
916 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
919 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
920 |
--libexe |
--libex |
--libe)
921 ac_prev
=libexecdir
;;
922 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
923 |
--libexe=* |
--libex=* |
--libe=*)
924 libexecdir
=$ac_optarg ;;
926 -localedir |
--localedir |
--localedi |
--localed |
--locale)
928 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
929 localedir
=$ac_optarg ;;
931 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
932 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
933 ac_prev
=localstatedir
;;
934 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
935 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
936 localstatedir
=$ac_optarg ;;
938 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
940 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
944 # Obsolete; use --without-fp.
947 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
948 |
--no-cr |
--no-c |
-n)
951 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
952 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
955 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
956 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
957 |
--oldin |
--oldi |
--old |
--ol |
--o)
958 ac_prev
=oldincludedir
;;
959 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
960 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
961 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
962 oldincludedir
=$ac_optarg ;;
964 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
966 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
969 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
970 |
--program-pre |
--program-pr |
--program-p)
971 ac_prev
=program_prefix
;;
972 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
973 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
974 program_prefix
=$ac_optarg ;;
976 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
977 |
--program-suf |
--program-su |
--program-s)
978 ac_prev
=program_suffix
;;
979 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
980 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
981 program_suffix
=$ac_optarg ;;
983 -program-transform-name |
--program-transform-name \
984 |
--program-transform-nam |
--program-transform-na \
985 |
--program-transform-n |
--program-transform- \
986 |
--program-transform |
--program-transfor \
987 |
--program-transfo |
--program-transf \
988 |
--program-trans |
--program-tran \
989 |
--progr-tra |
--program-tr |
--program-t)
990 ac_prev
=program_transform_name
;;
991 -program-transform-name=* |
--program-transform-name=* \
992 |
--program-transform-nam=* |
--program-transform-na=* \
993 |
--program-transform-n=* |
--program-transform-=* \
994 |
--program-transform=* |
--program-transfor=* \
995 |
--program-transfo=* |
--program-transf=* \
996 |
--program-trans=* |
--program-tran=* \
997 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
998 program_transform_name
=$ac_optarg ;;
1000 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1002 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1003 pdfdir
=$ac_optarg ;;
1005 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1007 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1010 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1011 |
-silent |
--silent |
--silen |
--sile |
--sil)
1014 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1016 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1018 sbindir
=$ac_optarg ;;
1020 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1021 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1022 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1024 ac_prev
=sharedstatedir
;;
1025 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1026 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1027 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1029 sharedstatedir
=$ac_optarg ;;
1031 -site |
--site |
--sit)
1033 -site=* |
--site=* |
--sit=*)
1036 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1038 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1039 srcdir
=$ac_optarg ;;
1041 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1042 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1043 ac_prev
=sysconfdir
;;
1044 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1045 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1046 sysconfdir
=$ac_optarg ;;
1048 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1049 ac_prev
=target_alias
;;
1050 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1051 target_alias
=$ac_optarg ;;
1053 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1056 -version |
--version |
--versio |
--versi |
--vers |
-V)
1057 ac_init_version
=: ;;
1060 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_
$ac_package=\
$ac_optarg ;;
1068 -without-* |
--without-*)
1069 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=no
;;
1078 # Obsolete; use --with-x.
1081 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1082 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1083 ac_prev
=x_includes
;;
1084 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1085 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1086 x_includes
=$ac_optarg ;;
1088 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1089 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1090 ac_prev
=x_libraries
;;
1091 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1092 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1093 x_libraries
=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1101 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\
$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 if test -n "$ac_prev"; then
1121 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val
=\$
$ac_var
1134 [\\/$
]* | ?
:[\\/]* ) continue;;
1135 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1146 target
=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x
; then
1150 if test "x$build_alias" = x
; then
1151 cross_compiling
=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1160 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1162 test "$silent" = yes && exec 6>/dev
/null
1165 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di
=`ls -di .` &&
1167 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted
=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir
=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted
=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1227 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 for ac_var
in $ac_precious_vars; do
1230 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1232 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1243 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1306 --x-includes=DIR X include files are
in DIR
1307 --x-libraries=DIR X library files are
in DIR
1310 --build=BUILD configure
for building on BUILD
[guessed
]
1311 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive
) echo "Configuration of emacs 23.0.50:";;
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
]
1325 specify
install directory
for Emacs.app on Mac OS X
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful
(and
1330 sometimes confusing
) to the casual installer
1331 --enable-locallisppath=PATH
1332 directories Emacs should search
for lisp files
1333 specific to this site
1334 --disable-largefile omit support
for large files
1337 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1338 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1339 --without-gcc don
't use GCC to compile Emacs even if GCC is found
1340 --without-pop don't support POP
mail retrieval with movemail
1341 --with-kerberos support Kerberos-authenticated POP
1342 --with-kerberos5 support Kerberos version
5 authenticated POP
1343 --with-hesiod support Hesiod to get the POP server
host
1344 --without-sound don
't compile with sound support
1345 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1347 --without-xpm don't compile with XPM image support
1348 --without-jpeg don
't compile with JPEG image support
1349 --without-tiff don't compile with TIFF image support
1350 --without-gif don
't compile with GIF image support
1351 --without-png don't compile with PNG image support
1352 --without-rsvg don
't compile with SVG image support
1353 --with-gtk use GTK toolkit
1354 --without-toolkit-scroll-bars
1355 don't use Motif or Xaw3d scroll bars
1356 --without-xaw3d don
't use Xaw3d
1357 --without-xim don't use X11 XIM
1358 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1359 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1361 --with-dbus compile with D-Bus support
1362 --with-pkg-config-prog=PATH
1363 Path to pkg-config for finding GTK and librsvg
1364 --with-x use the X Window System
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1377 Use these variables to override the choices made by `configure' or to
help
1378 it to
find libraries and programs with nonstandard names
/locations.
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1387 test -d "$ac_dir" ||
continue
1391 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1393 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1398 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1401 ac_abs_top_builddir
=$ac_pwd
1402 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir
=$ac_top_build_prefix
1407 .
) # We are building in place.
1409 ac_top_srcdir
=$ac_top_builddir_sub
1410 ac_abs_top_srcdir
=$ac_pwd ;;
1411 [\\/]* | ?
:[\\/]* ) # Absolute name.
1412 ac_srcdir
=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir
=$srcdir
1414 ac_abs_top_srcdir
=$srcdir ;;
1416 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1420 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1422 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1440 emacs configure
23.0.50
1441 generated by GNU Autoconf
2.61
1443 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1445 This configure
script is free software
; the Free Software Foundation
1446 gives unlimited permission to copy
, distribute and modify it.
1450 cat >config.log
<<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1454 It was created by emacs $as_me 23.0.50, which was
1455 generated by GNU Autoconf 2.61. Invocation command line was
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1490 test -z "$as_dir" && as_dir
=.
1491 echo "PATH: $as_dir"
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1515 ac_must_keep_next
=false
1521 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1522 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1523 |
-silent |
--silent |
--silen |
--sile |
--sil)
1526 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1529 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1531 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true
; then
1533 ac_must_keep_next
=false
# Got value, back to normal.
1536 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1537 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1538 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1539 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1544 -* ) ac_must_keep_next
=true
;;
1547 ac_configure_args
="$ac_configure_args '$ac_arg'"
1552 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1553 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1571 # The following way of writing the cache mishandles newlines in values,
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1603 ## ----------------- ##
1604 ## Output variables. ##
1605 ## ----------------- ##
1608 for ac_var in $ac_subst_vars
1610 eval ac_val=\$$ac_var
1612 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 echo "$ac_var='\''$ac_val'\''"
1618 if test -n "$ac_subst_files"; then
1620 ## ------------------- ##
1621 ## File substitutions. ##
1622 ## ------------------- ##
1625 for ac_var
in $ac_subst_files
1627 eval ac_val
=\$
$ac_var
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1631 echo "$ac_var='\''$ac_val'\''"
1636 if test -s confdefs.h; then
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1654 for ac_signal
in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest
* confdefs.h
1662 # Predefined preprocessor variables.
1664 cat >>confdefs.h
<<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1669 cat >>confdefs.h
<<_ACEOF
1670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1674 cat >>confdefs.h
<<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1679 cat >>confdefs.h
<<_ACEOF
1680 #define PACKAGE_STRING "$PACKAGE_STRING"
1684 cat >>confdefs.h
<<_ACEOF
1685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer explicitly selected file to automatically selected ones.
1691 if test -n "$CONFIG_SITE"; then
1692 set x
"$CONFIG_SITE"
1693 elif test "x$prefix" != xNONE
; then
1694 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1696 set x
"$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704 echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1710 if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715 echo "$as_me: loading cache $cache_file" >&6;}
1717 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1718 *) .
"./$cache_file";;
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723 echo "$as_me: creating cache $cache_file" >&6;}
1727 ac_header_list
="$ac_header_list sys/time.h"
1728 ac_header_list
="$ac_header_list unistd.h"
1729 ac_func_list
="$ac_func_list alarm"
1730 # Check that the precious variables saved in the cache have kept the same
1732 ac_cache_corrupted
=false
1733 for ac_var
in $ac_precious_vars; do
1734 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1735 eval ac_new_set
=\
$ac_env_${ac_var}_set
1736 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1737 eval ac_new_val
=\
$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted
=: ;;
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted
=: ;;
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted
=:
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1762 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg
=$ac_var=$ac_new_val ;;
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1804 ac_cpp
='$CPP $CPPFLAGS'
1805 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1810 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1814 test "$program_prefix" != NONE
&&
1815 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1816 # Use a double $ so make ignores it.
1817 test "$program_suffix" != NONE
&&
1818 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1819 # Double any \ or $. echo might interpret backslashes.
1820 # By default was `s,x,x', remove it if useless.
1821 cat <<\_ACEOF
>conftest.
sed
1822 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1824 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1828 lispdir
='${datadir}/emacs/${version}/lisp'
1829 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1830 '${datadir}/emacs/site-lisp'
1831 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1832 etcdir
='${datadir}/emacs/${version}/etc'
1833 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1834 docdir
='${datadir}/emacs/${version}/etc'
1835 gamedir
='${localstatedir}/games/emacs'
1842 # Check whether --with-gcc was given.
1843 if test "${with_gcc+set}" = set; then
1849 # Check whether --with-pop was given.
1850 if test "${with_pop+set}" = set; then
1856 if test "$with_pop" = yes; then
1857 cat >>confdefs.h
<<\_ACEOF
1858 #define MAIL_USE_POP 1
1865 # Check whether --with-kerberos was given.
1866 if test "${with_kerberos+set}" = set; then
1867 withval
=$with_kerberos;
1872 if test "$with_kerberos" = yes; then
1873 cat >>confdefs.h
<<\_ACEOF
1881 # Check whether --with-kerberos5 was given.
1882 if test "${with_kerberos5+set}" = set; then
1883 withval
=$with_kerberos5;
1888 if test "${with_kerberos5}" = yes; then
1889 if test "${with_kerberos}" != yes; then
1891 cat >>confdefs.h
<<\_ACEOF
1897 cat >>confdefs.h
<<\_ACEOF
1904 # Check whether --with-hesiod was given.
1905 if test "${with_hesiod+set}" = set; then
1906 withval
=$with_hesiod;
1911 if test "$with_hesiod" = yes; then
1913 cat >>confdefs.h
<<\_ACEOF
1920 # Check whether --with-sound was given.
1921 if test "${with_sound+set}" = set; then
1922 withval
=$with_sound;
1929 # Check whether --with-x-toolkit was given.
1930 if test "${with_x_toolkit+set}" = set; then
1931 withval
=$with_x_toolkit; case "${withval}" in
1932 y | ye |
yes ) val
=gtk
;;
1934 l | lu | luc | luci | lucid
) val
=lucid
;;
1935 a |
at | ath | athe | athen | athena
) val
=athena
;;
1936 m | mo | mot | moti | motif
) val
=motif
;;
1937 g | gt | gtk
) val
=gtk
;;
1939 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1941 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1942 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1943 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1944 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1945 { (exit 1); exit 1; }; }
1954 # Check whether --with-xpm was given.
1955 if test "${with_xpm+set}" = set; then
1962 # Check whether --with-jpeg was given.
1963 if test "${with_jpeg+set}" = set; then
1970 # Check whether --with-tiff was given.
1971 if test "${with_tiff+set}" = set; then
1978 # Check whether --with-gif was given.
1979 if test "${with_gif+set}" = set; then
1986 # Check whether --with-png was given.
1987 if test "${with_png+set}" = set; then
1994 # Check whether --with-rsvg was given.
1995 if test "${with_rsvg+set}" = set; then
2003 # Check whether --with-gtk was given.
2004 if test "${with_gtk+set}" = set; then
2011 # Check whether --with-toolkit-scroll-bars was given.
2012 if test "${with_toolkit_scroll_bars+set}" = set; then
2013 withval
=$with_toolkit_scroll_bars;
2015 with_toolkit_scroll_bars
=yes
2019 # Check whether --with-xaw3d was given.
2020 if test "${with_xaw3d+set}" = set; then
2021 withval
=$with_xaw3d;
2027 # Check whether --with-xim was given.
2028 if test "${with_xim+set}" = set; then
2035 # Check whether --with-carbon was given.
2036 if test "${with_carbon+set}" = set; then
2037 withval
=$with_carbon;
2044 # Check whether --with-gpm was given.
2045 if test "${with_gpm+set}" = set; then
2052 # Check whether --with-dbus was given.
2053 if test "${with_dbus+set}" = set; then
2062 # Check whether --with-pkg-config-prog was given.
2063 if test "${with_pkg_config_prog+set}" = set; then
2064 withval
=$with_pkg_config_prog;
2067 if test "X${with_pkg_config_prog}" != X
; then
2068 if test "${with_pkg_config_prog}" != yes; then
2069 PKG_CONFIG
="${with_pkg_config_prog}"
2073 # Check whether --enable-carbon-app was given.
2074 if test "${enable_carbon_app+set}" = set; then
2075 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2079 # Check whether --enable-asserts was given.
2080 if test "${enable_asserts+set}" = set; then
2081 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2087 # Check whether --enable-maintainer-mode was given.
2088 if test "${enable_maintainer_mode+set}" = set; then
2089 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2091 USE_MAINTAINER_MODE
=no
2094 if test $USE_MAINTAINER_MODE = yes; then
2101 # Check whether --enable-locallisppath was given.
2102 if test "${enable_locallisppath+set}" = set; then
2103 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2105 elif test "${enableval}" != "yes"; then
2106 locallisppath
=${enableval}
2111 #### Make srcdir absolute, if it isn't already. It's important to
2112 #### avoid running the path through pwd unnecessarily, since pwd can
2113 #### give you automounter prefixes, which can go away. We do all this
2114 #### so Emacs can find its files when run uninstalled.
2115 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2120 ## We may be able to use the $PWD environment variable to make this
2121 ## absolute. But sometimes PWD is inaccurate.
2122 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2123 ## but that tested only for a well-formed and valid PWD,
2124 ## it did not object when PWD was well-formed and valid but just wrong.
2125 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2129 srcdir
="`(cd ${srcdir}; pwd)`"
2132 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2135 #### Check if the source directory already has a configured system in it.
2136 if test `pwd` != `(cd ${srcdir} && pwd)` \
2137 && test -f "${srcdir}/src/config.h" ; then
2138 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2139 as a build directory right now; it has been configured in its own
2140 right. To configure in another directory as well, you MUST
2141 use GNU make. If you do not have GNU make, then you must
2142 now do \`make distclean' in ${srcdir},
2143 and then run $0 again." >&5
2144 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2145 as a build directory right now; it has been configured in its own
2146 right. To configure in another directory as well, you MUST
2147 use GNU make. If you do not have GNU make, then you must
2148 now do \`make distclean' in ${srcdir},
2149 and then run $0 again." >&2;}
2152 #### Given the configuration name, set machfile and opsysfile to the
2153 #### names of the m/*.h and s/*.h files we should use.
2155 ### Canonicalize the configuration name.
2158 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159 if test -f "$ac_dir/install-sh"; then
2161 ac_install_sh
="$ac_aux_dir/install-sh -c"
2163 elif test -f "$ac_dir/install.sh"; then
2165 ac_install_sh
="$ac_aux_dir/install.sh -c"
2167 elif test -f "$ac_dir/shtool"; then
2169 ac_install_sh
="$ac_aux_dir/shtool install -c"
2173 if test -z "$ac_aux_dir"; then
2174 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2175 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2176 { (exit 1); exit 1; }; }
2179 # These three variables are undocumented and unsupported,
2180 # and are intended to be withdrawn in a future Autoconf release.
2181 # They can cause serious problems if a builder's source tree is in a directory
2182 # whose full name contains unusual characters.
2183 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2184 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2185 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2188 # Make sure we can run config.sub.
2189 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2190 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2191 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2192 { (exit 1); exit 1; }; }
2194 { echo "$as_me:$LINENO: checking build system type" >&5
2195 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_build+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 ac_build_alias
=$build_alias
2200 test "x$ac_build_alias" = x
&&
2201 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2202 test "x$ac_build_alias" = x
&&
2203 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205 { (exit 1); exit 1; }; }
2206 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2212 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213 echo "${ECHO_T}$ac_cv_build" >&6; }
2214 case $ac_cv_build in
2216 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2217 echo "$as_me: error: invalid value of canonical build" >&2;}
2218 { (exit 1); exit 1; }; };;
2221 ac_save_IFS
=$IFS; IFS
='-'
2227 # Remember, the first character of IFS is used to create $*,
2228 # except with old shells:
2231 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2234 { echo "$as_me:$LINENO: checking host system type" >&5
2235 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2236 if test "${ac_cv_host+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test "x$host_alias" = x
; then
2240 ac_cv_host
=$ac_cv_build
2242 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2245 { (exit 1); exit 1; }; }
2249 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2250 echo "${ECHO_T}$ac_cv_host" >&6; }
2253 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2254 echo "$as_me: error: invalid value of canonical host" >&2;}
2255 { (exit 1); exit 1; }; };;
2258 ac_save_IFS
=$IFS; IFS
='-'
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2268 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2272 configuration
=${host_alias-${build_alias-$host}}
2276 ### If you add support for a new configuration, add code to this
2277 ### switch statement to recognize your configuration name and select
2278 ### the appropriate operating system and machine description files.
2280 ### You would hope that you could choose an m/*.h file pretty much
2281 ### based on the machine portion of the configuration name, and an s-
2282 ### file based on the operating system portion. However, it turns out
2283 ### that each m/*.h file is pretty manufacturer-specific - for
2284 ### example hp9000s300.h is a 68000 machine;
2285 ### mips.h, pmax.h are all MIPS
2286 ### machines. So we basically have to have a special case for each
2287 ### configuration name.
2289 ### As far as handling version numbers on operating systems is
2290 ### concerned, make sure things will fail in a fixable way. If
2291 ### /etc/MACHINES doesn't say anything about version numbers, be
2292 ### prepared to handle anything reasonably. If version numbers
2293 ### matter, be sure /etc/MACHINES says something about it.
2295 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2296 ### "System V Release 4"; he writes, "The old convention encouraged
2297 ### confusion between `system' and `release' levels'."
2299 machine
='' opsys
='' unported
=no
2300 case "${canonical}" in
2305 case "${canonical}" in
2306 alpha
*-*-freebsd*) machine
=alpha
;;
2307 ia64-
*-freebsd*) machine
=ia64
;;
2308 sparc64-
*-freebsd*) machine
=sparc
;;
2309 powerpc-
*-freebsd*) machine
=macppc
;;
2310 i
[3456]86-*-freebsd*) machine
=intel386
;;
2311 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2315 ## FreeBSD kernel + glibc based userland
2318 case "${canonical}" in
2319 alpha
*-*-kfreebsd*) machine
=alpha
;;
2320 ia64-
*-kfreebsd*) machine
=ia64
;;
2321 sparc64-
*-kfreebsd*) machine
=sparc
;;
2322 powerpc-
*-kfreebsd*) machine
=macppc
;;
2323 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2324 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2331 if test -f /usr
/lib
/crti.o
; then
2333 cat >>confdefs.h
<<\_ACEOF
2339 case "${canonical}" in
2340 alpha
*-*-netbsd*) machine
=alpha
;;
2341 i
[3456]86-*-netbsd*) machine
=intel386
;;
2343 # This is somewhat bogus.
2344 machine
=hp9000s300
;;
2345 mips-
*-netbsd*) machine
=pmax
;;
2346 mipsel-
*-netbsd*) machine
=pmax
;;
2347 mipseb-
*-netbsd*) machine
=pmax
;;
2348 powerpc-
*-netbsd*) machine
=macppc
;;
2349 sparc
*-*-netbsd*) machine
=sparc
;;
2350 vax-
*-netbsd*) machine
=vax
;;
2351 arm-
*-netbsd*) machine
=arm
;;
2352 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2353 hppa-
*-netbsd*) machine
=hp800
;;
2360 case "${canonical}" in
2361 alpha
*-*-openbsd*) machine
=alpha
;;
2362 arm-
*-openbsd*) machine
=arm
;;
2363 hppa-
*-openbsd*) machine
=hp9000s300
;;
2364 i386-
*-openbsd*) machine
=intel386
;;
2365 m68k-
*-openbsd*) machine
=hp9000s300
;;
2366 mips64-
*-openbsd*) machine
=mips64
;;
2367 powerpc-
*-openbsd*) machine
=macppc
;;
2368 sparc
*-*-openbsd*) machine
=sparc
;;
2369 vax-
*-openbsd*) machine
=vax
;;
2370 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2377 case "${canonical}" in
2378 i
[3456]86-*-lynxos*) machine
=intel386
;;
2379 powerpc-
*-lynxos*) machine
=powerpc
;;
2386 case "${canonical}" in
2387 i
[345]86-*-bsdi*) machine
=intel386
;;
2388 sparc-
*-bsdi*) machine
=sparc
;;
2389 powerpc-
*-bsdi*) machine
=macppc
;;
2391 case "${canonical}" in
2392 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2393 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2394 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2395 *-*-bsdi3* ) opsys
=bsdos3
;;
2396 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2400 ## Alpha (DEC) machines.
2402 machine
=alpha opsys
=osf1
2403 # This is needed to find X11R6.1 libraries for certain tests.
2404 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2405 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2406 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2407 # due to non-traditional preprocessing with the current compiler
2408 # defaults. OSF 4 can also have that compiler version, and there
2409 # seems always to have been a usable /usr/bin/cpp.
2410 NON_GNU_CPP
=/usr
/bin
/cpp
2411 case "${canonical}" in
2412 alpha
*-dec-osf[5-9]*)
2417 alpha
*-*-linux-gnu* )
2418 machine
=alpha opsys
=gnu-linux
2422 machine
=arm opsys
=gnu-linux
2425 ## Apple Darwin / Mac OS X
2427 case "${canonical}" in
2428 i
[3456]86-* ) machine
=intel386
;;
2429 powerpc-
* ) machine
=powermac
;;
2433 # Define CPP as follows to make autoconf work correctly.
2434 CPP
="${CC-cc} -E -no-cpp-precomp"
2435 # Use fink packages if available.
2436 if test -d /sw
/include
&& test -d /sw
/lib
; then
2437 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2438 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2439 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2444 mips-compaq-nonstopux
* )
2445 machine
=nonstopux opsys
=nonstopux
2449 i
[3456]86-cubix-sysv* )
2450 machine
=intel386 opsys
=usg5-3
2453 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2454 machine
=pmax opsys
=bsd4-2
2456 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2457 machine
=pmax opsys
=bsd4-3
2460 machine
=pmax opsys
=ultrix4-3
2463 machine
=pmax opsys
=osf1
2465 mips-dec-mach_bsd4.3
* )
2466 machine
=pmax opsys
=mach-bsd4-3
2469 ## HP 9000 series 200 or 300
2471 machine
=hp9000s300 opsys
=bsd4-3
2473 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2475 case "`uname -r`" in
2476 ## Someone's system reports A.B8.05 for this.
2477 ## I wonder what other possibilities there are.
2478 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2479 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2480 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2481 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2482 *) machine
=hp9000s300 opsys
=hpux
;;
2486 ## HP 9000 series 700 and 800, running HP/UX
2488 machine
=hp800 opsys
=hpux
2491 machine
=hp800 opsys
=hpux8
2493 hppa
*-hp-hpux9shr* )
2494 machine
=hp800 opsys
=hpux9shr
2497 machine
=hp800 opsys
=hpux9
2499 hppa
*-hp-hpux10.2
* )
2500 machine
=hp800 opsys
=hpux10-20
2503 machine
=hp800 opsys
=hpux10
2505 hppa
*-hp-hpux1[1-9]* )
2506 machine
=hp800 opsys
=hpux11
2507 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2510 hppa
*-*-linux-gnu* )
2511 machine
=hp800 opsys
=gnu-linux
2514 ## HP 9000 series 700 and 800, running HP/UX
2516 ## Cross-compilation? Nah!
2517 case "`uname -r`" in
2518 ## Someone's system reports A.B8.05 for this.
2519 ## I wonder what other possibilities there are.
2520 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2521 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2522 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2523 *) machine
=hp800 opsys
=hpux10
;;
2527 machine
=hp800 opsys
=nextstep
2532 machine
=ibm370aix opsys
=usg5-3
2535 machine
=ibms390 opsys
=gnu-linux
2537 s390x-
*-linux-gnu* )
2538 machine
=ibms390x opsys
=gnu-linux
2540 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2541 machine
=ibmrs6000 opsys
=aix3-1
2543 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2544 machine
=ibmrs6000 opsys
=aix3-2-5
2546 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2547 machine
=ibmrs6000 opsys
=aix4-1
2549 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2550 machine
=ibmrs6000 opsys
=aix4-2
2552 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2553 machine
=ibmrs6000 opsys
=aix4-2
2555 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2556 machine
=ibmrs6000 opsys
=aix4-2
2558 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2559 machine
=ibmrs6000 opsys
=aix4
2561 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2562 machine
=ibmrs6000 opsys
=aix4-1
2564 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2565 machine
=ibmrs6000 opsys
=aix3-2
2569 i
[3456]86-prime-sysv* )
2570 machine
=i386 opsys
=usg5-3
2573 ## ncr machine running svr4.3.
2574 i
[3456]86-ncr-sysv4.3
)
2575 machine
=ncr386 opsys
=usg5-4-3
2578 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2579 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2580 i
[3456]86-ncr-sysv* )
2581 machine
=ncr386 opsys
=usg5-4-2
2584 ## Macintosh PowerPC
2585 powerpc
*-*-linux-gnu* )
2586 machine
=macppc opsys
=gnu-linux
2589 ## Workstations sold by MIPS
2590 ## This is not necessarily all workstations using the MIPS processor -
2591 ## Irises are produced by SGI, and DECstations by DEC.
2593 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2594 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2595 ## it gives for choosing between the alternatives seems to be "Use
2596 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2597 ## the BSD world." I'll assume that these are instructions for
2598 ## handling two odd situations, and that every other situation
2599 ## should use mips.h and usg5-2-2, they being listed first.
2602 ## Fall through to the general code at the bottom to decide on the OS.
2604 mips-mips-riscos4
* )
2605 machine
=mips4 opsys
=bsd4-3
2606 NON_GNU_CC
="cc -systype bsd43"
2607 NON_GNU_CPP
="cc -systype bsd43 -E"
2609 mips-mips-riscos5
* )
2610 machine
=mips4 opsys
=riscos5
2611 NON_GNU_CC
="cc -systype bsd43"
2612 NON_GNU_CPP
="cc -systype bsd43 -E"
2615 machine
=mips opsys
=bsd4-3
2618 machine
=mips opsys
=usg5-2-2
2622 m68
*-next-* | m68k-
*-nextstep* )
2623 machine
=m68k opsys
=nextstep
2628 machine
=ews4800 opsys
=ux4800
2632 mips-siemens-sysv
* | mips-sni-sysv
*)
2633 machine
=mips-siemens opsys
=usg5-4
2634 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2635 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2638 ## Silicon Graphics machines
2641 machine
=iris4d opsys
=irix6-5
2642 # Without defining _LANGUAGE_C, things get masked out in the headers
2643 # so that, for instance, grepping for `free' in stdlib.h fails and
2644 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2645 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2646 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2649 machine
=iris4d opsys
=irix6-0
2650 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2651 # but presumably it does no harm.
2652 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2653 # -32 probably isn't necessary in later v.6s -- anyone know which?
2654 NON_GCC_TEST_OPTIONS
=-32
2656 mips-sgi-irix5.
[01]* )
2657 machine
=iris4d opsys
=irix5-0
2659 mips-sgi-irix5
* | mips-sgi-irix
* )
2660 machine
=iris4d opsys
=irix5-2
2664 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2665 machine
=sparc opsys
=gnu-linux
2668 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2669 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2670 | rs6000-
*-solaris2*)
2671 case "${canonical}" in
2672 i
[3456]86-*-* ) machine
=intel386
;;
2673 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2674 powerpcle
* ) machine
=powerpcle
;;
2675 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2676 sparc
* ) machine
=sparc
;;
2679 case "${canonical}" in
2680 *-sunos5.3
* |
*-solaris2.3
* )
2682 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2684 *-sunos5.4
* |
*-solaris2.4
* )
2686 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2689 *-sunos5.5
* |
*-solaris2.5
* )
2691 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2694 *-sunos5.6
* |
*-solaris2.6
* )
2696 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2699 *-sunos5* |
*-solaris* )
2701 emacs_check_sunpro_c
=yes
2702 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2706 ## Watch out for a compiler that we know will not work.
2707 case "${canonical}" in
2708 *-solaris* |
*-sunos5* )
2709 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2710 ## /usr/ucb/cc doesn't work;
2711 ## we should find some other compiler that does work.
2719 machine
=sparc opsys
=nextstep
2722 ## Tandem Integrity S2
2724 machine
=tandem-s2 opsys
=usg5-3
2730 case "${canonical}" in
2731 *-bsd4.1
* ) opsys
=bsd4-1
;;
2732 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2733 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2734 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2735 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2736 *-vms* ) opsys
=vms
;;
2743 machine
=ia64 opsys
=gnu-linux
2746 ## Intel 386 machines where we don't care about the manufacturer
2749 case "${canonical}" in
2750 *-cygwin ) opsys
=cygwin
;;
2751 *-darwin* ) opsys
=darwin
2752 CPP
="${CC-cc} -E -no-cpp-precomp"
2754 *-xenix* ) opsys
=xenix
;;
2755 *-linux-gnu* ) opsys
=gnu-linux
;;
2756 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2757 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2758 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2759 *-386bsd* ) opsys
=386bsd
;;
2760 *-nextstep* ) opsys
=nextstep
;;
2761 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2765 ## m68k Linux-based GNU system
2767 machine
=m68k opsys
=gnu-linux
2770 ## Mips Linux-based GNU system
2771 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2772 machine
=mips opsys
=gnu-linux
2776 sparc-fujitsu-sysv4
* )
2777 machine
=sparc opsys
=uxpds
2778 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2782 ## AMD x86-64 Linux-based GNU system
2783 x86_64-
*-linux-gnu* )
2784 machine
=amdx86-64 opsys
=gnu-linux
2787 ## Tensilica Xtensa Linux-based GNU system
2788 xtensa-
*-linux-gnu* )
2789 machine
=xtensa opsys
=gnu-linux
2797 ### If the code above didn't choose an operating system, just choose
2798 ### an operating system based on the configuration name. You really
2799 ### only want to use this when you have no idea what the right
2800 ### operating system is; if you know what operating systems a machine
2801 ### runs, it's cleaner to make it explicit in the case statement
2803 if test x
"${opsys}" = x
; then
2804 case "${canonical}" in
2805 *-gnu* ) opsys
=gnu
;;
2806 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2807 *-bsd4.2
) opsys
=bsd4-2
;;
2808 *-bsd4.3
) opsys
=bsd4-3
;;
2809 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2810 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2811 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2812 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2813 *-sysv4.2uw
* ) opsys
=unixware
;;
2814 *-sysv5uw* ) opsys
=unixware
;;
2815 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2816 *-sysv4.1
* |
*-sysvr4.1
* )
2817 NON_GNU_CPP
=/usr
/lib
/cpp
2819 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2820 if [ x
$NON_GNU_CPP = x
]; then
2821 if [ -f /usr
/ccs
/lib
/cpp
]; then
2822 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2824 NON_GNU_CPP
=/lib
/cpp
2828 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2837 if test $unported = yes; then
2838 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&5
2840 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2841 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2842 { (exit 1); exit 1; }; }
2845 machfile
="m/${machine}.h"
2846 opsysfile
="s/${opsys}.h"
2849 #### Choose a compiler.
2850 test -n "$CC" && cc_specified
=yes
2852 # Save the value of CFLAGS that the user specified.
2853 SPECIFIED_CFLAGS
="$CFLAGS"
2856 "yes" ) CC
="gcc" GCC
=yes ;;
2857 "no" ) : ${CC=cc} ;;
2861 ac_cpp
='$CPP $CPPFLAGS'
2862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2867 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC
="$CC" # Let the user override the test.
2876 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2880 test -z "$as_dir" && as_dir
=.
2881 for ac_exec_ext
in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 if test -n "$CC"; then
2895 { echo "$as_me:$LINENO: result: $CC" >&5
2896 echo "${ECHO_T}$CC" >&6; }
2898 { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2904 if test -z "$ac_cv_prog_CC"; then
2906 # Extract the first word of "gcc", so it can be a program name with args.
2907 set dummy gcc
; ac_word
=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 if test -n "$ac_ct_CC"; then
2914 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2920 test -z "$as_dir" && as_dir
=.
2921 for ac_exec_ext
in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CC
="gcc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2934 if test -n "$ac_ct_CC"; then
2935 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2936 echo "${ECHO_T}$ac_ct_CC" >&6; }
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2942 if test "x$ac_ct_CC" = x
; then
2945 case $cross_compiling:$ac_tool_warned in
2947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet. If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&5
2950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet. If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2953 ac_tool_warned
=yes ;;
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC
="$CC" # Let the user override the test.
2973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir
=.
2978 for ac_exec_ext
in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2991 if test -n "$CC"; then
2992 { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc
; ac_word
=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC
="$CC" # Let the user override the test.
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected
=yes
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy
$ac_cv_prog_CC
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3042 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3048 if test -n "$CC"; then
3049 { echo "$as_me:$LINENO: result: $CC" >&5
3050 echo "${ECHO_T}$CC" >&6; }
3052 { echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6; }
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog
in cl.exe
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3066 if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC
="$CC" # Let the user override the test.
3072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3076 test -z "$as_dir" && as_dir
=.
3077 for ac_exec_ext
in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 if test -n "$CC"; then
3091 { echo "$as_me:$LINENO: result: $CC" >&5
3092 echo "${ECHO_T}$CC" >&6; }
3094 { echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6; }
3099 test -n "$CC" && break
3102 if test -z "$CC"; then
3104 for ac_prog
in cl.exe
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy
$ac_prog; ac_word
=$2
3108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3120 test -z "$as_dir" && as_dir
=.
3121 for ac_exec_ext
in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_ac_ct_CC
="$ac_prog"
3124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3136 echo "${ECHO_T}$ac_ct_CC" >&6; }
3138 { echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6; }
3143 test -n "$ac_ct_CC" && break
3146 if test "x$ac_ct_CC" = x
; then
3149 case $cross_compiling:$ac_tool_warned in
3151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3152 whose name does not start with the host triplet. If you think this
3153 configuration is useful to you, please write to autoconf@gnu.org." >&5
3154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet. If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3157 ac_tool_warned
=yes ;;
3166 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3172 # Provide some information about the compiler.
3173 echo "$as_me:$LINENO: checking for C compiler version" >&5
3174 ac_compiler
=`set X $ac_compile; echo $2`
3175 { (ac_try
="$ac_compiler --version >&5"
3177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compiler --version >&5") 2>&5
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185 { (ac_try="$ac_compiler -v >&5"
3187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3188 *) ac_try_echo
=$ac_try;;
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compiler -v >&5") 2>&5
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }
3195 { (ac_try
="$ac_compiler -V >&5"
3197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compiler -V >&5") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3206 cat >conftest.$ac_ext <<_ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3226 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3227 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3228 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3230 # List of possible output files, starting from the most likely.
3231 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3232 # only as a last resort. b.out is created by i960 compilers.
3233 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3235 # The IRIX 6 linker writes into existing files which may not be
3236 # executable, retaining their permissions. Remove them first so a
3237 # subsequent execution test works.
3239 for ac_file in $ac_files
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3248 if { (ac_try="$ac_link_default"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_link_default") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; then
3258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3263 for ac_file
in $ac_files ''
3265 test -f "$ac_file" ||
continue
3267 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3270 # We found the default executable, but exeext='' is most
3274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3276 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3278 # We set ac_cv_exeext here because the later test for it is not
3279 # safe: cross compilers may not add the suffix if given an `-o'
3280 # argument, so we may need to know it at that point already.
3281 # Even if this section looks crufty: it has the advantage of
3288 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3294 { echo "$as_me:$LINENO: result: $ac_file" >&5
3295 echo "${ECHO_T}$ac_file" >&6; }
3296 if test -z "$ac_file"; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.
$ac_ext >&5
3300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&5
3302 echo "$as_me: error: C compiler cannot create executables
3303 See \`config.log' for more details." >&2;}
3304 { (exit 77); exit 77; }; }
3307 ac_exeext
=$ac_cv_exeext
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3314 # If not cross compiling, check that we can run a simple program.
3315 if test "$cross_compiling" != yes; then
3316 if { ac_try
='./$ac_file'
3317 { (case "(($ac_try" in
3318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_try") 2>&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3328 if test "$cross_compiling" = maybe; then
3331 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details.
" >&5
3334 echo "$as_me: error
: cannot run C compiled programs.
3335 If you meant to cross compile
, use \
`--host'.
3336 See \`config.log
' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3341 { echo "$as_me:$LINENO: result: yes" >&5
3342 echo "${ECHO_T}yes" >&6; }
3344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3350 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3351 echo "${ECHO_T}$cross_compiling" >&6; }
3353 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3355 if { (ac_try="$ac_link"
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_link") 2>&5
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; then
3365 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3366 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3369 for ac_file
in conftest.exe conftest conftest.
*; do
3370 test -f "$ac_file" ||
continue
3372 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3373 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3386 rm -f conftest
$ac_cv_exeext
3387 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3388 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3390 rm -f conftest.
$ac_ext
3391 EXEEXT
=$ac_cv_exeext
3393 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3394 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3395 if test "${ac_cv_objext+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 cat >conftest.
$ac_ext <<_ACEOF
3401 cat confdefs.h
>>conftest.
$ac_ext
3402 cat >>conftest.
$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3413 rm -f conftest.o conftest.obj
3414 if { (ac_try
="$ac_compile"
3416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>&5
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; then
3424 for ac_file in conftest.o conftest.obj conftest.*; do
3425 test -f "$ac_file" || continue;
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3436 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3437 See \`config.log
' for more details." >&5
3438 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details.
" >&2;}
3440 { (exit 1); exit 1; }; }
3443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3445 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3446 echo "${ECHO_T}$ac_cv_objext" >&6; }
3447 OBJEXT=$ac_cv_objext
3449 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3450 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3451 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3452 echo $ECHO_N "(cached
) $ECHO_C" >&6
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3481 grep -v '^ *+' conftest.er1 >conftest.err
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3491 echo "$as_me: failed program was
:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3501 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3502 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3503 GCC=`test $ac_compiler_gnu = yes && echo yes`
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3507 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3508 if test "${ac_cv_prog_cc_g+set}" = set; then
3509 echo $ECHO_N "(cached
) $ECHO_C" >&6
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3515 cat >conftest.$ac_ext <<_ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3543 (exit $ac_status); } && {
3544 test -z "$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 } && test -s conftest.$ac_objext; then
3549 echo "$as_me: failed program was
:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3587 echo "$as_me: failed program was
:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3592 cat >conftest.$ac_ext <<_ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3616 grep -v '^ *+' conftest.er1 >conftest.err
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3626 echo "$as_me: failed program was
:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3641 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3652 if test "$GCC" = yes; then
3658 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3659 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3660 if test "${ac_cv_prog_cc_c89+set}" = set; then
3661 echo $ECHO_N "(cached
) $ECHO_C" >&6
3663 ac_cv_prog_cc_c89=no
3665 cat >conftest.$ac_ext <<_ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3676 struct buf { int x; };
3677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3678 static char *e (p, i)
3684 static char *f (char * (*g) (char **, int), char **p, ...)
3689 s = g (p, va_arg (v,int));
3694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3695 function prototypes and stuff, but not '\xHH' hex character constants.
3696 These don't provoke an error unfortunately, instead are silently treated
3697 as 'x'. The following induces an error, until -std is added to get
3698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3699 array size at least. It's necessary to write '\x00'==0 to get something
3700 that's true only with -std. */
3701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3704 inside strings and character constants. */
3706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3708 int test (int i, double x);
3709 struct s1 {int (*f) (int a);};
3710 struct s2 {int (*f) (double a);};
3711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3725 CC="$ac_save_CC $ac_arg"
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3735 grep -v '^ *+' conftest.er1 >conftest.err
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_c89=$ac_arg
3745 echo "$as_me: failed program was
:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3751 rm -f core conftest.err conftest.$ac_objext
3752 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3754 rm -f conftest.$ac_ext
3759 case "x
$ac_cv_prog_cc_c89" in
3761 { echo "$as_me:$LINENO: result
: none needed
" >&5
3762 echo "${ECHO_T}none needed
" >&6; } ;;
3764 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3765 echo "${ECHO_T}unsupported
" >&6; } ;;
3767 CC="$CC $ac_cv_prog_cc_c89"
3768 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3769 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3780 # On Suns, sometimes $CPP names a directory.
3781 if test -n "$CPP" && test -d "$CPP"; then
3785 ## If not using gcc, and on Solaris, and no CPP specified, see if
3786 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3787 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3788 test x"$CPP" = x; then
3789 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3790 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3792 if test "${emacs_cv_sunpro_c+set}" = set; then
3793 echo $ECHO_N "(cached
) $ECHO_C" >&6
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest$ac_exeext &&
3830 $as_test_x conftest$ac_exeext; then
3831 emacs_cv_sunpro_c=yes
3833 echo "$as_me: failed program was
:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 emacs_cv_sunpro_c=no
3839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3840 conftest$ac_exeext conftest.$ac_ext
3843 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3844 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3846 if test x"$emacs_cv_sunpro_c" = xyes; then
3847 NON_GNU_CPP="$CC -E -Xs"
3851 #### Some systems specify a CPP to use unless we are using GCC.
3852 #### Now that we know whether we are using GCC, we can decide whether
3853 #### to use that one.
3854 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3859 #### Some systems specify a CC to use unless we are using GCC.
3860 #### Now that we know whether we are using GCC, we can decide whether
3861 #### to use that one.
3862 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3863 test x$cc_specified != xyes
3868 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3870 CC="$CC $GCC_TEST_OPTIONS"
3873 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3875 CC="$CC $NON_GCC_TEST_OPTIONS"
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3884 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3885 # On Suns, sometimes $CPP names a directory.
3886 if test -n "$CPP" && test -d "$CPP"; then
3889 if test -z "$CPP"; then
3890 if test "${ac_cv_prog_CPP+set}" = set; then
3891 echo $ECHO_N "(cached
) $ECHO_C" >&6
3893 # Double quotes because CPP needs to be expanded
3894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3897 for ac_c_preproc_warn_flag in '' yes
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error
" is here to catch this case.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3912 # include <limits.h>
3914 # include <assert.h>
3918 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3930 (exit $ac_status); } >/dev/null && {
3931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3936 echo "$as_me: failed program was
:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 # Broken: fails on valid input.
3943 rm -f conftest.err conftest.$ac_ext
3945 # OK, works on sane cases. Now check whether nonexistent headers
3946 # can be detected and how.
3947 cat >conftest.$ac_ext <<_ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <ac_nonexistent.h>
3955 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3967 (exit $ac_status); } >/dev/null && {
3968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3971 # Broken: success on invalid input.
3974 echo "$as_me: failed program was
:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 # Passes both tests.
3982 rm -f conftest.err conftest.$ac_ext
3985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986 rm -f conftest.err conftest.$ac_ext
3987 if $ac_preproc_ok; then
3999 { echo "$as_me:$LINENO: result
: $CPP" >&5
4000 echo "${ECHO_T}$CPP" >&6; }
4002 for ac_c_preproc_warn_flag in '' yes
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error
" is here to catch this case.
4010 cat >conftest.$ac_ext <<_ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4017 # include <limits.h>
4019 # include <assert.h>
4023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4031 grep -v '^ *+' conftest.er1 >conftest.err
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4041 echo "$as_me: failed program was
:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 # Broken: fails on valid input.
4048 rm -f conftest.err conftest.$ac_ext
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4060 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4065 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4072 (exit $ac_status); } >/dev/null && {
4073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4076 # Broken: success on invalid input.
4079 echo "$as_me: failed program was
:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 # Passes both tests.
4087 rm -f conftest.err conftest.$ac_ext
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then
4095 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4096 See \
`config.log' for more details." >&5
4097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4098 See \`config.log
' for more details." >&2;}
4099 { (exit 1); exit 1; }; }
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4105 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4110 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4111 if test "${ac_cv_path_GREP+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4114 # Extract the first word of "grep ggrep" to use in msg output
4115 if test -z "$GREP"; then
4116 set dummy grep ggrep; ac_prog_name=$2
4117 if test "${ac_cv_path_GREP+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 ac_path_GREP_found=false
4121 # Loop through the user's path and
test for each of PROGNAME-LIST
4122 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4123 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4126 test -z "$as_dir" && as_dir
=.
4127 for ac_prog
in grep ggrep
; do
4128 for ac_exec_ext
in '' $ac_executable_extensions; do
4129 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4130 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4131 # Check for GNU ac_path_GREP and select it if it is found.
4132 # Check for GNU $ac_path_GREP
4133 case `"$ac_path_GREP" --version 2>&1` in
4135 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 echo 'GREP' >> "conftest.nl"
4145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4146 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4147 ac_count
=`expr $ac_count + 1`
4148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_GREP
="$ac_path_GREP"
4151 ac_path_GREP_max
=$ac_count
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4156 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4160 $ac_path_GREP_found && break 3
4170 GREP
="$ac_cv_path_GREP"
4171 if test -z "$GREP"; then
4172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4174 { (exit 1); exit 1; }; }
4178 ac_cv_path_GREP
=$GREP
4183 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4184 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4185 GREP
="$ac_cv_path_GREP"
4188 { echo "$as_me:$LINENO: checking for egrep" >&5
4189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4190 if test "${ac_cv_path_EGREP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4194 then ac_cv_path_EGREP
="$GREP -E"
4196 # Extract the first word of "egrep" to use in msg output
4197 if test -z "$EGREP"; then
4198 set dummy
egrep; ac_prog_name
=$2
4199 if test "${ac_cv_path_EGREP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_path_EGREP_found
=false
4203 # Loop through the user's path and test for each of PROGNAME-LIST
4204 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4205 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4208 test -z "$as_dir" && as_dir
=.
4209 for ac_prog
in egrep; do
4210 for ac_exec_ext
in '' $ac_executable_extensions; do
4211 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4213 # Check for GNU ac_path_EGREP and select it if it is found.
4214 # Check for GNU $ac_path_EGREP
4215 case `"$ac_path_EGREP" --version 2>&1` in
4217 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4220 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
4226 echo 'EGREP' >> "conftest.nl"
4227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4228 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4229 ac_count
=`expr $ac_count + 1`
4230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_EGREP
="$ac_path_EGREP"
4233 ac_path_EGREP_max
=$ac_count
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4238 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4242 $ac_path_EGREP_found && break 3
4252 EGREP
="$ac_cv_path_EGREP"
4253 if test -z "$EGREP"; then
4254 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4255 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4256 { (exit 1); exit 1; }; }
4260 ac_cv_path_EGREP
=$EGREP
4266 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4267 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4268 EGREP
="$ac_cv_path_EGREP"
4272 { echo "$as_me:$LINENO: checking for AIX" >&5
4273 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4274 cat >conftest.
$ac_ext <<_ACEOF
4277 cat confdefs.h
>>conftest.
$ac_ext
4278 cat >>conftest.
$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "yes" >/dev
/null
2>&1; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289 cat >>confdefs.h
<<\_ACEOF
4290 #define _ALL_SOURCE 1
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4301 cat >>confdefs.h
<<\_ACEOF
4302 #define _GNU_SOURCE 1
4307 ### Use -Wno-pointer-sign if the compiler supports it
4308 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4309 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4310 SAVE_CFLAGS
="$CFLAGS"
4311 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4312 cat >conftest.
$ac_ext <<_ACEOF
4315 cat confdefs.h
>>conftest.
$ac_ext
4316 cat >>conftest.
$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4327 rm -f conftest.
$ac_objext
4328 if { (ac_try
="$ac_compile"
4330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_compile") 2>conftest.er1
4336 grep -v '^ *+' conftest.er1 >conftest.err
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest.$ac_objext; then
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 if test $has_option = yes; then
4354 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4356 { echo "$as_me:$LINENO: result: $has_option" >&5
4357 echo "${ECHO_T}$has_option" >&6; }
4358 CFLAGS="$SAVE_CFLAGS"
4362 #### Some other nice autoconf tests.
4364 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4365 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4367 if test "$LN_S" = "ln -s"; then
4368 { echo "$as_me:$LINENO: result: yes" >&5
4369 echo "${ECHO_T}yes" >&6; }
4371 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4372 echo "${ECHO_T}no, using $LN_S" >&6; }
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4382 # On Suns, sometimes $CPP names a directory.
4383 if test -n "$CPP" && test -d "$CPP"; then
4386 if test -z "$CPP"; then
4387 if test "${ac_cv_prog_CPP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 # Double quotes because CPP needs to be expanded
4391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4394 for ac_c_preproc_warn_flag in '' yes
4396 # Use a header file that comes with gcc, so configuring glibc
4397 # with a fresh cross-compiler works.
4398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 # <limits.h> exists even on freestanding compilers.
4400 # On the NeXT, cc -E runs the code through the compiler's parser,
4401 # not just through cpp. "Syntax error" is here to catch this case.
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4409 # include <limits.h>
4411 # include <assert.h>
4415 if { (ac_try="$ac_cpp conftest.$ac_ext"
4417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4418 *) ac_try_echo
=$ac_try;;
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4423 grep -v '^ *+' conftest.er1
>conftest.err
4425 cat conftest.err
>&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } >/dev
/null
&& {
4428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.
$ac_ext >&5
4436 # Broken: fails on valid input.
4440 rm -f conftest.err conftest.
$ac_ext
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat >conftest.
$ac_ext <<_ACEOF
4447 cat confdefs.h
>>conftest.
$ac_ext
4448 cat >>conftest.
$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4452 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 grep -v '^ *+' conftest.er1 >conftest.err
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null && {
4465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4466 test ! -s conftest.err
4468 # Broken: success on invalid input.
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4474 # Passes both tests.
4479 rm -f conftest.err conftest.$ac_ext
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.err conftest.
$ac_ext
4484 if $ac_preproc_ok; then
4496 { echo "$as_me:$LINENO: result: $CPP" >&5
4497 echo "${ECHO_T}$CPP" >&6; }
4499 for ac_c_preproc_warn_flag
in '' yes
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat >conftest.
$ac_ext <<_ACEOF
4510 cat confdefs.h
>>conftest.
$ac_ext
4511 cat >>conftest.
$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4514 # include <limits.h>
4516 # include <assert.h>
4520 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null && {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 # Broken: fails on valid input.
4545 rm -f conftest.err conftest.$ac_ext
4547 # OK, works on sane cases. Now check whether nonexistent headers
4548 # can be detected and how.
4549 cat >conftest.$ac_ext <<_ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4557 if { (ac_try="$ac_cpp conftest.$ac_ext"
4559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4560 *) ac_try_echo
=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4565 grep -v '^ *+' conftest.er1
>conftest.err
4567 cat conftest.err
>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev
/null
&& {
4570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4573 # Broken: success on invalid input.
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.
$ac_ext >&5
4579 # Passes both tests.
4584 rm -f conftest.err conftest.
$ac_ext
4587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588 rm -f conftest.err conftest.
$ac_ext
4589 if $ac_preproc_ok; then
4592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; }
4600 ac_cpp
='$CPP $CPPFLAGS'
4601 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4605 # Find a good install program. We prefer a C program (faster),
4606 # so one script is as good as another. But avoid the broken or
4607 # incompatible versions:
4608 # SysV /etc/install, /usr/sbin/install
4609 # SunOS /usr/etc/install
4610 # IRIX /sbin/install
4612 # AmigaOS /C/install, which installs bootblocks on floppy discs
4613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4616 # OS/2's system install, which has a completely different semantic
4617 # ./install, which can be erroneously created by make from ./install.sh.
4618 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4620 if test -z "$INSTALL"; then
4621 if test "${ac_cv_path_install+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4628 test -z "$as_dir" && as_dir
=.
4629 # Account for people who put trailing slashes in PATH elements.
4631 .
/ | .
// |
/cC
/* | \
4632 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4633 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4636 # OSF1 and SCO ODT 3.0 have their own names for install.
4637 # Don't use installbsd from OSF since it installs stuff as root
4639 for ac_prog
in ginstall scoinst
install; do
4640 for ac_exec_ext
in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4642 if test $ac_prog = install &&
4643 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4644 # AIX install. It has an incompatible calling convention.
4646 elif test $ac_prog = install &&
4647 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4648 # program-specific install script used by HP pwplus--don't use.
4651 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4664 if test "${ac_cv_path_install+set}" = set; then
4665 INSTALL
=$ac_cv_path_install
4667 # As a last resort, use the slow shell script. Don't cache a
4668 # value for INSTALL within a source directory, because that will
4669 # break other packages using the cache if that directory is
4670 # removed, or if the value is a relative name.
4671 INSTALL
=$ac_install_sh
4674 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4675 echo "${ECHO_T}$INSTALL" >&6; }
4677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4678 # It thinks the first close brace ends the variable substitution.
4679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4683 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4685 if test "x$RANLIB" = x
; then
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_RANLIB+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir
=.
4702 for ac_exec_ext
in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 RANLIB
=$ac_cv_prog_RANLIB
4715 if test -n "$RANLIB"; then
4716 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4717 echo "${ECHO_T}$RANLIB" >&6; }
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4725 if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB
=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728 set dummy ranlib
; ac_word
=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4737 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4741 test -z "$as_dir" && as_dir
=.
4742 for ac_exec_ext
in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4755 if test -n "$ac_ct_RANLIB"; then
4756 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4757 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4759 { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4763 if test "x$ac_ct_RANLIB" = x
; then
4766 case $cross_compiling:$ac_tool_warned in
4768 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4769 whose name does not start with the host triplet. If you think this
4770 configuration is useful to you, please write to autoconf@gnu.org." >&5
4771 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4772 whose name does not start with the host triplet. If you think this
4773 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4774 ac_tool_warned
=yes ;;
4776 RANLIB
=$ac_ct_RANLIB
4779 RANLIB
="$ac_cv_prog_RANLIB"
4783 # Extract the first word of "install-info", so it can be a program name with args.
4784 set dummy install-info
; ac_word
=$2
4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4790 case $INSTALL_INFO in
4792 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4799 test -z "$as_dir" && as_dir
=.
4800 for ac_exec_ext
in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4814 if test -n "$INSTALL_INFO"; then
4815 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4816 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4823 # Extract the first word of "install-info", so it can be a program name with args.
4824 set dummy install-info
; ac_word
=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4830 case $INSTALL_INFO in
4832 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4835 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4836 for as_dir
in /usr
/sbin
4839 test -z "$as_dir" && as_dir
=.
4840 for ac_exec_ext
in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4854 if test -n "$INSTALL_INFO"; then
4855 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4856 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4863 # Extract the first word of "install-info", so it can be a program name with args.
4864 set dummy install-info
; ac_word
=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 case $INSTALL_INFO in
4872 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4875 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir
=.
4880 for ac_exec_ext
in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4894 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4895 if test -n "$INSTALL_INFO"; then
4896 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4897 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4904 # Extract the first word of "gzip", so it can be a program name with args.
4905 set dummy
gzip; ac_word
=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4913 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4916 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4920 test -z "$as_dir" && as_dir
=.
4921 for ac_exec_ext
in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4935 if test -n "$GZIP_PROG"; then
4936 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4937 echo "${ECHO_T}$GZIP_PROG" >&6; }
4939 { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4946 ## Need makeinfo >= 4.6 (?) to build the manuals.
4947 # Extract the first word of "makeinfo", so it can be a program name with args.
4948 set dummy makeinfo
; ac_word
=$2
4949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4951 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir
=.
4964 for ac_exec_ext
in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4978 MAKEINFO
=$ac_cv_path_MAKEINFO
4979 if test -n "$MAKEINFO"; then
4980 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4981 echo "${ECHO_T}$MAKEINFO" >&6; }
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4988 if test "$MAKEINFO" != "no" && \
4989 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
4993 if test "$MAKEINFO" = "no"; then
4994 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4995 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4996 { (exit 1); exit 1; }; }
5001 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5003 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5006 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5008 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5012 late_LDFLAGS
=$LDFLAGS
5013 if test "$GCC" = yes; then
5014 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5016 LDFLAGS
="$LDFLAGS -znocombreloc"
5019 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5020 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 rm -f conftest.
$ac_objext conftest
$ac_exeext
5025 if { (ac_try
="$ac_link"
5027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_link") 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest$ac_exeext &&
5041 $as_test_x conftest$ac_exeext; then
5042 { echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6; }
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5048 LDFLAGS=$late_LDFLAGS
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054 conftest$ac_exeext conftest.$ac_ext
5056 #### Extract some information from the operating system and machine files.
5058 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5059 - which libraries the lib-src programs will want, and
5060 - whether the GNU malloc routines are usable..." >&5
5061 echo "$as_me: checking the machine- and system-dependent files to find out
5062 - which libraries the lib-src programs will want, and
5063 - whether the GNU malloc routines are usable..." >&6;}
5065 ### First figure out CFLAGS (which we use for running the compiler here)
5066 ### and REAL_CFLAGS (which we use for real compilation).
5067 ### The two are the same except on a few systems, where they are made
5068 ### different to work around various lossages. For example,
5069 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5070 ### as implying static linking.
5072 ### If the CFLAGS env var is specified, we use that value
5073 ### instead of the default.
5075 ### It's not important that this name contain the PID; you can't run
5076 ### two configures in the same directory and have anything work
5078 tempcname="conftest.c"
5081 #include "'${srcdir}'/src/'${opsysfile}'"
5082 #include "'${srcdir}'/src/'${machfile}'"
5083 #ifndef LIBS_MACHINE
5084 #define LIBS_MACHINE
5089 #ifndef C_SWITCH_SYSTEM
5090 #define C_SWITCH_SYSTEM
5092 #ifndef C_SWITCH_MACHINE
5093 #define C_SWITCH_MACHINE
5095 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5096 configure___ c_switch_system=C_SWITCH_SYSTEM
5097 configure___ c_switch_machine=C_SWITCH_MACHINE
5100 #define LIB_X11_LIB -lX11
5103 #ifndef LIBX11_MACHINE
5104 #define LIBX11_MACHINE
5107 #ifndef LIBX11_SYSTEM
5108 #define LIBX11_SYSTEM
5110 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5113 configure___ unexec=UNEXEC
5115 configure___ unexec=unexec.o
5118 #ifdef SYSTEM_MALLOC
5119 configure___ system_malloc=yes
5121 configure___ system_malloc=no
5124 #ifdef USE_MMAP_FOR_BUFFERS
5125 configure___ use_mmap_for_buffers=yes
5127 configure___ use_mmap_for_buffers=no
5130 #ifndef C_DEBUG_SWITCH
5131 #define C_DEBUG_SWITCH -g
5134 #ifndef C_OPTIMIZE_SWITCH
5136 #define C_OPTIMIZE_SWITCH -O2
5138 #define C_OPTIMIZE_SWITCH -O
5142 #ifndef C_WARNINGS_SWITCH
5143 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5146 #ifndef LD_SWITCH_MACHINE
5147 #define LD_SWITCH_MACHINE
5150 #ifndef LD_SWITCH_SYSTEM
5151 #define LD_SWITCH_SYSTEM
5154 #ifndef LD_SWITCH_X_SITE_AUX
5155 #define LD_SWITCH_X_SITE_AUX
5158 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5159 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5161 #ifdef THIS_IS_CONFIGURE
5163 /* Get the CFLAGS for tests in configure. */
5165 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5167 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5170 #else /* not THIS_IS_CONFIGURE */
5172 /* Get the CFLAGS for real compilation. */
5174 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5176 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5179 #endif /* not THIS_IS_CONFIGURE */
5182 # The value of CPP is a quoted variable reference, so we need to do this
5183 # to get its actual value...
5184 CPP=`eval "echo $CPP"`
5185 eval `${CPP} -Isrc ${tempcname} \
5186 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5187 if test "x$SPECIFIED_CFLAGS" = x; then
5188 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5189 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5191 REAL_CFLAGS="$CFLAGS"
5195 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5197 ### Make sure subsequent tests use flags consistent with the build flags.
5199 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5200 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5202 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5207 # Check whether --enable-largefile was given.
5208 if test "${enable_largefile+set}" = set; then
5209 enableval=$enable_largefile;
5212 if test "$enable_largefile" != no; then
5214 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5215 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5216 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5219 ac_cv_sys_largefile_CC=no
5220 if test "$GCC" != yes; then
5223 # IRIX 6.2 and later do not support large files by default,
5224 # so use the C compiler's -n32 option if that helps.
5225 cat >conftest.$ac_ext <<_ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 /* Check that off_t can represent 2**63 - 1 correctly.
5233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234 since some C++ compilers masquerading as C compilers
5235 incorrectly reject 9223372036854775807. */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238 && LARGE_OFF_T % 2147483647 == 1)
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
5251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5252 *) ac_try_echo
=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5257 grep -v '^ *+' conftest.er1
>conftest.err
5259 cat conftest.err
>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.
$ac_objext; then
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.
$ac_ext >&5
5273 rm -f core conftest.err conftest.
$ac_objext
5275 rm -f conftest.
$ac_objext
5276 if { (ac_try
="$ac_compile"
5278 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_compile") 2>conftest.er1
5284 grep -v '^ *+' conftest.er1 >conftest.err
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest.$ac_objext; then
5292 ac_cv_sys_largefile_CC=' -n32'; break
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5300 rm -f core conftest.err conftest.$ac_objext
5304 rm -f conftest.$ac_ext
5307 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5308 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5309 if test "$ac_cv_sys_largefile_CC" != no; then
5310 CC=$CC$ac_cv_sys_largefile_CC
5313 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5314 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5315 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 cat >conftest.$ac_ext <<_ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <sys/types.h>
5326 /* Check that off_t can represent 2**63 - 1 correctly.
5327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5328 since some C++ compilers masquerading as C compilers
5329 incorrectly reject 9223372036854775807. */
5330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5332 && LARGE_OFF_T % 2147483647 == 1)
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5346 *) ac_try_echo
=$ac_try;;
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5351 grep -v '^ *+' conftest.er1
>conftest.err
5353 cat conftest.err
>&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.
$ac_objext; then
5359 ac_cv_sys_file_offset_bits
=no
; break
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.
$ac_ext >&5
5367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5368 cat >conftest.
$ac_ext <<_ACEOF
5371 cat confdefs.h
>>conftest.
$ac_ext
5372 cat >>conftest.
$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #define _FILE_OFFSET_BITS 64
5375 #include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5392 rm -f conftest.
$ac_objext
5393 if { (ac_try
="$ac_compile"
5395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_compile") 2>conftest.er1
5401 grep -v '^ *+' conftest.er1 >conftest.err
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && {
5406 test -z "$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5408 } && test -s conftest.$ac_objext; then
5409 ac_cv_sys_file_offset_bits=64; break
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_sys_file_offset_bits=unknown
5422 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5423 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5424 case $ac_cv_sys_file_offset_bits in #(
5427 cat >>confdefs.h <<_ACEOF
5428 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5433 if test $ac_cv_sys_file_offset_bits = unknown; then
5434 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5435 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5436 if test "${ac_cv_sys_large_files+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 cat >conftest.$ac_ext <<_ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <sys/types.h>
5447 /* Check that off_t can represent 2**63 - 1 correctly.
5448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5449 since some C++ compilers masquerading as C compilers
5450 incorrectly reject 9223372036854775807. */
5451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5453 && LARGE_OFF_T % 2147483647 == 1)
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5467 *) ac_try_echo
=$ac_try;;
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5472 grep -v '^ *+' conftest.er1
>conftest.err
5474 cat conftest.err
>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.
$ac_objext; then
5480 ac_cv_sys_large_files
=no
; break
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.
$ac_ext >&5
5488 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5489 cat >conftest.
$ac_ext <<_ACEOF
5492 cat confdefs.h
>>conftest.
$ac_ext
5493 cat >>conftest.
$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #define _LARGE_FILES 1
5496 #include <sys/types.h>
5497 /* Check that off_t can represent 2**63 - 1 correctly.
5498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5499 since some C++ compilers masquerading as C compilers
5500 incorrectly reject 9223372036854775807. */
5501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5503 && LARGE_OFF_T % 2147483647 == 1)
5513 rm -f conftest.
$ac_objext
5514 if { (ac_try
="$ac_compile"
5516 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_cv_sys_large_files=1; break
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_cv_sys_large_files=unknown
5543 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5544 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5545 case $ac_cv_sys_large_files in #(
5548 cat >>confdefs.h <<_ACEOF
5549 #define _LARGE_FILES $ac_cv_sys_large_files
5559 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5560 ### be located in either /usr/lib64 or /usr/lib.
5561 case "${canonical}" in
5562 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5563 if test -d /usr/lib64; then
5565 cat >>confdefs.h <<\_ACEOF
5566 #define HAVE_LIB64_DIR 1
5575 if test "${with_sound}" != "no"; then
5576 # Sound support for GNU/Linux and the free BSDs.
5577 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5578 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5579 if test "${ac_cv_header_stdc+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5605 *) ac_try_echo
=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1
>conftest.err
5612 cat conftest.err
>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.
$ac_objext; then
5618 ac_cv_header_stdc
=yes
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.
$ac_ext >&5
5623 ac_cv_header_stdc
=no
5626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5628 if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat >conftest.
$ac_ext <<_ACEOF
5633 cat confdefs.h
>>conftest.
$ac_ext
5634 cat >>conftest.
$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "memchr" >/dev
/null
2>&1; then
5643 ac_cv_header_stdc
=no
5649 if test $ac_cv_header_stdc = yes; then
5650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5651 cat >conftest.
$ac_ext <<_ACEOF
5654 cat confdefs.h
>>conftest.
$ac_ext
5655 cat >>conftest.
$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5661 $EGREP "free" >/dev
/null
2>&1; then
5664 ac_cv_header_stdc
=no
5670 if test $ac_cv_header_stdc = yes; then
5671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5672 if test "$cross_compiling" = yes; then
5675 cat >conftest.
$ac_ext <<_ACEOF
5678 cat confdefs.h
>>conftest.
$ac_ext
5679 cat >>conftest.
$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5683 #if ((' ' & 0x0FF) == 0x020)
5684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5687 # define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5706 rm -f conftest
$ac_exeext
5707 if { (ac_try
="$ac_link"
5709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_link") 2>&5
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5717 { (case "(($ac_try" in
5718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5719 *) ac_try_echo
=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_try") 2>&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5728 echo "$as_me: program exited with status $ac_status" >&5
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.
$ac_ext >&5
5733 ac_cv_header_stdc
=no
5735 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5741 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5742 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5743 if test $ac_cv_header_stdc = yes; then
5745 cat >>confdefs.h
<<\_ACEOF
5746 #define STDC_HEADERS 1
5751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5761 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5762 inttypes.h stdint.h unistd.h
5764 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 cat >conftest.
$ac_ext <<_ACEOF
5773 cat confdefs.h
>>conftest.
$ac_ext
5774 cat >>conftest.
$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 $ac_includes_default
5778 #include <$ac_header>
5780 rm -f conftest.
$ac_objext
5781 if { (ac_try
="$ac_compile"
5783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compile") 2>conftest.er1
5789 grep -v '^ *+' conftest.er1 >conftest.err
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
5797 eval "$as_ac_Header=yes"
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 eval "$as_ac_Header=no"
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 ac_res=`eval echo '${'$as_ac_Header'}'`
5808 { echo "$as_me:$LINENO: result: $ac_res" >&5
5809 echo "${ECHO_T}$ac_res" >&6; }
5810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5823 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5825 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_res=`eval echo '${'$as_ac_Header'}'`
5833 { echo "$as_me:$LINENO: result: $ac_res" >&5
5834 echo "${ECHO_T}$ac_res" >&6; }
5836 # Is the header compilable?
5837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5846 #include <$ac_header>
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5852 *) ac_try_echo
=$ac_try;;
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5857 grep -v '^ *+' conftest.er1
>conftest.err
5859 cat conftest.err
>&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.
$ac_objext; then
5865 ac_header_compiler
=yes
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.
$ac_ext >&5
5870 ac_header_compiler
=no
5873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5875 echo "${ECHO_T}$ac_header_compiler" >&6; }
5877 # Is the header present?
5878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5880 cat >conftest.
$ac_ext <<_ACEOF
5883 cat confdefs.h
>>conftest.
$ac_ext
5884 cat >>conftest.
$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <$ac_header>
5888 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5896 grep -v '^ *+' conftest.er1 >conftest.err
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } >/dev/null && {
5901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5904 ac_header_preproc=yes
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5909 ac_header_preproc=no
5912 rm -f conftest.err conftest.$ac_ext
5913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5914 echo "${ECHO_T}$ac_header_preproc" >&6; }
5916 # So? What about this header?
5917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5923 ac_header_preproc=yes
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5946 eval "$as_ac_Header=\$ac_header_preproc"
5948 ac_res=`eval echo '${'$as_ac_Header'}'`
5949 { echo "$as_me:$LINENO: result: $ac_res" >&5
5950 echo "${ECHO_T}$ac_res" >&6; }
5953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5962 # Emulation library used on NetBSD.
5963 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5964 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5965 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-lossaudio $LIBS"
5970 cat >conftest.$ac_ext <<_ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5977 /* Override any GCC internal prototype to avoid an error.
5978 Use char because int might match the return type of a GCC
5979 builtin and then its argument prototype would still apply. */
5987 return _oss_ioctl ();
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
6001 grep -v '^ *+' conftest.er1
>conftest.err
6003 cat conftest.err
>&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest
$ac_exeext &&
6009 $as_test_x conftest
$ac_exeext; then
6010 ac_cv_lib_ossaudio__oss_ioctl
=yes
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.
$ac_ext >&5
6015 ac_cv_lib_ossaudio__oss_ioctl
=no
6018 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6019 conftest
$ac_exeext conftest.
$ac_ext
6020 LIBS
=$ac_check_lib_save_LIBS
6022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6023 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6024 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6033 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6037 # Extract the first word of "pkg-config", so it can be a program name with args.
6038 set dummy pkg-config
; ac_word
=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6046 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6053 test -z "$as_dir" && as_dir
=.
6054 for ac_exec_ext
in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6068 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6069 if test -n "$PKG_CONFIG"; then
6070 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6071 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6079 if test "$PKG_CONFIG" = "no" ; then
6082 PKG_CONFIG_MIN_VERSION
=0.9.0
6083 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6084 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6085 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6087 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6088 { echo "$as_me:$LINENO: result: yes" >&5
6089 echo "${ECHO_T}yes" >&6; }
6092 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6093 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6094 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6095 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6096 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6098 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6099 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6100 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6101 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6102 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6108 ## If we have a custom action on failure, don't print errors, but
6109 ## do set a variable so people can do so.
6110 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6117 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6118 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6122 if test $succeeded = yes; then
6128 if test $HAVE_ALSA = yes; then
6129 SAVE_CFLAGS
="$CFLAGS"
6130 SAVE_LDFLAGS
="$LDFLAGS"
6131 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6132 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6133 cat >conftest.
$ac_ext <<_ACEOF
6136 cat confdefs.h
>>conftest.
$ac_ext
6137 cat >>conftest.
$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <asoundlib.h>
6143 snd_lib_error_set_handler (0);
6148 rm -f conftest.
$ac_objext
6149 if { (ac_try
="$ac_compile"
6151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_compile") 2>conftest.er1
6157 grep -v '^ *+' conftest.er1 >conftest.err
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest.$ac_objext; then
6165 emacs_alsa_normal=yes
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6170 emacs_alsa_normal=no
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 if test "$emacs_alsa_normal" != yes; then
6175 cat >conftest.$ac_ext <<_ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <alsa/asoundlib.h>
6185 snd_lib_error_set_handler (0);
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6194 *) ac_try_echo
=$ac_try;;
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6199 grep -v '^ *+' conftest.er1
>conftest.err
6201 cat conftest.err
>&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.
$ac_objext; then
6207 emacs_alsa_subdir
=yes
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.
$ac_ext >&5
6212 emacs_alsa_subdir
=no
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 if test "$emacs_alsa_subdir" != yes; then
6217 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6218 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6219 { (exit 1); exit 1; }; }
6221 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6224 CFLAGS
="$SAVE_CFLAGS"
6225 LDFLAGS
="$SAVE_LDFLAGS"
6226 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6227 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6229 cat >>confdefs.h
<<\_ACEOF
6262 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6263 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6264 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6265 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6268 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6272 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 ac_res
=`eval echo '${'$as_ac_Header'}'`
6276 { echo "$as_me:$LINENO: result: $ac_res" >&5
6277 echo "${ECHO_T}$ac_res" >&6; }
6279 # Is the header compilable?
6280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6282 cat >conftest.
$ac_ext <<_ACEOF
6285 cat confdefs.h
>>conftest.
$ac_ext
6286 cat >>conftest.
$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6289 #include <$ac_header>
6291 rm -f conftest.
$ac_objext
6292 if { (ac_try
="$ac_compile"
6294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6300 grep -v '^ *+' conftest.er1 >conftest.err
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
6308 ac_header_compiler=yes
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6313 ac_header_compiler=no
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6318 echo "${ECHO_T}$ac_header_compiler" >&6; }
6320 # Is the header present?
6321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <$ac_header>
6331 if { (ac_try="$ac_cpp conftest.$ac_ext"
6333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6334 *) ac_try_echo
=$ac_try;;
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6339 grep -v '^ *+' conftest.er1
>conftest.err
6341 cat conftest.err
>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev
/null
&& {
6344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6347 ac_header_preproc
=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.
$ac_ext >&5
6352 ac_header_preproc
=no
6355 rm -f conftest.err conftest.
$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6357 echo "${ECHO_T}$ac_header_preproc" >&6; }
6359 # So? What about this header?
6360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6366 ac_header_preproc
=yes
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 eval "$as_ac_Header=\$ac_header_preproc"
6391 ac_res
=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h
<<_ACEOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6406 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6407 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6408 cat >conftest.
$ac_ext <<_ACEOF
6411 cat confdefs.h
>>conftest.
$ac_ext
6412 cat >>conftest.
$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <sys/personality.h>
6418 personality (PER_LINUX32)
6423 rm -f conftest.
$ac_objext
6424 if { (ac_try
="$ac_compile"
6426 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 emacs_cv_personality_linux32=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 emacs_cv_personality_linux32=no
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6450 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6452 if test $emacs_cv_personality_linux32 = yes; then
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_PERSONALITY_LINUX32 1
6461 for ac_header in term.h
6463 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6469 cat >conftest.$ac_ext <<_ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <$ac_header>
6477 if { (ac_try="$ac_cpp conftest.$ac_ext"
6479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6480 *) ac_try_echo
=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1
>conftest.err
6487 cat conftest.err
>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev
/null
&& {
6490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6493 eval "$as_ac_Header=yes"
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.
$ac_ext >&5
6498 eval "$as_ac_Header=no"
6501 rm -f conftest.err conftest.
$ac_ext
6503 ac_res
=`eval echo '${'$as_ac_Header'}'`
6504 { echo "$as_me:$LINENO: result: $ac_res" >&5
6505 echo "${ECHO_T}$ac_res" >&6; }
6506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6507 cat >>confdefs.h
<<_ACEOF
6508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6517 if test "${ac_cv_header_stdc+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 cat >conftest.
$ac_ext <<_ACEOF
6523 cat confdefs.h
>>conftest.
$ac_ext
6524 cat >>conftest.
$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6539 rm -f conftest.
$ac_objext
6540 if { (ac_try
="$ac_compile"
6542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6548 grep -v '^ *+' conftest.er1 >conftest.err
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_header_stdc=yes
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_header_stdc=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6566 if test $ac_cv_header_stdc = yes; then
6567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6568 cat >conftest.$ac_ext <<_ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev/null 2>&1; then
6581 ac_cv_header_stdc=no
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6599 $EGREP "free" >/dev/null 2>&1; then
6602 ac_cv_header_stdc=no
6608 if test $ac_cv_header_stdc = yes; then
6609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6610 if test "$cross_compiling" = yes; then
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6621 #if ((' ' & 0x0FF) == 0x020)
6622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6625 # define ISLOWER(c) \
6626 (('a' <= (c) && (c) <= 'i') \
6627 || ('j' <= (c) && (c) <= 'r') \
6628 || ('s' <= (c) && (c) <= 'z'))
6629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6637 for (i = 0; i < 256; i++)
6638 if (XOR (islower (i), ISLOWER (i))
6639 || toupper (i) != TOUPPER (i))
6644 rm -f conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6648 *) ac_try_echo
=$ac_try;;
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6655 { (case "(($ac_try" in
6656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_try") 2>&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6666 echo "$as_me: program exited with status $ac_status" >&5
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_cv_header_stdc=no
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6681 if test $ac_cv_header_stdc = yes; then
6683 cat >>confdefs.h <<\_ACEOF
6684 #define STDC_HEADERS 1
6689 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6690 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6691 if test "${ac_cv_header_time+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 cat >conftest.$ac_ext <<_ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <sys/time.h>
6707 if ((struct tm *) 0)
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6717 *) ac_try_echo
=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1
>conftest.err
6724 cat conftest.err
>&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.
$ac_objext; then
6730 ac_cv_header_time
=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.
$ac_ext >&5
6735 ac_cv_header_time
=no
6738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6740 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6741 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6742 if test $ac_cv_header_time = yes; then
6744 cat >>confdefs.h
<<\_ACEOF
6745 #define TIME_WITH_SYS_TIME 1
6750 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6751 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6752 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 cat >conftest.
$ac_ext <<_ACEOF
6758 cat confdefs.h
>>conftest.
$ac_ext
6759 cat >>conftest.
$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6773 rm -f conftest.
$ac_objext
6774 if { (ac_try
="$ac_compile"
6776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6782 grep -v '^ *+' conftest.er1 >conftest.err
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 ac_cv_have_decl_sys_siglist=yes
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6795 ac_cv_have_decl_sys_siglist=no
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6800 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6801 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6802 if test $ac_cv_have_decl_sys_siglist = yes; then
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_DECL_SYS_SIGLIST 1
6810 cat >>confdefs.h <<_ACEOF
6811 #define HAVE_DECL_SYS_SIGLIST 0
6818 if test $ac_cv_have_decl_sys_siglist != yes; then
6819 # For Tru64, at least:
6820 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6821 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6822 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 cat >conftest.$ac_ext <<_ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6835 #ifndef __sys_siglist
6836 (void) __sys_siglist;
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6847 *) ac_try_echo
=$ac_try;;
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1
>conftest.err
6854 cat conftest.err
>&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.
$ac_objext; then
6860 ac_cv_have_decl___sys_siglist
=yes
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.
$ac_ext >&5
6865 ac_cv_have_decl___sys_siglist
=no
6868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6870 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6871 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6872 if test $ac_cv_have_decl___sys_siglist = yes; then
6874 cat >>confdefs.h
<<_ACEOF
6875 #define HAVE_DECL___SYS_SIGLIST 1
6880 cat >>confdefs.h
<<_ACEOF
6881 #define HAVE_DECL___SYS_SIGLIST 0
6888 if test $ac_cv_have_decl___sys_siglist = yes; then
6890 cat >>confdefs.h
<<\_ACEOF
6891 #define sys_siglist __sys_siglist
6896 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6897 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6898 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 cat >conftest.
$ac_ext <<_ACEOF
6904 cat confdefs.h
>>conftest.
$ac_ext
6905 cat >>conftest.
$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <sys/types.h>
6908 #include <sys/wait.h>
6910 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6913 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6921 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6926 rm -f conftest.
$ac_objext
6927 if { (ac_try
="$ac_compile"
6929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6935 grep -v '^ *+' conftest.er1 >conftest.err
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.$ac_objext; then
6943 ac_cv_header_sys_wait_h=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6948 ac_cv_header_sys_wait_h=no
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6954 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6955 if test $ac_cv_header_sys_wait_h = yes; then
6957 cat >>confdefs.h <<\_ACEOF
6958 #define HAVE_SYS_WAIT_H 1
6964 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6965 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6966 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #ifdef TIME_WITH_SYS_TIME
6976 #include <sys/time.h>
6979 #ifdef HAVE_SYS_TIME_H
6980 #include <sys/time.h>
6991 static struct utimbuf x; x.actime = x.modtime;
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7000 *) ac_try_echo
=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_compile") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1
>conftest.err
7007 cat conftest.err
>&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.
$ac_objext; then
7013 emacs_cv_struct_utimbuf
=yes
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.
$ac_ext >&5
7018 emacs_cv_struct_utimbuf
=no
7021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7023 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7024 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7025 if test $emacs_cv_struct_utimbuf = yes; then
7027 cat >>confdefs.h
<<\_ACEOF
7028 #define HAVE_STRUCT_UTIMBUF 1
7033 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7035 if test "${ac_cv_type_signal+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.
$ac_ext <<_ACEOF
7041 cat confdefs.h
>>conftest.
$ac_ext
7042 cat >>conftest.
$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <sys/types.h>
7050 return *(signal (0, 0)) (0) == 1;
7055 rm -f conftest.
$ac_objext
7056 if { (ac_try
="$ac_compile"
7058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_compile") 2>conftest.er1
7064 grep -v '^ *+' conftest.er1 >conftest.err
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_c_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest.$ac_objext; then
7072 ac_cv_type_signal=int
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7077 ac_cv_type_signal=void
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7083 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7085 cat >>confdefs.h <<_ACEOF
7086 #define RETSIGTYPE $ac_cv_type_signal
7091 { echo "$as_me:$LINENO: checking for speed_t" >&5
7092 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7093 if test "${emacs_cv_speed_t+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7096 cat >conftest.$ac_ext <<_ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 #include <termios.h>
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7115 *) ac_try_echo
=$ac_try;;
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7120 grep -v '^ *+' conftest.er1
>conftest.err
7122 cat conftest.err
>&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.
$ac_objext; then
7128 emacs_cv_speed_t
=yes
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7138 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7139 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7140 if test $emacs_cv_speed_t = yes; then
7142 cat >>confdefs.h
<<\_ACEOF
7143 #define HAVE_SPEED_T 1
7148 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7149 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7150 if test "${emacs_cv_struct_timeval+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7153 cat >conftest.
$ac_ext <<_ACEOF
7156 cat confdefs.h
>>conftest.
$ac_ext
7157 cat >>conftest.
$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #ifdef TIME_WITH_SYS_TIME
7160 #include <sys/time.h>
7163 #ifdef HAVE_SYS_TIME_H
7164 #include <sys/time.h>
7172 static struct timeval x; x.tv_sec = x.tv_usec;
7177 rm -f conftest.
$ac_objext
7178 if { (ac_try
="$ac_compile"
7180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7186 grep -v '^ *+' conftest.er1 >conftest.err
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 emacs_cv_struct_timeval=yes
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7199 emacs_cv_struct_timeval=no
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7204 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7205 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7206 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7207 if test $emacs_cv_struct_timeval = yes; then
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_TIMEVAL 1
7215 { echo "$as_me:$LINENO: checking for struct exception" >&5
7216 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7217 if test "${emacs_cv_struct_exception+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7230 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7235 rm -f conftest.$ac_objext
7236 if { (ac_try="$ac_compile"
7238 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7239 *) ac_try_echo
=$ac_try;;
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_compile") 2>conftest.er1
7244 grep -v '^ *+' conftest.er1
>conftest.err
7246 cat conftest.err
>&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && {
7249 test -z "$ac_c_werror_flag" ||
7250 test ! -s conftest.err
7251 } && test -s conftest.
$ac_objext; then
7252 emacs_cv_struct_exception
=yes
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.
$ac_ext >&5
7257 emacs_cv_struct_exception
=no
7260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7262 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7263 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7264 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7265 if test $emacs_cv_struct_exception != yes; then
7267 cat >>confdefs.h
<<\_ACEOF
7268 #define NO_MATHERR 1
7274 for ac_header
in sys
/socket.h
7276 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7280 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 ac_res
=`eval echo '${'$as_ac_Header'}'`
7284 { echo "$as_me:$LINENO: result: $ac_res" >&5
7285 echo "${ECHO_T}$ac_res" >&6; }
7287 # Is the header compilable?
7288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7290 cat >conftest.
$ac_ext <<_ACEOF
7293 cat confdefs.h
>>conftest.
$ac_ext
7294 cat >>conftest.
$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7297 #include <$ac_header>
7299 rm -f conftest.
$ac_objext
7300 if { (ac_try
="$ac_compile"
7302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7308 grep -v '^ *+' conftest.er1 >conftest.err
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 ac_header_compiler=yes
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7321 ac_header_compiler=no
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326 echo "${ECHO_T}$ac_header_compiler" >&6; }
7328 # Is the header present?
7329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7331 cat >conftest.$ac_ext <<_ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <$ac_header>
7339 if { (ac_try="$ac_cpp conftest.$ac_ext"
7341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7342 *) ac_try_echo
=$ac_try;;
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7347 grep -v '^ *+' conftest.er1
>conftest.err
7349 cat conftest.err
>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } >/dev
/null
&& {
7352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7355 ac_header_preproc
=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7360 ac_header_preproc
=no
7363 rm -f conftest.err conftest.
$ac_ext
7364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7365 echo "${ECHO_T}$ac_header_preproc" >&6; }
7367 # So? What about this header?
7368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7374 ac_header_preproc
=yes
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7394 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 eval "$as_ac_Header=\$ac_header_preproc"
7399 ac_res
=`eval echo '${'$as_ac_Header'}'`
7400 { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7405 cat >>confdefs.h
<<_ACEOF
7406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7414 for ac_header
in net
/if.h
7416 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7419 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 #if HAVE_SYS_SOCKET_H
7430 #include <sys/socket.h>
7433 #include <$ac_header>
7435 rm -f conftest.
$ac_objext
7436 if { (ac_try
="$ac_compile"
7438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 eval "$as_ac_Header=yes"
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7457 eval "$as_ac_Header=no"
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 ac_res=`eval echo '${'$as_ac_Header'}'`
7463 { echo "$as_me:$LINENO: result: $ac_res" >&5
7464 echo "${ECHO_T}$ac_res" >&6; }
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7475 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7476 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7477 if test "${ac_cv_struct_tm+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 cat >conftest.$ac_ext <<_ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7493 int *p = &tm.tm_sec;
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7503 *) ac_try_echo
=$ac_try;;
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7508 grep -v '^ *+' conftest.er1
>conftest.err
7510 cat conftest.err
>&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.
$ac_objext; then
7516 ac_cv_struct_tm
=time.h
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.
$ac_ext >&5
7521 ac_cv_struct_tm
=sys
/time.h
7524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7526 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7527 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7528 if test $ac_cv_struct_tm = sys
/time.h
; then
7530 cat >>confdefs.h
<<\_ACEOF
7531 #define TM_IN_SYS_TIME 1
7536 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7537 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7538 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 cat >conftest.
$ac_ext <<_ACEOF
7544 cat confdefs.h
>>conftest.
$ac_ext
7545 cat >>conftest.
$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <sys/types.h>
7548 #include <$ac_cv_struct_tm>
7554 static struct tm ac_aggr;
7555 if (ac_aggr.tm_zone)
7561 rm -f conftest.
$ac_objext
7562 if { (ac_try
="$ac_compile"
7564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7578 ac_cv_member_struct_tm_tm_zone=yes
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 cat >conftest.$ac_ext <<_ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <sys/types.h>
7590 #include <$ac_cv_struct_tm>
7596 static struct tm ac_aggr;
7597 if (sizeof ac_aggr.tm_zone)
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7607 *) ac_try_echo
=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.
$ac_objext; then
7620 ac_cv_member_struct_tm_tm_zone
=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7625 ac_cv_member_struct_tm_tm_zone
=no
7628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7631 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7633 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7634 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7635 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7637 cat >>confdefs.h
<<_ACEOF
7638 #define HAVE_STRUCT_TM_TM_ZONE 1
7644 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7646 cat >>confdefs.h
<<\_ACEOF
7647 #define HAVE_TM_ZONE 1
7651 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7652 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7653 if test "${ac_cv_have_decl_tzname+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 cat >conftest.
$ac_ext <<_ACEOF
7659 cat confdefs.h
>>conftest.
$ac_ext
7660 cat >>conftest.
$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7675 rm -f conftest.
$ac_objext
7676 if { (ac_try
="$ac_compile"
7678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7684 grep -v '^ *+' conftest.er1 >conftest.err
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_cv_have_decl_tzname=yes
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_cv_have_decl_tzname=no
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7703 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7704 if test $ac_cv_have_decl_tzname = yes; then
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_DECL_TZNAME 1
7712 cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DECL_TZNAME 0
7720 { echo "$as_me:$LINENO: checking for tzname" >&5
7721 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7722 if test "${ac_cv_var_tzname+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7725 cat >conftest.$ac_ext <<_ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7732 #if !HAVE_DECL_TZNAME
7733 extern char *tzname[];
7739 return tzname[0][0];
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7747 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7748 *) ac_try_echo
=$ac_try;;
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7753 grep -v '^ *+' conftest.er1
>conftest.err
7755 cat conftest.err
>&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest
$ac_exeext &&
7761 $as_test_x conftest
$ac_exeext; then
7762 ac_cv_var_tzname
=yes
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.
$ac_ext >&5
7770 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7771 conftest
$ac_exeext conftest.
$ac_ext
7773 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7774 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7775 if test $ac_cv_var_tzname = yes; then
7777 cat >>confdefs.h
<<\_ACEOF
7778 #define HAVE_TZNAME 1
7784 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7785 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7786 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7789 cat >conftest.
$ac_ext <<_ACEOF
7792 cat confdefs.h
>>conftest.
$ac_ext
7793 cat >>conftest.
$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7800 static struct tm ac_aggr;
7801 if (ac_aggr.tm_gmtoff)
7807 rm -f conftest.
$ac_objext
7808 if { (ac_try
="$ac_compile"
7810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7816 grep -v '^ *+' conftest.er1 >conftest.err
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_cv_member_struct_tm_tm_gmtoff=yes
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7829 cat >conftest.$ac_ext <<_ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7840 static struct tm ac_aggr;
7841 if (sizeof ac_aggr.tm_gmtoff)
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7851 *) ac_try_echo
=$ac_try;;
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7856 grep -v '^ *+' conftest.er1
>conftest.err
7858 cat conftest.err
>&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.
$ac_objext; then
7864 ac_cv_member_struct_tm_tm_gmtoff
=yes
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.
$ac_ext >&5
7869 ac_cv_member_struct_tm_tm_gmtoff
=no
7872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7875 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7878 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7879 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7881 cat >>confdefs.h
<<\_ACEOF
7882 #define HAVE_TM_GMTOFF 1
7887 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7888 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7889 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.
$ac_ext <<_ACEOF
7895 cat confdefs.h
>>conftest.
$ac_ext
7896 cat >>conftest.
$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7899 #if HAVE_SYS_SOCKET_H
7900 #include <sys/socket.h>
7909 static struct ifreq ac_aggr;
7910 if (ac_aggr.ifr_flags)
7916 rm -f conftest.
$ac_objext
7917 if { (ac_try
="$ac_compile"
7919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7925 grep -v '^ *+' conftest.er1 >conftest.err
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933 ac_cv_member_struct_ifreq_ifr_flags=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 #if HAVE_SYS_SOCKET_H
7946 #include <sys/socket.h>
7955 static struct ifreq ac_aggr;
7956 if (sizeof ac_aggr.ifr_flags)
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7966 *) ac_try_echo
=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7971 grep -v '^ *+' conftest.er1
>conftest.err
7973 cat conftest.err
>&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.
$ac_objext; then
7979 ac_cv_member_struct_ifreq_ifr_flags
=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7984 ac_cv_member_struct_ifreq_ifr_flags
=no
7987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7993 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7994 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7996 cat >>confdefs.h
<<_ACEOF
7997 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8002 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8003 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8004 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 cat >conftest.
$ac_ext <<_ACEOF
8010 cat confdefs.h
>>conftest.
$ac_ext
8011 cat >>conftest.
$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8024 static struct ifreq ac_aggr;
8025 if (ac_aggr.ifr_hwaddr)
8031 rm -f conftest.
$ac_objext
8032 if { (ac_try
="$ac_compile"
8034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 cat >conftest.$ac_ext <<_ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 #if HAVE_SYS_SOCKET_H
8061 #include <sys/socket.h>
8070 static struct ifreq ac_aggr;
8071 if (sizeof ac_aggr.ifr_hwaddr)
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8081 *) ac_try_echo
=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8086 grep -v '^ *+' conftest.er1
>conftest.err
8088 cat conftest.err
>&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.
$ac_objext; then
8094 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.
$ac_ext >&5
8099 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8108 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8109 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8111 cat >>confdefs.h
<<_ACEOF
8112 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8117 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8118 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8119 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8122 cat >conftest.
$ac_ext <<_ACEOF
8125 cat confdefs.h
>>conftest.
$ac_ext
8126 cat >>conftest.
$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #if HAVE_SYS_SOCKET_H
8130 #include <sys/socket.h>
8139 static struct ifreq ac_aggr;
8140 if (ac_aggr.ifr_netmask)
8146 rm -f conftest.
$ac_objext
8147 if { (ac_try
="$ac_compile"
8149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8155 grep -v '^ *+' conftest.er1 >conftest.err
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_cv_member_struct_ifreq_ifr_netmask=yes
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8168 cat >conftest.$ac_ext <<_ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8185 static struct ifreq ac_aggr;
8186 if (sizeof ac_aggr.ifr_netmask)
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8196 *) ac_try_echo
=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1
>conftest.err
8203 cat conftest.err
>&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.
$ac_objext; then
8209 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.
$ac_ext >&5
8214 ac_cv_member_struct_ifreq_ifr_netmask
=no
8217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8223 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8224 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8226 cat >>confdefs.h
<<_ACEOF
8227 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8232 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8233 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8234 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8237 cat >conftest.
$ac_ext <<_ACEOF
8240 cat confdefs.h
>>conftest.
$ac_ext
8241 cat >>conftest.
$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8254 static struct ifreq ac_aggr;
8255 if (ac_aggr.ifr_broadaddr)
8261 rm -f conftest.
$ac_objext
8262 if { (ac_try
="$ac_compile"
8264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #if HAVE_SYS_SOCKET_H
8291 #include <sys/socket.h>
8300 static struct ifreq ac_aggr;
8301 if (sizeof ac_aggr.ifr_broadaddr)
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8311 *) ac_try_echo
=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1
>conftest.err
8318 cat conftest.err
>&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.
$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.
$ac_ext >&5
8329 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8338 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8339 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8341 cat >>confdefs.h
<<_ACEOF
8342 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8347 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8348 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8349 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.
$ac_ext <<_ACEOF
8355 cat confdefs.h
>>conftest.
$ac_ext
8356 cat >>conftest.
$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8369 static struct ifreq ac_aggr;
8370 if (ac_aggr.ifr_addr)
8376 rm -f conftest.
$ac_objext
8377 if { (ac_try
="$ac_compile"
8379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8385 grep -v '^ *+' conftest.er1 >conftest.err
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_addr=yes
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 #if HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8415 static struct ifreq ac_aggr;
8416 if (sizeof ac_aggr.ifr_addr)
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8426 *) ac_try_echo
=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8431 grep -v '^ *+' conftest.er1
>conftest.err
8433 cat conftest.err
>&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.
$ac_objext; then
8439 ac_cv_member_struct_ifreq_ifr_addr
=yes
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.
$ac_ext >&5
8444 ac_cv_member_struct_ifreq_ifr_addr
=no
8447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8454 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8456 cat >>confdefs.h
<<_ACEOF
8457 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8465 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8466 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8467 if test "$ac_cv_prog_cc_c89" != no
; then
8468 { echo "$as_me:$LINENO: result: yes" >&5
8469 echo "${ECHO_T}yes" >&6; }
8471 cat >>confdefs.h
<<\_ACEOF
8472 #define PROTOTYPES 1
8476 cat >>confdefs.h
<<\_ACEOF
8477 #define __PROTOTYPES 1
8481 { echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6; }
8485 { echo "$as_me:$LINENO: checking for working volatile" >&5
8486 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8487 if test "${ac_cv_c_volatile+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 cat >conftest.
$ac_ext <<_ACEOF
8493 cat confdefs.h
>>conftest.
$ac_ext
8494 cat >>conftest.
$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8502 int * volatile y = (int *) 0;
8508 rm -f conftest.
$ac_objext
8509 if { (ac_try
="$ac_compile"
8511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_cv_c_volatile=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8536 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8537 if test $ac_cv_c_volatile = no; then
8539 cat >>confdefs.h <<\_ACEOF
8545 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8546 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8547 if test "${ac_cv_c_const+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8550 cat >conftest.$ac_ext <<_ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8560 /* FIXME: Include the comments suggested by Paul. */
8562 /* Ultrix mips cc rejects this. */
8563 typedef int charset[2];
8565 /* SunOS 4.1.1 cc rejects this. */
8566 char const *const *pcpcc;
8568 /* NEC SVR4.0.2 mips cc rejects this. */
8569 struct point {int x, y;};
8570 static struct point const zero = {0,0};
8571 /* AIX XL C 1.02.0.0 rejects this.
8572 It does not let you subtract one const X* pointer from another in
8573 an arm of an if-expression whose if-part is not a constant
8575 const char *g = "string";
8576 pcpcc = &g + (g ? g-g : 0);
8577 /* HPUX 7.0 cc rejects these. */
8579 ppc = (char**) pcpcc;
8580 pcpcc = (char const *const *) ppc;
8581 { /* SCO 3.2v4 cc rejects this. */
8583 char const *s = 0 ? (char *) 0 : (char const *) 0;
8588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8590 const int *foo = &x[0];
8593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8594 typedef const int *iptr;
8598 { /* AIX XL C 1.02.0.0 rejects this saying
8599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8600 struct s { int j; const int *ap[3]; };
8601 struct s *b; b->j = 5;
8603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8607 return !cs[0] && !zero.x;
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8618 *) ac_try_echo
=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1
>conftest.err
8625 cat conftest.err
>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.
$ac_objext; then
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.
$ac_ext >&5
8639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8641 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8642 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8643 if test $ac_cv_c_const = no
; then
8645 cat >>confdefs.h
<<\_ACEOF
8651 { echo "$as_me:$LINENO: checking for void * support" >&5
8652 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8653 if test "${emacs_cv_void_star+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.
$ac_ext <<_ACEOF
8659 cat confdefs.h
>>conftest.
$ac_ext
8660 cat >>conftest.
$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8671 rm -f conftest.
$ac_objext
8672 if { (ac_try
="$ac_compile"
8674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8680 grep -v '^ *+' conftest.er1 >conftest.err
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest.$ac_objext; then
8688 emacs_cv_void_star=yes
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8693 emacs_cv_void_star=no
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8699 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8700 if test $emacs_cv_void_star = yes; then
8701 cat >>confdefs.h <<\_ACEOF
8702 #define POINTER_TYPE void
8706 cat >>confdefs.h <<\_ACEOF
8707 #define POINTER_TYPE char
8716 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8718 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8722 cat >conftest.make <<\_ACEOF
8725 @echo '@@@%%%=$(MAKE)=@@@%%%'
8727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8728 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8730 eval ac_cv_prog_make_${ac_make}_set=yes;;
8732 eval ac_cv_prog_make_${ac_make}_set=no;;
8736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8737 { echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6; }
8741 { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8743 SET_MAKE="MAKE=${MAKE-make}"
8747 { echo "$as_me:$LINENO: checking for long file names" >&5
8748 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8749 if test "${ac_cv_sys_long_file_names+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 ac_cv_sys_long_file_names=yes
8753 # Test for long file names in all the places we know might matter:
8754 # . the current directory, where building will happen
8755 # $prefix/lib where we will be installing things
8756 # $exec_prefix/lib likewise
8757 # $TMPDIR if set, where it might want to write temporary files
8758 # /tmp where it might want to write temporary files
8761 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8762 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8763 # in the usual case where exec_prefix is '${prefix}'.
8765 . | /* | ?:[\\/]*) ;; #(
8768 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8769 ac_xdir=$ac_dir/cf$$
8770 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8771 ac_tf1=$ac_xdir/conftest9012345
8772 ac_tf2=$ac_xdir/conftest9012346
8773 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8774 ac_cv_sys_long_file_names=no
8775 rm -f -r "$ac_xdir" 2>/dev/null
8776 test $ac_cv_sys_long_file_names = no && break
8779 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8780 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8781 if test $ac_cv_sys_long_file_names = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_LONG_FILE_NAMES 1
8790 #### Choose a window system.
8792 { echo "$as_me:$LINENO: checking for X" >&5
8793 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8796 # Check whether --with-x was given.
8797 if test "${with_x+set}" = set; then
8801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8802 if test "x$with_x" = xno; then
8803 # The user explicitly disabled X.
8806 case $x_includes,$x_libraries in #(
8807 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8808 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8809 { (exit 1); exit 1; }; };; #(
8810 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 # One or both of the vars are not set, and there is no cached value.
8814 ac_x_includes=no ac_x_libraries=no
8815 rm -f -r conftest.dir
8816 if mkdir conftest.dir; then
8818 cat >Imakefile <<'_ACEOF'
8820 @echo incroot='${INCROOT}'
8822 @echo usrlibdir='${USRLIBDIR}'
8824 @echo libdir='${LIBDIR}'
8826 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8828 for ac_var in incroot usrlibdir libdir; do
8829 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8831 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8832 for ac_extension in a so sl; do
8833 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8834 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8835 ac_im_usrlibdir=$ac_im_libdir; break
8838 # Screen out bogus values from the imake configuration. They are
8839 # bogus both because they are the default anyway, and because
8840 # using them would break gcc on systems where it needs fixed includes.
8841 case $ac_im_incroot in
8842 /usr/include) ac_x_includes= ;;
8843 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8845 case $ac_im_usrlibdir in
8847 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8851 rm -f -r conftest.dir
8854 # Standard set of common directories for X headers.
8855 # Check X11 before X11Rn because it is often a symlink to the current release.
8867 /usr/local/X11/include
8868 /usr/local/X11R6/include
8869 /usr/local/X11R5/include
8870 /usr/local/X11R4/include
8872 /usr/local/include/X11
8873 /usr/local/include/X11R6
8874 /usr/local/include/X11R5
8875 /usr/local/include/X11R4
8879 /usr/XFree86/include/X11
8883 /usr/unsupported/include
8885 /usr/local/x11r5/include
8886 /usr/lpp/Xamples/include
8888 /usr/openwin/include
8889 /usr/openwin/share/include'
8891 if test "$ac_x_includes" = no; then
8892 # Guess where to find include files, by looking for Xlib.h.
8893 # First, try using that file with no special directory specified.
8894 cat >conftest.$ac_ext <<_ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #include <X11/Xlib.h>
8902 if { (ac_try="$ac_cpp conftest.$ac_ext"
8904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8905 *) ac_try_echo
=$ac_try;;
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8910 grep -v '^ *+' conftest.er1
>conftest.err
8912 cat conftest.err
>&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } >/dev
/null
&& {
8915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8916 test ! -s conftest.err
8918 # We can compile using X headers with no special include directory.
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.
$ac_ext >&5
8924 for ac_dir
in $ac_x_header_dirs; do
8925 if test -r "$ac_dir/X11/Xlib.h"; then
8926 ac_x_includes
=$ac_dir
8932 rm -f conftest.err conftest.
$ac_ext
8933 fi # $ac_x_includes = no
8935 if test "$ac_x_libraries" = no
; then
8936 # Check for the libraries.
8937 # See if we find them without any special options.
8938 # Don't add to $LIBS permanently.
8941 cat >conftest.
$ac_ext <<_ACEOF
8944 cat confdefs.h
>>conftest.
$ac_ext
8945 cat >>conftest.
$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <X11/Xlib.h>
8956 rm -f conftest.
$ac_objext conftest
$ac_exeext
8957 if { (ac_try
="$ac_link"
8959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_link") 2>conftest.er1
8965 grep -v '^ *+' conftest.er1 >conftest.err
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest$ac_exeext &&
8973 $as_test_x conftest$ac_exeext; then
8975 # We can link X programs with no special library path.
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8982 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8984 # Don't even attempt the hair of trying to link an X program!
8985 for ac_extension in a so sl; do
8986 if test -r "$ac_dir/libX11.$ac_extension"; then
8987 ac_x_libraries=$ac_dir
8994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8995 conftest$ac_exeext conftest.$ac_ext
8996 fi # $ac_x_libraries = no
8998 case $ac_x_includes,$ac_x_libraries in #(
9000 # Didn't find X, or a directory has "'" in its name.
9001 ac_cv_have_x="have_x=no";; #(
9003 # Record where we found X for the cache.
9004 ac_cv_have_x="have_x=yes\
9005 ac_x_includes='$ac_x_includes'\
9006 ac_x_libraries='$ac_x_libraries'"
9012 eval "$ac_cv_have_x"
9015 if test "$have_x" != yes; then
9016 { echo "$as_me:$LINENO: result: $have_x" >&5
9017 echo "${ECHO_T}$have_x" >&6; }
9020 # If each of the values was on the command line, it overrides each guess.
9021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9023 # Update the cache value to reflect the command line values.
9024 ac_cv_have_x="have_x=yes\
9025 ac_x_includes='$x_includes'\
9026 ac_x_libraries='$x_libraries'"
9027 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9028 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9031 if test "$no_x" = yes; then
9037 if test "${x_libraries}" != NONE; then
9038 if test -n "${x_libraries}"; then
9039 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9040 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9042 x_default_search_path=""
9043 x_search_path=${x_libraries}
9044 if test -z "${x_search_path}"; then
9045 x_search_path=/usr/lib
9047 for x_library in `echo ${x_search_path}: | \
9048 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9050 ${x_library}/X11/%L/%T/%N%C%S:\
9051 ${x_library}/X11/%l/%T/%N%C%S:\
9052 ${x_library}/X11/%T/%N%C%S:\
9053 ${x_library}/X11/%L/%T/%N%S:\
9054 ${x_library}/X11/%l/%T/%N%S:\
9055 ${x_library}/X11/%T/%N%S"
9056 if test x"${x_default_search_path}" = x; then
9057 x_default_search_path=${x_search_path}
9059 x_default_search_path="${x_search_path}:${x_default_search_path}"
9063 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9064 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9067 if test x"${x_includes}" = x; then
9068 bitmapdir=/usr/include/X11/bitmaps
9070 # accumulate include directories that have X11 bitmap subdirectories
9072 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9073 if test -d "${bmd}/X11/bitmaps"; then
9074 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9076 if test -d "${bmd}/bitmaps"; then
9077 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9080 if test ${bmd_acc} != "dummyval"; then
9081 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9086 if test "${with_carbon}" != no; then
9087 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9088 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9089 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9090 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9093 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9094 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9096 # Is the header compilable?
9097 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9098 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #include <Carbon/Carbon.h>
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9112 *) ac_try_echo
=$ac_try;;
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9117 grep -v '^ *+' conftest.er1
>conftest.err
9119 cat conftest.err
>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest.
$ac_objext; then
9125 ac_header_compiler
=yes
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.
$ac_ext >&5
9130 ac_header_compiler
=no
9133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9135 echo "${ECHO_T}$ac_header_compiler" >&6; }
9137 # Is the header present?
9138 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9139 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9140 cat >conftest.
$ac_ext <<_ACEOF
9143 cat confdefs.h
>>conftest.
$ac_ext
9144 cat >>conftest.
$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 #include <Carbon/Carbon.h>
9148 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9150 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9156 grep -v '^ *+' conftest.er1 >conftest.err
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null && {
9161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9162 test ! -s conftest.err
9164 ac_header_preproc=yes
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9169 ac_header_preproc=no
9172 rm -f conftest.err conftest.$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9174 echo "${ECHO_T}$ac_header_preproc" >&6; }
9176 # So? What about this header?
9177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9182 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9183 ac_header_preproc=yes
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9189 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9191 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9197 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9201 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9202 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9203 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9208 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9209 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9212 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9218 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9219 if test "${with_carbon+set}" != set \
9220 && test "${carbon_appdir_x+set}" != set; then
9221 for var in with_x with_x_toolkit with_gtk with_xim \
9222 with_xpm with_jpeg with_tiff with_gif with_png; do
9223 if eval test \"\${$var+set}\" = set; then
9230 if test "${HAVE_CARBON}" = yes; then
9234 case "${window_system}" in
9238 case "${with_x_toolkit}" in
9239 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9240 motif ) USE_X_TOOLKIT=MOTIF ;;
9242 USE_X_TOOLKIT=none ;;
9243 no ) USE_X_TOOLKIT=none ;;
9245 if test x"$with_gtk" = xyes; then
9260 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9261 # Extract the first word of "X", so it can be a program name with args.
9262 set dummy X; ac_word=$2
9263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9265 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9268 if test -n "$HAVE_XSERVER"; then
9269 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_prog_HAVE_XSERVER="true"
9279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9289 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9290 if test -n "$HAVE_XSERVER"; then
9291 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9292 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9294 { echo "$as_me:$LINENO: result: no" >&5
9295 echo "${ECHO_T}no" >&6; }
9299 if test "$HAVE_XSERVER" = true ||
9300 test -n "$DISPLAY" ||
9301 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9302 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9303 were found. You should install the relevant development files for X
9304 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9305 sure you have development files for image handling, i.e.
9306 tiff, gif, jpeg, png and xpm.
9307 If you are sure you want Emacs compiled without X window support, pass
9310 echo "$as_me: error: You seem to be running X, but no X development libraries
9311 were found. You should install the relevant development files for X
9312 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9313 sure you have development files for image handling, i.e.
9314 tiff, gif, jpeg, png and xpm.
9315 If you are sure you want Emacs compiled without X window support, pass
9317 to configure." >&2;}
9318 { (exit 1); exit 1; }; }
9322 ### If we're using X11, we should use the X menu package.
9325 yes ) HAVE_MENUS=yes ;;
9328 ### Compute the unexec source name from the object name.
9329 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9331 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9332 # Assume not, until told otherwise.
9335 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9336 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define malloc_get_state innocuous_malloc_get_state
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char malloc_get_state (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9356 # include <limits.h>
9358 # include <assert.h>
9361 #undef malloc_get_state
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9369 char malloc_get_state ();
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9380 return malloc_get_state ();
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9389 *) ac_try_echo
=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9394 grep -v '^ *+' conftest.er1
>conftest.err
9396 cat conftest.err
>&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest
$ac_exeext &&
9402 $as_test_x conftest
$ac_exeext; then
9403 ac_cv_func_malloc_get_state
=yes
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.
$ac_ext >&5
9408 ac_cv_func_malloc_get_state
=no
9411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9412 conftest
$ac_exeext conftest.
$ac_ext
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9415 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9416 if test $ac_cv_func_malloc_get_state = yes; then
9422 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9423 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9424 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 cat >conftest.
$ac_ext <<_ACEOF
9430 cat confdefs.h
>>conftest.
$ac_ext
9431 cat >>conftest.
$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9435 #define malloc_set_state innocuous_malloc_set_state
9437 /* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char malloc_set_state (); below.
9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440 <limits.h> exists even on freestanding compilers. */
9443 # include <limits.h>
9445 # include <assert.h>
9448 #undef malloc_set_state
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9456 char malloc_set_state ();
9457 /* The GNU C library defines this for functions which it implements
9458 to always fail with ENOSYS. Some functions are actually named
9459 something starting with __ and the normal name is an alias. */
9460 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9467 return malloc_set_state ();
9472 rm -f conftest.
$ac_objext conftest
$ac_exeext
9473 if { (ac_try
="$ac_link"
9475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_link") 2>conftest.er1
9481 grep -v '^ *+' conftest.er1 >conftest.err
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest$ac_exeext &&
9489 $as_test_x conftest$ac_exeext; then
9490 ac_cv_func_malloc_set_state=yes
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9495 ac_cv_func_malloc_set_state=no
9498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9499 conftest$ac_exeext conftest.$ac_ext
9501 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9502 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9503 if test $ac_cv_func_malloc_set_state = yes; then
9509 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9510 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9511 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 extern void (* __after_morecore_hook)();
9524 __after_morecore_hook = 0
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9533 *) ac_try_echo
=$ac_try;;
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9538 grep -v '^ *+' conftest.er1
>conftest.err
9540 cat conftest.err
>&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest
$ac_exeext &&
9546 $as_test_x conftest
$ac_exeext; then
9547 emacs_cv_var___after_morecore_hook
=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 emacs_cv_var___after_morecore_hook
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9556 conftest
$ac_exeext conftest.
$ac_ext
9558 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9559 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9560 if test $emacs_cv_var___after_morecore_hook = no
; then
9563 if test "${system_malloc}" = "yes"; then
9566 (The GNU allocators don't work with this system configuration.)"
9568 if test "$doug_lea_malloc" = "yes" ; then
9569 if test "$GNU_MALLOC" = yes ; then
9571 (Using Doug Lea's new malloc from the GNU C Library.)"
9574 cat >>confdefs.h
<<\_ACEOF
9575 #define DOUG_LEA_MALLOC 1
9580 if test x
"${REL_ALLOC}" = x
; then
9581 REL_ALLOC
=${GNU_MALLOC}
9587 for ac_header
in stdlib.h unistd.h
9589 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9596 ac_res
=`eval echo '${'$as_ac_Header'}'`
9597 { echo "$as_me:$LINENO: result: $ac_res" >&5
9598 echo "${ECHO_T}$ac_res" >&6; }
9600 # Is the header compilable?
9601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9603 cat >conftest.
$ac_ext <<_ACEOF
9606 cat confdefs.h
>>conftest.
$ac_ext
9607 cat >>conftest.
$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9610 #include <$ac_header>
9612 rm -f conftest.
$ac_objext
9613 if { (ac_try
="$ac_compile"
9615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9621 grep -v '^ *+' conftest.er1 >conftest.err
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9629 ac_header_compiler=yes
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9634 ac_header_compiler=no
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639 echo "${ECHO_T}$ac_header_compiler" >&6; }
9641 # Is the header present?
9642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9644 cat >conftest.$ac_ext <<_ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #include <$ac_header>
9652 if { (ac_try="$ac_cpp conftest.$ac_ext"
9654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9655 *) ac_try_echo
=$ac_try;;
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9660 grep -v '^ *+' conftest.er1
>conftest.err
9662 cat conftest.err
>&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev
/null
&& {
9665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9668 ac_header_preproc
=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.
$ac_ext >&5
9673 ac_header_preproc
=no
9676 rm -f conftest.err conftest.
$ac_ext
9677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6; }
9680 # So? What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9687 ac_header_preproc
=yes
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9707 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9710 eval "$as_ac_Header=\$ac_header_preproc"
9712 ac_res
=`eval echo '${'$as_ac_Header'}'`
9713 { echo "$as_me:$LINENO: result: $ac_res" >&5
9714 echo "${ECHO_T}$ac_res" >&6; }
9717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9718 cat >>confdefs.h
<<_ACEOF
9719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9727 for ac_func
in getpagesize
9729 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9732 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 cat >conftest.
$ac_ext <<_ACEOF
9738 cat confdefs.h
>>conftest.
$ac_ext
9739 cat >>conftest.
$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define $ac_func innocuous_$ac_func
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char $ac_func (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9751 # include <limits.h>
9753 # include <assert.h>
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_$ac_func || defined __stub___$ac_func
9780 rm -f conftest.
$ac_objext conftest
$ac_exeext
9781 if { (ac_try
="$ac_link"
9783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9789 grep -v '^ *+' conftest.er1 >conftest.err
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest$ac_exeext &&
9797 $as_test_x conftest$ac_exeext; then
9798 eval "$as_ac_var=yes"
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9803 eval "$as_ac_var=no"
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9809 ac_res=`eval echo '${'$as_ac_var'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_var'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9820 { echo "$as_me:$LINENO: checking for working mmap" >&5
9821 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9822 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 if test "$cross_compiling" = yes; then
9826 ac_cv_func_mmap_fixed_mapped=no
9828 cat >conftest.$ac_ext <<_ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 $ac_includes_default
9835 /* malloc might have been renamed as rpl_malloc. */
9838 /* Thanks to Mike Haertel and Jim Avera for this test.
9839 Here is a matrix of mmap possibilities:
9840 mmap private not fixed
9841 mmap private fixed at somewhere currently unmapped
9842 mmap private fixed at somewhere already mapped
9843 mmap shared not fixed
9844 mmap shared fixed at somewhere currently unmapped
9845 mmap shared fixed at somewhere already mapped
9846 For private mappings, we should verify that changes cannot be read()
9847 back from the file, nor mmap's back from the file at a different
9848 address. (There have been systems where private was not correctly
9849 implemented like the infamous i386 svr4.0, and systems where the
9850 VM page cache was not coherent with the file system buffer cache
9851 like early versions of FreeBSD and possibly contemporary NetBSD.)
9852 For shared mappings, we should conversely verify that changes get
9853 propagated back to all the places they're supposed to be.
9855 Grep wants private fixed already mapped.
9856 The main things grep needs to know about mmap are:
9857 * does it exist and is it safe to write into the mmap'd area
9858 * how to use it (BSD variants) */
9861 #include <sys/mman.h>
9863 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9867 /* This mess was copied from the GNU getpagesize.h. */
9868 #ifndef HAVE_GETPAGESIZE
9869 /* Assume that all systems that can run configure have sys/param.h. */
9870 # ifndef HAVE_SYS_PARAM_H
9871 # define HAVE_SYS_PARAM_H 1
9874 # ifdef _SC_PAGESIZE
9875 # define getpagesize() sysconf(_SC_PAGESIZE)
9876 # else /* no _SC_PAGESIZE */
9877 # ifdef HAVE_SYS_PARAM_H
9878 # include <sys/param.h>
9879 # ifdef EXEC_PAGESIZE
9880 # define getpagesize() EXEC_PAGESIZE
9881 # else /* no EXEC_PAGESIZE */
9883 # define getpagesize() NBPG * CLSIZE
9886 # endif /* no CLSIZE */
9887 # else /* no NBPG */
9889 # define getpagesize() NBPC
9890 # else /* no NBPC */
9892 # define getpagesize() PAGESIZE
9893 # endif /* PAGESIZE */
9894 # endif /* no NBPC */
9895 # endif /* no NBPG */
9896 # endif /* no EXEC_PAGESIZE */
9897 # else /* no HAVE_SYS_PARAM_H */
9898 # define getpagesize() 8192 /* punt totally */
9899 # endif /* no HAVE_SYS_PARAM_H */
9900 # endif /* no _SC_PAGESIZE */
9902 #endif /* no HAVE_GETPAGESIZE */
9907 char *data, *data2, *data3;
9911 pagesize = getpagesize ();
9913 /* First, make a file with some known garbage in it. */
9914 data = (char *) malloc (pagesize);
9917 for (i = 0; i < pagesize; ++i)
9918 *(data + i) = rand ();
9920 fd = creat ("conftest.mmap", 0600);
9923 if (write (fd, data, pagesize) != pagesize)
9927 /* Next, try to mmap the file at a fixed address which already has
9928 something else allocated at it. If we can, also make sure that
9929 we see the same garbage. */
9930 fd = open ("conftest.mmap", O_RDWR);
9933 data2 = (char *) malloc (2 * pagesize);
9936 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9940 for (i = 0; i < pagesize; ++i)
9941 if (*(data + i) != *(data2 + i))
9944 /* Finally, make sure that changes to the mapped area do not
9945 percolate back to the file as seen by read(). (This is a bug on
9946 some variants of i386 svr4.0.) */
9947 for (i = 0; i < pagesize; ++i)
9948 *(data2 + i) = *(data2 + i) + 1;
9949 data3 = (char *) malloc (pagesize);
9952 if (read (fd, data3, pagesize) != pagesize)
9954 for (i = 0; i < pagesize; ++i)
9955 if (*(data + i) != *(data3 + i))
9961 rm -f conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9965 *) ac_try_echo
=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_func_mmap_fixed_mapped=yes
9983 echo "$as_me: program exited with status $ac_status" >&5
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_cv_func_mmap_fixed_mapped=no
9990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9995 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9996 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9997 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_MMAP 1
10004 rm -f conftest.mmap
10006 if test $use_mmap_for_buffers = yes; then
10010 LIBS="$libsrc_libs $LIBS"
10013 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10014 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldnet $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10037 return dnet_ntoa ();
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10046 *) ac_try_echo
=$ac_try;;
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10051 grep -v '^ *+' conftest.er1
>conftest.err
10053 cat conftest.err
>&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest
$ac_exeext &&
10059 $as_test_x conftest
$ac_exeext; then
10060 ac_cv_lib_dnet_dnet_ntoa
=yes
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.
$ac_ext >&5
10065 ac_cv_lib_dnet_dnet_ntoa
=no
10068 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10069 conftest
$ac_exeext conftest.
$ac_ext
10070 LIBS
=$ac_check_lib_save_LIBS
10072 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10073 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10074 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10075 cat >>confdefs.h
<<_ACEOF
10076 #define HAVE_LIBDNET 1
10079 LIBS
="-ldnet $LIBS"
10084 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10085 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS
=$LIBS
10090 LIBS
="-lXbsd $LIBS"
10091 cat >conftest.
$ac_ext <<_ACEOF
10094 cat confdefs.h
>>conftest.
$ac_ext
10095 cat >>conftest.
$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10107 rm -f conftest.
$ac_objext conftest
$ac_exeext
10108 if { (ac_try
="$ac_link"
10109 case "(($ac_try" in
10110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext &&
10124 $as_test_x conftest$ac_exeext; then
10125 ac_cv_lib_Xbsd_main=yes
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_lib_Xbsd_main=no
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10138 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10139 if test $ac_cv_lib_Xbsd_main = yes; then
10140 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10145 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10146 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10147 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lpthreads $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10159 /* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10169 return cma_open ();
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10178 *) ac_try_echo
=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>conftest.er1
10183 grep -v '^ *+' conftest.er1
>conftest.err
10185 cat conftest.err
>&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest
$ac_exeext &&
10191 $as_test_x conftest
$ac_exeext; then
10192 ac_cv_lib_pthreads_cma_open
=yes
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.
$ac_ext >&5
10197 ac_cv_lib_pthreads_cma_open
=no
10200 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10201 conftest
$ac_exeext conftest.
$ac_ext
10202 LIBS
=$ac_check_lib_save_LIBS
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10205 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10206 if test $ac_cv_lib_pthreads_cma_open = yes; then
10207 cat >>confdefs.h
<<_ACEOF
10208 #define HAVE_LIBPTHREADS 1
10211 LIBS
="-lpthreads $LIBS"
10216 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10217 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10218 if test -d /usr
/X386
/include
; then
10220 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10224 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10225 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10230 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10231 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10232 if test "${gdb_cv_bigtoc+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10237 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10238 *) gdb_cv_bigtoc
=-bbigtoc ;;
10241 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10242 cat >conftest.
$ac_ext <<_ACEOF
10245 cat confdefs.h
>>conftest.
$ac_ext
10246 cat >>conftest.
$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10257 rm -f conftest.
$ac_objext conftest
$ac_exeext
10258 if { (ac_try
="$ac_link"
10259 case "(($ac_try" in
10260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10266 grep -v '^ *+' conftest.er1 >conftest.err
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext &&
10274 $as_test_x conftest$ac_exeext; then
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10288 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10292 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10293 # used for the tests that follow. We set them back to REAL_CFLAGS and
10294 # REAL_CPPFLAGS later on.
10296 REAL_CPPFLAGS="$CPPFLAGS"
10298 if test "${HAVE_X11}" = "yes"; then
10299 DEFS="$C_SWITCH_X_SITE $DEFS"
10300 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10302 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10303 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10305 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10306 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10307 # but it's more convenient here to set LD_RUN_PATH
10308 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10309 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10310 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10314 if test "${opsys}" = "gnu-linux"; then
10315 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10316 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10327 XOpenDisplay ("foo");
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10336 *) ac_try_echo
=$ac_try;;
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10341 grep -v '^ *+' conftest.er1
>conftest.err
10343 cat conftest.err
>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest
$ac_exeext &&
10349 $as_test_x conftest
$ac_exeext; then
10350 xlinux_first_failure
=no
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.
$ac_ext >&5
10355 xlinux_first_failure
=yes
10358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10359 conftest
$ac_exeext conftest.
$ac_ext
10360 if test "${xlinux_first_failure}" = "yes"; then
10361 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10362 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10363 OLD_CPPFLAGS
="$CPPFLAGS"
10365 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10366 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10367 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10368 LIBS
="$LIBS -b i486-linuxaout"
10369 cat >conftest.
$ac_ext <<_ACEOF
10372 cat confdefs.h
>>conftest.
$ac_ext
10373 cat >>conftest.
$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10379 XOpenDisplay ("foo");
10384 rm -f conftest.
$ac_objext conftest
$ac_exeext
10385 if { (ac_try
="$ac_link"
10386 case "(($ac_try" in
10387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1 >conftest.err
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest$ac_exeext &&
10401 $as_test_x conftest$ac_exeext; then
10402 xlinux_second_failure=no
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10407 xlinux_second_failure=yes
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411 conftest$ac_exeext conftest.$ac_ext
10412 if test "${xlinux_second_failure}" = "yes"; then
10413 # If we get the same failure with -b, there is no use adding -b.
10414 # So take it out. This plays safe.
10415 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10416 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10417 CPPFLAGS="$OLD_CPPFLAGS"
10419 { echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6; }
10422 { echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6; }
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10431 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10432 # header files included from there.
10433 { echo "$as_me:$LINENO: checking for Xkb" >&5
10434 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <X11/Xlib.h>
10442 #include <X11/XKBlib.h>
10446 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10455 *) ac_try_echo
=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1
>conftest.err
10462 cat conftest.err
>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest
$ac_exeext &&
10468 $as_test_x conftest
$ac_exeext; then
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.
$ac_ext >&5
10477 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10478 conftest
$ac_exeext conftest.
$ac_ext
10479 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10480 echo "${ECHO_T}$emacs_xkb" >&6; }
10481 if test $emacs_xkb = yes; then
10483 cat >>confdefs.h
<<\_ACEOF
10484 #define HAVE_XKBGETKEYBOARD 1
10493 for ac_func
in XrmSetDatabase XScreenResourceString \
10494 XScreenNumberOfScreen XSetWMProtocols
10496 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10499 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 cat >conftest.
$ac_ext <<_ACEOF
10505 cat confdefs.h
>>conftest.
$ac_ext
10506 cat >>conftest.
$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510 #define $ac_func innocuous_$ac_func
10512 /* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char $ac_func (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10518 # include <limits.h>
10520 # include <assert.h>
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined __stub_$ac_func || defined __stub___$ac_func
10542 return $ac_func ();
10547 rm -f conftest.
$ac_objext conftest
$ac_exeext
10548 if { (ac_try
="$ac_link"
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_link") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1 >conftest.err
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext &&
10564 $as_test_x conftest$ac_exeext; then
10565 eval "$as_ac_var=yes"
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 eval "$as_ac_var=no"
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574 conftest$ac_exeext conftest.$ac_ext
10576 ac_res=`eval echo '${'$as_ac_var'}'`
10577 { echo "$as_me:$LINENO: result: $ac_res" >&5
10578 echo "${ECHO_T}$ac_res" >&6; }
10579 if test `eval echo '${'$as_ac_var'}'` = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10589 if test "${window_system}" = "x11"; then
10590 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10591 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10592 if test "${emacs_cv_x11_version_6+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <X11/Xlib.h>
10605 #if XlibSpecificationRelease < 6
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10617 *) ac_try_echo
=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1
>conftest.err
10624 cat conftest.err
>&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest
$ac_exeext &&
10630 $as_test_x conftest
$ac_exeext; then
10631 emacs_cv_x11_version_6
=yes
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.
$ac_ext >&5
10636 emacs_cv_x11_version_6
=no
10639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10640 conftest
$ac_exeext conftest.
$ac_ext
10643 if test $emacs_cv_x11_version_6 = yes; then
10644 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10645 echo "${ECHO_T}6 or newer" >&6; }
10647 cat >>confdefs.h
<<\_ACEOF
10648 #define HAVE_X11R6 1
10652 { echo "$as_me:$LINENO: result: before 6" >&5
10653 echo "${ECHO_T}before 6" >&6; }
10658 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10660 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10661 if test "${with_rsvg}" != "no"; then
10662 RSVG_REQUIRED
=2.0.0
10663 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10668 # Extract the first word of "pkg-config", so it can be a program name with args.
10669 set dummy pkg-config
; ac_word
=$2
10670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10672 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 case $PKG_CONFIG in
10677 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10680 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10681 for as_dir
in $PATH
10684 test -z "$as_dir" && as_dir
=.
10685 for ac_exec_ext
in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10699 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10700 if test -n "$PKG_CONFIG"; then
10701 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10702 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10704 { echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6; }
10710 if test "$PKG_CONFIG" = "no" ; then
10713 PKG_CONFIG_MIN_VERSION
=0.9.0
10714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10715 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10716 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10718 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10719 { echo "$as_me:$LINENO: result: yes" >&5
10720 echo "${ECHO_T}yes" >&6; }
10723 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10724 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10725 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10726 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10727 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10729 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10730 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10731 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10732 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10733 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10735 { echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6; }
10739 ## If we have a custom action on failure, don't print errors, but
10740 ## do set a variable so people can do so.
10741 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10753 if test $succeeded = yes; then
10762 if test ".${RSVG_CFLAGS}" != "."; then
10765 cat >>confdefs.h
<<\_ACEOF
10766 #define HAVE_RSVG 1
10769 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10770 LIBS
="$RSVG_LIBS $LIBS"
10777 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10780 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
10781 test "$USE_X_TOOLKIT" = "maybe"; then
10782 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10783 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10784 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10785 { (exit 1); exit 1; }; };
10789 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10794 # Extract the first word of "pkg-config", so it can be a program name with args.
10795 set dummy pkg-config
; ac_word
=$2
10796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10801 case $PKG_CONFIG in
10803 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10807 for as_dir
in $PATH
10810 test -z "$as_dir" && as_dir
=.
10811 for ac_exec_ext
in '' $ac_executable_extensions; do
10812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10825 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10826 if test -n "$PKG_CONFIG"; then
10827 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10836 if test "$PKG_CONFIG" = "no" ; then
10839 PKG_CONFIG_MIN_VERSION
=0.9.0
10840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10841 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10842 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10844 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6; }
10849 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10850 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10851 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10852 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10853 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10855 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10856 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10857 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10858 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10859 echo "${ECHO_T}$GTK_LIBS" >&6; }
10861 { echo "$as_me:$LINENO: result: no" >&5
10862 echo "${ECHO_T}no" >&6; }
10865 ## If we have a custom action on failure, don't print errors, but
10866 ## do set a variable so people can do so.
10867 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10879 if test $succeeded = yes; then
10885 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10886 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10887 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10888 { (exit 1); exit 1; }; }
10893 if test x
"$pkg_check_gtk" = xyes
; then
10897 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10898 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10899 LIBS
="$GTK_LIBS $LIBS"
10902 for ac_func
in gtk_main
10904 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10907 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10910 cat >conftest.
$ac_ext <<_ACEOF
10913 cat confdefs.h
>>conftest.
$ac_ext
10914 cat >>conftest.
$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10918 #define $ac_func innocuous_$ac_func
10920 /* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char $ac_func (); below.
10922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923 <limits.h> exists even on freestanding compilers. */
10926 # include <limits.h>
10928 # include <assert.h>
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10940 /* The GNU C library defines this for functions which it implements
10941 to always fail with ENOSYS. Some functions are actually named
10942 something starting with __ and the normal name is an alias. */
10943 #if defined __stub_$ac_func || defined __stub___$ac_func
10950 return $ac_func ();
10955 rm -f conftest.
$ac_objext conftest
$ac_exeext
10956 if { (ac_try
="$ac_link"
10957 case "(($ac_try" in
10958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_link") 2>conftest.er1
10964 grep -v '^ *+' conftest.er1 >conftest.err
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_c_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest$ac_exeext &&
10972 $as_test_x conftest$ac_exeext; then
10973 eval "$as_ac_var=yes"
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10978 eval "$as_ac_var=no"
10981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10982 conftest$ac_exeext conftest.$ac_ext
10984 ac_res=`eval echo '${'$as_ac_var'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10987 if test `eval echo '${'$as_ac_var'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10995 if test "${GTK_COMPILES}" != "yes"; then
10996 if test "$USE_X_TOOLKIT" != "maybe"; then
10997 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10998 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10999 { (exit 1); exit 1; }; };
11004 cat >>confdefs.h <<\_ACEOF
11014 if test "${HAVE_GTK}" = "yes"; then
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11020 HAVE_GTK_MULTIDISPLAY=no
11022 for ac_func in gdk_display_open
11024 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11046 # include <limits.h>
11048 # include <assert.h>
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11070 return $ac_func ();
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11079 *) ac_try_echo
=$ac_try;;
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1
>conftest.err
11086 cat conftest.err
>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest
$ac_exeext &&
11092 $as_test_x conftest
$ac_exeext; then
11093 eval "$as_ac_var=yes"
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.
$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11102 conftest
$ac_exeext conftest.
$ac_ext
11104 ac_res
=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h
<<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 HAVE_GTK_MULTIDISPLAY
=yes
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11123 HAVE_GTK_FILE_SELECTION
=no
11125 for ac_func
in gtk_file_selection_new
11127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11149 # include <limits.h>
11151 # include <assert.h>
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 return $ac_func ();
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext
11179 if { (ac_try
="$ac_link"
11180 case "(($ac_try" in
11181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11214 HAVE_GTK_FILE_SELECTION=yes
11219 HAVE_GTK_FILE_CHOOSER=no
11221 for ac_func in gtk_file_chooser_dialog_new
11223 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11245 # include <limits.h>
11247 # include <assert.h>
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11269 return $ac_func ();
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11278 *) ac_try_echo
=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1
>conftest.err
11285 cat conftest.err
>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest
$ac_exeext &&
11291 $as_test_x conftest
$ac_exeext; then
11292 eval "$as_ac_var=yes"
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.
$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11301 conftest
$ac_exeext conftest.
$ac_ext
11303 ac_res
=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h
<<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 HAVE_GTK_FILE_CHOOSER
=yes
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11318 cat >>confdefs.h
<<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD
=no
11327 for ac_header
in pthread.h
11329 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res
=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11352 rm -f conftest.
$ac_objext
11353 if { (ac_try
="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11395 *) ac_try_echo
=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev
/null
&& {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11408 ac_header_preproc
=yes
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.
$ac_ext >&5
11413 ac_header_preproc
=no
11416 rm -f conftest.err conftest.
$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc
=yes
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res
=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h
<<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 ac_check_lib_save_LIBS
=$LIBS
11473 LIBS
="-lpthread $LIBS"
11474 cat >conftest.
$ac_ext <<_ACEOF
11477 cat confdefs.h
>>conftest.
$ac_ext
11478 cat >>conftest.
$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11487 char pthread_self ();
11491 return pthread_self ();
11496 rm -f conftest.
$ac_objext conftest
$ac_exeext
11497 if { (ac_try
="$ac_link"
11498 case "(($ac_try" in
11499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_pthread_pthread_self=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11548 if test "${with_dbus}" = "yes"; then
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 case $PKG_CONFIG in
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11594 if test "$PKG_CONFIG" = "no" ; then
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11637 if test $succeeded = yes; then
11643 if test "$HAVE_DBUS" = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11652 ### Link with -lXft if available to work around a bug.
11654 if test "${HAVE_GTK}" = "yes"; then
11658 # Extract the first word of "pkg-config", so it can be a program name with args.
11659 set dummy pkg-config; ac_word=$2
11660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11662 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 case $PKG_CONFIG in
11667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11690 if test -n "$PKG_CONFIG"; then
11691 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11692 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11694 { echo "$as_me:$LINENO: result: no" >&5
11695 echo "${ECHO_T}no" >&6; }
11700 if test "$PKG_CONFIG" = "no" ; then
11703 PKG_CONFIG_MIN_VERSION=0.9.0
11704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11705 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11706 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11708 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11709 { echo "$as_me:$LINENO: result: yes" >&5
11710 echo "${ECHO_T}yes" >&6; }
11713 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11714 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11715 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11716 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11717 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11719 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11720 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11721 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11722 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11723 echo "${ECHO_T}$XFT_LIBS" >&6; }
11725 { echo "$as_me:$LINENO: result: no" >&5
11726 echo "${ECHO_T}no" >&6; }
11729 ## If we have a custom action on failure, don't print errors, but
11730 ## do set a variable so people can do so.
11731 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11743 if test $succeeded = yes; then
11749 if test "$HAVE_XFT" != no; then
11750 OLD_CFLAGS="$CPPFLAGS"
11751 OLD_CPPFLAGS="$CFLAGS"
11753 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11754 CFLAGS="$CFLAGS $XFT_CFLAGS"
11755 LIBS="$XFT_LIBS $LIBS"
11756 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11757 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11758 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11759 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11765 # Is the header compilable?
11766 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11767 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11768 cat >conftest.$ac_ext <<_ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 #include <X11/Xft/Xft.h>
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11781 *) ac_try_echo
=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest.
$ac_objext; then
11794 ac_header_compiler
=yes
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.
$ac_ext >&5
11799 ac_header_compiler
=no
11802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11804 echo "${ECHO_T}$ac_header_compiler" >&6; }
11806 # Is the header present?
11807 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11808 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11809 cat >conftest.
$ac_ext <<_ACEOF
11812 cat confdefs.h
>>conftest.
$ac_ext
11813 cat >>conftest.
$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <X11/Xft/Xft.h>
11817 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
11825 grep -v '^ *+' conftest.er1 >conftest.err
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } >/dev/null && {
11830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11833 ac_header_preproc=yes
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_header_preproc=no
11841 rm -f conftest.err conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 echo "${ECHO_T}$ac_header_preproc" >&6; }
11845 # So? What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11848 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11849 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11852 ac_header_preproc=yes
11855 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11856 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11870 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11871 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11872 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11877 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11878 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11881 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11882 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11883 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11884 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lXft $XFT_LIBS $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11902 char XftFontOpen ();
11906 return XftFontOpen ();
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11915 *) ac_try_echo
=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>conftest.er1
11920 grep -v '^ *+' conftest.er1
>conftest.err
11922 cat conftest.err
>&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest
$ac_exeext &&
11928 $as_test_x conftest
$ac_exeext; then
11929 ac_cv_lib_Xft_XftFontOpen
=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.
$ac_ext >&5
11934 ac_cv_lib_Xft_XftFontOpen
=no
11937 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11938 conftest
$ac_exeext conftest.
$ac_ext
11939 LIBS
=$ac_check_lib_save_LIBS
11941 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11942 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11943 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11951 if test "${HAVE_XFT}" = "yes"; then
11953 cat >>confdefs.h
<<\_ACEOF
11958 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11960 CFLAGS
="$OLD_CPPFLAGS"
11961 CFLAGS
="$OLD_CFLAGS"
11968 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11969 if test "$with_xaw3d" != no
; then
11970 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11971 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11972 if test "${emacs_cv_xaw3d+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11975 cat >conftest.
$ac_ext <<_ACEOF
11978 cat confdefs.h
>>conftest.
$ac_ext
11979 cat >>conftest.
$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 #include <X11/Intrinsic.h>
11983 #include <X11/Xaw3d/Simple.h>
11992 rm -f conftest.
$ac_objext conftest
$ac_exeext
11993 if { (ac_try
="$ac_link"
11994 case "(($ac_try" in
11995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12001 grep -v '^ *+' conftest.er1 >conftest.err
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest$ac_exeext &&
12009 $as_test_x conftest$ac_exeext; then
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
12025 if test $emacs_cv_xaw3d = yes; then
12026 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12027 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12028 USE_X_TOOLKIT=LUCID
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_XAW3D 1
12036 { echo "$as_me:$LINENO: result: no" >&5
12037 echo "${ECHO_T}no" >&6; }
12038 { echo "$as_me:$LINENO: checking for libXaw" >&5
12039 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12040 if test "${emacs_cv_xaw+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12043 cat >conftest.$ac_ext <<_ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12050 #include <X11/Intrinsic.h>
12051 #include <X11/Xaw/Simple.h>
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12064 *) ac_try_echo
=$ac_try;;
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12069 grep -v '^ *+' conftest.er1
>conftest.err
12071 cat conftest.err
>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest
$ac_exeext &&
12077 $as_test_x conftest
$ac_exeext; then
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.
$ac_ext >&5
12086 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12087 conftest
$ac_exeext conftest.
$ac_ext
12090 if test $emacs_cv_xaw = yes; then
12091 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12092 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12093 USE_X_TOOLKIT
=LUCID
12094 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12095 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12096 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12097 { (exit 1); exit 1; }; }
12099 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12100 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12106 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12108 if test "${USE_X_TOOLKIT}" != "none"; then
12109 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12110 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12111 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12114 cat >conftest.
$ac_ext <<_ACEOF
12117 cat confdefs.h
>>conftest.
$ac_ext
12118 cat >>conftest.
$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <X11/Intrinsic.h>
12124 #if XtSpecificationRelease < 6
12132 rm -f conftest.
$ac_objext conftest
$ac_exeext
12133 if { (ac_try
="$ac_link"
12134 case "(($ac_try" in
12135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12141 grep -v '^ *+' conftest.er1 >conftest.err
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest$ac_exeext &&
12149 $as_test_x conftest$ac_exeext; then
12150 emacs_cv_x11_toolkit_version_6=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 emacs_cv_x11_toolkit_version_6=no
12158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12162 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12163 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12164 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12165 echo "${ECHO_T}6 or newer" >&6; }
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_X11XTR6 1
12172 { echo "$as_me:$LINENO: result: before 6" >&5
12173 echo "${ECHO_T}before 6" >&6; }
12177 if test x$HAVE_X11XTR6 = xyes; then
12178 LIBS="-lXt -lSM -lICE $LIBS"
12183 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12184 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12185 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12188 ac_check_lib_save_LIBS=$LIBS
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12203 char XmuConvertStandardSelection ();
12207 return XmuConvertStandardSelection ();
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12216 *) ac_try_echo
=$ac_try;;
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12221 grep -v '^ *+' conftest.er1
>conftest.err
12223 cat conftest.err
>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest
$ac_exeext &&
12229 $as_test_x conftest
$ac_exeext; then
12230 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.
$ac_ext >&5
12235 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12238 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12239 conftest
$ac_exeext conftest.
$ac_ext
12240 LIBS
=$ac_check_lib_save_LIBS
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12243 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12244 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12245 cat >>confdefs.h
<<_ACEOF
12246 #define HAVE_LIBXMU 1
12253 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12256 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12257 if test "${HAVE_X11}" = "yes"; then
12258 if test "${USE_X_TOOLKIT}" != "none"; then
12260 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12261 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12262 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12265 ac_check_lib_save_LIBS
=$LIBS
12266 LIBS
="-lXext $LIBS"
12267 cat >conftest.
$ac_ext <<_ACEOF
12270 cat confdefs.h
>>conftest.
$ac_ext
12271 cat >>conftest.
$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12280 char XShapeQueryExtension ();
12284 return XShapeQueryExtension ();
12289 rm -f conftest.
$ac_objext conftest
$ac_exeext
12290 if { (ac_try
="$ac_link"
12291 case "(($ac_try" in
12292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest$ac_exeext &&
12306 $as_test_x conftest$ac_exeext; then
12307 ac_cv_lib_Xext_XShapeQueryExtension=yes
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12312 ac_cv_lib_Xext_XShapeQueryExtension=no
12315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12320 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12321 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_LIBXEXT 1
12326 LIBS="-lXext $LIBS"
12333 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12334 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12335 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12336 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12339 cat >conftest.$ac_ext <<_ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12349 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12352 Motif version prior to 2.1.
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12362 *) ac_try_echo
=$ac_try;;
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
12367 grep -v '^ *+' conftest.er1
>conftest.err
12369 cat conftest.err
>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest.
$ac_objext; then
12375 emacs_cv_motif_version_2_1
=yes
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.
$ac_ext >&5
12380 emacs_cv_motif_version_2_1
=no
12383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12385 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12386 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12387 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12388 if test $emacs_cv_motif_version_2_1 = yes; then
12391 cat >>confdefs.h
<<\_ACEOF
12392 #define HAVE_MOTIF_2_1 1
12395 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12396 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12397 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 ac_check_lib_save_LIBS
=$LIBS
12402 cat >conftest.
$ac_ext <<_ACEOF
12405 cat confdefs.h
>>conftest.
$ac_ext
12406 cat >>conftest.
$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12415 char XpCreateContext ();
12419 return XpCreateContext ();
12424 rm -f conftest.
$ac_objext conftest
$ac_exeext
12425 if { (ac_try
="$ac_link"
12426 case "(($ac_try" in
12427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_link") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest$ac_exeext &&
12441 $as_test_x conftest$ac_exeext; then
12442 ac_cv_lib_Xp_XpCreateContext=yes
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12447 ac_cv_lib_Xp_XpCreateContext=no
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451 conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12454 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12455 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12456 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12460 if test ${HAVE_LIBXP} = yes; then
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_LIBXP 1
12468 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12469 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12470 if test "${emacs_cv_lesstif+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 # We put this in CFLAGS temporarily to precede other -I options
12474 # that might be in CFLAGS temporarily.
12475 # We put this in CPPFLAGS where it precedes the other -I options.
12476 OLD_CPPFLAGS=$CPPFLAGS
12478 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12479 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12480 cat >conftest.$ac_ext <<_ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12495 rm -f conftest.$ac_objext
12496 if { (ac_try="$ac_compile"
12497 case "(($ac_try" in
12498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12499 *) ac_try_echo
=$ac_try;;
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_compile") 2>conftest.er1
12504 grep -v '^ *+' conftest.er1
>conftest.err
12506 cat conftest.err
>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest.
$ac_objext; then
12512 emacs_cv_lesstif
=yes
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.
$ac_ext >&5
12517 emacs_cv_lesstif
=no
12520 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12522 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12523 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12524 if test $emacs_cv_lesstif = yes; then
12525 # Make sure this -I option remains in CPPFLAGS after it is set
12526 # back to REAL_CPPFLAGS.
12527 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12528 # have those other -I options anyway. Ultimately, having this
12529 # directory ultimately in CPPFLAGS will be enough.
12530 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12531 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12534 CPPFLAGS
=$OLD_CPPFLAGS
12541 USE_TOOLKIT_SCROLL_BARS
=no
12542 if test "${with_toolkit_scroll_bars}" != "no"; then
12543 if test "${USE_X_TOOLKIT}" != "none"; then
12544 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12545 cat >>confdefs.h
<<\_ACEOF
12546 #define USE_TOOLKIT_SCROLL_BARS 1
12550 USE_TOOLKIT_SCROLL_BARS
=yes
12551 elif test "${HAVE_XAW3D}" = "yes"; then
12552 cat >>confdefs.h
<<\_ACEOF
12553 #define USE_TOOLKIT_SCROLL_BARS 1
12556 USE_TOOLKIT_SCROLL_BARS
=yes
12558 elif test "${HAVE_GTK}" = "yes"; then
12559 cat >>confdefs.h
<<\_ACEOF
12560 #define USE_TOOLKIT_SCROLL_BARS 1
12563 USE_TOOLKIT_SCROLL_BARS
=yes
12564 elif test "${HAVE_CARBON}" = "yes"; then
12565 cat >>confdefs.h
<<\_ACEOF
12566 #define USE_TOOLKIT_SCROLL_BARS 1
12569 USE_TOOLKIT_SCROLL_BARS
=yes
12573 cat >conftest.
$ac_ext <<_ACEOF
12576 cat confdefs.h
>>conftest.
$ac_ext
12577 cat >>conftest.
$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12580 #include <X11/Xlib.h>
12581 #include <X11/Xresource.h>
12590 rm -f conftest.
$ac_objext
12591 if { (ac_try
="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12599 grep -v '^ *+' conftest.er1 >conftest.err
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12609 cat >>confdefs.h <<\_ACEOF
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 if test "${with_xim}" != "no"; then
12625 cat >>confdefs.h <<\_ACEOF
12632 if test "${HAVE_XIM}" != "no"; then
12633 late_CFLAGS=$CFLAGS
12634 if test "$GCC" = yes; then
12635 CFLAGS="$CFLAGS --pedantic-errors"
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12644 #include <X11/Xlib.h>
12645 #include <X11/Xresource.h>
12654 XPointer *client_data;
12656 /* If we're not using GCC, it's probably not XFree86, and this is
12657 probably right, but we can't use something like --pedantic-errors. */
12658 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12659 char*, XIMProc, XPointer*);
12661 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12667 rm -f conftest.$ac_objext
12668 if { (ac_try="$ac_compile"
12669 case "(($ac_try" in
12670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12671 *) ac_try_echo
=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12676 grep -v '^ *+' conftest.er1
>conftest.err
12678 cat conftest.err
>&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.
$ac_objext; then
12684 emacs_cv_arg6_star
=yes
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.
$ac_ext >&5
12692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12694 if test "$emacs_cv_arg6_star" = yes; then
12695 cat >>confdefs.h
<<\_ACEOF
12696 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12700 cat >>confdefs.h
<<\_ACEOF
12701 #define XRegisterIMInstantiateCallback_arg6 XPointer
12705 CFLAGS
=$late_CFLAGS
12708 ### Use -lXpm if available, unless `--with-xpm=no'.
12710 if test "${HAVE_X11}" = "yes"; then
12711 if test "${with_xpm}" != "no"; then
12712 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12713 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12714 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12715 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12718 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12721 # Is the header compilable?
12722 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12723 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12724 cat >conftest.
$ac_ext <<_ACEOF
12727 cat confdefs.h
>>conftest.
$ac_ext
12728 cat >>conftest.
$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <X11/xpm.h>
12733 rm -f conftest.
$ac_objext
12734 if { (ac_try
="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12742 grep -v '^ *+' conftest.er1 >conftest.err
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest.$ac_objext; then
12750 ac_header_compiler=yes
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12755 ac_header_compiler=no
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6; }
12762 # Is the header present?
12763 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12764 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12765 cat >conftest.$ac_ext <<_ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <X11/xpm.h>
12773 if { (ac_try="$ac_cpp conftest.$ac_ext"
12774 case "(($ac_try" in
12775 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12776 *) ac_try_echo
=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1
>conftest.err
12783 cat conftest.err
>&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } >/dev
/null
&& {
12786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12789 ac_header_preproc
=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.
$ac_ext >&5
12794 ac_header_preproc
=no
12797 rm -f conftest.err conftest.
$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12799 echo "${ECHO_T}$ac_header_preproc" >&6; }
12801 # So? What about this header?
12802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12804 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12805 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12807 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12808 ac_header_preproc
=yes
12811 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12812 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12814 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12816 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12818 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12820 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12822 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12826 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12827 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12833 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12834 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12837 if test $ac_cv_header_X11_xpm_h = yes; then
12838 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12839 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12843 ac_check_lib_save_LIBS
=$LIBS
12844 LIBS
="-lXpm -lX11 $LIBS"
12845 cat >conftest.
$ac_ext <<_ACEOF
12848 cat confdefs.h
>>conftest.
$ac_ext
12849 cat >>conftest.
$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12858 char XpmReadFileToPixmap ();
12862 return XpmReadFileToPixmap ();
12867 rm -f conftest.
$ac_objext conftest
$ac_exeext
12868 if { (ac_try
="$ac_link"
12869 case "(($ac_try" in
12870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12876 grep -v '^ *+' conftest.er1 >conftest.err
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest$ac_exeext &&
12884 $as_test_x conftest$ac_exeext; then
12885 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12897 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12898 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12899 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12906 if test "${HAVE_XPM}" = "yes"; then
12907 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12908 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #include "X11/xpm.h"
12916 #ifndef XpmReturnAllocPixels
12917 no_return_alloc_pixels
12921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12922 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12930 if test "${HAVE_XPM}" = "yes"; then
12931 { echo "$as_me:$LINENO: result: yes" >&5
12932 echo "${ECHO_T}yes" >&6; }
12934 { echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6; }
12940 if test "${HAVE_XPM}" = "yes"; then
12942 cat >>confdefs.h <<\_ACEOF
12949 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12951 if test "${HAVE_X11}" = "yes"; then
12952 if test "${with_jpeg}" != "no"; then
12953 if test "${ac_cv_header_jerror_h+set}" = set; then
12954 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12955 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12956 if test "${ac_cv_header_jerror_h+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12959 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12960 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12962 # Is the header compilable?
12963 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12964 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #include <jerror.h>
12974 rm -f conftest.$ac_objext
12975 if { (ac_try="$ac_compile"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_compile") 2>conftest.er1
12983 grep -v '^
*+' conftest.er1 >conftest.err
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && {
12988 test -z "$ac_c_werror_flag" ||
12989 test ! -s conftest.err
12990 } && test -s conftest.$ac_objext; then
12991 ac_header_compiler=yes
12993 echo "$as_me: failed program was:" >&5
12994 sed 's
/^
/|
/' conftest.$ac_ext >&5
12996 ac_header_compiler=no
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13001 echo "${ECHO_T}$ac_header_compiler" >&6; }
13003 # Is the header present?
13004 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13005 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13006 cat >conftest.$ac_ext <<_ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <jerror.h>
13014 if { (ac_try="$ac_cpp conftest.$ac_ext"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13022 grep -v '^
*+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } >/dev/null && {
13027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13030 ac_header_preproc=yes
13032 echo "$as_me: failed program was:" >&5
13033 sed 's
/^
/|
/' conftest.$ac_ext >&5
13035 ac_header_preproc=no
13038 rm -f conftest.err conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6; }
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13045 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13048 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13049 ac_header_preproc=yes
13052 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13053 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13055 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13057 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13059 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13061 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13063 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13067 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13068 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 ac_cv_header_jerror_h=$ac_header_preproc
13074 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13075 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13078 if test $ac_cv_header_jerror_h = yes; then
13079 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13080 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13081 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 ac_check_lib_save_LIBS=$LIBS
13085 LIBS="-ljpeg $LIBS"
13086 cat >conftest.$ac_ext <<_ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13099 char jpeg_destroy_compress ();
13103 return jpeg_destroy_compress ();
13108 rm -f conftest.$ac_objext conftest$ac_exeext
13109 if { (ac_try="$ac_link"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_link") 2>conftest.er1
13117 grep -v '^
*+' conftest.er1 >conftest.err
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } && {
13122 test -z "$ac_c_werror_flag" ||
13123 test ! -s conftest.err
13124 } && test -s conftest$ac_exeext &&
13125 $as_test_x conftest$ac_exeext; then
13126 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's
/^
/|
/' conftest.$ac_ext >&5
13131 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13138 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13139 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13140 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13150 if test "${HAVE_JPEG}" = "yes"; then
13151 cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_JPEG 1
13155 cat >conftest.$ac_ext <<_ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #include <jpeglib.h>
13162 version=JPEG_LIB_VERSION
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_JPEG 1
13172 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13173 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13181 ### Use -lpng if available, unless `--with-png=no'.
13183 if test "${HAVE_X11}" = "yes"; then
13184 if test "${with_png}" != "no"; then
13185 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13186 # in /usr/include/libpng.
13189 for ac_header
in png.h libpng
/png.h
13191 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13192 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13195 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 ac_res
=`eval echo '${'$as_ac_Header'}'`
13199 { echo "$as_me:$LINENO: result: $ac_res" >&5
13200 echo "${ECHO_T}$ac_res" >&6; }
13202 # Is the header compilable?
13203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13205 cat >conftest.
$ac_ext <<_ACEOF
13208 cat confdefs.h
>>conftest.
$ac_ext
13209 cat >>conftest.
$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 $ac_includes_default
13212 #include <$ac_header>
13214 rm -f conftest.
$ac_objext
13215 if { (ac_try
="$ac_compile"
13216 case "(($ac_try" in
13217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compile") 2>conftest.er1
13223 grep -v '^ *+' conftest.er1 >conftest.err
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest.$ac_objext; then
13231 ac_header_compiler=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_header_compiler=no
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13241 echo "${ECHO_T}$ac_header_compiler" >&6; }
13243 # Is the header present?
13244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include <$ac_header>
13254 if { (ac_try="$ac_cpp conftest.$ac_ext"
13255 case "(($ac_try" in
13256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13257 *) ac_try_echo
=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1
>conftest.err
13264 cat conftest.err
>&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } >/dev
/null
&& {
13267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13270 ac_header_preproc
=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.
$ac_ext >&5
13275 ac_header_preproc
=no
13278 rm -f conftest.err conftest.
$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280 echo "${ECHO_T}$ac_header_preproc" >&6; }
13282 # So? What about this header?
13283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc
=yes
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13309 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13312 eval "$as_ac_Header=\$ac_header_preproc"
13314 ac_res
=`eval echo '${'$as_ac_Header'}'`
13315 { echo "$as_me:$LINENO: result: $ac_res" >&5
13316 echo "${ECHO_T}$ac_res" >&6; }
13319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320 cat >>confdefs.h
<<_ACEOF
13321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13328 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13329 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13330 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13331 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13334 ac_check_lib_save_LIBS
=$LIBS
13335 LIBS
="-lpng -lz -lm $LIBS"
13336 cat >conftest.
$ac_ext <<_ACEOF
13339 cat confdefs.h
>>conftest.
$ac_ext
13340 cat >>conftest.
$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13343 /* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply. */
13349 char png_get_channels ();
13353 return png_get_channels ();
13358 rm -f conftest.
$ac_objext conftest
$ac_exeext
13359 if { (ac_try
="$ac_link"
13360 case "(($ac_try" in
13361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_link") 2>conftest.er1
13367 grep -v '^ *+' conftest.er1 >conftest.err
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } && {
13372 test -z "$ac_c_werror_flag" ||
13373 test ! -s conftest.err
13374 } && test -s conftest$ac_exeext &&
13375 $as_test_x conftest$ac_exeext; then
13376 ac_cv_lib_png_png_get_channels=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13381 ac_cv_lib_png_png_get_channels=no
13384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13385 conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13388 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13389 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13390 if test $ac_cv_lib_png_png_get_channels = yes; then
13397 if test "${HAVE_PNG}" = "yes"; then
13399 cat >>confdefs.h <<\_ACEOF
13406 ### Use -ltiff if available, unless `--with-tiff=no
'.
13408 if test "${HAVE_X11}" = "yes"; then
13409 if test "${with_tiff}" != "no"; then
13410 if test "${ac_cv_header_tiffio_h+set}" = set; then
13411 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13412 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13413 if test "${ac_cv_header_tiffio_h+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13417 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13419 # Is the header compilable?
13420 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13421 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13422 cat >conftest.$ac_ext <<_ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 $ac_includes_default
13429 #include <tiffio.h>
13431 rm -f conftest.$ac_objext
13432 if { (ac_try="$ac_compile"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13440 grep -v '^
*+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 ac_header_compiler=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's
/^
/|
/' conftest.$ac_ext >&5
13453 ac_header_compiler=no
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13458 echo "${ECHO_T}$ac_header_compiler" >&6; }
13460 # Is the header present?
13461 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13462 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13463 cat >conftest.$ac_ext <<_ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 #include <tiffio.h>
13471 if { (ac_try="$ac_cpp conftest.$ac_ext"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13479 grep -v '^
*+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } >/dev/null && {
13484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13487 ac_header_preproc=yes
13489 echo "$as_me: failed program was:" >&5
13490 sed 's
/^
/|
/' conftest.$ac_ext >&5
13492 ac_header_preproc=no
13495 rm -f conftest.err conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 echo "${ECHO_T}$ac_header_preproc" >&6; }
13499 # So? What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13502 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13505 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13506 ac_header_preproc=yes
13509 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13510 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13512 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13514 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13516 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13518 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13520 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13524 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13525 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 ac_cv_header_tiffio_h=$ac_header_preproc
13531 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13532 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13535 if test $ac_cv_header_tiffio_h = yes; then
13537 # At least one tiff package requires the jpeg library.
13538 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13539 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13540 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-ltiff $tifflibs $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13559 char TIFFGetVersion ();
13563 return TIFFGetVersion ();
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13577 grep -v '^
*+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_tiff_TIFFGetVersion=yes
13588 echo "$as_me: failed program was:" >&5
13589 sed 's
/^
/|
/' conftest.$ac_ext >&5
13591 ac_cv_lib_tiff_TIFFGetVersion=no
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13599 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13600 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13609 if test "${HAVE_TIFF}" = "yes"; then
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_TIFF 1
13618 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13620 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13622 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13623 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13624 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13630 # Is the header compilable?
13631 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13632 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13633 cat >conftest.
$ac_ext <<_ACEOF
13636 cat confdefs.h
>>conftest.
$ac_ext
13637 cat >>conftest.
$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 #include <gif_lib.h>
13642 rm -f conftest.
$ac_objext
13643 if { (ac_try
="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest.$ac_objext; then
13659 ac_header_compiler=yes
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_header_compiler=no
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13669 echo "${ECHO_T}$ac_header_compiler" >&6; }
13671 # Is the header present?
13672 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13673 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <gif_lib.h>
13682 if { (ac_try="$ac_cpp conftest.$ac_ext"
13683 case "(($ac_try" in
13684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13685 *) ac_try_echo
=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13690 grep -v '^ *+' conftest.er1
>conftest.err
13692 cat conftest.err
>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } >/dev
/null
&& {
13695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13698 ac_header_preproc
=yes
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.
$ac_ext >&5
13703 ac_header_preproc
=no
13706 rm -f conftest.err conftest.
$ac_ext
13707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13708 echo "${ECHO_T}$ac_header_preproc" >&6; }
13710 # So? What about this header?
13711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13713 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13714 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13716 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13717 ac_header_preproc
=yes
13720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13721 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13723 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13725 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13727 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13729 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13731 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13735 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13736 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13737 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 ac_cv_header_gif_lib_h
=$ac_header_preproc
13742 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13743 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13746 if test $ac_cv_header_gif_lib_h = yes; then
13747 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13748 # Earlier versions can crash Emacs.
13749 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13750 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13751 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13754 ac_check_lib_save_LIBS
=$LIBS
13756 cat >conftest.
$ac_ext <<_ACEOF
13759 cat confdefs.h
>>conftest.
$ac_ext
13760 cat >>conftest.
$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13769 char EGifPutExtensionLast ();
13773 return EGifPutExtensionLast ();
13778 rm -f conftest.
$ac_objext conftest
$ac_exeext
13779 if { (ac_try
="$ac_link"
13780 case "(($ac_try" in
13781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>conftest.er1
13787 grep -v '^ *+' conftest.er1 >conftest.err
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest$ac_exeext &&
13795 $as_test_x conftest$ac_exeext; then
13796 ac_cv_lib_gif_EGifPutExtensionLast=yes
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13801 ac_cv_lib_gif_EGifPutExtensionLast=no
13804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13809 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13810 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13820 if test "$HAVE_GIF" = yes; then
13821 ac_gif_lib_name="-lgif"
13824 # If gif_lib.h but no libgif, try libungif.
13825 if test x"$try_libungif" = xyes; then
13826 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13827 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13828 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 ac_check_lib_save_LIBS=$LIBS
13832 LIBS="-lungif $LIBS"
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13840 /* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13846 char EGifPutExtensionLast ();
13850 return EGifPutExtensionLast ();
13855 rm -f conftest.$ac_objext conftest$ac_exeext
13856 if { (ac_try="$ac_link"
13857 case "(($ac_try" in
13858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13859 *) ac_try_echo
=$ac_try;;
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_link") 2>conftest.er1
13864 grep -v '^ *+' conftest.er1
>conftest.err
13866 cat conftest.err
>&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && {
13869 test -z "$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13871 } && test -s conftest
$ac_exeext &&
13872 $as_test_x conftest
$ac_exeext; then
13873 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.
$ac_ext >&5
13878 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13881 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13882 conftest
$ac_exeext conftest.
$ac_ext
13883 LIBS
=$ac_check_lib_save_LIBS
13885 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13886 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13887 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13892 if test "$HAVE_GIF" = yes; then
13894 cat >>confdefs.h
<<\_ACEOF
13895 #define LIBGIF -lungif
13898 ac_gif_lib_name
="-lungif"
13902 if test "${HAVE_GIF}" = "yes"; then
13904 cat >>confdefs.h
<<\_ACEOF
13911 if test "${HAVE_X11}" = "yes"; then
13914 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13915 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13916 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13917 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13918 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13919 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13920 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13921 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13922 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13923 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13925 if test "X${MISSING}" != X
; then
13926 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13928 Maybe some development libraries/packages are missing?
13929 If you don't want to link with them give
13931 as options to configure" >&5
13932 echo "$as_me: error: The following required libraries were not found:
13934 Maybe some development libraries/packages are missing?
13935 If you don't want to link with them give
13937 as options to configure" >&2;}
13938 { (exit 1); exit 1; }; }
13942 ### Use -lgpm if available, unless `--with-gpm=no'.
13944 if test "${with_gpm}" != "no"; then
13945 if test "${ac_cv_header_gpm_h+set}" = set; then
13946 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13947 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13948 if test "${ac_cv_header_gpm_h+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13951 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13952 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13954 # Is the header compilable?
13955 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13956 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13957 cat >conftest.
$ac_ext <<_ACEOF
13960 cat confdefs.h
>>conftest.
$ac_ext
13961 cat >>conftest.
$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 $ac_includes_default
13966 rm -f conftest.
$ac_objext
13967 if { (ac_try
="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 ac_header_compiler=yes
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13988 ac_header_compiler=no
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993 echo "${ECHO_T}$ac_header_compiler" >&6; }
13995 # Is the header present?
13996 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
13997 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14006 if { (ac_try="$ac_cpp conftest.$ac_ext"
14007 case "(($ac_try" in
14008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14009 *) ac_try_echo
=$ac_try;;
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14014 grep -v '^ *+' conftest.er1
>conftest.err
14016 cat conftest.err
>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } >/dev
/null
&& {
14019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14022 ac_header_preproc
=yes
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.
$ac_ext >&5
14027 ac_header_preproc
=no
14030 rm -f conftest.err conftest.
$ac_ext
14031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14032 echo "${ECHO_T}$ac_header_preproc" >&6; }
14034 # So? What about this header?
14035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14037 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14038 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14040 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14041 ac_header_preproc
=yes
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14045 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14047 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14049 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14051 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14053 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14055 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14059 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14060 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_header_gpm_h+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_cv_header_gpm_h
=$ac_header_preproc
14066 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14067 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14070 if test $ac_cv_header_gpm_h = yes; then
14071 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14072 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_check_lib_save_LIBS
=$LIBS
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14095 return Gpm_Open ();
14100 rm -f conftest.
$ac_objext conftest
$ac_exeext
14101 if { (ac_try
="$ac_link"
14102 case "(($ac_try" in
14103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } && {
14114 test -z "$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 } && test -s conftest$ac_exeext &&
14117 $as_test_x conftest$ac_exeext; then
14118 ac_cv_lib_gpm_Gpm_Open=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_cv_lib_gpm_Gpm_Open=no
14126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14131 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14132 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14141 if test "${HAVE_GPM}" = "yes"; then
14143 cat >>confdefs.h <<\_ACEOF
14149 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14150 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14151 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14152 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14158 # Is the header compilable?
14159 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14160 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14168 #include <malloc/malloc.h>
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14174 *) ac_try_echo
=$ac_try;;
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_compile") 2>conftest.er1
14179 grep -v '^ *+' conftest.er1
>conftest.err
14181 cat conftest.err
>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } && {
14184 test -z "$ac_c_werror_flag" ||
14185 test ! -s conftest.err
14186 } && test -s conftest.
$ac_objext; then
14187 ac_header_compiler
=yes
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.
$ac_ext >&5
14192 ac_header_compiler
=no
14195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197 echo "${ECHO_T}$ac_header_compiler" >&6; }
14199 # Is the header present?
14200 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14201 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14202 cat >conftest.
$ac_ext <<_ACEOF
14205 cat confdefs.h
>>conftest.
$ac_ext
14206 cat >>conftest.
$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #include <malloc/malloc.h>
14210 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14211 case "(($ac_try" in
14212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14218 grep -v '^ *+' conftest.er1 >conftest.err
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null && {
14223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14226 ac_header_preproc=yes
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14231 ac_header_preproc=no
14234 rm -f conftest.err conftest.$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14236 echo "${ECHO_T}$ac_header_preproc" >&6; }
14238 # So? What about this header?
14239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14242 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14244 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14245 ac_header_preproc=yes
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14249 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14251 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14253 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14255 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14257 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14259 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14263 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14264 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14265 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14268 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14270 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14271 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14274 if test $ac_cv_header_malloc_malloc_h = yes; then
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_MALLOC_MALLOC_H 1
14284 ### Use Mac OS X Carbon API to implement GUI.
14285 if test "${HAVE_CARBON}" = "yes"; then
14287 cat >>confdefs.h <<\_ACEOF
14288 #define HAVE_CARBON 1
14291 ## Specify the install directory
14293 if test "${carbon_appdir_x}" != ""; then
14294 case ${carbon_appdir_x} in
14295 y | ye | yes) carbon_appdir=/Applications ;;
14296 * ) carbon_appdir=${carbon_appdir_x} ;;
14299 # We also have mouse menus.
14303 ### Use session management (-lSM -lICE) if available
14305 if test "${HAVE_X11}" = "yes"; then
14306 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14307 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14308 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14312 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14313 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14315 # Is the header compilable?
14316 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14317 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14318 cat >conftest.$ac_ext <<_ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14325 #include <X11/SM/SMlib.h>
14327 rm -f conftest.$ac_objext
14328 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14336 grep -v '^ *+' conftest.er1
>conftest.err
14338 cat conftest.err
>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest.
$ac_objext; then
14344 ac_header_compiler
=yes
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.
$ac_ext >&5
14349 ac_header_compiler
=no
14352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14354 echo "${ECHO_T}$ac_header_compiler" >&6; }
14356 # Is the header present?
14357 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14358 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14359 cat >conftest.
$ac_ext <<_ACEOF
14362 cat confdefs.h
>>conftest.
$ac_ext
14363 cat >>conftest.
$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <X11/SM/SMlib.h>
14367 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14368 case "(($ac_try" in
14369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1 >conftest.err
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } >/dev/null && {
14380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14383 ac_header_preproc=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_header_preproc=no
14391 rm -f conftest.err conftest.$ac_ext
14392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14393 echo "${ECHO_T}$ac_header_preproc" >&6; }
14395 # So? What about this header?
14396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14398 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14399 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14401 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14402 ac_header_preproc=yes
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14406 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14408 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14410 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14412 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14414 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14416 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14420 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14421 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14422 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14431 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14432 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14433 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14434 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 ac_check_lib_save_LIBS=$LIBS
14438 LIBS="-lSM -lICE $LIBS"
14439 cat >conftest.$ac_ext <<_ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14446 /* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
14452 char SmcOpenConnection ();
14456 return SmcOpenConnection ();
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (ac_try="$ac_link"
14463 case "(($ac_try" in
14464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14465 *) ac_try_echo
=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_link") 2>conftest.er1
14470 grep -v '^ *+' conftest.er1
>conftest.err
14472 cat conftest.err
>&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && {
14475 test -z "$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14477 } && test -s conftest
$ac_exeext &&
14478 $as_test_x conftest
$ac_exeext; then
14479 ac_cv_lib_SM_SmcOpenConnection
=yes
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.
$ac_ext >&5
14484 ac_cv_lib_SM_SmcOpenConnection
=no
14487 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14488 conftest
$ac_exeext conftest.
$ac_ext
14489 LIBS
=$ac_check_lib_save_LIBS
14491 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14492 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14493 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14501 if test "${HAVE_X_SM}" = "yes"; then
14503 cat >>confdefs.h
<<\_ACEOF
14504 #define HAVE_X_SM 1
14509 *) LIBS
="-lSM -lICE $LIBS" ;;
14514 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14515 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14516 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14517 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 cat >conftest.
$ac_ext <<_ACEOF
14523 cat confdefs.h
>>conftest.
$ac_ext
14524 cat >>conftest.
$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14535 rm -f conftest.
$ac_objext conftest
$ac_exeext
14536 if { (ac_try
="$ac_link"
14537 case "(($ac_try" in
14538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_link") 2>conftest.er1
14544 grep -v '^ *+' conftest.er1 >conftest.err
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest$ac_exeext &&
14552 $as_test_x conftest$ac_exeext; then
14553 emacs_cv_netdb_declares_h_errno=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 emacs_cv_netdb_declares_h_errno=no
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14564 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14565 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14566 if test $emacs_cv_netdb_declares_h_errno = yes; then
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_H_ERRNO 1
14574 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14575 # for constant arguments. Useless!
14576 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14577 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14578 if test "${ac_cv_working_alloca_h+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <alloca.h>
14591 char *p = (char *) alloca (2 * sizeof (int));
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14601 *) ac_try_echo
=$ac_try;;
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14606 grep -v '^ *+' conftest.er1
>conftest.err
14608 cat conftest.err
>&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest
$ac_exeext &&
14614 $as_test_x conftest
$ac_exeext; then
14615 ac_cv_working_alloca_h
=yes
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.
$ac_ext >&5
14620 ac_cv_working_alloca_h
=no
14623 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14624 conftest
$ac_exeext conftest.
$ac_ext
14626 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14627 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14628 if test $ac_cv_working_alloca_h = yes; then
14630 cat >>confdefs.h
<<\_ACEOF
14631 #define HAVE_ALLOCA_H 1
14636 { echo "$as_me:$LINENO: checking for alloca" >&5
14637 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14638 if test "${ac_cv_func_alloca_works+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 cat >conftest.
$ac_ext <<_ACEOF
14644 cat confdefs.h
>>conftest.
$ac_ext
14645 cat >>conftest.
$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14648 # define alloca __builtin_alloca
14651 # include <malloc.h>
14652 # define alloca _alloca
14654 # ifdef HAVE_ALLOCA_H
14655 # include <alloca.h>
14660 # ifndef alloca /* predefined by HP cc +Olibcalls */
14671 char *p = (char *) alloca (1);
14677 rm -f conftest.
$ac_objext conftest
$ac_exeext
14678 if { (ac_try
="$ac_link"
14679 case "(($ac_try" in
14680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_link") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest$ac_exeext &&
14694 $as_test_x conftest$ac_exeext; then
14695 ac_cv_func_alloca_works=yes
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 ac_cv_func_alloca_works=no
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14706 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14707 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14709 if test $ac_cv_func_alloca_works = yes; then
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_ALLOCA 1
14716 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14717 # that cause trouble. Some versions do not even contain alloca or
14718 # contain a buggy version. If you still want to use their alloca,
14719 # use ar to extract alloca.o from them instead of compiling alloca.c.
14721 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14723 cat >>confdefs.h <<\_ACEOF
14728 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14729 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14730 if test "${ac_cv_os_cray+set}" = set; then
14731 echo $ECHO_N "(cached
) $ECHO_C" >&6
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #if defined CRAY && ! defined CRAY2
14746 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14747 $EGREP "webecray
" >/dev/null 2>&1; then
14755 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14756 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14757 if test $ac_cv_os_cray = yes; then
14758 for ac_func in _getb67 GETB67 getb67; do
14759 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14760 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14761 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14762 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14763 echo $ECHO_N "(cached
) $ECHO_C" >&6
14765 cat >conftest.$ac_ext <<_ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14773 #define $ac_func innocuous_$ac_func
14775 /* System header to define __stub macros and hopefully few prototypes,
14776 which can conflict with char $ac_func (); below.
14777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14778 <limits.h> exists even on freestanding compilers. */
14781 # include <limits.h>
14783 # include <assert.h>
14788 /* Override any GCC internal prototype to avoid an error.
14789 Use char because int might match the return type of a GCC
14790 builtin and then its argument prototype would still apply. */
14795 /* The GNU C library defines this for functions which it implements
14796 to always fail with ENOSYS. Some functions are actually named
14797 something starting with __ and the normal name is an alias. */
14798 #if defined __stub_$ac_func || defined __stub___$ac_func
14805 return $ac_func ();
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (ac_try="$ac_link"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_link") 2>conftest.er1
14819 grep -v '^ *+' conftest.er1 >conftest.err
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest$ac_exeext &&
14827 $as_test_x conftest$ac_exeext; then
14828 eval "$as_ac_var=yes"
14830 echo "$as_me: failed program was
:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14833 eval "$as_ac_var=no
"
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14839 ac_res=`eval echo '${'$as_ac_var'}'`
14840 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14841 echo "${ECHO_T}$ac_res" >&6; }
14842 if test `eval echo '${'$as_ac_var'}'` = yes; then
14844 cat >>confdefs.h <<_ACEOF
14845 #define CRAY_STACKSEG_END $ac_func
14854 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14855 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14856 if test "${ac_cv_c_stack_direction+set}" = set; then
14857 echo $ECHO_N "(cached
) $ECHO_C" >&6
14859 if test "$cross_compiling" = yes; then
14860 ac_cv_c_stack_direction=0
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14870 find_stack_direction ()
14872 static char *addr = 0;
14877 return find_stack_direction ();
14880 return (&dummy > addr) ? 1 : -1;
14886 return find_stack_direction () < 0;
14889 rm -f conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>&5
14898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_c_stack_direction=1
14911 echo "$as_me: program exited with status
$ac_status" >&5
14912 echo "$as_me: failed program was
:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14915 ( exit $ac_status )
14916 ac_cv_c_stack_direction=-1
14918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14923 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14924 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14926 cat >>confdefs.h <<_ACEOF
14927 #define STACK_DIRECTION $ac_cv_c_stack_direction
14934 if test x"$ac_cv_func_alloca_works" != xyes; then
14935 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
14936 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
14937 { (exit 1); exit 1; }; }
14940 # fmod, logb, and frexp are found in -lm on most systems.
14941 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14943 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14944 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14945 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14946 echo $ECHO_N "(cached
) $ECHO_C" >&6
14948 ac_check_lib_save_LIBS=$LIBS
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest$ac_exeext &&
14989 $as_test_x conftest$ac_exeext; then
14990 ac_cv_lib_m_sqrt=yes
14992 echo "$as_me: failed program was
:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14995 ac_cv_lib_m_sqrt=no
14998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15002 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15003 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15004 if test $ac_cv_lib_m_sqrt = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define HAVE_LIBM 1
15014 # Check for mail-locking functions in a "mail" library. Probably this should
15015 # have the same check as for liblockfile below.
15017 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15018 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15019 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15020 echo $ECHO_N "(cached
) $ECHO_C" >&6
15022 ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-lmail $LIBS"
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15041 return maillock ();
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (ac_try="$ac_link"
15048 case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_link") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1 >conftest.err
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext &&
15063 $as_test_x conftest$ac_exeext; then
15064 ac_cv_lib_mail_maillock=yes
15066 echo "$as_me: failed program was
:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 ac_cv_lib_mail_maillock=no
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15074 LIBS=$ac_check_lib_save_LIBS
15076 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15077 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15078 if test $ac_cv_lib_mail_maillock = yes; then
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE_LIBMAIL 1
15083 LIBS="-lmail $LIBS"
15088 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15089 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15090 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15091 echo $ECHO_N "(cached
) $ECHO_C" >&6
15093 ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-llockfile $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15112 return maillock ();
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_lib_lockfile_maillock=yes
15137 echo "$as_me: failed program was
:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15140 ac_cv_lib_lockfile_maillock=no
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15147 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15148 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15149 if test $ac_cv_lib_lockfile_maillock = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_LIBLOCKFILE 1
15154 LIBS="-llockfile $LIBS"
15158 # If we have the shared liblockfile, assume we must use it for mail
15159 # locking (e.g. Debian). If we couldn't link against liblockfile
15160 # (no liblockfile.a installed), ensure that we don't need to.
15161 if test "$ac_cv_lib_lockfile_maillock" = no; then
15162 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15163 set dummy liblockfile.so; ac_word=$2
15164 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15165 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15166 if test "${ac_cv_prog_liblockfile+set}" = set; then
15167 echo $ECHO_N "(cached
) $ECHO_C" >&6
15169 if test -n "$liblockfile"; then
15170 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15174 for as_dir in $as_dummy
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15180 ac_cv_prog_liblockfile="yes"
15181 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15188 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15191 liblockfile=$ac_cv_prog_liblockfile
15192 if test -n "$liblockfile"; then
15193 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15194 echo "${ECHO_T}$liblockfile" >&6; }
15196 { echo "$as_me:$LINENO: result
: no
" >&5
15197 echo "${ECHO_T}no
" >&6; }
15201 if test $ac_cv_prog_liblockfile = yes; then
15202 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15203 This probably means that movemail could lose mail.
15204 There may be a \`development' package to
install containing liblockfile.
" >&5
15205 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15206 This probably means that movemail could lose mail.
15207 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15208 { (exit 1); exit 1; }; }
15213 for ac_func in touchlock
15215 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15216 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15217 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15218 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15219 echo $ECHO_N "(cached
) $ECHO_C" >&6
15221 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15229 #define $ac_func innocuous_$ac_func
15231 /* System header to define __stub macros and hopefully few prototypes,
15232 which can conflict with char $ac_func (); below.
15233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15234 <limits.h> exists even on freestanding compilers. */
15237 # include <limits.h>
15239 # include <assert.h>
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined __stub_$ac_func || defined __stub___$ac_func
15261 return $ac_func ();
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_link") 2>conftest.er1
15275 grep -v '^ *+' conftest.er1 >conftest.err
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest$ac_exeext &&
15283 $as_test_x conftest$ac_exeext; then
15284 eval "$as_ac_var=yes"
15286 echo "$as_me: failed program was
:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15289 eval "$as_ac_var=no
"
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext
15295 ac_res=`eval echo '${'$as_ac_var'}'`
15296 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15297 echo "${ECHO_T}$ac_res" >&6; }
15298 if test `eval echo '${'$as_ac_var'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15307 for ac_header in maillock.h
15309 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15311 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15312 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15313 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15314 echo $ECHO_N "(cached
) $ECHO_C" >&6
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15320 # Is the header compilable?
15321 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15322 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 #include <$ac_header>
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15341 grep -v '^ *+' conftest.er1 >conftest.err
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.$ac_objext; then
15349 ac_header_compiler=yes
15351 echo "$as_me: failed program was
:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 ac_header_compiler=no
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6; }
15361 # Is the header present?
15362 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15363 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
15372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15380 grep -v '^ *+' conftest.er1 >conftest.err
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15388 ac_header_preproc=yes
15390 echo "$as_me: failed program was
:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_header_preproc=no
15396 rm -f conftest.err conftest.$ac_ext
15397 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15398 echo "${ECHO_T}$ac_header_preproc" >&6; }
15400 # So? What about this header?
15401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15403 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15404 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15405 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15407 ac_header_preproc=yes
15410 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15411 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15412 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15413 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15414 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15415 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15416 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15417 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15418 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15420 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15421 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15425 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15426 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15427 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15428 echo $ECHO_N "(cached
) $ECHO_C" >&6
15430 eval "$as_ac_Header=\
$ac_header_preproc"
15432 ac_res=`eval echo '${'$as_ac_Header'}'`
15433 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15434 echo "${ECHO_T}$ac_res" >&6; }
15437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15438 cat >>confdefs.h <<_ACEOF
15439 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15515 for ac_func in gethostname getdomainname dup2 \
15516 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15517 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15518 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15519 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15520 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15521 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15522 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15523 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15525 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15527 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached
) $ECHO_C" >&6
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15547 # include <limits.h>
15549 # include <assert.h>
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15571 return $ac_func ();
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15596 echo "$as_me: failed program was
:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 eval "$as_ac_var=no
"
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15618 for ac_header in sys/un.h
15620 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15623 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached
) $ECHO_C" >&6
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15631 # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15633 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15652 grep -v '^ *+' conftest.er1 >conftest.err
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest.$ac_objext; then
15660 ac_header_compiler=yes
15662 echo "$as_me: failed program was
:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15665 ac_header_compiler=no
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15670 echo "${ECHO_T}$ac_header_compiler" >&6; }
15672 # Is the header present?
15673 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15674 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <$ac_header>
15683 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15695 (exit $ac_status); } >/dev/null && {
15696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15699 ac_header_preproc=yes
15701 echo "$as_me: failed program was
:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_preproc=no
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15714 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15715 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15718 ac_header_preproc=yes
15721 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15722 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15723 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15724 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15725 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15726 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15727 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15728 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15731 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15732 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15736 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15737 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached
) $ECHO_C" >&6
15741 eval "$as_ac_Header=\
$ac_header_preproc"
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15762 for ac_header in $ac_header_list
15764 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15765 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15766 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15767 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15769 echo $ECHO_N "(cached
) $ECHO_C" >&6
15771 ac_res=`eval echo '${'$as_ac_Header'}'`
15772 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15775 # Is the header compilable?
15776 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15777 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_compile") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest.$ac_objext; then
15804 ac_header_compiler=yes
15806 echo "$as_me: failed program was
:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15809 ac_header_compiler=no
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15818 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <$ac_header>
15827 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15835 grep -v '^ *+' conftest.er1 >conftest.err
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15839 (exit $ac_status); } >/dev/null && {
15840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15843 ac_header_preproc=yes
15845 echo "$as_me: failed program was
:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15848 ac_header_preproc=no
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15858 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15859 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15862 ac_header_preproc=yes
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15866 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15868 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15869 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15870 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15871 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15872 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15875 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15876 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15880 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15881 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15882 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached
) $ECHO_C" >&6
15885 eval "$as_ac_Header=\
$ac_header_preproc"
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15909 for ac_func in $ac_func_list
15911 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15912 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15913 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15914 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached
) $ECHO_C" >&6
15917 cat >conftest.$ac_ext <<_ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15925 #define $ac_func innocuous_$ac_func
15927 /* System header to define __stub macros and hopefully few prototypes,
15928 which can conflict with char $ac_func (); below.
15929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15930 <limits.h> exists even on freestanding compilers. */
15933 # include <limits.h>
15935 # include <assert.h>
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined __stub_$ac_func || defined __stub___$ac_func
15957 return $ac_func ();
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (ac_try="$ac_link"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_link") 2>conftest.er1
15971 grep -v '^ *+' conftest.er1 >conftest.err
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext &&
15979 $as_test_x conftest$ac_exeext; then
15980 eval "$as_ac_var=yes"
15982 echo "$as_me: failed program was
:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 eval "$as_ac_var=no
"
15988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15989 conftest$ac_exeext conftest.$ac_ext
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16018 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16019 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16020 if test "${ac_cv_func_working_mktime+set}" = set; then
16021 echo $ECHO_N "(cached
) $ECHO_C" >&6
16023 if test "$cross_compiling" = yes; then
16024 ac_cv_func_working_mktime=no
16026 cat >conftest.$ac_ext <<_ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 /* Test program from Paul Eggert and Tony Leneis. */
16033 #ifdef TIME_WITH_SYS_TIME
16034 # include <sys/time.h>
16037 # ifdef HAVE_SYS_TIME_H
16038 # include <sys/time.h>
16044 #include <stdlib.h>
16046 #ifdef HAVE_UNISTD_H
16047 # include <unistd.h>
16051 # define alarm(X) /* empty */
16054 /* Work around redefinition to rpl_putenv by other config tests. */
16057 static time_t time_t_max;
16058 static time_t time_t_min;
16060 /* Values we'll use to set the TZ environment variable. */
16061 static char *tz_strings[] = {
16062 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16063 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16065 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16067 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16068 Based on a problem report from Andreas Jaeger. */
16070 spring_forward_gap ()
16072 /* glibc (up to about 1998-10-07) failed this test. */
16075 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16076 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16077 on systems that don't support the Olson extension, or don't have the
16078 full zoneinfo tables installed. */
16079 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16088 return mktime (&tm) != (time_t) -1;
16096 return ! (lt = localtime (&now)) || mktime (lt) == now;
16103 return (mktime_test1 (now)
16104 && mktime_test1 ((time_t) (time_t_max - now))
16105 && mktime_test1 ((time_t) (time_t_min + now)));
16111 /* Based on code from Ariel Faigon. */
16121 return tm.tm_mon == 2 && tm.tm_mday == 31;
16130 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16131 now = mktime (&tm);
16132 if (now != (time_t) -1)
16134 struct tm *lt = localtime (&now);
16136 && lt->tm_year == tm.tm_year
16137 && lt->tm_mon == tm.tm_mon
16138 && lt->tm_mday == tm.tm_mday
16139 && lt->tm_hour == tm.tm_hour
16140 && lt->tm_min == tm.tm_min
16141 && lt->tm_sec == tm.tm_sec
16142 && lt->tm_yday == tm.tm_yday
16143 && lt->tm_wday == tm.tm_wday
16144 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16145 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16154 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16155 ignoring leap seconds. */
16156 unsigned long int answer = 2527315200UL;
16160 tm.tm_year = 2050 - 1900;
16163 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16166 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16167 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16168 on systems that don't support the Olson extension, or don't have the
16169 full zoneinfo tables installed. */
16170 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16174 /* Check that the result is either a failure, or close enough
16175 to the correct answer that we can assume the discrepancy is
16176 due to leap seconds. */
16177 return (t == (time_t) -1
16178 || (0 < t && answer - 120 <= t && t <= answer + 120));
16187 /* This test makes some buggy mktime implementations loop.
16188 Give up after 60 seconds; a mktime slower than that
16189 isn't worth using anyway. */
16192 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16195 if ((time_t) -1 < 0)
16196 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16198 delta = time_t_max / 997; /* a suitable prime number */
16199 for (i = 0; i < N_STRINGS; i++)
16202 putenv (tz_strings[i]);
16204 for (t = 0; t <= time_t_max - delta; t += delta)
16205 if (! mktime_test (t))
16207 if (! (mktime_test ((time_t) 1)
16208 && mktime_test ((time_t) (60 * 60))
16209 && mktime_test ((time_t) (60 * 60 * 24))))
16212 for (j = 1; 0 < j; j *= 2)
16213 if (! bigtime_test (j))
16215 if (! bigtime_test (j - 1))
16218 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16221 rm -f conftest$ac_exeext
16222 if { (ac_try="$ac_link"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_link") 2>&5
16230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_func_working_mktime=yes
16243 echo "$as_me: program exited with status
$ac_status" >&5
16244 echo "$as_me: failed program was
:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ( exit $ac_status )
16248 ac_cv_func_working_mktime=no
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16255 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16256 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16257 if test $ac_cv_func_working_mktime = no; then
16258 case " $LIBOBJS " in
16259 *" mktime.
$ac_objext "* ) ;;
16260 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16266 if test "$ac_cv_func_working_mktime" = no; then
16268 cat >>confdefs.h <<\_ACEOF
16269 #define BROKEN_MKTIME 1
16274 ac_have_func=no # yes means we've found a way to get the load average.
16276 # Make sure getloadavg.c is where it belongs, at configure-time.
16277 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16278 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16279 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16280 { (exit 1); exit 1; }; }
16284 # Check for getloadavg, but be sure not to touch the cache variable.
16285 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16286 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16287 if test "${ac_cv_func_getloadavg+set}" = set; then
16288 echo $ECHO_N "(cached
) $ECHO_C" >&6
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16298 #define getloadavg innocuous_getloadavg
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char getloadavg (); below.
16302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303 <limits.h> exists even on freestanding compilers. */
16306 # include <limits.h>
16308 # include <assert.h>
16313 /* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16319 char getloadavg ();
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined __stub_getloadavg || defined __stub___getloadavg
16330 return getloadavg ();
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 ac_cv_func_getloadavg=yes
16355 echo "$as_me: failed program was
:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_cv_func_getloadavg=no
16361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16362 conftest$ac_exeext conftest.$ac_ext
16364 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16365 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16366 if test $ac_cv_func_getloadavg = yes; then
16371 ) && ac_have_func=yes
16373 # On HPUX9, an unprivileged user can get load averages through this function.
16375 for ac_func in pstat_getdynamic
16377 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16379 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached
) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16399 # include <limits.h>
16401 # include <assert.h>
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16423 return $ac_func ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was
:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no
"
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16469 # Solaris has libkstat which does not require root.
16471 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16472 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16473 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16474 echo $ECHO_N "(cached
) $ECHO_C" >&6
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lkstat $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16491 char kstat_open ();
16495 return kstat_open ();
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16509 grep -v '^ *+' conftest.er1 >conftest.err
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 ac_cv_lib_kstat_kstat_open=yes
16520 echo "$as_me: failed program was
:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_cv_lib_kstat_kstat_open=no
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16530 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16531 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16532 if test $ac_cv_lib_kstat_kstat_open = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_LIBKSTAT 1
16537 LIBS="-lkstat $LIBS"
16541 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16545 # to get the right answer into the cache.
16546 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16547 if test $ac_have_func = no; then
16548 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16549 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16550 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16551 echo $ECHO_N "(cached
) $ECHO_C" >&6
16553 ac_check_lib_save_LIBS=$LIBS
16555 cat >conftest.$ac_ext <<_ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16572 return elf_begin ();
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16586 grep -v '^ *+' conftest.er1 >conftest.err
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16590 (exit $ac_status); } && {
16591 test -z "$ac_c_werror_flag" ||
16592 test ! -s conftest.err
16593 } && test -s conftest$ac_exeext &&
16594 $as_test_x conftest$ac_exeext; then
16595 ac_cv_lib_elf_elf_begin=yes
16597 echo "$as_me: failed program was
:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16600 ac_cv_lib_elf_elf_begin=no
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16607 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16609 if test $ac_cv_lib_elf_elf_begin = yes; then
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16616 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16617 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16618 echo $ECHO_N "(cached
) $ECHO_C" >&6
16620 ac_check_lib_save_LIBS=$LIBS
16622 cat >conftest.$ac_ext <<_ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16639 return kvm_open ();
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16653 grep -v '^ *+' conftest.er1 >conftest.err
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_kvm_kvm_open=yes
16664 echo "$as_me: failed program was
:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_kvm_kvm_open=no
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16674 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16675 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16676 if test $ac_cv_lib_kvm_kvm_open = yes; then
16680 # Check for the 4.4BSD definition of getloadavg.
16681 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16682 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16684 echo $ECHO_N "(cached
) $ECHO_C" >&6
16686 ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-lutil $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16701 char getloadavg ();
16705 return getloadavg ();
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (ac_try="$ac_link"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16719 grep -v '^ *+' conftest.er1 >conftest.err
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 ac_cv_lib_util_getloadavg=yes
16730 echo "$as_me: failed program was
:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16733 ac_cv_lib_util_getloadavg=no
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16740 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16741 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16742 if test $ac_cv_lib_util_getloadavg = yes; then
16743 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16748 if test $ac_have_func = no; then
16749 # There is a commonly available library for RS/6000 AIX.
16750 # Since it is not a standard part of AIX, it might be installed locally.
16751 ac_getloadavg_LIBS=$LIBS
16752 LIBS="-L/usr
/local
/lib
$LIBS"
16753 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16754 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16755 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached
) $ECHO_C" >&6
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lgetloadavg $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16773 char getloadavg ();
16777 return getloadavg ();
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_getloadavg_getloadavg=yes
16802 echo "$as_me: failed program was
:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ac_cv_lib_getloadavg_getloadavg=no
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16812 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16814 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16815 LIBS="-lgetloadavg $LIBS"
16817 LIBS=$ac_getloadavg_LIBS
16822 # Make sure it is really in the library, if we think we found it,
16823 # otherwise set up the replacement function.
16825 for ac_func in getloadavg
16827 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16828 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16829 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16830 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached
) $ECHO_C" >&6
16833 cat >conftest.$ac_ext <<_ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16849 # include <limits.h>
16851 # include <assert.h>
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16863 /* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
16866 #if defined __stub_$ac_func || defined __stub___$ac_func
16873 return $ac_func ();
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16887 grep -v '^ *+' conftest.er1 >conftest.err
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16896 eval "$as_ac_var=yes"
16898 echo "$as_me: failed program was
:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16901 eval "$as_ac_var=no
"
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16907 ac_res=`eval echo '${'$as_ac_var'}'`
16908 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910 if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16916 case " $LIBOBJS " in
16917 *" getloadavg.
$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16923 cat >>confdefs.h <<\_ACEOF
16924 #define C_GETLOADAVG 1
16927 # Figure out what our getloadavg.c needs.
16929 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16930 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16931 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16932 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16933 echo $ECHO_N "(cached
) $ECHO_C" >&6
16935 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16936 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16938 # Is the header compilable?
16939 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16940 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$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 $ac_includes_default
16948 #include <sys/dg_sys_info.h>
16950 rm -f conftest.$ac_objext
16951 if { (ac_try="$ac_compile"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16959 grep -v '^ *+' conftest.er1 >conftest.err
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16969 echo "$as_me: failed program was
:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16972 ac_header_compiler=no
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6; }
16979 # Is the header present?
16980 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16981 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <sys/dg_sys_info.h>
16990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16998 grep -v '^ *+' conftest.er1 >conftest.err
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17006 ac_header_preproc=yes
17008 echo "$as_me: failed program was
:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_header_preproc=no
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17022 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17024 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17025 ac_header_preproc=yes
17028 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17029 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17030 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17031 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17032 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17033 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17034 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17035 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17038 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17039 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17043 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17044 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17045 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17046 echo $ECHO_N "(cached
) $ECHO_C" >&6
17048 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17050 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17051 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17054 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17057 cat >>confdefs.h <<\_ACEOF
17062 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17063 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17065 echo $ECHO_N "(cached
) $ECHO_C" >&6
17067 ac_check_lib_save_LIBS=$LIBS
17069 cat >conftest.$ac_ext <<_ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17082 char dg_sys_info ();
17086 return dg_sys_info ();
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17100 grep -v '^ *+' conftest.er1 >conftest.err
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext &&
17108 $as_test_x conftest$ac_exeext; then
17109 ac_cv_lib_dgc_dg_sys_info=yes
17111 echo "$as_me: failed program was
:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_lib_dgc_dg_sys_info=no
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17121 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17122 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17123 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17124 cat >>confdefs.h <<_ACEOF
17125 #define HAVE_LIBDGC 1
17136 if test "${ac_cv_header_locale_h+set}" = set; then
17137 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17138 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17139 if test "${ac_cv_header_locale_h+set}" = set; then
17140 echo $ECHO_N "(cached
) $ECHO_C" >&6
17142 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17143 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17145 # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17147 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17155 #include <locale.h>
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17166 grep -v '^ *+' conftest.er1 >conftest.err
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest.$ac_objext; then
17174 ac_header_compiler=yes
17176 echo "$as_me: failed program was
:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17179 ac_header_compiler=no
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17184 echo "${ECHO_T}$ac_header_compiler" >&6; }
17186 # Is the header present?
17187 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17188 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <locale.h>
17197 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17213 ac_header_preproc=yes
17215 echo "$as_me: failed program was
:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_header_preproc=no
17221 rm -f conftest.err conftest.$ac_ext
17222 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17223 echo "${ECHO_T}$ac_header_preproc" >&6; }
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17228 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17229 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17230 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17231 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17232 ac_header_preproc=yes
17235 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17236 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17237 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17238 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17239 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17240 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17241 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17242 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17243 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17244 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17245 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17246 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17250 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17251 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17252 if test "${ac_cv_header_locale_h+set}" = set; then
17253 echo $ECHO_N "(cached
) $ECHO_C" >&6
17255 ac_cv_header_locale_h=$ac_header_preproc
17257 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17258 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17264 for ac_func in setlocale
17266 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17268 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached
) $ECHO_C" >&6
17272 cat >conftest.$ac_ext <<_ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17288 # include <limits.h>
17290 # include <assert.h>
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17312 return $ac_func ();
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17326 grep -v '^ *+' conftest.er1 >conftest.err
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest$ac_exeext &&
17334 $as_test_x conftest$ac_exeext; then
17335 eval "$as_ac_var=yes"
17337 echo "$as_me: failed program was
:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17340 eval "$as_ac_var=no
"
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17358 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17359 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17360 # Irix 4.0.5F has the header but not the library.
17361 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17364 cat >>confdefs.h <<\_ACEOF
17370 if test $ac_have_func = no; then
17371 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17373 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17375 echo $ECHO_N "(cached
) $ECHO_C" >&6
17377 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17382 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <inq_stats/cpustats.h>
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_compile") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest.$ac_objext; then
17409 ac_header_compiler=yes
17411 echo "$as_me: failed program was
:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17414 ac_header_compiler=no
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17423 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <inq_stats/cpustats.h>
17432 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17440 grep -v '^ *+' conftest.er1 >conftest.err
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17448 ac_header_preproc=yes
17450 echo "$as_me: failed program was
:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17453 ac_header_preproc=no
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17463 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17464 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17466 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17467 ac_header_preproc=yes
17470 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17471 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17473 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17475 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17476 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17477 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17480 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17481 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17485 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17486 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17487 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17488 echo $ECHO_N "(cached
) $ECHO_C" >&6
17490 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17492 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17496 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17499 cat >>confdefs.h <<\_ACEOF
17504 cat >>confdefs.h <<\_ACEOF
17513 if test $ac_have_func = no; then
17514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17515 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17516 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17517 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17518 echo $ECHO_N "(cached
) $ECHO_C" >&6
17520 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17521 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17525 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <sys/cpustats.h>
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17544 grep -v '^ *+' conftest.er1 >conftest.err
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17554 echo "$as_me: failed program was
:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17557 ac_header_compiler=no
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17566 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <sys/cpustats.h>
17575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17587 (exit $ac_status); } >/dev/null && {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17591 ac_header_preproc=yes
17593 echo "$as_me: failed program was
:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17596 ac_header_preproc=no
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17606 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17607 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17609 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17610 ac_header_preproc=yes
17613 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17614 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17615 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17616 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17617 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17618 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17619 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17620 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17623 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17624 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17628 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17629 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17630 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17631 echo $ECHO_N "(cached
) $ECHO_C" >&6
17633 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17635 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17639 if test $ac_cv_header_sys_cpustats_h = yes; then
17640 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17649 if test $ac_have_func = no; then
17651 for ac_header in mach/mach.h
17653 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17654 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17656 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached
) $ECHO_C" >&6
17660 ac_res=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17666 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <$ac_header>
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17685 grep -v '^ *+' conftest.er1 >conftest.err
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17695 echo "$as_me: failed program was
:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17698 ac_header_compiler=no
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17707 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <$ac_header>
17716 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17728 (exit $ac_status); } >/dev/null && {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17732 ac_header_preproc=yes
17734 echo "$as_me: failed program was
:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_preproc=no
17740 rm -f conftest.err conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17747 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17748 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17751 ac_header_preproc=yes
17754 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17755 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17757 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17758 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17759 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17760 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17761 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17764 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17765 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17769 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17770 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached
) $ECHO_C" >&6
17774 eval "$as_ac_Header=\
$ac_header_preproc"
17776 ac_res=`eval echo '${'$as_ac_Header'}'`
17777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17793 for ac_header in nlist.h
17795 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17796 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17797 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17798 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17799 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17800 echo $ECHO_N "(cached
) $ECHO_C" >&6
17802 ac_res=`eval echo '${'$as_ac_Header'}'`
17803 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17804 echo "${ECHO_T}$ac_res" >&6; }
17806 # Is the header compilable?
17807 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17808 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17816 #include <$ac_header>
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17827 grep -v '^ *+' conftest.er1 >conftest.err
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17831 (exit $ac_status); } && {
17832 test -z "$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 } && test -s conftest.$ac_objext; then
17835 ac_header_compiler=yes
17837 echo "$as_me: failed program was
:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_header_compiler=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6; }
17847 # Is the header present?
17848 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17849 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17850 cat >conftest.$ac_ext <<_ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <$ac_header>
17858 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17870 (exit $ac_status); } >/dev/null && {
17871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17874 ac_header_preproc=yes
17876 echo "$as_me: failed program was
:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17879 ac_header_preproc=no
17882 rm -f conftest.err conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17884 echo "${ECHO_T}$ac_header_preproc" >&6; }
17886 # So? What about this header?
17887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17889 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17890 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17891 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17893 ac_header_preproc=yes
17896 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17897 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17898 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17899 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17900 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17901 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17902 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17903 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17904 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17906 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17907 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17911 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17912 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17913 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17914 echo $ECHO_N "(cached
) $ECHO_C" >&6
17916 eval "$as_ac_Header=\
$ac_header_preproc"
17918 ac_res=`eval echo '${'$as_ac_Header'}'`
17919 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17927 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17928 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17929 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17930 echo $ECHO_N "(cached
) $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17943 static struct nlist ac_aggr;
17944 if (ac_aggr.n_un.n_name)
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_cv_member_struct_nlist_n_un_n_name=yes
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 cat >conftest.$ac_ext <<_ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17983 static struct nlist ac_aggr;
17984 if (sizeof ac_aggr.n_un.n_name)
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17999 grep -v '^ *+' conftest.er1 >conftest.err
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_cv_member_struct_nlist_n_un_n_name=yes
18009 echo "$as_me: failed program was
:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_member_struct_nlist_n_un_n_name=no
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18021 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18022 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18024 cat >>confdefs.h <<_ACEOF
18025 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18029 cat >>confdefs.h <<\_ACEOF
18030 #define NLIST_NAME_UNION 1
18044 # Some definitions of getloadavg require that the program be installed setgid.
18045 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18046 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18047 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18048 echo $ECHO_N "(cached
) $ECHO_C" >&6
18050 cat >conftest.$ac_ext <<_ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18057 #ifdef LDAV_PRIVILEGED
18058 Yowza Am I SETGID yet
18061 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18062 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18063 ac_cv_func_getloadavg_setgid=yes
18065 ac_cv_func_getloadavg_setgid=no
18070 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18071 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18072 if test $ac_cv_func_getloadavg_setgid = yes; then
18075 cat >>confdefs.h <<\_ACEOF
18076 #define GETLOADAVG_PRIVILEGED 1
18083 if test $ac_cv_func_getloadavg_setgid = yes; then
18084 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18085 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18086 if test "${ac_cv_group_kmem+set}" = set; then
18087 echo $ECHO_N "(cached
) $ECHO_C" >&6
18089 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18090 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18091 # If we got an error (system does not support symlinks), try without -L.
18092 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18093 ac_cv_group_kmem=`echo $ac_ls_output \
18094 | sed -ne 's/[ ][ ]*/ /g;
18095 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18099 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18100 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18101 KMEM_GROUP=$ac_cv_group_kmem
18103 if test "x
$ac_save_LIBS" = x; then
18104 GETLOADAVG_LIBS=$LIBS
18106 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18112 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18113 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18114 if test "${ac_cv_sys_largefile_source+set}" = set; then
18115 echo $ECHO_N "(cached
) $ECHO_C" >&6
18118 cat >conftest.$ac_ext <<_ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18128 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 ac_cv_sys_largefile_source=no; break
18153 echo "$as_me: failed program was
:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 #define _LARGEFILE_SOURCE 1
18172 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest$ac_exeext &&
18194 $as_test_x conftest$ac_exeext; then
18195 ac_cv_sys_largefile_source=1; break
18197 echo "$as_me: failed program was
:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18204 conftest$ac_exeext conftest.$ac_ext
18205 ac_cv_sys_largefile_source=unknown
18209 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18210 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18211 case $ac_cv_sys_largefile_source in #(
18214 cat >>confdefs.h <<_ACEOF
18215 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18221 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18222 # in glibc 2.1.3, but that breaks too many other things.
18223 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18224 if test $ac_cv_sys_largefile_source != unknown; then
18226 cat >>confdefs.h <<\_ACEOF
18227 #define HAVE_FSEEKO 1
18233 # Configure getopt.
18234 # getopt.m4 serial 10
18236 # The getopt module assume you want GNU getopt, with getopt_long etc,
18237 # rather than vanilla POSIX getopt. This means your your code should
18238 # always include <getopt.h> for the getopt prototypes.
18250 # Prerequisites of lib/getopt*.
18257 for ac_header in getopt.h
18259 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18260 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18261 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18262 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18263 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached
) $ECHO_C" >&6
18266 ac_res=`eval echo '${'$as_ac_Header'}'`
18267 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18268 echo "${ECHO_T}$ac_res" >&6; }
18270 # Is the header compilable?
18271 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18272 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18273 cat >conftest.$ac_ext <<_ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18280 #include <$ac_header>
18282 rm -f conftest.$ac_objext
18283 if { (ac_try="$ac_compile"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_compile") 2>conftest.er1
18291 grep -v '^ *+' conftest.er1 >conftest.err
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18295 (exit $ac_status); } && {
18296 test -z "$ac_c_werror_flag" ||
18297 test ! -s conftest.err
18298 } && test -s conftest.$ac_objext; then
18299 ac_header_compiler=yes
18301 echo "$as_me: failed program was
:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_header_compiler=no
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6; }
18311 # Is the header present?
18312 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18313 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 #include <$ac_header>
18322 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18330 grep -v '^ *+' conftest.er1 >conftest.err
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18334 (exit $ac_status); } >/dev/null && {
18335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18336 test ! -s conftest.err
18338 ac_header_preproc=yes
18340 echo "$as_me: failed program was
:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18343 ac_header_preproc=no
18346 rm -f conftest.err conftest.$ac_ext
18347 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6; }
18350 # So? What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18353 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18354 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18357 ac_header_preproc=yes
18360 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18361 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18363 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18365 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18367 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18371 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18375 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18376 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18378 echo $ECHO_N "(cached
) $ECHO_C" >&6
18380 eval "$as_ac_Header=\
$ac_header_preproc"
18382 ac_res=`eval echo '${'$as_ac_Header'}'`
18383 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18384 echo "${ECHO_T}$ac_res" >&6; }
18387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18388 cat >>confdefs.h <<_ACEOF
18389 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18398 if test -z "$GETOPT_H"; then
18400 for ac_func in getopt_long_only
18402 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18403 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18404 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18405 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18406 echo $ECHO_N "(cached
) $ECHO_C" >&6
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18416 #define $ac_func innocuous_$ac_func
18418 /* System header to define __stub macros and hopefully few prototypes,
18419 which can conflict with char $ac_func (); below.
18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 <limits.h> exists even on freestanding compilers. */
18424 # include <limits.h>
18426 # include <assert.h>
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18438 /* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441 #if defined __stub_$ac_func || defined __stub___$ac_func
18448 return $ac_func ();
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18462 grep -v '^ *+' conftest.er1 >conftest.err
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest$ac_exeext &&
18470 $as_test_x conftest$ac_exeext; then
18471 eval "$as_ac_var=yes"
18473 echo "$as_me: failed program was
:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18476 eval "$as_ac_var=no
"
18479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18480 conftest$ac_exeext conftest.$ac_ext
18482 ac_res=`eval echo '${'$as_ac_var'}'`
18483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18484 echo "${ECHO_T}$ac_res" >&6; }
18485 if test `eval echo '${'$as_ac_var'}'` = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18497 if test -z "$GETOPT_H"; then
18498 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18499 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18500 if test "${ac_cv_have_decl_optreset+set}" = set; then
18501 echo $ECHO_N "(cached
) $ECHO_C" >&6
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <getopt.h>
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18531 grep -v '^ *+' conftest.er1 >conftest.err
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18535 (exit $ac_status); } && {
18536 test -z "$ac_c_werror_flag" ||
18537 test ! -s conftest.err
18538 } && test -s conftest.$ac_objext; then
18539 ac_cv_have_decl_optreset=yes
18541 echo "$as_me: failed program was
:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 ac_cv_have_decl_optreset=no
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18549 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18550 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18551 if test $ac_cv_have_decl_optreset = yes; then
18557 if test -z "$GETOPT_H"; then
18558 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18559 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18560 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18561 echo $ECHO_N "(cached
) $ECHO_C" >&6
18563 if test "$cross_compiling" = yes; then
18564 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18565 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18566 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18567 echo $ECHO_N "(cached
) $ECHO_C" >&6
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <getopt.h>
18580 #ifndef getopt_clip
18581 (void) getopt_clip;
18588 rm -f conftest.$ac_objext
18589 if { (ac_try="$ac_compile"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_compile") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest.$ac_objext; then
18605 ac_cv_have_decl_getopt_clip=yes
18607 echo "$as_me: failed program was
:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18610 ac_cv_have_decl_getopt_clip=no
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18615 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18616 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18617 if test $ac_cv_have_decl_getopt_clip = yes; then
18618 gl_cv_func_gnu_getopt=no
18620 gl_cv_func_gnu_getopt=yes
18624 cat >conftest.$ac_ext <<_ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <getopt.h>
18636 myargv[0] = "conftest
";
18639 return getopt (2, myargv, "+a
") != '?';
18645 rm -f conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>&5
18654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 gl_cv_func_gnu_getopt=yes
18667 echo "$as_me: program exited with status
$ac_status" >&5
18668 echo "$as_me: failed program was
:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 ( exit $ac_status )
18672 gl_cv_func_gnu_getopt=no
18674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18679 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18680 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18681 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18688 if test -n "$GETOPT_H"; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define __GETOPT_PREFIX rpl_
18700 GETOPTOBJS='getopt.o getopt1.o'
18707 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18708 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18709 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18710 echo $ECHO_N "(cached
) $ECHO_C" >&6
18712 # Use it with a single arg.
18713 cat >conftest.$ac_ext <<_ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_cv_func_getpgrp_void=no
18747 echo "$as_me: failed program was
:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18750 ac_cv_func_getpgrp_void=yes
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18757 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18758 if test $ac_cv_func_getpgrp_void = yes; then
18760 cat >>confdefs.h <<\_ACEOF
18761 #define GETPGRP_VOID 1
18768 for ac_func in strftime
18770 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18771 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18772 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18774 echo $ECHO_N "(cached
) $ECHO_C" >&6
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18784 #define $ac_func innocuous_$ac_func
18786 /* System header to define __stub macros and hopefully few prototypes,
18787 which can conflict with char $ac_func (); below.
18788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 <limits.h> exists even on freestanding compilers. */
18792 # include <limits.h>
18794 # include <assert.h>
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18806 /* The GNU C library defines this for functions which it implements
18807 to always fail with ENOSYS. Some functions are actually named
18808 something starting with __ and the normal name is an alias. */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18816 return $ac_func ();
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 eval "$as_ac_var=yes"
18841 echo "$as_me: failed program was
:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 eval "$as_ac_var=no
"
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18850 ac_res=`eval echo '${'$as_ac_var'}'`
18851 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18852 echo "${ECHO_T}$ac_res" >&6; }
18853 if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18859 # strftime is in -lintl on SCO UNIX.
18860 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18861 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18862 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18863 echo $ECHO_N "(cached
) $ECHO_C" >&6
18865 ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-lintl $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18884 return strftime ();
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_intl_strftime=yes
18909 echo "$as_me: failed program was
:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_lib_intl_strftime=no
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18920 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18921 if test $ac_cv_lib_intl_strftime = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_STRFTIME 1
18926 LIBS="-lintl $LIBS"
18935 for ac_func in grantpt
18937 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18938 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18939 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18940 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18941 echo $ECHO_N "(cached
) $ECHO_C" >&6
18943 cat >conftest.$ac_ext <<_ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18951 #define $ac_func innocuous_$ac_func
18953 /* System header to define __stub macros and hopefully few prototypes,
18954 which can conflict with char $ac_func (); below.
18955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18956 <limits.h> exists even on freestanding compilers. */
18959 # include <limits.h>
18961 # include <assert.h>
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18973 /* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976 #if defined __stub_$ac_func || defined __stub___$ac_func
18983 return $ac_func ();
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_link") 2>conftest.er1
18997 grep -v '^ *+' conftest.er1 >conftest.err
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest$ac_exeext &&
19005 $as_test_x conftest$ac_exeext; then
19006 eval "$as_ac_var=yes"
19008 echo "$as_me: failed program was
:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 eval "$as_ac_var=no
"
19014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19015 conftest$ac_exeext conftest.$ac_ext
19017 ac_res=`eval echo '${'$as_ac_var'}'`
19018 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19019 echo "${ECHO_T}$ac_res" >&6; }
19020 if test `eval echo '${'$as_ac_var'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19029 # PTY-related GNU extensions.
19031 for ac_func in getpt
19033 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19034 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19035 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19036 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19037 echo $ECHO_N "(cached
) $ECHO_C" >&6
19039 cat >conftest.$ac_ext <<_ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19047 #define $ac_func innocuous_$ac_func
19049 /* System header to define __stub macros and hopefully few prototypes,
19050 which can conflict with char $ac_func (); below.
19051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19052 <limits.h> exists even on freestanding compilers. */
19055 # include <limits.h>
19057 # include <assert.h>
19062 /* Override any GCC internal prototype to avoid an error.
19063 Use char because int might match the return type of a GCC
19064 builtin and then its argument prototype would still apply. */
19069 /* The GNU C library defines this for functions which it implements
19070 to always fail with ENOSYS. Some functions are actually named
19071 something starting with __ and the normal name is an alias. */
19072 #if defined __stub_$ac_func || defined __stub___$ac_func
19079 return $ac_func ();
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
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_link") 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); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest$ac_exeext &&
19101 $as_test_x conftest$ac_exeext; then
19102 eval "$as_ac_var=yes"
19104 echo "$as_me: failed program was
:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 eval "$as_ac_var=no
"
19110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19111 conftest$ac_exeext conftest.$ac_ext
19113 ac_res=`eval echo '${'$as_ac_var'}'`
19114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19115 echo "${ECHO_T}$ac_res" >&6; }
19116 if test `eval echo '${'$as_ac_var'}'` = yes; then
19117 cat >>confdefs.h <<_ACEOF
19118 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19125 # Check this now, so that we will NOT find the above functions in ncurses.
19126 # That is because we have not set up to link ncurses in lib-src.
19127 # It's better to believe a function is not available
19128 # than to expect to find it in ncurses.
19130 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19131 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19132 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19133 echo $ECHO_N "(cached
) $ECHO_C" >&6
19135 ac_check_lib_save_LIBS=$LIBS
19136 LIBS="-lncurses $LIBS"
19137 cat >conftest.$ac_ext <<_ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19168 grep -v '^ *+' conftest.er1 >conftest.err
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19177 ac_cv_lib_ncurses_tparm=yes
19179 echo "$as_me: failed program was
:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 ac_cv_lib_ncurses_tparm=no
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19189 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19190 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19191 if test $ac_cv_lib_ncurses_tparm = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_LIBNCURSES 1
19196 LIBS="-lncurses $LIBS"
19201 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <netinet/in.h>
19211 #include <arpa/nameser.h>
19212 #include <resolv.h>
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19230 grep -v '^ *+' conftest.er1 >conftest.err
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19241 echo "$as_me: failed program was
:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249 if test "$have_res_init" = no; then
19251 LIBS="$LIBS -lresolv"
19252 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19253 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <netinet/in.h>
19261 #include <arpa/nameser.h>
19262 #include <resolv.h>
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (ac_try="$ac_link"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_link") 2>conftest.er1
19280 grep -v '^ *+' conftest.er1 >conftest.err
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest$ac_exeext &&
19288 $as_test_x conftest$ac_exeext; then
19291 echo "$as_me: failed program was
:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19298 conftest$ac_exeext conftest.$ac_ext
19299 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19300 echo "${ECHO_T}$have_res_init" >&6; }
19301 if test "$have_res_init" = yes ; then
19307 if test "$have_res_init" = yes; then
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_RES_INIT 1
19315 # Do we need the Hesiod library to provide the support routines?
19316 if test "$with_hesiod" = yes ; then
19317 # Don't set $LIBS here -- see comments above.
19318 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19319 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19320 if test "${ac_cv_func_res_send+set}" = set; then
19321 echo $ECHO_N "(cached
) $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define res_send innocuous_res_send
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char res_send (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19339 # include <limits.h>
19341 # include <assert.h>
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub_res_send || defined __stub___res_send
19363 return res_send ();
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func_res_send=yes
19388 echo "$as_me: failed program was
:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_func_res_send=no
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19397 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19398 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19399 if test $ac_cv_func_res_send = yes; then
19402 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19403 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19404 if test "${ac_cv_func___res_send+set}" = set; then
19405 echo $ECHO_N "(cached
) $ECHO_C" >&6
19407 cat >conftest.$ac_ext <<_ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19415 #define __res_send innocuous___res_send
19417 /* System header to define __stub macros and hopefully few prototypes,
19418 which can conflict with char __res_send (); below.
19419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19420 <limits.h> exists even on freestanding compilers. */
19423 # include <limits.h>
19425 # include <assert.h>
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19436 char __res_send ();
19437 /* The GNU C library defines this for functions which it implements
19438 to always fail with ENOSYS. Some functions are actually named
19439 something starting with __ and the normal name is an alias. */
19440 #if defined __stub___res_send || defined __stub_____res_send
19447 return __res_send ();
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_link") 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest$ac_exeext &&
19469 $as_test_x conftest$ac_exeext; then
19470 ac_cv_func___res_send=yes
19472 echo "$as_me: failed program was
:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19475 ac_cv_func___res_send=no
19478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19479 conftest$ac_exeext conftest.$ac_ext
19481 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19482 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19483 if test $ac_cv_func___res_send = yes; then
19486 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19487 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19488 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19489 echo $ECHO_N "(cached
) $ECHO_C" >&6
19491 ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-lresolv $LIBS"
19493 cat >conftest.$ac_ext <<_ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19500 /* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19510 return res_send ();
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
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_link") 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 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest$ac_exeext &&
19532 $as_test_x conftest$ac_exeext; then
19533 ac_cv_lib_resolv_res_send=yes
19535 echo "$as_me: failed program was
:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_cv_lib_resolv_res_send=no
19541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19542 conftest$ac_exeext conftest.$ac_ext
19543 LIBS=$ac_check_lib_save_LIBS
19545 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19546 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19547 if test $ac_cv_lib_resolv_res_send = yes; then
19550 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19551 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19552 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19553 echo $ECHO_N "(cached
) $ECHO_C" >&6
19555 ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lresolv $LIBS"
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19570 char __res_send ();
19574 return __res_send ();
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19588 grep -v '^ *+' conftest.er1 >conftest.err
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 ac_cv_lib_resolv___res_send=yes
19599 echo "$as_me: failed program was
:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19602 ac_cv_lib_resolv___res_send=no
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19609 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19610 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19611 if test $ac_cv_lib_resolv___res_send = yes; then
19621 if test "$resolv" = yes ; then
19626 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19627 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19628 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19629 echo $ECHO_N "(cached
) $ECHO_C" >&6
19631 cat >conftest.$ac_ext <<_ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19639 #define hes_getmailhost innocuous_hes_getmailhost
19641 /* System header to define __stub macros and hopefully few prototypes,
19642 which can conflict with char hes_getmailhost (); below.
19643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644 <limits.h> exists even on freestanding compilers. */
19647 # include <limits.h>
19649 # include <assert.h>
19652 #undef hes_getmailhost
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19660 char hes_getmailhost ();
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19671 return hes_getmailhost ();
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (ac_try="$ac_link"
19678 case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_link") 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19689 (exit $ac_status); } && {
19690 test -z "$ac_c_werror_flag" ||
19691 test ! -s conftest.err
19692 } && test -s conftest$ac_exeext &&
19693 $as_test_x conftest$ac_exeext; then
19694 ac_cv_func_hes_getmailhost=yes
19696 echo "$as_me: failed program was
:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19699 ac_cv_func_hes_getmailhost=no
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703 conftest$ac_exeext conftest.$ac_ext
19705 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19707 if test $ac_cv_func_hes_getmailhost = yes; then
19710 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19711 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19713 echo $ECHO_N "(cached
) $ECHO_C" >&6
19715 ac_check_lib_save_LIBS=$LIBS
19716 LIBS="-lhesiod $RESOLVLIB $LIBS"
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19730 char hes_getmailhost ();
19734 return hes_getmailhost ();
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>conftest.er1
19748 grep -v '^ *+' conftest.er1 >conftest.err
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext &&
19756 $as_test_x conftest$ac_exeext; then
19757 ac_cv_lib_hesiod_hes_getmailhost=yes
19759 echo "$as_me: failed program was
:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19762 ac_cv_lib_hesiod_hes_getmailhost=no
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766 conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19769 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19770 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19771 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19773 cat >>confdefs.h <<\_ACEOF
19774 #define HAVE_LIBHESIOD 1
19785 # Do we need libresolv (due to res_init or Hesiod)?
19786 if test "$resolv" = yes ; then
19788 cat >>confdefs.h <<\_ACEOF
19789 #define HAVE_LIBRESOLV 1
19794 # These tell us which Kerberos-related libraries to use.
19795 if test "${with_kerberos+set}" = set; then
19797 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19798 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19799 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19800 echo $ECHO_N "(cached
) $ECHO_C" >&6
19802 ac_check_lib_save_LIBS=$LIBS
19803 LIBS="-lcom_err $LIBS"
19804 cat >conftest.$ac_ext <<_ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19826 rm -f conftest.$ac_objext conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_link") 2>conftest.er1
19835 grep -v '^ *+' conftest.er1 >conftest.err
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest$ac_exeext &&
19843 $as_test_x conftest$ac_exeext; then
19844 ac_cv_lib_com_err_com_err=yes
19846 echo "$as_me: failed program was
:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ac_cv_lib_com_err_com_err=no
19852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19853 conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19856 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19857 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19858 if test $ac_cv_lib_com_err_com_err = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_LIBCOM_ERR 1
19863 LIBS="-lcom_err $LIBS"
19868 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19869 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19870 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19871 echo $ECHO_N "(cached
) $ECHO_C" >&6
19873 ac_check_lib_save_LIBS=$LIBS
19874 LIBS="-lk5crypto $LIBS"
19875 cat >conftest.$ac_ext <<_ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19882 /* Override any GCC internal prototype to avoid an error.
19883 Use char because int might match the return type of a GCC
19884 builtin and then its argument prototype would still apply. */
19888 char mit_des_cbc_encrypt ();
19892 return mit_des_cbc_encrypt ();
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_link") 2>conftest.er1
19906 grep -v '^ *+' conftest.er1 >conftest.err
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext &&
19914 $as_test_x conftest$ac_exeext; then
19915 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19917 echo "$as_me: failed program was
:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19920 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext conftest.$ac_ext
19925 LIBS=$ac_check_lib_save_LIBS
19927 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19928 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19929 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_LIBK5CRYPTO 1
19934 LIBS="-lk5crypto $LIBS"
19939 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19940 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19941 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19942 echo $ECHO_N "(cached
) $ECHO_C" >&6
19944 ac_check_lib_save_LIBS=$LIBS
19945 LIBS="-lcrypto $LIBS"
19946 cat >conftest.$ac_ext <<_ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19959 char mit_des_cbc_encrypt ();
19963 return mit_des_cbc_encrypt ();
19968 rm -f conftest.$ac_objext conftest$ac_exeext
19969 if { (ac_try="$ac_link"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_link") 2>conftest.er1
19977 grep -v '^ *+' conftest.er1 >conftest.err
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest$ac_exeext &&
19985 $as_test_x conftest$ac_exeext; then
19986 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19988 echo "$as_me: failed program was
:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19991 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19995 conftest$ac_exeext conftest.$ac_ext
19996 LIBS=$ac_check_lib_save_LIBS
19998 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19999 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20000 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_LIBCRYPTO 1
20005 LIBS="-lcrypto $LIBS"
20010 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20011 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20012 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20013 echo $ECHO_N "(cached
) $ECHO_C" >&6
20015 ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lkrb5 $LIBS"
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20030 char krb5_init_context ();
20034 return krb5_init_context ();
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1 >conftest.err
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest$ac_exeext &&
20056 $as_test_x conftest$ac_exeext; then
20057 ac_cv_lib_krb5_krb5_init_context=yes
20059 echo "$as_me: failed program was
:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20062 ac_cv_lib_krb5_krb5_init_context=no
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20069 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20070 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20071 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20072 cat >>confdefs.h <<_ACEOF
20073 #define HAVE_LIBKRB5 1
20076 LIBS="-lkrb5 $LIBS"
20080 if test "${with_kerberos5+set}" != set; then
20082 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20083 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20084 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20085 echo $ECHO_N "(cached
) $ECHO_C" >&6
20087 ac_check_lib_save_LIBS=$LIBS
20088 LIBS="-ldes425 $LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20102 char des_cbc_encrypt ();
20106 return des_cbc_encrypt ();
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest$ac_exeext &&
20128 $as_test_x conftest$ac_exeext; then
20129 ac_cv_lib_des425_des_cbc_encrypt=yes
20131 echo "$as_me: failed program was
:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20134 ac_cv_lib_des425_des_cbc_encrypt=no
20137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20138 conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20141 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20142 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20143 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_LIBDES425 1
20148 LIBS="-ldes425 $LIBS"
20152 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20153 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20154 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20155 echo $ECHO_N "(cached
) $ECHO_C" >&6
20157 ac_check_lib_save_LIBS=$LIBS
20159 cat >conftest.$ac_ext <<_ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20166 /* Override any GCC internal prototype to avoid an error.
20167 Use char because int might match the return type of a GCC
20168 builtin and then its argument prototype would still apply. */
20172 char des_cbc_encrypt ();
20176 return des_cbc_encrypt ();
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_link") 2>conftest.er1
20190 grep -v '^ *+' conftest.er1 >conftest.err
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext &&
20198 $as_test_x conftest$ac_exeext; then
20199 ac_cv_lib_des_des_cbc_encrypt=yes
20201 echo "$as_me: failed program was
:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_cv_lib_des_des_cbc_encrypt=no
20207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20208 conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20211 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20212 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20213 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define HAVE_LIBDES 1
20225 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20226 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20227 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20228 echo $ECHO_N "(cached
) $ECHO_C" >&6
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lkrb4 $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20245 char krb_get_cred ();
20249 return krb_get_cred ();
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_lib_krb4_krb_get_cred=yes
20274 echo "$as_me: failed program was
:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_lib_krb4_krb_get_cred=no
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20284 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20285 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20286 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_LIBKRB4 1
20291 LIBS="-lkrb4 $LIBS"
20295 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20296 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20297 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20298 echo $ECHO_N "(cached
) $ECHO_C" >&6
20300 ac_check_lib_save_LIBS=$LIBS
20302 cat >conftest.$ac_ext <<_ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20315 char krb_get_cred ();
20319 return krb_get_cred ();
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_lib_krb_krb_get_cred=yes
20344 echo "$as_me: failed program was
:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_lib_krb_krb_get_cred=no
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20355 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20356 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_LIBKRB 1
20369 if test "${with_kerberos5+set}" = set; then
20371 for ac_header in krb5.h
20373 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20374 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20375 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20376 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20378 echo $ECHO_N "(cached
) $ECHO_C" >&6
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20384 # Is the header compilable?
20385 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20386 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 #include <$ac_header>
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_compile") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest.$ac_objext; then
20413 ac_header_compiler=yes
20415 echo "$as_me: failed program was
:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20418 ac_header_compiler=no
20421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20422 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20423 echo "${ECHO_T}$ac_header_compiler" >&6; }
20425 # Is the header present?
20426 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20427 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20428 cat >conftest.$ac_ext <<_ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 #include <$ac_header>
20436 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20444 grep -v '^ *+' conftest.er1 >conftest.err
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20448 (exit $ac_status); } >/dev/null && {
20449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20452 ac_header_preproc=yes
20454 echo "$as_me: failed program was
:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20457 ac_header_preproc=no
20460 rm -f conftest.err conftest.$ac_ext
20461 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20462 echo "${ECHO_T}$ac_header_preproc" >&6; }
20464 # So? What about this header?
20465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20467 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20468 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20469 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20471 ac_header_preproc=yes
20474 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20475 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20476 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20477 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20478 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20479 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20480 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20481 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20482 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20484 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20485 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20489 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20490 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20491 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20492 echo $ECHO_N "(cached
) $ECHO_C" >&6
20494 eval "$as_ac_Header=\
$ac_header_preproc"
20496 ac_res=`eval echo '${'$as_ac_Header'}'`
20497 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20498 echo "${ECHO_T}$ac_res" >&6; }
20501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20502 cat >>confdefs.h <<_ACEOF
20503 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20512 for ac_header in des.h
20514 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20515 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20516 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20517 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20519 echo $ECHO_N "(cached
) $ECHO_C" >&6
20521 ac_res=`eval echo '${'$as_ac_Header'}'`
20522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20523 echo "${ECHO_T}$ac_res" >&6; }
20525 # Is the header compilable?
20526 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20527 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 $ac_includes_default
20535 #include <$ac_header>
20537 rm -f conftest.$ac_objext
20538 if { (ac_try="$ac_compile"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_compile") 2>conftest.er1
20546 grep -v '^ *+' conftest.er1 >conftest.err
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest.$ac_objext; then
20554 ac_header_compiler=yes
20556 echo "$as_me: failed program was
:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20559 ac_header_compiler=no
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20564 echo "${ECHO_T}$ac_header_compiler" >&6; }
20566 # Is the header present?
20567 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20568 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20569 cat >conftest.$ac_ext <<_ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 #include <$ac_header>
20577 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20589 (exit $ac_status); } >/dev/null && {
20590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20593 ac_header_preproc=yes
20595 echo "$as_me: failed program was
:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 ac_header_preproc=no
20601 rm -f conftest.err conftest.$ac_ext
20602 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20603 echo "${ECHO_T}$ac_header_preproc" >&6; }
20605 # So? What about this header?
20606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20608 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20609 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20610 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20612 ac_header_preproc=yes
20615 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20616 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20617 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20618 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20619 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20620 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20621 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20622 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20623 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20625 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20626 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20630 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20631 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20633 echo $ECHO_N "(cached
) $ECHO_C" >&6
20635 eval "$as_ac_Header=\
$ac_header_preproc"
20637 ac_res=`eval echo '${'$as_ac_Header'}'`
20638 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20639 echo "${ECHO_T}$ac_res" >&6; }
20642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20643 cat >>confdefs.h <<_ACEOF
20644 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20649 for ac_header in kerberosIV/des.h
20651 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20653 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20654 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20656 echo $ECHO_N "(cached
) $ECHO_C" >&6
20658 ac_res=`eval echo '${'$as_ac_Header'}'`
20659 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20660 echo "${ECHO_T}$ac_res" >&6; }
20662 # Is the header compilable?
20663 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20664 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20665 cat >conftest.$ac_ext <<_ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 $ac_includes_default
20672 #include <$ac_header>
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_header_compiler=yes
20693 echo "$as_me: failed program was
:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_header_compiler=no
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20701 echo "${ECHO_T}$ac_header_compiler" >&6; }
20703 # Is the header present?
20704 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20705 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 #include <$ac_header>
20714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20726 (exit $ac_status); } >/dev/null && {
20727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20730 ac_header_preproc=yes
20732 echo "$as_me: failed program was
:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_header_preproc=no
20738 rm -f conftest.err conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20740 echo "${ECHO_T}$ac_header_preproc" >&6; }
20742 # So? What about this header?
20743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20745 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20746 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20747 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20749 ac_header_preproc=yes
20752 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20753 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20754 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20755 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20756 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20757 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20758 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20759 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20760 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20762 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20763 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20767 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20768 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20769 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20770 echo $ECHO_N "(cached
) $ECHO_C" >&6
20772 eval "$as_ac_Header=\
$ac_header_preproc"
20774 ac_res=`eval echo '${'$as_ac_Header'}'`
20775 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20776 echo "${ECHO_T}$ac_res" >&6; }
20779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20780 cat >>confdefs.h <<_ACEOF
20781 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20786 for ac_header in kerberos/des.h
20788 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20790 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20791 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20792 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20793 echo $ECHO_N "(cached
) $ECHO_C" >&6
20795 ac_res=`eval echo '${'$as_ac_Header'}'`
20796 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20797 echo "${ECHO_T}$ac_res" >&6; }
20799 # Is the header compilable?
20800 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20801 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20802 cat >conftest.$ac_ext <<_ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20809 #include <$ac_header>
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20820 grep -v '^ *+' conftest.er1 >conftest.err
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20828 ac_header_compiler=yes
20830 echo "$as_me: failed program was
:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20833 ac_header_compiler=no
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20838 echo "${ECHO_T}$ac_header_compiler" >&6; }
20840 # Is the header present?
20841 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20842 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 #include <$ac_header>
20851 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20863 (exit $ac_status); } >/dev/null && {
20864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20867 ac_header_preproc=yes
20869 echo "$as_me: failed program was
:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_header_preproc=no
20875 rm -f conftest.err conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20877 echo "${ECHO_T}$ac_header_preproc" >&6; }
20879 # So? What about this header?
20880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20882 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20883 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20884 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20886 ac_header_preproc=yes
20889 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20890 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20891 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20892 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20893 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20894 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20895 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20896 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20897 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20899 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20900 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20904 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20905 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20906 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20907 echo $ECHO_N "(cached
) $ECHO_C" >&6
20909 eval "$as_ac_Header=\
$ac_header_preproc"
20911 ac_res=`eval echo '${'$as_ac_Header'}'`
20912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20913 echo "${ECHO_T}$ac_res" >&6; }
20916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20934 for ac_header in krb.h
20936 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20937 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20938 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20939 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20940 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20941 echo $ECHO_N "(cached
) $ECHO_C" >&6
20943 ac_res=`eval echo '${'$as_ac_Header'}'`
20944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20945 echo "${ECHO_T}$ac_res" >&6; }
20947 # Is the header compilable?
20948 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20949 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 #include <$ac_header>
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20976 ac_header_compiler=yes
20978 echo "$as_me: failed program was
:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_header_compiler=no
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20986 echo "${ECHO_T}$ac_header_compiler" >&6; }
20988 # Is the header present?
20989 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20990 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <$ac_header>
20999 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21011 (exit $ac_status); } >/dev/null && {
21012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21015 ac_header_preproc=yes
21017 echo "$as_me: failed program was
:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_header_preproc=no
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21027 # So? What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21030 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21031 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21032 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21034 ac_header_preproc=yes
21037 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21038 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21039 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21040 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21041 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21042 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21043 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21044 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21045 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21047 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21048 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21052 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21053 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached
) $ECHO_C" >&6
21057 eval "$as_ac_Header=\
$ac_header_preproc"
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21071 for ac_header in kerberosIV/krb.h
21073 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21075 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21076 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21078 echo $ECHO_N "(cached
) $ECHO_C" >&6
21080 ac_res=`eval echo '${'$as_ac_Header'}'`
21081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21082 echo "${ECHO_T}$ac_res" >&6; }
21084 # Is the header compilable?
21085 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21086 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21087 cat >conftest.$ac_ext <<_ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 $ac_includes_default
21094 #include <$ac_header>
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 ac_header_compiler=yes
21115 echo "$as_me: failed program was
:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_compiler=no
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21123 echo "${ECHO_T}$ac_header_compiler" >&6; }
21125 # Is the header present?
21126 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21127 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <$ac_header>
21136 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21144 grep -v '^ *+' conftest.er1 >conftest.err
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21148 (exit $ac_status); } >/dev/null && {
21149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21152 ac_header_preproc=yes
21154 echo "$as_me: failed program was
:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21157 ac_header_preproc=no
21160 rm -f conftest.err conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21162 echo "${ECHO_T}$ac_header_preproc" >&6; }
21164 # So? What about this header?
21165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21167 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21168 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21169 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21171 ac_header_preproc=yes
21174 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21175 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21176 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21177 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21178 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21179 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21180 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21181 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21182 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21184 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21185 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21189 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21190 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21191 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21192 echo $ECHO_N "(cached
) $ECHO_C" >&6
21194 eval "$as_ac_Header=\
$ac_header_preproc"
21196 ac_res=`eval echo '${'$as_ac_Header'}'`
21197 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21198 echo "${ECHO_T}$ac_res" >&6; }
21201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21202 cat >>confdefs.h <<_ACEOF
21203 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21208 for ac_header in kerberos/krb.h
21210 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21211 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21212 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21213 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached
) $ECHO_C" >&6
21217 ac_res=`eval echo '${'$as_ac_Header'}'`
21218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21223 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 ac_header_compiler=yes
21252 echo "$as_me: failed program was
:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_compiler=no
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21260 echo "${ECHO_T}$ac_header_compiler" >&6; }
21262 # Is the header present?
21263 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21264 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <$ac_header>
21273 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21281 grep -v '^ *+' conftest.er1 >conftest.err
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21285 (exit $ac_status); } >/dev/null && {
21286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21289 ac_header_preproc=yes
21291 echo "$as_me: failed program was
:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_header_preproc=no
21297 rm -f conftest.err conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21299 echo "${ECHO_T}$ac_header_preproc" >&6; }
21301 # So? What about this header?
21302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21304 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21305 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21306 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21308 ac_header_preproc=yes
21311 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21312 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21314 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21315 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21316 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21317 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21318 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21319 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21321 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21322 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21326 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21327 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21328 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached
) $ECHO_C" >&6
21331 eval "$as_ac_Header=\
$ac_header_preproc"
21333 ac_res=`eval echo '${'$as_ac_Header'}'`
21334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21335 echo "${ECHO_T}$ac_res" >&6; }
21338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21339 cat >>confdefs.h <<_ACEOF
21340 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21357 for ac_header in com_err.h
21359 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21360 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21361 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21362 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21364 echo $ECHO_N "(cached
) $ECHO_C" >&6
21366 ac_res=`eval echo '${'$as_ac_Header'}'`
21367 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21368 echo "${ECHO_T}$ac_res" >&6; }
21370 # Is the header compilable?
21371 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21372 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 #include <$ac_header>
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_header_compiler=yes
21401 echo "$as_me: failed program was
:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21404 ac_header_compiler=no
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21409 echo "${ECHO_T}$ac_header_compiler" >&6; }
21411 # Is the header present?
21412 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21413 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <$ac_header>
21422 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21434 (exit $ac_status); } >/dev/null && {
21435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21438 ac_header_preproc=yes
21440 echo "$as_me: failed program was
:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_header_preproc=no
21446 rm -f conftest.err conftest.$ac_ext
21447 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21448 echo "${ECHO_T}$ac_header_preproc" >&6; }
21450 # So? What about this header?
21451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21453 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21454 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21457 ac_header_preproc=yes
21460 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21461 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21462 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21463 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21464 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21465 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21466 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21467 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21468 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21470 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21471 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21475 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21476 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21477 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21478 echo $ECHO_N "(cached
) $ECHO_C" >&6
21480 eval "$as_ac_Header=\
$ac_header_preproc"
21482 ac_res=`eval echo '${'$as_ac_Header'}'`
21483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21484 echo "${ECHO_T}$ac_res" >&6; }
21487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21498 # Solaris requires -lintl if you want strerror (which calls dgettext)
21499 # to return localized messages.
21501 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21502 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21503 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21504 echo $ECHO_N "(cached
) $ECHO_C" >&6
21506 ac_check_lib_save_LIBS=$LIBS
21507 LIBS="-lintl $LIBS"
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21515 /* Override any GCC internal prototype to avoid an error.
21516 Use char because int might match the return type of a GCC
21517 builtin and then its argument prototype would still apply. */
21525 return dgettext ();
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_link") 2>conftest.er1
21539 grep -v '^ *+' conftest.er1 >conftest.err
21541 cat conftest.err >&5
21542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest$ac_exeext &&
21547 $as_test_x conftest$ac_exeext; then
21548 ac_cv_lib_intl_dgettext=yes
21550 echo "$as_me: failed program was
:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_cv_lib_intl_dgettext=no
21556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21557 conftest$ac_exeext conftest.$ac_ext
21558 LIBS=$ac_check_lib_save_LIBS
21560 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21561 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21562 if test $ac_cv_lib_intl_dgettext = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_LIBINTL 1
21567 LIBS="-lintl $LIBS"
21572 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21573 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21574 if test "${emacs_cv_localtime_cache+set}" = set; then
21575 echo $ECHO_N "(cached
) $ECHO_C" >&6
21577 if test x$ac_cv_func_tzset = xyes; then
21578 if test "$cross_compiling" = yes; then
21579 # If we have tzset, assume the worst when cross-compiling.
21580 emacs_cv_localtime_cache=yes
21582 cat >conftest.$ac_ext <<_ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21589 extern char **environ;
21593 for (to = from = environ; (*to = *from); from++)
21594 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21597 char TZ_GMT0[] = "TZ
=GMT0
";
21598 char TZ_PST8[] = "TZ
=PST8
";
21601 time_t now = time ((time_t *) 0);
21602 int hour_GMT0, hour_unset;
21603 if (putenv (TZ_GMT0) != 0)
21605 hour_GMT0 = localtime (&now)->tm_hour;
21607 hour_unset = localtime (&now)->tm_hour;
21608 if (putenv (TZ_PST8) != 0)
21610 if (localtime (&now)->tm_hour == hour_GMT0)
21613 if (localtime (&now)->tm_hour != hour_unset)
21618 rm -f conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_link") 2>&5
21627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21629 { (case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_try") 2>&5
21636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 emacs_cv_localtime_cache=no
21640 echo "$as_me: program exited with status
$ac_status" >&5
21641 echo "$as_me: failed program was
:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ( exit $ac_status )
21645 emacs_cv_localtime_cache=yes
21647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21652 # If we lack tzset, report that localtime does not cache TZ,
21653 # since we can't invalidate the cache if we don't have tzset.
21654 emacs_cv_localtime_cache=no
21657 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21658 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21659 if test $emacs_cv_localtime_cache = yes; then
21661 cat >>confdefs.h <<\_ACEOF
21662 #define LOCALTIME_CACHE 1
21667 if test "x
$HAVE_TIMEVAL" = xyes; then
21669 for ac_func in gettimeofday
21671 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21672 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21673 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21674 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21675 echo $ECHO_N "(cached
) $ECHO_C" >&6
21677 cat >conftest.$ac_ext <<_ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21685 #define $ac_func innocuous_$ac_func
21687 /* System header to define __stub macros and hopefully few prototypes,
21688 which can conflict with char $ac_func (); below.
21689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690 <limits.h> exists even on freestanding compilers. */
21693 # include <limits.h>
21695 # include <assert.h>
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined __stub_$ac_func || defined __stub___$ac_func
21717 return $ac_func ();
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_link") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21735 (exit $ac_status); } && {
21736 test -z "$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 } && test -s conftest$ac_exeext &&
21739 $as_test_x conftest$ac_exeext; then
21740 eval "$as_ac_var=yes"
21742 echo "$as_me: failed program was
:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21745 eval "$as_ac_var=no
"
21748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21749 conftest$ac_exeext conftest.$ac_ext
21751 ac_res=`eval echo '${'$as_ac_var'}'`
21752 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21753 echo "${ECHO_T}$ac_res" >&6; }
21754 if test `eval echo '${'$as_ac_var'}'` = yes; then
21755 cat >>confdefs.h <<_ACEOF
21756 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21762 if test $ac_cv_func_gettimeofday = yes; then
21763 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21764 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21765 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21766 echo $ECHO_N "(cached
) $ECHO_C" >&6
21768 cat >conftest.$ac_ext <<_ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21775 #ifdef TIME_WITH_SYS_TIME
21776 #include <sys/time.h>
21779 #ifdef HAVE_SYS_TIME_H
21780 #include <sys/time.h>
21788 struct timeval time;
21789 gettimeofday (&time, 0);
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21803 grep -v '^ *+' conftest.er1 >conftest.err
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 emacs_cv_gettimeofday_two_arguments=yes
21813 echo "$as_me: failed program was
:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21816 emacs_cv_gettimeofday_two_arguments=no
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21822 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21823 if test $emacs_cv_gettimeofday_two_arguments = no; then
21825 cat >>confdefs.h <<\_ACEOF
21826 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21834 { echo "$as_me:$LINENO: checking
for socket
" >&5
21835 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21836 if test "${ac_cv_func_socket+set}" = set; then
21837 echo $ECHO_N "(cached
) $ECHO_C" >&6
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21847 #define socket innocuous_socket
21849 /* System header to define __stub macros and hopefully few prototypes,
21850 which can conflict with char socket (); below.
21851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21852 <limits.h> exists even on freestanding compilers. */
21855 # include <limits.h>
21857 # include <assert.h>
21862 /* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
21869 /* The GNU C library defines this for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872 #if defined __stub_socket || defined __stub___socket
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (ac_try="$ac_link"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_link") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest$ac_exeext &&
21901 $as_test_x conftest$ac_exeext; then
21902 ac_cv_func_socket=yes
21904 echo "$as_me: failed program was
:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21907 ac_cv_func_socket=no
21910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21911 conftest$ac_exeext conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21914 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21915 if test $ac_cv_func_socket = yes; then
21921 if test $ok_so_far = yes; then
21922 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21923 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21924 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21925 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21926 echo $ECHO_N "(cached
) $ECHO_C" >&6
21928 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21929 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21931 # Is the header compilable?
21932 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21933 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 $ac_includes_default
21941 #include <netinet/in.h>
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21952 grep -v '^ *+' conftest.er1 >conftest.err
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21956 (exit $ac_status); } && {
21957 test -z "$ac_c_werror_flag" ||
21958 test ! -s conftest.err
21959 } && test -s conftest.$ac_objext; then
21960 ac_header_compiler=yes
21962 echo "$as_me: failed program was
:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21965 ac_header_compiler=no
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21970 echo "${ECHO_T}$ac_header_compiler" >&6; }
21972 # Is the header present?
21973 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21974 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21975 cat >conftest.$ac_ext <<_ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981 #include <netinet/in.h>
21983 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21991 grep -v '^ *+' conftest.er1 >conftest.err
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21995 (exit $ac_status); } >/dev/null && {
21996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21999 ac_header_preproc=yes
22001 echo "$as_me: failed program was
:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_header_preproc=no
22007 rm -f conftest.err conftest.$ac_ext
22008 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22009 echo "${ECHO_T}$ac_header_preproc" >&6; }
22011 # So? What about this header?
22012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22014 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22015 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22016 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22017 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22018 ac_header_preproc=yes
22021 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22022 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22023 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22024 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22025 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22026 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22027 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22028 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22029 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22030 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22031 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22032 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22036 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22037 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22038 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22039 echo $ECHO_N "(cached
) $ECHO_C" >&6
22041 ac_cv_header_netinet_in_h=$ac_header_preproc
22043 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22044 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22047 if test $ac_cv_header_netinet_in_h = yes; then
22055 if test $ok_so_far = yes; then
22056 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22057 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22058 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22059 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22060 echo $ECHO_N "(cached
) $ECHO_C" >&6
22062 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22063 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22067 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <arpa/inet.h>
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22096 echo "$as_me: failed program was
:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_compiler=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22108 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <arpa/inet.h>
22117 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22133 ac_header_preproc=yes
22135 echo "$as_me: failed program was
:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_header_preproc=no
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22149 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22151 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22152 ac_header_preproc=yes
22155 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22156 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22157 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22158 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22159 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22160 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22161 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22162 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22164 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22165 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22166 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22170 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22171 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22172 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22173 echo $ECHO_N "(cached
) $ECHO_C" >&6
22175 ac_cv_header_arpa_inet_h=$ac_header_preproc
22177 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22178 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22181 if test $ac_cv_header_arpa_inet_h = yes; then
22189 if test $ok_so_far = yes; then
22191 cat >>confdefs.h <<\_ACEOF
22192 #define HAVE_INET_SOCKETS 1
22198 for ac_header in sys/ioctl.h
22200 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22202 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22203 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22204 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22205 echo $ECHO_N "(cached
) $ECHO_C" >&6
22207 ac_res=`eval echo '${'$as_ac_Header'}'`
22208 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22209 echo "${ECHO_T}$ac_res" >&6; }
22211 # Is the header compilable?
22212 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22213 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22214 cat >conftest.$ac_ext <<_ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220 $ac_includes_default
22221 #include <$ac_header>
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22232 grep -v '^ *+' conftest.er1 >conftest.err
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_header_compiler=yes
22242 echo "$as_me: failed program was
:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22245 ac_header_compiler=no
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22250 echo "${ECHO_T}$ac_header_compiler" >&6; }
22252 # Is the header present?
22253 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22254 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22255 cat >conftest.$ac_ext <<_ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 #include <$ac_header>
22263 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22271 grep -v '^ *+' conftest.er1 >conftest.err
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22275 (exit $ac_status); } >/dev/null && {
22276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22279 ac_header_preproc=yes
22281 echo "$as_me: failed program was
:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_header_preproc=no
22287 rm -f conftest.err conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22289 echo "${ECHO_T}$ac_header_preproc" >&6; }
22291 # So? What about this header?
22292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22294 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22295 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22296 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22298 ac_header_preproc=yes
22301 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22302 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22303 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22304 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22305 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22306 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22307 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22308 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22309 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22311 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22312 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22316 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22317 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22318 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22319 echo $ECHO_N "(cached
) $ECHO_C" >&6
22321 eval "$as_ac_Header=\
$ac_header_preproc"
22323 ac_res=`eval echo '${'$as_ac_Header'}'`
22324 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22325 echo "${ECHO_T}$ac_res" >&6; }
22328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22329 cat >>confdefs.h <<_ACEOF
22330 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22338 if test -f /usr/lpp/X11/bin/smt.exp; then
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_AIX_SMT_EXP 1
22346 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22347 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22348 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22349 { echo "$as_me:$LINENO: result
: yes" >&5
22350 echo "${ECHO_T}yes" >&6; }
22352 cat >>confdefs.h <<\_ACEOF
22353 #define HAVE_DEV_PTMX 1
22357 { echo "$as_me:$LINENO: result
: no
" >&5
22358 echo "${ECHO_T}no
" >&6; }
22361 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22362 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22363 if test "${ac_cv_type_pid_t+set}" = set; then
22364 echo $ECHO_N "(cached
) $ECHO_C" >&6
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22373 typedef pid_t ac__type_new_;
22377 if ((ac__type_new_ *) 0)
22379 if (sizeof (ac__type_new_))
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22394 grep -v '^ *+' conftest.er1 >conftest.err
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_cv_type_pid_t=yes
22404 echo "$as_me: failed program was
:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22407 ac_cv_type_pid_t=no
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22412 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22413 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22414 if test $ac_cv_type_pid_t = yes; then
22418 cat >>confdefs.h <<_ACEOF
22425 for ac_header in vfork.h
22427 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22429 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22430 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22431 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22432 echo $ECHO_N "(cached
) $ECHO_C" >&6
22434 ac_res=`eval echo '${'$as_ac_Header'}'`
22435 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22436 echo "${ECHO_T}$ac_res" >&6; }
22438 # Is the header compilable?
22439 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22440 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22441 cat >conftest.$ac_ext <<_ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 $ac_includes_default
22448 #include <$ac_header>
22450 rm -f conftest.$ac_objext
22451 if { (ac_try="$ac_compile"
22452 case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_compile") 2>conftest.er1
22459 grep -v '^ *+' conftest.er1 >conftest.err
22461 cat conftest.err >&5
22462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22463 (exit $ac_status); } && {
22464 test -z "$ac_c_werror_flag" ||
22465 test ! -s conftest.err
22466 } && test -s conftest.$ac_objext; then
22467 ac_header_compiler=yes
22469 echo "$as_me: failed program was
:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22472 ac_header_compiler=no
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22477 echo "${ECHO_T}$ac_header_compiler" >&6; }
22479 # Is the header present?
22480 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22481 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22482 cat >conftest.$ac_ext <<_ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 #include <$ac_header>
22490 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22491 case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22498 grep -v '^ *+' conftest.er1 >conftest.err
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22502 (exit $ac_status); } >/dev/null && {
22503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22506 ac_header_preproc=yes
22508 echo "$as_me: failed program was
:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22511 ac_header_preproc=no
22514 rm -f conftest.err conftest.$ac_ext
22515 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22516 echo "${ECHO_T}$ac_header_preproc" >&6; }
22518 # So? What about this header?
22519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22521 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22522 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22523 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22525 ac_header_preproc=yes
22528 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22529 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22530 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22531 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22532 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22533 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22534 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22535 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22536 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22538 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22539 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22543 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22544 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22545 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22546 echo $ECHO_N "(cached
) $ECHO_C" >&6
22548 eval "$as_ac_Header=\
$ac_header_preproc"
22550 ac_res=`eval echo '${'$as_ac_Header'}'`
22551 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22552 echo "${ECHO_T}$ac_res" >&6; }
22555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22556 cat >>confdefs.h <<_ACEOF
22557 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22566 for ac_func in fork vfork
22568 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22569 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22570 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22571 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22572 echo $ECHO_N "(cached
) $ECHO_C" >&6
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22582 #define $ac_func innocuous_$ac_func
22584 /* System header to define __stub macros and hopefully few prototypes,
22585 which can conflict with char $ac_func (); below.
22586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22587 <limits.h> exists even on freestanding compilers. */
22590 # include <limits.h>
22592 # include <assert.h>
22597 /* Override any GCC internal prototype to avoid an error.
22598 Use char because int might match the return type of a GCC
22599 builtin and then its argument prototype would still apply. */
22604 /* The GNU C library defines this for functions which it implements
22605 to always fail with ENOSYS. Some functions are actually named
22606 something starting with __ and the normal name is an alias. */
22607 #if defined __stub_$ac_func || defined __stub___$ac_func
22614 return $ac_func ();
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>conftest.er1
22628 grep -v '^ *+' conftest.er1 >conftest.err
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest$ac_exeext &&
22636 $as_test_x conftest$ac_exeext; then
22637 eval "$as_ac_var=yes"
22639 echo "$as_me: failed program was
:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22642 eval "$as_ac_var=no
"
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22646 conftest$ac_exeext conftest.$ac_ext
22648 ac_res=`eval echo '${'$as_ac_var'}'`
22649 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22650 echo "${ECHO_T}$ac_res" >&6; }
22651 if test `eval echo '${'$as_ac_var'}'` = yes; then
22652 cat >>confdefs.h <<_ACEOF
22653 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22659 if test "x
$ac_cv_func_fork" = xyes; then
22660 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22661 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22662 if test "${ac_cv_func_fork_works+set}" = set; then
22663 echo $ECHO_N "(cached
) $ECHO_C" >&6
22665 if test "$cross_compiling" = yes; then
22666 ac_cv_func_fork_works=cross
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22679 /* By Ruediger Kuhlmann. */
22680 return fork () < 0;
22686 rm -f conftest$ac_exeext
22687 if { (ac_try="$ac_link"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_link") 2>&5
22695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22697 { (case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_try") 2>&5
22704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22705 (exit $ac_status); }; }; then
22706 ac_cv_func_fork_works=yes
22708 echo "$as_me: program exited with status
$ac_status" >&5
22709 echo "$as_me: failed program was
:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22712 ( exit $ac_status )
22713 ac_cv_func_fork_works=no
22715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22720 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22721 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22724 ac_cv_func_fork_works=$ac_cv_func_fork
22726 if test "x
$ac_cv_func_fork_works" = xcross; then
22728 *-*-amigaos* | *-*-msdosdjgpp*)
22729 # Override, as these systems have only a dummy fork() stub
22730 ac_cv_func_fork_works=no
22733 ac_cv_func_fork_works=yes
22736 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22737 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22739 ac_cv_func_vfork_works=$ac_cv_func_vfork
22740 if test "x
$ac_cv_func_vfork" = xyes; then
22741 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22742 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22743 if test "${ac_cv_func_vfork_works+set}" = set; then
22744 echo $ECHO_N "(cached
) $ECHO_C" >&6
22746 if test "$cross_compiling" = yes; then
22747 ac_cv_func_vfork_works=cross
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 /* Thanks to Paul Eggert for this test. */
22756 $ac_includes_default
22757 #include <sys/wait.h>
22758 #ifdef HAVE_VFORK_H
22759 # include <vfork.h>
22761 /* On some sparc systems, changes by the child to local and incoming
22762 argument registers are propagated back to the parent. The compiler
22763 is told about this with #include <vfork.h>, but some compilers
22764 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22765 static variable whose address is put into a register that is
22766 clobbered by the vfork. */
22769 sparc_address_test (int arg)
22771 sparc_address_test (arg) int arg;
22774 static pid_t child;
22792 pid_t parent = getpid ();
22795 sparc_address_test (0);
22800 /* Here is another test for sparc vfork register problems. This
22801 test uses lots of local variables, at least as many local
22802 variables as main has allocated so far including compiler
22803 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22804 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22805 reuse the register of parent for one of the local variables,
22806 since it will think that parent can't possibly be used any more
22807 in this routine. Assigning to the local variable will thus
22808 munge parent in the parent process. */
22810 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22811 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22812 /* Convince the compiler that p..p7 are live; otherwise, it might
22813 use the same hardware register for all 8 local variables. */
22814 if (p != p1 || p != p2 || p != p3 || p != p4
22815 || p != p5 || p != p6 || p != p7)
22818 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22819 from child file descriptors. If the child closes a descriptor
22820 before it execs or exits, this munges the parent's descriptor
22821 as well. Test for this by closing stdout in the child. */
22822 _exit(close(fileno(stdout)) != 0);
22827 while (wait(&status) != child)
22830 /* Was there some problem with vforking? */
22833 /* Did the child fail? (This shouldn't happen.) */
22836 /* Did the vfork/compiler bug occur? */
22837 || parent != getpid()
22839 /* Did the file descriptor bug occur? */
22840 || fstat(fileno(stdout), &st) != 0
22845 rm -f conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>&5
22854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22856 { (case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_try") 2>&5
22863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_func_vfork_works=yes
22867 echo "$as_me: program exited with status
$ac_status" >&5
22868 echo "$as_me: failed program was
:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22871 ( exit $ac_status )
22872 ac_cv_func_vfork_works=no
22874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22879 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22880 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22883 if test "x
$ac_cv_func_fork_works" = xcross; then
22884 ac_cv_func_vfork_works=$ac_cv_func_vfork
22885 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22886 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22889 if test "x
$ac_cv_func_vfork_works" = xyes; then
22891 cat >>confdefs.h <<\_ACEOF
22892 #define HAVE_WORKING_VFORK 1
22897 cat >>confdefs.h <<\_ACEOF
22902 if test "x
$ac_cv_func_fork_works" = xyes; then
22904 cat >>confdefs.h <<\_ACEOF
22905 #define HAVE_WORKING_FORK 1
22911 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22912 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22913 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22914 echo $ECHO_N "(cached
) $ECHO_C" >&6
22916 cat >conftest.$ac_ext <<_ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <langinfo.h>
22926 char* cs = nl_langinfo(CODESET);
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>conftest.er1
22940 grep -v '^ *+' conftest.er1 >conftest.err
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest$ac_exeext &&
22948 $as_test_x conftest$ac_exeext; then
22949 emacs_cv_langinfo_codeset=yes
22951 echo "$as_me: failed program was
:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 emacs_cv_langinfo_codeset=no
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22961 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22963 if test $emacs_cv_langinfo_codeset = yes; then
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22971 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22972 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22973 if test "${ac_cv_type_size_t+set}" = set; then
22974 echo $ECHO_N "(cached
) $ECHO_C" >&6
22976 cat >conftest.$ac_ext <<_ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22983 typedef size_t ac__type_new_;
22987 if ((ac__type_new_ *) 0)
22989 if (sizeof (ac__type_new_))
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23004 grep -v '^ *+' conftest.er1 >conftest.err
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
23012 ac_cv_type_size_t=yes
23014 echo "$as_me: failed program was
:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 ac_cv_type_size_t=no
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23023 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23024 if test $ac_cv_type_size_t = yes; then
23026 cat >>confdefs.h <<_ACEOF
23027 #define HAVE_SIZE_T 1
23034 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23035 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23036 if test "${ac_cv_type_mbstate_t+set}" = set; then
23037 echo $ECHO_N "(cached
) $ECHO_C" >&6
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 # include <wchar.h>
23050 mbstate_t x; return sizeof x;
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23064 grep -v '^ *+' conftest.er1 >conftest.err
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_type_mbstate_t=yes
23074 echo "$as_me: failed program was
:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23077 ac_cv_type_mbstate_t=no
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23083 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23084 if test $ac_cv_type_mbstate_t = yes; then
23086 cat >>confdefs.h <<\_ACEOF
23087 #define HAVE_MBSTATE_T 1
23092 cat >>confdefs.h <<\_ACEOF
23093 #define mbstate_t int
23098 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23099 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23100 if test "${emacs_cv_c_restrict+set}" = set; then
23101 echo $ECHO_N "(cached
) $ECHO_C" >&6
23103 cat >conftest.$ac_ext <<_ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 void fred (int *restrict x);
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 emacs_cv_c_restrict=yes
23137 echo "$as_me: failed program was
:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 cat >conftest.$ac_ext <<_ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 void fred (int *__restrict x);
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23164 grep -v '^ *+' conftest.er1 >conftest.err
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23172 emacs_cv_c_restrict=__restrict
23174 echo "$as_me: failed program was
:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 emacs_cv_c_restrict=no
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23185 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23186 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23187 case "$emacs_cv_c_restrict" in
23188 yes) emacs_restrict=restrict;;
23189 no) emacs_restrict="";;
23190 *) emacs_restrict="$emacs_cv_c_restrict";;
23192 if test "$emacs_restrict" != __restrict; then
23194 cat >>confdefs.h <<_ACEOF
23195 #define __restrict $emacs_restrict
23200 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23201 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23202 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23203 echo $ECHO_N "(cached
) $ECHO_C" >&6
23205 cat >conftest.$ac_ext <<_ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 void fred (int x[__restrict]);
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23229 grep -v '^ *+' conftest.er1 >conftest.err
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23233 (exit $ac_status); } && {
23234 test -z "$ac_c_werror_flag" ||
23235 test ! -s conftest.err
23236 } && test -s conftest.$ac_objext; then
23237 emacs_cv_c_restrict_arr=yes
23239 echo "$as_me: failed program was
:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23242 emacs_cv_c_restrict_arr=no
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23247 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23248 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23249 if test "$emacs_cv_c_restrict_arr" = yes; then
23251 cat >>confdefs.h <<\_ACEOF
23252 #define __restrict_arr __restrict
23259 # Set up the CFLAGS for real compilation, so we can substitute it.
23260 CFLAGS="$REAL_CFLAGS"
23261 CPPFLAGS="$REAL_CPPFLAGS"
23263 #### Find out which version of Emacs this is.
23264 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23265 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23266 if test x"${version}" = x; then
23267 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23268 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23269 { (exit 1); exit 1; }; }
23272 ### Specify what sort of things we'll be editing into Makefile and config.h.
23273 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23309 cat >>confdefs.h <<_ACEOF
23310 #define EMACS_CONFIGURATION "${canonical}"
23314 cat >>confdefs.h <<_ACEOF
23315 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23319 cat >>confdefs.h <<_ACEOF
23320 #define config_machfile "${machfile}"
23324 cat >>confdefs.h <<_ACEOF
23325 #define config_opsysfile "${opsysfile}"
23329 cat >>confdefs.h <<_ACEOF
23330 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23334 cat >>confdefs.h <<_ACEOF
23335 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23339 cat >>confdefs.h <<_ACEOF
23340 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23344 cat >>confdefs.h <<_ACEOF
23345 #define UNEXEC_SRC ${UNEXEC_SRC}
23349 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_X_WINDOWS 1
23356 if test "${USE_X_TOOLKIT}" != "none
" ; then
23358 cat >>confdefs.h <<\_ACEOF
23359 #define USE_X_TOOLKIT 1
23363 if test "${HAVE_X11}" = "yes" ; then
23365 cat >>confdefs.h <<\_ACEOF
23370 if test "${HAVE_XFREE386}" = "yes" ; then
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_XFREE386 1
23377 if test "${HAVE_MENUS}" = "yes" ; then
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_MENUS 1
23384 if test "${GNU_MALLOC}" = "yes" ; then
23386 cat >>confdefs.h <<\_ACEOF
23387 #define GNU_MALLOC 1
23391 if test "${REL_ALLOC}" = "yes" ; then
23393 cat >>confdefs.h <<\_ACEOF
23394 #define REL_ALLOC 1
23404 #### Report on what we decided to do.
23405 #### Report GTK as a toolkit, even if it doesn't use Xt.
23406 #### It makes printing result more understandable as using GTK sets
23407 #### toolkit_scroll_bars to yes by default.
23408 if test "${HAVE_GTK}" = "yes"; then
23413 Configured
for \
`${canonical}'.
23415 Where should the build process find the source code? ${srcdir}
23416 What operating system and machine description files should Emacs use?
23417 \`${opsysfile}' and \`${machfile}'
23418 What compiler should emacs be built with?
${CC} ${CFLAGS}
23419 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23420 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23421 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23422 What window system should Emacs use?
${window_system}
23423 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23425 if test -n "${x_includes}"; then
23426 echo " Where
do we
find X Windows header files?
${x_includes}"
23428 echo " Where
do we
find X Windows header files? Standard
dirs"
23430 if test -n "${x_libraries}"; then
23431 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23433 echo " Where
do we
find X Windows libraries? Standard
dirs"
23436 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23437 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23438 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23439 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23440 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23441 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23442 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23443 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23444 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23445 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23448 if test $USE_XASSERTS = yes; then
23449 echo " Compiling with asserts turned on.
"
23450 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23454 if test "$USE_X_TOOLKIT" = GTK; then
23455 case "$canonical" in
23457 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23458 will probably get a crash on startup. If this happens
, please use another
23459 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23465 if test "$HAVE_CARBON" = "yes"; then
23467 echo "Warning
: The Mac Carbon port is currently unsupported and has
23468 known problems. It is not recommended
for use by non-developers.
23469 Read the emacs-devel archives
for more information.
"
23473 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23474 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23479 # Remove any trailing slashes in these variables.
23480 test "${prefix}" != NONE &&
23481 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23482 test "${exec_prefix}" != NONE &&
23483 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23485 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23486 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23487 ## from Makefile.c can correctly provide the arg `-traditional' to the
23490 cat >conftest.$ac_ext <<_ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23498 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23499 $EGREP "yes..
yes" >/dev/null 2>&1; then
23500 CPP_NEED_TRADITIONAL=no
23502 CPP_NEED_TRADITIONAL=yes
23507 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
23509 ac_config_commands="$ac_config_commands default
"
23511 cat >confcache <<\_ACEOF
23512 # This file is a shell script that caches the results of configure
23513 # tests run on this system so they can be shared between configure
23514 # scripts and configure runs, see configure's option --config-cache.
23515 # It is not useful on other systems. If it contains results you don't
23516 # want to keep, you may remove or edit it.
23518 # config.status only pays attention to the cache file if you give it
23519 # the --recheck option to rerun configure.
23521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23523 # following values.
23527 # The following way of writing the cache mishandles newlines in values,
23528 # but we know of no workaround that is simple, portable, and efficient.
23529 # So, we kill variables containing newlines.
23530 # Ultrix sh set writes to stderr and can't be redirected directly,
23531 # and sets the high bit in the cache file unless we assign to the vars.
23533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23534 eval ac_val=\$$ac_var
23538 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23539 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23542 _ | IFS | as_nl) ;; #(
23543 *) $as_unset $ac_var ;;
23549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23550 *${as_nl}ac_space=\ *)
23551 # `set' does not quote correctly, so add quotes (double-quote
23552 # substitution turns \\\\ into \\, and sed turns \\ into \).
23555 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23558 # `set' quotes correctly as required by POSIX, so do not add quotes.
23559 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23573 if test -w "$cache_file"; then
23574 test "x
$cache_file" != "x
/dev
/null
" &&
23575 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23576 echo "$as_me: updating cache
$cache_file" >&6;}
23577 cat confcache >$cache_file
23579 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23580 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23585 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23586 # Let make expand exec_prefix.
23587 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23589 DEFS=-DHAVE_CONFIG_H
23593 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23594 # 1. Remove the extension, and $U if already installed.
23595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23596 ac_i=`echo "$ac_i" | sed "$ac_script"`
23597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23598 # will be set to the directory where LIBOBJS objects are built.
23599 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23600 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23602 LIBOBJS=$ac_libobjs
23604 LTLIBOBJS=$ac_ltlibobjs
23608 : ${CONFIG_STATUS=./config.status}
23609 ac_clean_files_save=$ac_clean_files
23610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23611 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23612 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23613 cat >$CONFIG_STATUS <<_ACEOF
23615 # Generated by $as_me.
23616 # Run this file to recreate the current configuration.
23617 # Compiler output produced by configure, useful for debugging
23618 # configure, is in config.log if it exists.
23621 ac_cs_recheck=false
23623 SHELL=\${CONFIG_SHELL-$SHELL}
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 ## --------------------- ##
23628 ## M4sh Initialization. ##
23629 ## --------------------- ##
23631 # Be more Bourne compatible
23632 DUALCASE=1; export DUALCASE # for MKS sh
23633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23636 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23637 # is contrary to our usage. Disable this feature.
23638 alias -g '${1+"$@"}'='"$@
"'
23639 setopt NO_GLOB_SUBST
23641 case `(set -o) 2>/dev/null` in
23642 *posix*) set -o posix ;;
23651 # Avoid depending upon Character Ranges.
23652 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23653 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23654 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23655 as_cr_digits='0123456789'
23656 as_cr_alnum=$as_cr_Letters$as_cr_digits
23658 # The user is always right.
23659 if test "${PATH_SEPARATOR+set}" != set; then
23660 echo "#! /bin/sh" >conf$$.sh
23661 echo "exit 0" >>conf$$.sh
23663 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23671 # Support unset when possible.
23672 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23680 # We need space, tab and new line, in precisely that order. Quoting is
23681 # there to prevent editors from complaining about space-tab.
23682 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23683 # splitting by setting IFS to empty value.)
23688 # Find who we are. Look in the path if we contain no directory separator.
23690 *[\\/]* ) as_myself
=$0 ;;
23691 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23692 for as_dir
in $PATH
23695 test -z "$as_dir" && as_dir
=.
23696 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23702 # We did not find ourselves, most probably we were run as `sh COMMAND'
23703 # in which case we are not to be found in the path.
23704 if test "x$as_myself" = x
; then
23707 if test ! -f "$as_myself"; then
23708 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23709 { (exit 1); exit 1; }
23712 # Work around bugs in pre-3.0 UWIN ksh.
23713 for as_var
in ENV MAIL MAILPATH
23714 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23724 LC_TELEPHONE LC_TIME
23726 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23727 eval $as_var=C
; export $as_var
23729 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23733 # Required to use basename.
23734 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23735 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23741 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23742 as_basename
=basename
23748 # Name of the executable.
23749 as_me
=`$as_basename -- "$0" ||
23750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23751 X"$0" : 'X\(//\)$' \| \
23752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23754 sed '/^.*\/\([^/][^/]*\)\/*$/{
23773 as_lineno_1
=$LINENO
23774 as_lineno_2
=$LINENO
23775 test "x$as_lineno_1" != "x$as_lineno_2" &&
23776 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23778 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23779 # uniformly replaced by the line number. The first 'sed' inserts a
23780 # line-number line after each line using $LINENO; the second 'sed'
23781 # does the real work. The second script uses 'N' to pair each
23782 # line-number line with the line containing $LINENO, and appends
23783 # trailing '-' during substitution so that $LINENO is not a special
23784 # case at line end.
23785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23786 # scripts with optimization help from Paolo Bonzini. Blame Lee
23787 # E. McMahon (1931-1989) for sed's syntax. :-)
23799 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23802 ' >$as_me.lineno
&&
23803 chmod +x
"$as_me.lineno" ||
23804 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23805 { (exit 1); exit 1; }; }
23807 # Don't try to exec as it changes $[0], causing all sort of problems
23808 # (the dirname of $[0] is not the place where we might find the
23809 # original and so on. Autoconf is especially sensitive to this).
23810 .
"./$as_me.lineno"
23811 # Exit status is that of the last command.
23816 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23822 ECHO_C
= ECHO_N
= ECHO_T
=
23823 case `echo -n x` in
23825 case `echo 'x\c'` in
23826 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23833 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23834 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23840 rm -f conf$$ conf$$.exe conf$$.
file
23841 if test -d conf$$.dir
; then
23842 rm -f conf$$.dir
/conf$$.
file
23848 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23850 # ... but there are two gotchas:
23851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23853 # In both cases, we have to default to `cp -p'.
23854 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23856 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23861 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23862 rmdir conf$$.dir
2>/dev
/null
23864 if mkdir
-p .
2>/dev
/null
; then
23867 test -d .
/-p && rmdir .
/-p
23871 if test -x / >/dev
/null
2>&1; then
23872 as_test_x
='test -x'
23874 if ls -dL / >/dev
/null
2>&1; then
23881 if test -d "$1"; then
23887 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23888 ???[sx]*):;;*)false;;esac;fi
23892 as_executable_p
=$as_test_x
23894 # Sed expression to map a string onto a valid CPP name.
23895 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23897 # Sed expression to map a string onto a valid variable name.
23898 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23903 # Save the log message, to keep $[0] and so on meaningful, and to
23904 # report actual input values of CONFIG_FILES etc. instead of their
23905 # values after options handling.
23907 This file was extended by emacs $as_me 23.0.50, which was
23908 generated by GNU Autoconf 2.61. Invocation command line was
23910 CONFIG_FILES = $CONFIG_FILES
23911 CONFIG_HEADERS = $CONFIG_HEADERS
23912 CONFIG_LINKS = $CONFIG_LINKS
23913 CONFIG_COMMANDS = $CONFIG_COMMANDS
23916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23921 cat >>$CONFIG_STATUS <<_ACEOF
23922 # Files that config.status was made for.
23923 config_files="$ac_config_files"
23924 config_headers="$ac_config_headers"
23925 config_commands="$ac_config_commands"
23929 cat >>$CONFIG_STATUS <<\_ACEOF
23931 \`$as_me' instantiates files from templates according to the
23932 current configuration.
23934 Usage: $0 [OPTIONS] [FILE]...
23936 -h, --help print this help, then exit
23937 -V, --version print version number and configuration settings, then exit
23938 -q, --quiet do not print progress messages
23939 -d, --debug don't remove temporary files
23940 --recheck update $as_me by reconfiguring in the same conditions
23941 --file=FILE[:TEMPLATE]
23942 instantiate the configuration file FILE
23943 --header=FILE[:TEMPLATE]
23944 instantiate the configuration header FILE
23946 Configuration files:
23949 Configuration headers:
23952 Configuration commands:
23955 Report bugs to <bug-autoconf@gnu.org>."
23958 cat >>$CONFIG_STATUS <<_ACEOF
23960 emacs config.status 23.0.50
23961 configured by $0, generated by GNU Autoconf 2.61,
23962 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23964 Copyright (C) 2006 Free Software Foundation, Inc.
23965 This config.status script is free software; the Free Software Foundation
23966 gives unlimited permission to copy, distribute and modify it."
23973 cat >>$CONFIG_STATUS <<\_ACEOF
23974 # If no file are specified by the user, then we need to provide default
23975 # value. By we need to know if files were specified by the user.
23981 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23982 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23993 # Handling of the options.
23994 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23996 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23997 echo "$ac_cs_version"; exit ;;
23998 --debug |
--debu |
--deb |
--de |
--d |
-d )
24000 --file |
--fil |
--fi |
--f )
24002 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24003 ac_need_defaults
=false
;;
24004 --header |
--heade |
--head |
--hea )
24006 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24007 ac_need_defaults
=false
;;
24009 # Conflict between --help and --header
24010 { echo "$as_me: error: ambiguous option: $1
24011 Try \`$0 --help' for more information." >&2
24012 { (exit 1); exit 1; }; };;
24013 --help |
--hel |
-h )
24014 echo "$ac_cs_usage"; exit ;;
24015 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24016 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24019 # This is an error.
24020 -*) { echo "$as_me: error: unrecognized option: $1
24021 Try \`$0 --help' for more information." >&2
24022 { (exit 1); exit 1; }; } ;;
24024 *) ac_config_targets
="$ac_config_targets $1"
24025 ac_need_defaults
=false
;;
24031 ac_configure_extra_args
=
24033 if $ac_cs_silent; then
24035 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24039 cat >>$CONFIG_STATUS <<_ACEOF
24040 if \$ac_cs_recheck; then
24041 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24042 CONFIG_SHELL=$SHELL
24043 export CONFIG_SHELL
24044 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24048 cat >>$CONFIG_STATUS <<\_ACEOF
24052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24053 ## Running $as_me. ##
24059 cat >>$CONFIG_STATUS <<_ACEOF
24063 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24067 cat >>$CONFIG_STATUS <<\_ACEOF
24069 # Handling of arguments.
24070 for ac_config_target
in $ac_config_targets
24072 case $ac_config_target in
24073 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24074 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24075 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24076 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24077 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24078 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24079 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24080 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24081 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24082 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24083 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24084 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24085 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24089 { (exit 1); exit 1; }; };;
24094 # If the user did not use the arguments to specify the items to instantiate,
24095 # then the envvar interface is used. Set only those that are not.
24096 # We use the long form for the default assignment because of an extremely
24097 # bizarre bug on SunOS 4.1.3.
24098 if $ac_need_defaults; then
24099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24104 # Have a temporary directory for convenience. Make it in the build tree
24105 # simply because there is no reason against having it here, and in addition,
24106 # creating and moving files from /tmp can sometimes cause problems.
24107 # Hook for its removal unless debugging.
24108 # Note that there is a small window in which the directory will not be cleaned:
24109 # after its creation but before its name has been assigned to `$tmp'.
24113 trap 'exit_status=$?
24114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24116 trap '{ (exit 1); exit 1; }' 1 2 13 15
24118 # Create a (secure) tmp directory for tmp files.
24121 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24122 test -n "$tmp" && test -d "$tmp"
24125 tmp
=.
/conf$$
-$RANDOM
24126 (umask 077 && mkdir
"$tmp")
24129 echo "$me: cannot create a temporary directory in ." >&2
24130 { (exit 1); exit 1; }
24134 # Set up the sed scripts for CONFIG_FILES section.
24137 # No need to generate the scripts if there are no CONFIG_FILES.
24138 # This happens for instance when ./config.status config.h
24139 if test -n "$CONFIG_FILES"; then
24146 for ac_last_try
in false false false false false
:; do
24147 cat >conf$
$subs.
sed <<_ACEOF
24148 SHELL!$SHELL$ac_delim
24149 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24150 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24151 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24152 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24153 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24154 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24155 exec_prefix!$exec_prefix$ac_delim
24156 prefix!$prefix$ac_delim
24157 program_transform_name!$program_transform_name$ac_delim
24158 bindir!$bindir$ac_delim
24159 sbindir!$sbindir$ac_delim
24160 libexecdir!$libexecdir$ac_delim
24161 datarootdir!$datarootdir$ac_delim
24162 datadir!$datadir$ac_delim
24163 sysconfdir!$sysconfdir$ac_delim
24164 sharedstatedir!$sharedstatedir$ac_delim
24165 localstatedir!$localstatedir$ac_delim
24166 includedir!$includedir$ac_delim
24167 oldincludedir!$oldincludedir$ac_delim
24168 docdir!$docdir$ac_delim
24169 infodir!$infodir$ac_delim
24170 htmldir!$htmldir$ac_delim
24171 dvidir!$dvidir$ac_delim
24172 pdfdir!$pdfdir$ac_delim
24173 psdir!$psdir$ac_delim
24174 libdir!$libdir$ac_delim
24175 localedir!$localedir$ac_delim
24176 mandir!$mandir$ac_delim
24177 DEFS!$DEFS$ac_delim
24178 ECHO_C!$ECHO_C$ac_delim
24179 ECHO_N!$ECHO_N$ac_delim
24180 ECHO_T!$ECHO_T$ac_delim
24181 LIBS!$LIBS$ac_delim
24182 build_alias!$build_alias$ac_delim
24183 host_alias!$host_alias$ac_delim
24184 target_alias!$target_alias$ac_delim
24185 MAINT!$MAINT$ac_delim
24186 build!$build$ac_delim
24187 build_cpu!$build_cpu$ac_delim
24188 build_vendor!$build_vendor$ac_delim
24189 build_os!$build_os$ac_delim
24190 host!$host$ac_delim
24191 host_cpu!$host_cpu$ac_delim
24192 host_vendor!$host_vendor$ac_delim
24193 host_os!$host_os$ac_delim
24195 CFLAGS!$CFLAGS$ac_delim
24196 LDFLAGS!$LDFLAGS$ac_delim
24197 CPPFLAGS!$CPPFLAGS$ac_delim
24198 ac_ct_CC!$ac_ct_CC$ac_delim
24199 EXEEXT!$EXEEXT$ac_delim
24200 OBJEXT!$OBJEXT$ac_delim
24202 GREP!$GREP$ac_delim
24203 EGREP!$EGREP$ac_delim
24204 LN_S!$LN_S$ac_delim
24205 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24206 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24207 INSTALL_DATA!$INSTALL_DATA$ac_delim
24208 RANLIB!$RANLIB$ac_delim
24209 INSTALL_INFO!$INSTALL_INFO$ac_delim
24210 GZIP_PROG!$GZIP_PROG$ac_delim
24211 MAKEINFO!$MAKEINFO$ac_delim
24212 LIBSOUND!$LIBSOUND$ac_delim
24213 PKG_CONFIG!$PKG_CONFIG$ac_delim
24214 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24215 ALSA_LIBS!$ALSA_LIBS$ac_delim
24216 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24217 SET_MAKE!$SET_MAKE$ac_delim
24218 XMKMF!$XMKMF$ac_delim
24219 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24220 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24221 RSVG_LIBS!$RSVG_LIBS$ac_delim
24222 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24223 GTK_LIBS!$GTK_LIBS$ac_delim
24224 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24225 DBUS_LIBS!$DBUS_LIBS$ac_delim
24226 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24227 XFT_LIBS!$XFT_LIBS$ac_delim
24228 ALLOCA!$ALLOCA$ac_delim
24229 liblockfile!$liblockfile$ac_delim
24230 LIBOBJS!$LIBOBJS$ac_delim
24231 NEED_SETGID!$NEED_SETGID$ac_delim
24232 KMEM_GROUP!$KMEM_GROUP$ac_delim
24233 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24234 GETOPT_H!$GETOPT_H$ac_delim
24235 GETOPTOBJS!$GETOPTOBJS$ac_delim
24236 version!$version$ac_delim
24237 configuration!$configuration$ac_delim
24238 canonical!$canonical$ac_delim
24239 srcdir!$srcdir$ac_delim
24240 lispdir!$lispdir$ac_delim
24241 locallisppath!$locallisppath$ac_delim
24242 lisppath!$lisppath$ac_delim
24243 x_default_search_path!$x_default_search_path$ac_delim
24244 etcdir!$etcdir$ac_delim
24247 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24249 elif $ac_last_try; then
24250 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24251 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24252 { (exit 1); exit 1; }; }
24254 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24258 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24259 if test -n "$ac_eof"; then
24260 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24261 ac_eof
=`expr $ac_eof + 1`
24264 cat >>$CONFIG_STATUS <<_ACEOF
24265 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24270 s/^/s,@/; s/!/@,|#_!!_#|/
24273 s/'"$ac_delim"'$/,g/; t
24275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24276 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24277 rm -f conf$
$subs.
sed
24278 cat >>$CONFIG_STATUS <<_ACEOF
24284 for ac_last_try
in false false false false false
:; do
24285 cat >conf$
$subs.
sed <<_ACEOF
24286 archlibdir!$archlibdir$ac_delim
24287 bitmapdir!$bitmapdir$ac_delim
24288 gamedir!$gamedir$ac_delim
24289 gameuser!$gameuser$ac_delim
24290 c_switch_system!$c_switch_system$ac_delim
24291 c_switch_machine!$c_switch_machine$ac_delim
24292 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24293 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24294 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24295 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24296 machfile!$machfile$ac_delim
24297 opsysfile!$opsysfile$ac_delim
24298 carbon_appdir!$carbon_appdir$ac_delim
24299 LTLIBOBJS!$LTLIBOBJS$ac_delim
24302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24304 elif $ac_last_try; then
24305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24307 { (exit 1); exit 1; }; }
24309 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24313 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24314 if test -n "$ac_eof"; then
24315 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24316 ac_eof
=`expr $ac_eof + 1`
24319 cat >>$CONFIG_STATUS <<_ACEOF
24320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24325 s/^/s,@/; s/!/@,|#_!!_#|/
24328 s/'"$ac_delim"'$/,g/; t
24330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24331 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24332 rm -f conf$
$subs.
sed
24333 cat >>$CONFIG_STATUS <<_ACEOF
24340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24342 # trailing colons and then remove the whole line if VPATH becomes empty
24343 # (actually we leave an empty line to preserve line numbers).
24344 if test "x$srcdir" = x.
; then
24345 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24346 s/:*\$(srcdir):*/:/
24347 s/:*\${srcdir}:*/:/
24349 s/^\([^=]*=[ ]*\):*/\1/
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 fi # test -n "$CONFIG_FILES"
24359 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24362 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24364 case $ac_mode$ac_tag in
24366 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24368 { (exit 1); exit 1; }; };;
24369 :[FH
]-) ac_tag
=-:-;;
24370 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24387 -) ac_f
="$tmp/stdin";;
24388 *) # Look for the file first in the build tree, then in the source tree
24389 # (if the path is not absolute). The absolute path cannot be DOS-style,
24390 # because $ac_f cannot contain `:'.
24394 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24398 { (exit 1); exit 1; }; };;
24400 ac_file_inputs
="$ac_file_inputs $ac_f"
24403 # Let's still pretend it is `configure' which instantiates (i.e., don't
24404 # use $as_me), people would be surprised to read:
24405 # /* config.h. Generated by config.status. */
24406 configure_input
="Generated from "`IFS=:
24407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24408 if test x
"$ac_file" != x-
; then
24409 configure_input
="$ac_file. $configure_input"
24410 { echo "$as_me:$LINENO: creating $ac_file" >&5
24411 echo "$as_me: creating $ac_file" >&6;}
24415 *:-:* |
*:-) cat >"$tmp/stdin";;
24420 ac_dir
=`$as_dirname -- "$ac_file" ||
24421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$ac_file" : 'X\(//\)[^/]' \| \
24423 X"$ac_file" : 'X\(//\)$' \| \
24424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24430 /^X\(\/\/\)[^/].*/{
24445 -*) as_dir
=.
/$as_dir;;
24447 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24451 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24452 *) as_qdir
=$as_dir;;
24454 as_dirs
="'$as_qdir' $as_dirs"
24455 as_dir
=`$as_dirname -- "$as_dir" ||
24456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24457 X"$as_dir" : 'X\(//\)[^/]' \| \
24458 X"$as_dir" : 'X\(//\)$' \| \
24459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24465 /^X\(\/\/\)[^/].*/{
24478 test -d "$as_dir" && break
24480 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24481 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24483 { (exit 1); exit 1; }; }; }
24487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24489 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24490 # A ".." for each directory in $ac_dir_suffix.
24491 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24492 case $ac_top_builddir_sub in
24493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24497 ac_abs_top_builddir
=$ac_pwd
24498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24499 # for backward compatibility:
24500 ac_top_builddir
=$ac_top_build_prefix
24503 .
) # We are building in place.
24505 ac_top_srcdir
=$ac_top_builddir_sub
24506 ac_abs_top_srcdir
=$ac_pwd ;;
24507 [\\/]* | ?
:[\\/]* ) # Absolute name.
24508 ac_srcdir
=$srcdir$ac_dir_suffix;
24509 ac_top_srcdir
=$srcdir
24510 ac_abs_top_srcdir
=$srcdir ;;
24511 *) # Relative name.
24512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24526 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24527 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532 # If the template does not know about datarootdir, expand it.
24533 # FIXME: This hack should be removed a few years after 2.60.
24534 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24536 case `sed -n '/datarootdir/ {
24545 ' $ac_file_inputs` in
24546 *datarootdir
*) ac_datarootdir_seen
=yes;;
24547 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24551 cat >>$CONFIG_STATUS <<_ACEOF
24552 ac_datarootdir_hack='
24553 s&@datadir@&$datadir&g
24554 s&@docdir@&$docdir&g
24555 s&@infodir@&$infodir&g
24556 s&@localedir@&$localedir&g
24557 s&@mandir@&$mandir&g
24558 s&\\\${datarootdir}&$datarootdir&g' ;;
24562 # Neutralize VPATH when `$srcdir' = `.'.
24563 # Shell code in configure.ac might set extrasub.
24564 # FIXME: do we really want to maintain this feature?
24565 cat >>$CONFIG_STATUS <<_ACEOF
24569 cat >>$CONFIG_STATUS <<\_ACEOF
24571 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24572 s
&@configure_input@
&$configure_input&;t t
24573 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24574 s
&@srcdir@
&$ac_srcdir&;t t
24575 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24576 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24577 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24578 s
&@builddir@
&$ac_builddir&;t t
24579 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24580 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24581 s
&@INSTALL@
&$ac_INSTALL&;t t
24582 $ac_datarootdir_hack
24583 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24588 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24589 which seems to be undefined. Please make sure it is defined." >&5
24590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24591 which seems to be undefined. Please make sure it is defined." >&2;}
24595 -) cat "$tmp/out"; rm -f "$tmp/out";;
24596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24605 # Transform confdefs.h into a sed script `conftest.defines', that
24606 # substitutes the proper values into config.h.in to produce config.h.
24607 rm -f conftest.defines conftest.
tail
24608 # First, append a space to every undef/define line, to ease matching.
24609 echo 's/$/ /' >conftest.defines
24610 # Then, protect against being on the right side of a sed subst, or in
24611 # an unquoted here document, in config.status. If some macros were
24612 # called several times there might be several #defines for the same
24613 # symbol, which is useless. But do not sort them, since the last
24614 # AC_DEFINE must be honored.
24615 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24618 # PARAMS is the parameter list in the macro definition--in most cases, it's
24619 # just an empty string.
24620 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24621 ac_dB
='\\)[ (].*,\\1define\\2'
24629 s/^[ ]*#[ ]*define[ ][ ]*//
24634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24636 ' >>conftest.defines
24638 # Remove the space that was appended to ease matching.
24639 # Then replace #undef with comments. This is necessary, for
24640 # example, in the case of _POSIX_SOURCE, which is predefined and required
24641 # on some systems where configure will not decide to define it.
24642 # (The regexp can be short, since the line contains either #define or #undef.)
24644 s,^[ #]*u.*,/* & */,' >>conftest.defines
24646 # Break up conftest.defines:
24647 ac_max_sed_lines
=50
24649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24653 ac_in
='$ac_file_inputs'
24654 ac_out
='"$tmp/out1"'
24655 ac_nxt
='"$tmp/out2"'
24659 # Write a here document:
24660 cat >>$CONFIG_STATUS <<_ACEOF
24661 # First, check the format of the line:
24662 cat >"\$tmp/defines.sed" <<\\CEOF
24663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24668 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24671 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24672 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24673 grep . conftest.
tail >/dev
/null ||
break
24674 rm -f conftest.defines
24675 mv conftest.
tail conftest.defines
24677 rm -f conftest.defines conftest.
tail
24679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24680 cat >>$CONFIG_STATUS <<\_ACEOF
24681 if test x
"$ac_file" != x-
; then
24682 echo "/* $configure_input */" >"$tmp/config.h"
24683 cat "$ac_result" >>"$tmp/config.h"
24684 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24686 echo "$as_me: $ac_file is unchanged" >&6;}
24689 mv "$tmp/config.h" $ac_file
24692 echo "/* $configure_input */"
24698 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24699 echo "$as_me: executing $ac_file commands" >&6;}
24704 case $ac_file$ac_mode in
24707 ### Make the necessary directories, if they don't exist.
24708 for dir
in etc lisp
; do
24709 test -d ${dir} || mkdir
${dir}
24712 # Build src/Makefile from ${srcdir}/src/Makefile.c
24713 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24714 # This must be done after src/config.h is built, since we rely on that file.
24716 # Now get this: Some word that is part of the ${srcdir} directory name
24717 # or the ${configuration} value might, just might, happen to be an
24718 # identifier like `sun4' or `i386' or something, and be predefined by
24719 # the C preprocessor to some helpful value like 1, or maybe the empty
24720 # string. Needless to say consequent macro substitutions are less
24721 # than conducive to the makefile finding the correct directory.
24722 undefs
="`echo $top_srcdir $configuration $canonical |
24723 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24724 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24727 echo creating src
/epaths.h
24728 ${MAKE-make} epaths-force
24730 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24731 # `..' to `. .' unless invoked with -traditional
24733 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24734 CPPFLAGS
="$CPPFLAGS -traditional"
24737 echo creating lib-src
/Makefile
24739 rm -f junk.c junk1.c junk2.c
24740 sed -e '/start of cpp stuff/q' \
24741 < Makefile.c
> junk1.c
24742 sed -e '1,/start of cpp stuff/d'\
24743 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24744 < Makefile.c
> junk.c
24745 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24746 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24747 cat junk1.c junk2.c
> Makefile.new
24748 rm -f junk.c junk1.c junk2.c
24749 chmod 444 Makefile.new
24750 mv -f Makefile.new Makefile
24753 echo creating src
/Makefile
24755 rm -f junk.c junk1.c junk2.c
24756 sed -e '/start of cpp stuff/q' \
24757 < Makefile.c
> junk1.c
24758 sed -e '1,/start of cpp stuff/d'\
24759 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24760 < Makefile.c
> junk.c
24761 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24762 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24763 cat junk1.c junk2.c
> Makefile.new
24764 rm -f junk.c junk1.c junk2.c
24765 chmod 444 Makefile.new
24766 mv -f Makefile.new Makefile
24769 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24770 echo creating src
/.gdbinit
24771 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24774 # This is how we know whether to re-run configure in certain cases.
24775 touch src
/config.stamp
24783 { (exit 0); exit 0; }
24785 chmod +x
$CONFIG_STATUS
24786 ac_clean_files
=$ac_clean_files_save
24789 # configure is writing to config.log, and then calls config.status.
24790 # config.status does its own redirection, appending to config.log.
24791 # Unfortunately, on DOS this fails, as config.log is still kept open
24792 # by configure, so config.status won't be able to write to it; its
24793 # output is simply discarded. So we exec the FD to /dev/null,
24794 # effectively closing config.log, so it can be properly (re)opened and
24795 # appended to by config.status. When coming back to configure, we
24796 # need to make the FD available again.
24797 if test "$no_create" != yes; then
24799 ac_config_status_args
=
24800 test "$silent" = yes &&
24801 ac_config_status_args
="$ac_config_status_args --quiet"
24803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24806 # would make configure fail if this is the last instruction.
24807 $ac_cs_success ||
{ (exit 1); exit 1; }