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 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 --with-xpm use -lXpm for displaying XPM images
1348 --with-jpeg use -ljpeg for displaying JPEG images
1349 --with-tiff use -ltiff for displaying TIFF images
1350 --with-gif use -lgif (or -lungif) for displaying GIF images
1351 --with-png use -lpng for displaying PNG images
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-rsvg use -lrsvg-2 for displaying SVG images
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don
't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don
't use Carbon GUI on Mac OS X
1360 --without-dbus use D-Bus
1361 --with-pkg-config-prog=PATH
1362 Path to pkg-config for finding GTK and librsvg
1363 --with-x use the X Window System
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1374 XMKMF Path to xmkmf, Makefile generator for X Window System
1376 Use these variables to override the choices made by `configure' or to
help
1377 it to
find libraries and programs with nonstandard names
/locations.
1383 if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1386 test -d "$ac_dir" ||
continue
1390 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1392 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1393 # A ".." for each directory in $ac_dir_suffix.
1394 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1397 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1400 ac_abs_top_builddir
=$ac_pwd
1401 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1402 # for backward compatibility:
1403 ac_top_builddir
=$ac_top_build_prefix
1406 .
) # We are building in place.
1408 ac_top_srcdir
=$ac_top_builddir_sub
1409 ac_abs_top_srcdir
=$ac_pwd ;;
1410 [\\/]* | ?
:[\\/]* ) # Absolute name.
1411 ac_srcdir
=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir
=$srcdir
1413 ac_abs_top_srcdir
=$srcdir ;;
1415 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1419 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1421 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1422 # Check for guested configure.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1430 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1436 test -n "$ac_init_help" && exit $ac_status
1437 if $ac_init_version; then
1439 emacs configure
23.0.50
1440 generated by GNU Autoconf
2.61
1442 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1443 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1444 This configure
script is free software
; the Free Software Foundation
1445 gives unlimited permission to copy
, distribute and modify it.
1449 cat >config.log
<<_ACEOF
1450 This file contains any messages produced by compilers while
1451 running configure, to aid debugging if configure makes a mistake.
1453 It was created by emacs $as_me 23.0.50, which was
1454 generated by GNU Autoconf 2.61. Invocation command line was
1466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1489 test -z "$as_dir" && as_dir
=.
1490 echo "PATH: $as_dir"
1506 # Keep a trace of the command line.
1507 # Strip out --no-create and --no-recursion so they do not pile up.
1508 # Strip out --silent because we don't want to record it for future runs.
1509 # Also quote any args containing shell meta-characters.
1510 # Make two passes to allow for proper duplicate-argument suppression.
1514 ac_must_keep_next
=false
1520 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1521 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1522 |
-silent |
--silent |
--silen |
--sile |
--sil)
1525 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1528 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1530 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1531 if test $ac_must_keep_next = true
; then
1532 ac_must_keep_next
=false
# Got value, back to normal.
1535 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1536 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1537 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1538 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1539 case "$ac_configure_args0 " in
1540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1543 -* ) ac_must_keep_next
=true
;;
1546 ac_configure_args
="$ac_configure_args '$ac_arg'"
1551 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1552 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1554 # When interrupted or exit'd, cleanup temporary files, and complete
1555 # config.log. We remove comments because anyway the quotes in there
1556 # would cause problems or look ugly.
1557 # WARNING: Use '\'' to represent an apostrophe within the trap.
1558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1559 trap 'exit_status=$?
1560 # Save into config.log some information that might help in debugging.
1565 ## ---------------- ##
1566 ## Cache variables. ##
1567 ## ---------------- ##
1570 # The following way of writing the cache mishandles newlines in values,
1572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1573 eval ac_val=\$$ac_var
1577 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1578 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1581 _ | IFS | as_nl) ;; #(
1582 *) $as_unset $ac_var ;;
1587 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1588 *${as_nl}ac_space=\ *)
1590 "s/'\''/'\''\\\\'\'''\''/g;
1591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1602 ## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##
1607 for ac_var in $ac_subst_vars
1609 eval ac_val=\$$ac_var
1611 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 echo "$ac_var='\''$ac_val'\''"
1617 if test -n "$ac_subst_files"; then
1619 ## ------------------- ##
1620 ## File substitutions. ##
1621 ## ------------------- ##
1624 for ac_var
in $ac_subst_files
1626 eval ac_val
=\$
$ac_var
1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 echo "$ac_var='\''$ac_val'\''"
1635 if test -s confdefs.h; then
1645 test "$ac_signal" != 0 &&
1646 echo "$as_me: caught signal $ac_signal"
1647 echo "$as_me: exit $exit_status"
1649 rm -f core *.core core.conftest.* &&
1650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1653 for ac_signal
in 1 2 13 15; do
1654 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1659 rm -f -r conftest
* confdefs.h
1661 # Predefined preprocessor variables.
1663 cat >>confdefs.h
<<_ACEOF
1664 #define PACKAGE_NAME "$PACKAGE_NAME"
1668 cat >>confdefs.h
<<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1673 cat >>confdefs.h
<<_ACEOF
1674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1678 cat >>confdefs.h
<<_ACEOF
1679 #define PACKAGE_STRING "$PACKAGE_STRING"
1683 cat >>confdefs.h
<<_ACEOF
1684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1688 # Let the site file select an alternate cache file if it wants to.
1689 # Prefer explicitly selected file to automatically selected ones.
1690 if test -n "$CONFIG_SITE"; then
1691 set x
"$CONFIG_SITE"
1692 elif test "x$prefix" != xNONE
; then
1693 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1695 set x
"$ac_default_prefix/share/config.site" \
1696 "$ac_default_prefix/etc/config.site"
1701 if test -r "$ac_site_file"; then
1702 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1703 echo "$as_me: loading site script $ac_site_file" >&6;}
1704 sed 's/^/| /' "$ac_site_file" >&5
1709 if test -r "$cache_file"; then
1710 # Some versions of bash will fail to source /dev/null (special
1711 # files actually), so we avoid doing that.
1712 if test -f "$cache_file"; then
1713 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1714 echo "$as_me: loading cache $cache_file" >&6;}
1716 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1717 *) .
"./$cache_file";;
1721 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1722 echo "$as_me: creating cache $cache_file" >&6;}
1726 ac_header_list
="$ac_header_list sys/time.h"
1727 ac_header_list
="$ac_header_list unistd.h"
1728 ac_func_list
="$ac_func_list alarm"
1729 # Check that the precious variables saved in the cache have kept the same
1731 ac_cache_corrupted
=false
1732 for ac_var
in $ac_precious_vars; do
1733 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1734 eval ac_new_set
=\
$ac_env_${ac_var}_set
1735 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1736 eval ac_new_val
=\
$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted
=: ;;
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted
=: ;;
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752 echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754 echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted
=:
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1761 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg
=$ac_var=$ac_new_val ;;
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1770 if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1803 ac_cpp
='$CPP $CPPFLAGS'
1804 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1809 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1813 test "$program_prefix" != NONE
&&
1814 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE
&&
1817 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1818 # Double any \ or $. echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF
>conftest.
sed
1821 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1823 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1827 lispdir
='${datadir}/emacs/${version}/lisp'
1828 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1829 '${datadir}/emacs/site-lisp'
1830 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1831 etcdir
='${datadir}/emacs/${version}/etc'
1832 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1833 docdir
='${datadir}/emacs/${version}/etc'
1834 gamedir
='${localstatedir}/games/emacs'
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1850 # Check whether --with-pop was given.
1851 if test "${with_pop+set}" = set; then
1857 if test "$with_pop" = yes; then
1858 cat >>confdefs.h
<<\_ACEOF
1859 #define MAIL_USE_POP 1
1866 # Check whether --with-kerberos was given.
1867 if test "${with_kerberos+set}" = set; then
1868 withval
=$with_kerberos;
1873 if test "$with_kerberos" = yes; then
1874 cat >>confdefs.h
<<\_ACEOF
1882 # Check whether --with-kerberos5 was given.
1883 if test "${with_kerberos5+set}" = set; then
1884 withval
=$with_kerberos5;
1889 if test "${with_kerberos5}" = yes; then
1890 if test "${with_kerberos}" != yes; then
1892 cat >>confdefs.h
<<\_ACEOF
1898 cat >>confdefs.h
<<\_ACEOF
1905 # Check whether --with-hesiod was given.
1906 if test "${with_hesiod+set}" = set; then
1907 withval
=$with_hesiod;
1912 if test "$with_hesiod" = yes; then
1914 cat >>confdefs.h
<<\_ACEOF
1921 # Check whether --with-sound was given.
1922 if test "${with_sound+set}" = set; then
1923 withval
=$with_sound;
1930 # Check whether --with-x-toolkit was given.
1931 if test "${with_x_toolkit+set}" = set; then
1932 withval
=$with_x_toolkit; case "${withval}" in
1933 y | ye |
yes ) val
=gtk
;;
1935 l | lu | luc | luci | lucid
) val
=lucid
;;
1936 a |
at | ath | athe | athen | athena
) val
=athena
;;
1937 m | mo | mot | moti | motif
) val
=motif
;;
1938 g | gt | gtk
) val
=gtk
;;
1940 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1941 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1942 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1943 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1944 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1945 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1946 { (exit 1); exit 1; }; }
1955 # Check whether --with-xpm was given.
1956 if test "${with_xpm+set}" = set; then
1963 # Check whether --with-jpeg was given.
1964 if test "${with_jpeg+set}" = set; then
1971 # Check whether --with-tiff was given.
1972 if test "${with_tiff+set}" = set; then
1979 # Check whether --with-gif was given.
1980 if test "${with_gif+set}" = set; then
1987 # Check whether --with-png was given.
1988 if test "${with_png+set}" = set; then
1995 # Check whether --with-gpm was given.
1996 if test "${with_gpm+set}" = set; then
2003 # Check whether --with-rsvg was given.
2004 if test "${with_rsvg+set}" = set; then
2011 # Check whether --with-gtk was given.
2012 if test "${with_gtk+set}" = set; then
2019 # Check whether --with-toolkit-scroll-bars was given.
2020 if test "${with_toolkit_scroll_bars+set}" = set; then
2021 withval
=$with_toolkit_scroll_bars;
2023 with_toolkit_scroll_bars
=yes
2027 # Check whether --with-xaw3d was given.
2028 if test "${with_xaw3d+set}" = set; then
2029 withval
=$with_xaw3d;
2035 # Check whether --with-xim was given.
2036 if test "${with_xim+set}" = set; then
2043 # Check whether --with-carbon was given.
2044 if test "${with_carbon+set}" = set; then
2045 withval
=$with_carbon;
2051 # Check whether --with-dbus was given.
2052 if test "${with_dbus+set}" = set; then
2060 # Check whether --with-pkg-config-prog was given.
2061 if test "${with_pkg_config_prog+set}" = set; then
2062 withval
=$with_pkg_config_prog;
2065 if test "X${with_pkg_config_prog}" != X
; then
2066 if test "${with_pkg_config_prog}" != yes; then
2067 PKG_CONFIG
="${with_pkg_config_prog}"
2071 # Check whether --enable-carbon-app was given.
2072 if test "${enable_carbon_app+set}" = set; then
2073 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2077 # Check whether --enable-asserts was given.
2078 if test "${enable_asserts+set}" = set; then
2079 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2085 # Check whether --enable-maintainer-mode was given.
2086 if test "${enable_maintainer_mode+set}" = set; then
2087 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2089 USE_MAINTAINER_MODE
=no
2092 if test $USE_MAINTAINER_MODE = yes; then
2099 # Check whether --enable-locallisppath was given.
2100 if test "${enable_locallisppath+set}" = set; then
2101 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2103 elif test "${enableval}" != "yes"; then
2104 locallisppath
=${enableval}
2109 #### Make srcdir absolute, if it isn't already. It's important to
2110 #### avoid running the path through pwd unnecessarily, since pwd can
2111 #### give you automounter prefixes, which can go away. We do all this
2112 #### so Emacs can find its files when run uninstalled.
2113 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2118 ## We may be able to use the $PWD environment variable to make this
2119 ## absolute. But sometimes PWD is inaccurate.
2120 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2121 ## but that tested only for a well-formed and valid PWD,
2122 ## it did not object when PWD was well-formed and valid but just wrong.
2123 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2127 srcdir
="`(cd ${srcdir}; pwd)`"
2130 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2133 #### Check if the source directory already has a configured system in it.
2134 if test `pwd` != `(cd ${srcdir} && pwd)` \
2135 && test -f "${srcdir}/src/config.h" ; then
2136 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2137 as a build directory right now; it has been configured in its own
2138 right. To configure in another directory as well, you MUST
2139 use GNU make. If you do not have GNU make, then you must
2140 now do \`make distclean' in ${srcdir},
2141 and then run $0 again." >&5
2142 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2143 as a build directory right now; it has been configured in its own
2144 right. To configure in another directory as well, you MUST
2145 use GNU make. If you do not have GNU make, then you must
2146 now do \`make distclean' in ${srcdir},
2147 and then run $0 again." >&2;}
2150 #### Given the configuration name, set machfile and opsysfile to the
2151 #### names of the m/*.h and s/*.h files we should use.
2153 ### Canonicalize the configuration name.
2156 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157 if test -f "$ac_dir/install-sh"; then
2159 ac_install_sh
="$ac_aux_dir/install-sh -c"
2161 elif test -f "$ac_dir/install.sh"; then
2163 ac_install_sh
="$ac_aux_dir/install.sh -c"
2165 elif test -f "$ac_dir/shtool"; then
2167 ac_install_sh
="$ac_aux_dir/shtool install -c"
2171 if test -z "$ac_aux_dir"; then
2172 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2173 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2174 { (exit 1); exit 1; }; }
2177 # These three variables are undocumented and unsupported,
2178 # and are intended to be withdrawn in a future Autoconf release.
2179 # They can cause serious problems if a builder's source tree is in a directory
2180 # whose full name contains unusual characters.
2181 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2182 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2183 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186 # Make sure we can run config.sub.
2187 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2188 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2189 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2190 { (exit 1); exit 1; }; }
2192 { echo "$as_me:$LINENO: checking build system type" >&5
2193 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2194 if test "${ac_cv_build+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 ac_build_alias
=$build_alias
2198 test "x$ac_build_alias" = x
&&
2199 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2200 test "x$ac_build_alias" = x
&&
2201 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2202 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2203 { (exit 1); exit 1; }; }
2204 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2205 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2206 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2207 { (exit 1); exit 1; }; }
2210 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2211 echo "${ECHO_T}$ac_cv_build" >&6; }
2212 case $ac_cv_build in
2214 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2215 echo "$as_me: error: invalid value of canonical build" >&2;}
2216 { (exit 1); exit 1; }; };;
2219 ac_save_IFS
=$IFS; IFS
='-'
2225 # Remember, the first character of IFS is used to create $*,
2226 # except with old shells:
2229 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2232 { echo "$as_me:$LINENO: checking host system type" >&5
2233 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2234 if test "${ac_cv_host+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test "x$host_alias" = x
; then
2238 ac_cv_host
=$ac_cv_build
2240 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2241 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2242 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2243 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2248 echo "${ECHO_T}$ac_cv_host" >&6; }
2251 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2252 echo "$as_me: error: invalid value of canonical host" >&2;}
2253 { (exit 1); exit 1; }; };;
2256 ac_save_IFS
=$IFS; IFS
='-'
2262 # Remember, the first character of IFS is used to create $*,
2263 # except with old shells:
2266 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2270 configuration
=${host_alias-${build_alias-$host}}
2274 ### If you add support for a new configuration, add code to this
2275 ### switch statement to recognize your configuration name and select
2276 ### the appropriate operating system and machine description files.
2278 ### You would hope that you could choose an m/*.h file pretty much
2279 ### based on the machine portion of the configuration name, and an s-
2280 ### file based on the operating system portion. However, it turns out
2281 ### that each m/*.h file is pretty manufacturer-specific - for
2282 ### example hp9000s300.h is a 68000 machine;
2283 ### mips.h, pmax.h are all MIPS
2284 ### machines. So we basically have to have a special case for each
2285 ### configuration name.
2287 ### As far as handling version numbers on operating systems is
2288 ### concerned, make sure things will fail in a fixable way. If
2289 ### /etc/MACHINES doesn't say anything about version numbers, be
2290 ### prepared to handle anything reasonably. If version numbers
2291 ### matter, be sure /etc/MACHINES says something about it.
2293 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2294 ### "System V Release 4"; he writes, "The old convention encouraged
2295 ### confusion between `system' and `release' levels'."
2297 machine
='' opsys
='' unported
=no
2298 case "${canonical}" in
2303 case "${canonical}" in
2304 alpha
*-*-freebsd*) machine
=alpha
;;
2305 ia64-
*-freebsd*) machine
=ia64
;;
2306 sparc64-
*-freebsd*) machine
=sparc
;;
2307 powerpc-
*-freebsd*) machine
=macppc
;;
2308 i
[3456]86-*-freebsd*) machine
=intel386
;;
2309 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2313 ## FreeBSD kernel + glibc based userland
2316 case "${canonical}" in
2317 alpha
*-*-kfreebsd*) machine
=alpha
;;
2318 ia64-
*-kfreebsd*) machine
=ia64
;;
2319 sparc64-
*-kfreebsd*) machine
=sparc
;;
2320 powerpc-
*-kfreebsd*) machine
=macppc
;;
2321 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2322 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2329 if test -f /usr
/lib
/crti.o
; then
2331 cat >>confdefs.h
<<\_ACEOF
2337 case "${canonical}" in
2338 alpha
*-*-netbsd*) machine
=alpha
;;
2339 i
[3456]86-*-netbsd*) machine
=intel386
;;
2341 # This is somewhat bogus.
2342 machine
=hp9000s300
;;
2343 mips-
*-netbsd*) machine
=pmax
;;
2344 mipsel-
*-netbsd*) machine
=pmax
;;
2345 mipseb-
*-netbsd*) machine
=pmax
;;
2346 powerpc-
*-netbsd*) machine
=macppc
;;
2347 sparc
*-*-netbsd*) machine
=sparc
;;
2348 vax-
*-netbsd*) machine
=vax
;;
2349 arm-
*-netbsd*) machine
=arm
;;
2350 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2351 hppa-
*-netbsd*) machine
=hp800
;;
2358 case "${canonical}" in
2359 alpha
*-*-openbsd*) machine
=alpha
;;
2360 arm-
*-openbsd*) machine
=arm
;;
2361 hppa-
*-openbsd*) machine
=hp9000s300
;;
2362 i386-
*-openbsd*) machine
=intel386
;;
2363 m68k-
*-openbsd*) machine
=hp9000s300
;;
2364 mips64-
*-openbsd*) machine
=mips64
;;
2365 powerpc-
*-openbsd*) machine
=macppc
;;
2366 sparc
*-*-openbsd*) machine
=sparc
;;
2367 vax-
*-openbsd*) machine
=vax
;;
2368 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2375 case "${canonical}" in
2376 i
[3456]86-*-lynxos*) machine
=intel386
;;
2377 powerpc-
*-lynxos*) machine
=powerpc
;;
2384 case "${canonical}" in
2385 i
[345]86-*-bsdi*) machine
=intel386
;;
2386 sparc-
*-bsdi*) machine
=sparc
;;
2387 powerpc-
*-bsdi*) machine
=macppc
;;
2389 case "${canonical}" in
2390 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2391 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2392 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2393 *-*-bsdi3* ) opsys
=bsdos3
;;
2394 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2398 ## Alpha (DEC) machines.
2400 machine
=alpha opsys
=osf1
2401 # This is needed to find X11R6.1 libraries for certain tests.
2402 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2403 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2404 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2405 # due to non-traditional preprocessing with the current compiler
2406 # defaults. OSF 4 can also have that compiler version, and there
2407 # seems always to have been a usable /usr/bin/cpp.
2408 NON_GNU_CPP
=/usr
/bin
/cpp
2409 case "${canonical}" in
2410 alpha
*-dec-osf[5-9]*)
2415 alpha
*-*-linux-gnu* )
2416 machine
=alpha opsys
=gnu-linux
2420 machine
=arm opsys
=gnu-linux
2423 ## Apple Darwin / Mac OS X
2425 case "${canonical}" in
2426 i
[3456]86-* ) machine
=intel386
;;
2427 powerpc-
* ) machine
=powermac
;;
2431 # Define CPP as follows to make autoconf work correctly.
2432 CPP
="${CC-cc} -E -no-cpp-precomp"
2433 # Use fink packages if available.
2434 if test -d /sw
/include
&& test -d /sw
/lib
; then
2435 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2436 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2437 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2442 mips-compaq-nonstopux
* )
2443 machine
=nonstopux opsys
=nonstopux
2447 i
[3456]86-cubix-sysv* )
2448 machine
=intel386 opsys
=usg5-3
2451 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2452 machine
=pmax opsys
=bsd4-2
2454 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2455 machine
=pmax opsys
=bsd4-3
2458 machine
=pmax opsys
=ultrix4-3
2461 machine
=pmax opsys
=osf1
2463 mips-dec-mach_bsd4.3
* )
2464 machine
=pmax opsys
=mach-bsd4-3
2467 ## HP 9000 series 200 or 300
2469 machine
=hp9000s300 opsys
=bsd4-3
2471 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2473 case "`uname -r`" in
2474 ## Someone's system reports A.B8.05 for this.
2475 ## I wonder what other possibilities there are.
2476 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2477 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2478 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2479 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2480 *) machine
=hp9000s300 opsys
=hpux
;;
2484 ## HP 9000 series 700 and 800, running HP/UX
2486 machine
=hp800 opsys
=hpux
2489 machine
=hp800 opsys
=hpux8
2491 hppa
*-hp-hpux9shr* )
2492 machine
=hp800 opsys
=hpux9shr
2495 machine
=hp800 opsys
=hpux9
2497 hppa
*-hp-hpux10.2
* )
2498 machine
=hp800 opsys
=hpux10-20
2501 machine
=hp800 opsys
=hpux10
2503 hppa
*-hp-hpux1[1-9]* )
2504 machine
=hp800 opsys
=hpux11
2505 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2508 hppa
*-*-linux-gnu* )
2509 machine
=hp800 opsys
=gnu-linux
2512 ## HP 9000 series 700 and 800, running HP/UX
2514 ## Cross-compilation? Nah!
2515 case "`uname -r`" in
2516 ## Someone's system reports A.B8.05 for this.
2517 ## I wonder what other possibilities there are.
2518 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2519 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2520 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2521 *) machine
=hp800 opsys
=hpux10
;;
2525 machine
=hp800 opsys
=nextstep
2530 machine
=ibm370aix opsys
=usg5-3
2533 machine
=ibms390 opsys
=gnu-linux
2535 s390x-
*-linux-gnu* )
2536 machine
=ibms390x opsys
=gnu-linux
2538 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2539 machine
=ibmrs6000 opsys
=aix3-1
2541 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2542 machine
=ibmrs6000 opsys
=aix3-2-5
2544 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2545 machine
=ibmrs6000 opsys
=aix4-1
2547 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2548 machine
=ibmrs6000 opsys
=aix4-2
2550 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2551 machine
=ibmrs6000 opsys
=aix4-2
2553 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2554 machine
=ibmrs6000 opsys
=aix4-2
2556 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2557 machine
=ibmrs6000 opsys
=aix4
2559 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2560 machine
=ibmrs6000 opsys
=aix4-1
2562 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2563 machine
=ibmrs6000 opsys
=aix3-2
2567 i
[3456]86-prime-sysv* )
2568 machine
=i386 opsys
=usg5-3
2571 ## ncr machine running svr4.3.
2572 i
[3456]86-ncr-sysv4.3
)
2573 machine
=ncr386 opsys
=usg5-4-3
2576 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2577 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2578 i
[3456]86-ncr-sysv* )
2579 machine
=ncr386 opsys
=usg5-4-2
2582 ## Macintosh PowerPC
2583 powerpc
*-*-linux-gnu* )
2584 machine
=macppc opsys
=gnu-linux
2587 ## Workstations sold by MIPS
2588 ## This is not necessarily all workstations using the MIPS processor -
2589 ## Irises are produced by SGI, and DECstations by DEC.
2591 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2592 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2593 ## it gives for choosing between the alternatives seems to be "Use
2594 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2595 ## the BSD world." I'll assume that these are instructions for
2596 ## handling two odd situations, and that every other situation
2597 ## should use mips.h and usg5-2-2, they being listed first.
2600 ## Fall through to the general code at the bottom to decide on the OS.
2602 mips-mips-riscos4
* )
2603 machine
=mips4 opsys
=bsd4-3
2604 NON_GNU_CC
="cc -systype bsd43"
2605 NON_GNU_CPP
="cc -systype bsd43 -E"
2607 mips-mips-riscos5
* )
2608 machine
=mips4 opsys
=riscos5
2609 NON_GNU_CC
="cc -systype bsd43"
2610 NON_GNU_CPP
="cc -systype bsd43 -E"
2613 machine
=mips opsys
=bsd4-3
2616 machine
=mips opsys
=usg5-2-2
2620 m68
*-next-* | m68k-
*-nextstep* )
2621 machine
=m68k opsys
=nextstep
2626 machine
=ews4800 opsys
=ux4800
2630 mips-siemens-sysv
* | mips-sni-sysv
*)
2631 machine
=mips-siemens opsys
=usg5-4
2632 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2633 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2636 ## Silicon Graphics machines
2639 machine
=iris4d opsys
=irix6-5
2640 # Without defining _LANGUAGE_C, things get masked out in the headers
2641 # so that, for instance, grepping for `free' in stdlib.h fails and
2642 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2643 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2644 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2647 machine
=iris4d opsys
=irix6-0
2648 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2649 # but presumably it does no harm.
2650 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2651 # -32 probably isn't necessary in later v.6s -- anyone know which?
2652 NON_GCC_TEST_OPTIONS
=-32
2654 mips-sgi-irix5.
[01]* )
2655 machine
=iris4d opsys
=irix5-0
2657 mips-sgi-irix5
* | mips-sgi-irix
* )
2658 machine
=iris4d opsys
=irix5-2
2662 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2663 machine
=sparc opsys
=gnu-linux
2666 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2667 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2668 | rs6000-
*-solaris2*)
2669 case "${canonical}" in
2670 i
[3456]86-*-* ) machine
=intel386
;;
2671 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2672 powerpcle
* ) machine
=powerpcle
;;
2673 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2674 sparc
* ) machine
=sparc
;;
2677 case "${canonical}" in
2678 *-sunos5.3
* |
*-solaris2.3
* )
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 *-sunos5.4
* |
*-solaris2.4
* )
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2687 *-sunos5.5
* |
*-solaris2.5
* )
2689 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2692 *-sunos5.6
* |
*-solaris2.6
* )
2694 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2697 *-sunos5* |
*-solaris* )
2699 emacs_check_sunpro_c
=yes
2700 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* |
*-sunos5* )
2707 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2717 machine
=sparc opsys
=nextstep
2720 ## Tandem Integrity S2
2722 machine
=tandem-s2 opsys
=usg5-3
2728 case "${canonical}" in
2729 *-bsd4.1
* ) opsys
=bsd4-1
;;
2730 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2731 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2732 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2733 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2734 *-vms* ) opsys
=vms
;;
2741 machine
=ia64 opsys
=gnu-linux
2744 ## Intel 386 machines where we don't care about the manufacturer
2747 case "${canonical}" in
2748 *-cygwin ) opsys
=cygwin
;;
2749 *-darwin* ) opsys
=darwin
2750 CPP
="${CC-cc} -E -no-cpp-precomp"
2752 *-xenix* ) opsys
=xenix
;;
2753 *-linux-gnu* ) opsys
=gnu-linux
;;
2754 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2755 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2756 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2757 *-386bsd* ) opsys
=386bsd
;;
2758 *-nextstep* ) opsys
=nextstep
;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2763 ## m68k Linux-based GNU system
2765 machine
=m68k opsys
=gnu-linux
2768 ## Mips Linux-based GNU system
2769 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2770 machine
=mips opsys
=gnu-linux
2774 sparc-fujitsu-sysv4
* )
2775 machine
=sparc opsys
=uxpds
2776 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-
*-linux-gnu* )
2782 machine
=amdx86-64 opsys
=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa-
*-linux-gnu* )
2787 machine
=xtensa opsys
=gnu-linux
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2801 if test x
"${opsys}" = x
; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys
=gnu
;;
2804 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2805 *-bsd4.2
) opsys
=bsd4-2
;;
2806 *-bsd4.3
) opsys
=bsd4-3
;;
2807 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2808 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2809 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2810 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2811 *-sysv4.2uw
* ) opsys
=unixware
;;
2812 *-sysv5uw* ) opsys
=unixware
;;
2813 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2814 *-sysv4.1
* |
*-sysvr4.1
* )
2815 NON_GNU_CPP
=/usr
/lib
/cpp
2817 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2818 if [ x
$NON_GNU_CPP = x
]; then
2819 if [ -f /usr
/ccs
/lib
/cpp
]; then
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2822 NON_GNU_CPP
=/lib
/cpp
2826 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2835 if test $unported = yes; then
2836 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2837 Check \`etc/MACHINES' for recognized configuration names." >&5
2838 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2840 { (exit 1); exit 1; }; }
2843 machfile
="m/${machine}.h"
2844 opsysfile
="s/${opsys}.h"
2847 #### Choose a compiler.
2848 test -n "$CC" && cc_specified
=yes
2850 # Save the value of CFLAGS that the user specified.
2851 SPECIFIED_CFLAGS
="$CFLAGS"
2854 "yes" ) CC
="gcc" GCC
=yes ;;
2855 "no" ) : ${CC=cc} ;;
2859 ac_cpp
='$CPP $CPPFLAGS'
2860 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2865 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC
="$CC" # Let the user override the test.
2874 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2878 test -z "$as_dir" && as_dir
=.
2879 for ac_exec_ext
in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 if test -n "$CC"; then
2893 { echo "$as_me:$LINENO: result: $CC" >&5
2894 echo "${ECHO_T}$CC" >&6; }
2896 { echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6; }
2902 if test -z "$ac_cv_prog_CC"; then
2904 # Extract the first word of "gcc", so it can be a program name with args.
2905 set dummy gcc
; ac_word
=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 if test -n "$ac_ct_CC"; then
2912 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir
=.
2919 for ac_exec_ext
in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CC
="gcc"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2934 echo "${ECHO_T}$ac_ct_CC" >&6; }
2936 { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2940 if test "x$ac_ct_CC" = x
; then
2943 case $cross_compiling:$ac_tool_warned in
2945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&5
2948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet. If you think this
2950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2951 ac_tool_warned
=yes ;;
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC
="$CC" # Let the user override the test.
2971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2975 test -z "$as_dir" && as_dir
=.
2976 for ac_exec_ext
in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2989 if test -n "$CC"; then
2990 { echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6; }
2993 { echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6; }
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc
; ac_word
=$2
3003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC
="$CC" # Let the user override the test.
3012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3016 test -z "$as_dir" && as_dir
=.
3017 for ac_exec_ext
in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected
=yes
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy
$ac_cv_prog_CC
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3040 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3046 if test -n "$CC"; then
3047 { echo "$as_me:$LINENO: result: $CC" >&5
3048 echo "${ECHO_T}$CC" >&6; }
3050 { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog
in cl.exe
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC
="$CC" # Let the user override the test.
3070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3074 test -z "$as_dir" && as_dir
=.
3075 for ac_exec_ext
in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3088 if test -n "$CC"; then
3089 { echo "$as_me:$LINENO: result: $CC" >&5
3090 echo "${ECHO_T}$CC" >&6; }
3092 { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3097 test -n "$CC" && break
3100 if test -z "$CC"; then
3102 for ac_prog
in cl.exe
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy
$ac_prog; ac_word
=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir
=.
3119 for ac_exec_ext
in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_ac_ct_CC
="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134 echo "${ECHO_T}$ac_ct_CC" >&6; }
3136 { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3141 test -n "$ac_ct_CC" && break
3144 if test "x$ac_ct_CC" = x
; then
3147 case $cross_compiling:$ac_tool_warned in
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet. If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned
=yes ;;
3164 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3170 # Provide some information about the compiler.
3171 echo "$as_me:$LINENO: checking for C compiler version" >&5
3172 ac_compiler
=`set X $ac_compile; echo $2`
3173 { (ac_try
="$ac_compiler --version >&5"
3175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compiler --version >&5") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183 { (ac_try="$ac_compiler -v >&5"
3185 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3186 *) ac_try_echo
=$ac_try;;
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compiler -v >&5") 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }
3193 { (ac_try
="$ac_compiler -V >&5"
3195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compiler -V >&5") 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }
3204 cat >conftest.$ac_ext <<_ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3224 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3225 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3226 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3228 # List of possible output files, starting from the most likely.
3229 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3230 # only as a last resort. b.out is created by i960 compilers.
3231 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3233 # The IRIX 6 linker writes into existing files which may not be
3234 # executable, retaining their permissions. Remove them first so a
3235 # subsequent execution test works.
3237 for ac_file in $ac_files
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3246 if { (ac_try="$ac_link_default"
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_link_default") 2>&5
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; then
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3261 for ac_file
in $ac_files ''
3263 test -f "$ac_file" ||
continue
3265 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3268 # We found the default executable, but exeext='' is most
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3274 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3286 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3292 { echo "$as_me:$LINENO: result: $ac_file" >&5
3293 echo "${ECHO_T}$ac_file" >&6; }
3294 if test -z "$ac_file"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.
$ac_ext >&5
3298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&2;}
3302 { (exit 77); exit 77; }; }
3305 ac_exeext
=$ac_cv_exeext
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3310 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3312 # If not cross compiling, check that we can run a simple program.
3313 if test "$cross_compiling" != yes; then
3314 if { ac_try
='./$ac_file'
3315 { (case "(($ac_try" in
3316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3326 if test "$cross_compiling" = maybe; then
3329 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3330 If you meant to cross compile, use \`--host'.
3331 See \`config.log' for more details.
" >&5
3332 echo "$as_me: error
: cannot run C compiled programs.
3333 If you meant to cross compile
, use \
`--host'.
3334 See \`config.log
' for more details." >&2;}
3335 { (exit 1); exit 1; }; }
3339 { echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6; }
3342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 # Check that the compiler produces executables we can run. If not, either
3345 # the compiler is broken, or we cross compile.
3346 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3348 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3349 echo "${ECHO_T}$cross_compiling" >&6; }
3351 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3353 if { (ac_try="$ac_link"
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_link") 2>&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3367 for ac_file
in conftest.exe conftest conftest.
*; do
3368 test -f "$ac_file" ||
continue
3370 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3371 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3377 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details." >&5
3379 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details." >&2;}
3381 { (exit 1); exit 1; }; }
3384 rm -f conftest
$ac_cv_exeext
3385 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3386 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3388 rm -f conftest.
$ac_ext
3389 EXEEXT
=$ac_cv_exeext
3391 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3392 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3393 if test "${ac_cv_objext+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 cat >conftest.
$ac_ext <<_ACEOF
3399 cat confdefs.h
>>conftest.
$ac_ext
3400 cat >>conftest.
$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3411 rm -f conftest.o conftest.obj
3412 if { (ac_try
="$ac_compile"
3414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 for ac_file in conftest.o conftest.obj conftest.*; do
3423 test -f "$ac_file" || continue;
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3435 See \`config.log
' for more details." >&5
3436 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details.
" >&2;}
3438 { (exit 1); exit 1; }; }
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3443 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3444 echo "${ECHO_T}$ac_cv_objext" >&6; }
3445 OBJEXT=$ac_cv_objext
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached
) $ECHO_C" >&6
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_compile") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3483 (exit $ac_status); } && {
3484 test -z "$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 } && test -s conftest.$ac_objext; then
3489 echo "$as_me: failed program was
:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3501 GCC=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3505 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cc_g+set}" = set; then
3507 echo $ECHO_N "(cached
) $ECHO_C" >&6
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3513 cat >conftest.$ac_ext <<_ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3537 grep -v '^ *+' conftest.er1 >conftest.err
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3547 echo "$as_me: failed program was
:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3551 cat >conftest.$ac_ext <<_ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1 >conftest.err
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3585 echo "$as_me: failed program was
:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3590 cat >conftest.$ac_ext <<_ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_compile") 2>conftest.er1
3614 grep -v '^ *+' conftest.er1 >conftest.err
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3618 (exit $ac_status); } && {
3619 test -z "$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 } && test -s conftest.$ac_objext; then
3624 echo "$as_me: failed program was
:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3639 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3650 if test "$GCC" = yes; then
3656 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3657 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659 echo $ECHO_N "(cached
) $ECHO_C" >&6
3661 ac_cv_prog_cc_c89=no
3663 cat >conftest.$ac_ext <<_ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3687 s = g (p, va_arg (v,int));
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3693 function prototypes and stuff, but not '\xHH' hex character constants.
3694 These don't provoke an error unfortunately, instead are silently treated
3695 as 'x'. The following induces an error, until -std is added to get
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3697 array size at least. It's necessary to write '\x00'==0 to get something
3698 that's true only with -std. */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702 inside strings and character constants. */
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3723 CC="$ac_save_CC $ac_arg"
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3733 grep -v '^ *+' conftest.er1 >conftest.err
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3741 ac_cv_prog_cc_c89=$ac_arg
3743 echo "$as_me: failed program was
:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3752 rm -f conftest.$ac_ext
3757 case "x
$ac_cv_prog_cc_c89" in
3759 { echo "$as_me:$LINENO: result
: none needed
" >&5
3760 echo "${ECHO_T}none needed
" >&6; } ;;
3762 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3763 echo "${ECHO_T}unsupported
" >&6; } ;;
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 # On Suns, sometimes $CPP names a directory.
3779 if test -n "$CPP" && test -d "$CPP"; then
3783 ## If not using gcc, and on Solaris, and no CPP specified, see if
3784 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3785 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3786 test x"$CPP" = x; then
3787 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3788 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3790 if test "${emacs_cv_sunpro_c+set}" = set; then
3791 echo $ECHO_N "(cached
) $ECHO_C" >&6
3793 cat >conftest.$ac_ext <<_ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3811 rm -f conftest.$ac_objext conftest$ac_exeext
3812 if { (ac_try="$ac_link"
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_link") 2>conftest.er1
3820 grep -v '^ *+' conftest.er1 >conftest.err
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest$ac_exeext &&
3828 $as_test_x conftest$ac_exeext; then
3829 emacs_cv_sunpro_c=yes
3831 echo "$as_me: failed program was
:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 emacs_cv_sunpro_c=no
3837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3838 conftest$ac_exeext conftest.$ac_ext
3841 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3842 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3844 if test x"$emacs_cv_sunpro_c" = xyes; then
3845 NON_GNU_CPP="$CC -E -Xs"
3849 #### Some systems specify a CPP to use unless we are using GCC.
3850 #### Now that we know whether we are using GCC, we can decide whether
3851 #### to use that one.
3852 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3857 #### Some systems specify a CC to use unless we are using GCC.
3858 #### Now that we know whether we are using GCC, we can decide whether
3859 #### to use that one.
3860 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3861 test x$cc_specified != xyes
3866 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3868 CC="$CC $GCC_TEST_OPTIONS"
3871 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3873 CC="$CC $NON_GCC_TEST_OPTIONS"
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3882 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3883 # On Suns, sometimes $CPP names a directory.
3884 if test -n "$CPP" && test -d "$CPP"; then
3887 if test -z "$CPP"; then
3888 if test "${ac_cv_prog_CPP+set}" = set; then
3889 echo $ECHO_N "(cached
) $ECHO_C" >&6
3891 # Double quotes because CPP needs to be expanded
3892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3895 for ac_c_preproc_warn_flag in '' yes
3897 # Use a header file that comes with gcc, so configuring glibc
3898 # with a fresh cross-compiler works.
3899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900 # <limits.h> exists even on freestanding compilers.
3901 # On the NeXT, cc -E runs the code through the compiler's parser,
3902 # not just through cpp. "Syntax error
" is here to catch this case.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3910 # include <limits.h>
3912 # include <assert.h>
3916 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3928 (exit $ac_status); } >/dev/null && {
3929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3934 echo "$as_me: failed program was
:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 # Broken: fails on valid input.
3941 rm -f conftest.err conftest.$ac_ext
3943 # OK, works on sane cases. Now check whether nonexistent headers
3944 # can be detected and how.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <ac_nonexistent.h>
3953 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3961 grep -v '^ *+' conftest.er1 >conftest.err
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3965 (exit $ac_status); } >/dev/null && {
3966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3969 # Broken: success on invalid input.
3972 echo "$as_me: failed program was
:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 # Passes both tests.
3980 rm -f conftest.err conftest.$ac_ext
3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984 rm -f conftest.err conftest.$ac_ext
3985 if $ac_preproc_ok; then
3997 { echo "$as_me:$LINENO: result
: $CPP" >&5
3998 echo "${ECHO_T}$CPP" >&6; }
4000 for ac_c_preproc_warn_flag in '' yes
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error
" is here to catch this case.
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 # include <limits.h>
4017 # include <assert.h>
4021 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4033 (exit $ac_status); } >/dev/null && {
4034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4039 echo "$as_me: failed program was
:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 # Broken: fails on valid input.
4046 rm -f conftest.err conftest.$ac_ext
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4058 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4070 (exit $ac_status); } >/dev/null && {
4071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4074 # Broken: success on invalid input.
4077 echo "$as_me: failed program was
:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4080 # Passes both tests.
4085 rm -f conftest.err conftest.$ac_ext
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok; then
4093 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4094 See \
`config.log' for more details." >&5
4095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4096 See \`config.log
' for more details." >&2;}
4097 { (exit 1); exit 1; }; }
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4103 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4108 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4109 if test "${ac_cv_path_GREP+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 # Extract the first word of "grep ggrep" to use in msg output
4113 if test -z "$GREP"; then
4114 set dummy grep ggrep; ac_prog_name=$2
4115 if test "${ac_cv_path_GREP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4118 ac_path_GREP_found=false
4119 # Loop through the user's path and
test for each of PROGNAME-LIST
4120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4121 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4124 test -z "$as_dir" && as_dir
=.
4125 for ac_prog
in grep ggrep
; do
4126 for ac_exec_ext
in '' $ac_executable_extensions; do
4127 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130 # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4133 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4136 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 echo 'GREP' >> "conftest.nl"
4143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4144 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4145 ac_count
=`expr $ac_count + 1`
4146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_GREP
="$ac_path_GREP"
4149 ac_path_GREP_max
=$ac_count
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4154 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4158 $ac_path_GREP_found && break 3
4168 GREP
="$ac_cv_path_GREP"
4169 if test -z "$GREP"; then
4170 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4172 { (exit 1); exit 1; }; }
4176 ac_cv_path_GREP
=$GREP
4181 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4182 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4183 GREP
="$ac_cv_path_GREP"
4186 { echo "$as_me:$LINENO: checking for egrep" >&5
4187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4188 if test "${ac_cv_path_EGREP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4191 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4192 then ac_cv_path_EGREP
="$GREP -E"
4194 # Extract the first word of "egrep" to use in msg output
4195 if test -z "$EGREP"; then
4196 set dummy
egrep; ac_prog_name
=$2
4197 if test "${ac_cv_path_EGREP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4200 ac_path_EGREP_found
=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4203 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4206 test -z "$as_dir" && as_dir
=.
4207 for ac_prog
in egrep; do
4208 for ac_exec_ext
in '' $ac_executable_extensions; do
4209 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4211 # Check for GNU ac_path_EGREP and select it if it is found.
4212 # Check for GNU $ac_path_EGREP
4213 case `"$ac_path_EGREP" --version 2>&1` in
4215 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 echo 'EGREP' >> "conftest.nl"
4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4226 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4227 ac_count
=`expr $ac_count + 1`
4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_EGREP
="$ac_path_EGREP"
4231 ac_path_EGREP_max
=$ac_count
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4236 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4240 $ac_path_EGREP_found && break 3
4250 EGREP
="$ac_cv_path_EGREP"
4251 if test -z "$EGREP"; then
4252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254 { (exit 1); exit 1; }; }
4258 ac_cv_path_EGREP
=$EGREP
4264 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4265 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4266 EGREP
="$ac_cv_path_EGREP"
4270 { echo "$as_me:$LINENO: checking for AIX" >&5
4271 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4272 cat >conftest.
$ac_ext <<_ACEOF
4275 cat confdefs.h
>>conftest.
$ac_ext
4276 cat >>conftest.
$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev
/null
2>&1; then
4285 { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287 cat >>confdefs.h
<<\_ACEOF
4288 #define _ALL_SOURCE 1
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4299 cat >>confdefs.h
<<\_ACEOF
4300 #define _GNU_SOURCE 1
4305 ### Use -Wno-pointer-sign if the compiler supports it
4306 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4307 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4308 SAVE_CFLAGS
="$CFLAGS"
4309 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4310 cat >conftest.
$ac_ext <<_ACEOF
4313 cat confdefs.h
>>conftest.
$ac_ext
4314 cat >>conftest.
$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4325 rm -f conftest.
$ac_objext
4326 if { (ac_try
="$ac_compile"
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 if test $has_option = yes; then
4352 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4354 { echo "$as_me:$LINENO: result: $has_option" >&5
4355 echo "${ECHO_T}$has_option" >&6; }
4356 CFLAGS="$SAVE_CFLAGS"
4360 #### Some other nice autoconf tests.
4362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4365 if test "$LN_S" = "ln -s"; then
4366 { echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6; }
4369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4370 echo "${ECHO_T}no, using $LN_S" >&6; }
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4380 # On Suns, sometimes $CPP names a directory.
4381 if test -n "$CPP" && test -d "$CPP"; then
4384 if test -z "$CPP"; then
4385 if test "${ac_cv_prog_CPP+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4388 # Double quotes because CPP needs to be expanded
4389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4392 for ac_c_preproc_warn_flag in '' yes
4394 # Use a header file that comes with gcc, so configuring glibc
4395 # with a fresh cross-compiler works.
4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397 # <limits.h> exists even on freestanding compilers.
4398 # On the NeXT, cc -E runs the code through the compiler's parser,
4399 # not just through cpp. "Syntax error" is here to catch this case.
4400 cat >conftest.$ac_ext <<_ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4407 # include <limits.h>
4409 # include <assert.h>
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4416 *) ac_try_echo
=$ac_try;;
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4421 grep -v '^ *+' conftest.er1
>conftest.err
4423 cat conftest.err
>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev
/null
&& {
4426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.
$ac_ext >&5
4434 # Broken: fails on valid input.
4438 rm -f conftest.err conftest.
$ac_ext
4440 # OK, works on sane cases. Now check whether nonexistent headers
4441 # can be detected and how.
4442 cat >conftest.
$ac_ext <<_ACEOF
4445 cat confdefs.h
>>conftest.
$ac_ext
4446 cat >>conftest.
$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <ac_nonexistent.h>
4450 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4458 grep -v '^ *+' conftest.er1 >conftest.err
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } >/dev/null && {
4463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4466 # Broken: success on invalid input.
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4472 # Passes both tests.
4477 rm -f conftest.err conftest.$ac_ext
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.err conftest.
$ac_ext
4482 if $ac_preproc_ok; then
4494 { echo "$as_me:$LINENO: result: $CPP" >&5
4495 echo "${ECHO_T}$CPP" >&6; }
4497 for ac_c_preproc_warn_flag
in '' yes
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat >conftest.
$ac_ext <<_ACEOF
4508 cat confdefs.h
>>conftest.
$ac_ext
4509 cat >>conftest.
$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4512 # include <limits.h>
4514 # include <assert.h>
4518 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4526 grep -v '^ *+' conftest.er1 >conftest.err
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } >/dev/null && {
4531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4532 test ! -s conftest.err
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4539 # Broken: fails on valid input.
4543 rm -f conftest.err conftest.$ac_ext
4545 # OK, works on sane cases. Now check whether nonexistent headers
4546 # can be detected and how.
4547 cat >conftest.$ac_ext <<_ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 #include <ac_nonexistent.h>
4555 if { (ac_try="$ac_cpp conftest.$ac_ext"
4557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4558 *) ac_try_echo
=$ac_try;;
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4563 grep -v '^ *+' conftest.er1
>conftest.err
4565 cat conftest.err
>&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev
/null
&& {
4568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4571 # Broken: success on invalid input.
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 # Passes both tests.
4582 rm -f conftest.err conftest.
$ac_ext
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.
$ac_ext
4587 if $ac_preproc_ok; then
4590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; }
4598 ac_cpp
='$CPP $CPPFLAGS'
4599 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4603 # Find a good install program. We prefer a C program (faster),
4604 # so one script is as good as another. But avoid the broken or
4605 # incompatible versions:
4606 # SysV /etc/install, /usr/sbin/install
4607 # SunOS /usr/etc/install
4608 # IRIX /sbin/install
4610 # AmigaOS /C/install, which installs bootblocks on floppy discs
4611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4614 # OS/2's system install, which has a completely different semantic
4615 # ./install, which can be erroneously created by make from ./install.sh.
4616 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4617 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4618 if test -z "$INSTALL"; then
4619 if test "${ac_cv_path_install+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4626 test -z "$as_dir" && as_dir
=.
4627 # Account for people who put trailing slashes in PATH elements.
4629 .
/ | .
// |
/cC
/* | \
4630 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4631 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4634 # OSF1 and SCO ODT 3.0 have their own names for install.
4635 # Don't use installbsd from OSF since it installs stuff as root
4637 for ac_prog
in ginstall scoinst
install; do
4638 for ac_exec_ext
in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4640 if test $ac_prog = install &&
4641 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4642 # AIX install. It has an incompatible calling convention.
4644 elif test $ac_prog = install &&
4645 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4646 # program-specific install script used by HP pwplus--don't use.
4649 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4662 if test "${ac_cv_path_install+set}" = set; then
4663 INSTALL
=$ac_cv_path_install
4665 # As a last resort, use the slow shell script. Don't cache a
4666 # value for INSTALL within a source directory, because that will
4667 # break other packages using the cache if that directory is
4668 # removed, or if the value is a relative name.
4669 INSTALL
=$ac_install_sh
4672 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4673 echo "${ECHO_T}$INSTALL" >&6; }
4675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4676 # It thinks the first close brace ends the variable substitution.
4677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4681 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4683 if test "x$RANLIB" = x
; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4686 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_RANLIB+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4692 if test -n "$RANLIB"; then
4693 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4695 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4699 test -z "$as_dir" && as_dir
=.
4700 for ac_exec_ext
in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 RANLIB
=$ac_cv_prog_RANLIB
4713 if test -n "$RANLIB"; then
4714 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4715 echo "${ECHO_T}$RANLIB" >&6; }
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4723 if test -z "$ac_cv_prog_RANLIB"; then
4724 ac_ct_RANLIB
=$RANLIB
4725 # Extract the first word of "ranlib", so it can be a program name with args.
4726 set dummy ranlib
; ac_word
=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 if test -n "$ac_ct_RANLIB"; then
4733 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4735 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4739 test -z "$as_dir" && as_dir
=.
4740 for ac_exec_ext
in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4753 if test -n "$ac_ct_RANLIB"; then
4754 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4755 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4761 if test "x$ac_ct_RANLIB" = x
; then
4764 case $cross_compiling:$ac_tool_warned in
4766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4767 whose name does not start with the host triplet. If you think this
4768 configuration is useful to you, please write to autoconf@gnu.org." >&5
4769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4770 whose name does not start with the host triplet. If you think this
4771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4772 ac_tool_warned
=yes ;;
4774 RANLIB
=$ac_ct_RANLIB
4777 RANLIB
="$ac_cv_prog_RANLIB"
4781 # Extract the first word of "install-info", so it can be a program name with args.
4782 set dummy install-info
; ac_word
=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 case $INSTALL_INFO in
4790 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 test -z "$as_dir" && as_dir
=.
4798 for ac_exec_ext
in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4811 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4812 if test -n "$INSTALL_INFO"; then
4813 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4814 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4821 # Extract the first word of "install-info", so it can be a program name with args.
4822 set dummy install-info
; ac_word
=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4828 case $INSTALL_INFO in
4830 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4834 for as_dir
in /usr
/sbin
4837 test -z "$as_dir" && as_dir
=.
4838 for ac_exec_ext
in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4852 if test -n "$INSTALL_INFO"; then
4853 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4854 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 # Extract the first word of "install-info", so it can be a program name with args.
4862 set dummy install-info
; ac_word
=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 case $INSTALL_INFO in
4870 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4873 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir
=.
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4892 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4893 if test -n "$INSTALL_INFO"; then
4894 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4895 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4902 # Extract the first word of "gzip", so it can be a program name with args.
4903 set dummy
gzip; ac_word
=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir
=.
4919 for ac_exec_ext
in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4933 if test -n "$GZIP_PROG"; then
4934 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4935 echo "${ECHO_T}$GZIP_PROG" >&6; }
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4944 ## Need makeinfo >= 4.6 (?) to build the manuals.
4945 # Extract the first word of "makeinfo", so it can be a program name with args.
4946 set dummy makeinfo
; ac_word
=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4961 test -z "$as_dir" && as_dir
=.
4962 for ac_exec_ext
in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4976 MAKEINFO
=$ac_cv_path_MAKEINFO
4977 if test -n "$MAKEINFO"; then
4978 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4979 echo "${ECHO_T}$MAKEINFO" >&6; }
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4986 if test "$MAKEINFO" != "no" && \
4987 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
4991 if test "$MAKEINFO" = "no"; then
4992 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4993 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4994 { (exit 1); exit 1; }; }
4999 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5001 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5004 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5006 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5010 late_LDFLAGS
=$LDFLAGS
5011 if test "$GCC" = yes; then
5012 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5014 LDFLAGS
="$LDFLAGS -znocombreloc"
5017 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5018 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5019 cat >conftest.
$ac_ext <<_ACEOF
5022 rm -f conftest.
$ac_objext conftest
$ac_exeext
5023 if { (ac_try
="$ac_link"
5025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest$ac_exeext &&
5039 $as_test_x conftest$ac_exeext; then
5040 { echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6; }
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 LDFLAGS=$late_LDFLAGS
5047 { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5052 conftest$ac_exeext conftest.$ac_ext
5054 #### Extract some information from the operating system and machine files.
5056 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5057 - which libraries the lib-src programs will want, and
5058 - whether the GNU malloc routines are usable..." >&5
5059 echo "$as_me: checking the machine- and system-dependent files to find out
5060 - which libraries the lib-src programs will want, and
5061 - whether the GNU malloc routines are usable..." >&6;}
5063 ### First figure out CFLAGS (which we use for running the compiler here)
5064 ### and REAL_CFLAGS (which we use for real compilation).
5065 ### The two are the same except on a few systems, where they are made
5066 ### different to work around various lossages. For example,
5067 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5068 ### as implying static linking.
5070 ### If the CFLAGS env var is specified, we use that value
5071 ### instead of the default.
5073 ### It's not important that this name contain the PID; you can't run
5074 ### two configures in the same directory and have anything work
5076 tempcname="conftest.c"
5079 #include "'${srcdir}'/src/'${opsysfile}'"
5080 #include "'${srcdir}'/src/'${machfile}'"
5081 #ifndef LIBS_MACHINE
5082 #define LIBS_MACHINE
5087 #ifndef C_SWITCH_SYSTEM
5088 #define C_SWITCH_SYSTEM
5090 #ifndef C_SWITCH_MACHINE
5091 #define C_SWITCH_MACHINE
5093 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5094 configure___ c_switch_system=C_SWITCH_SYSTEM
5095 configure___ c_switch_machine=C_SWITCH_MACHINE
5098 #define LIB_X11_LIB -lX11
5101 #ifndef LIBX11_MACHINE
5102 #define LIBX11_MACHINE
5105 #ifndef LIBX11_SYSTEM
5106 #define LIBX11_SYSTEM
5108 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5111 configure___ unexec=UNEXEC
5113 configure___ unexec=unexec.o
5116 #ifdef SYSTEM_MALLOC
5117 configure___ system_malloc=yes
5119 configure___ system_malloc=no
5122 #ifdef USE_MMAP_FOR_BUFFERS
5123 configure___ use_mmap_for_buffers=yes
5125 configure___ use_mmap_for_buffers=no
5128 #ifndef C_DEBUG_SWITCH
5129 #define C_DEBUG_SWITCH -g
5132 #ifndef C_OPTIMIZE_SWITCH
5134 #define C_OPTIMIZE_SWITCH -O2
5136 #define C_OPTIMIZE_SWITCH -O
5140 #ifndef C_WARNINGS_SWITCH
5141 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5144 #ifndef LD_SWITCH_MACHINE
5145 #define LD_SWITCH_MACHINE
5148 #ifndef LD_SWITCH_SYSTEM
5149 #define LD_SWITCH_SYSTEM
5152 #ifndef LD_SWITCH_X_SITE_AUX
5153 #define LD_SWITCH_X_SITE_AUX
5156 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5157 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5159 #ifdef THIS_IS_CONFIGURE
5161 /* Get the CFLAGS for tests in configure. */
5163 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5165 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5168 #else /* not THIS_IS_CONFIGURE */
5170 /* Get the CFLAGS for real compilation. */
5172 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5174 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5177 #endif /* not THIS_IS_CONFIGURE */
5180 # The value of CPP is a quoted variable reference, so we need to do this
5181 # to get its actual value...
5182 CPP=`eval "echo $CPP"`
5183 eval `${CPP} -Isrc ${tempcname} \
5184 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5185 if test "x$SPECIFIED_CFLAGS" = x; then
5186 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5187 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5189 REAL_CFLAGS="$CFLAGS"
5193 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5195 ### Make sure subsequent tests use flags consistent with the build flags.
5197 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5198 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5200 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5205 # Check whether --enable-largefile was given.
5206 if test "${enable_largefile+set}" = set; then
5207 enableval=$enable_largefile;
5210 if test "$enable_largefile" != no; then
5212 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5213 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5214 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5217 ac_cv_sys_largefile_CC=no
5218 if test "$GCC" != yes; then
5221 # IRIX 6.2 and later do not support large files by default,
5222 # so use the C compiler's -n32 option if that helps.
5223 cat >conftest.$ac_ext <<_ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #include <sys/types.h>
5230 /* Check that off_t can represent 2**63 - 1 correctly.
5231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5232 since some C++ compilers masquerading as C compilers
5233 incorrectly reject 9223372036854775807. */
5234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5236 && LARGE_OFF_T % 2147483647 == 1)
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5250 *) ac_try_echo
=$ac_try;;
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5255 grep -v '^ *+' conftest.er1
>conftest.err
5257 cat conftest.err
>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.
$ac_objext; then
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.
$ac_ext >&5
5271 rm -f core conftest.err conftest.
$ac_objext
5273 rm -f conftest.
$ac_objext
5274 if { (ac_try
="$ac_compile"
5276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5282 grep -v '^ *+' conftest.er1 >conftest.err
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_cv_sys_largefile_CC=' -n32'; break
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5298 rm -f core conftest.err conftest.$ac_objext
5302 rm -f conftest.$ac_ext
5305 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5306 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5307 if test "$ac_cv_sys_largefile_CC" != no; then
5308 CC=$CC$ac_cv_sys_largefile_CC
5311 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5312 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5313 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 cat >conftest.$ac_ext <<_ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5344 *) ac_try_echo
=$ac_try;;
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5349 grep -v '^ *+' conftest.er1
>conftest.err
5351 cat conftest.err
>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && {
5354 test -z "$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5356 } && test -s conftest.
$ac_objext; then
5357 ac_cv_sys_file_offset_bits
=no
; break
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.
$ac_ext >&5
5365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5366 cat >conftest.
$ac_ext <<_ACEOF
5369 cat confdefs.h
>>conftest.
$ac_ext
5370 cat >>conftest.
$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #define _FILE_OFFSET_BITS 64
5373 #include <sys/types.h>
5374 /* Check that off_t can represent 2**63 - 1 correctly.
5375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5376 since some C++ compilers masquerading as C compilers
5377 incorrectly reject 9223372036854775807. */
5378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5380 && LARGE_OFF_T % 2147483647 == 1)
5390 rm -f conftest.
$ac_objext
5391 if { (ac_try
="$ac_compile"
5393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_compile") 2>conftest.er1
5399 grep -v '^ *+' conftest.er1 >conftest.err
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest.$ac_objext; then
5407 ac_cv_sys_file_offset_bits=64; break
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 ac_cv_sys_file_offset_bits=unknown
5420 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5421 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5422 case $ac_cv_sys_file_offset_bits in #(
5425 cat >>confdefs.h <<_ACEOF
5426 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5431 if test $ac_cv_sys_file_offset_bits = unknown; then
5432 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5433 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5434 if test "${ac_cv_sys_large_files+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 cat >conftest.$ac_ext <<_ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <sys/types.h>
5445 /* Check that off_t can represent 2**63 - 1 correctly.
5446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5447 since some C++ compilers masquerading as C compilers
5448 incorrectly reject 9223372036854775807. */
5449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5451 && LARGE_OFF_T % 2147483647 == 1)
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5465 *) ac_try_echo
=$ac_try;;
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5470 grep -v '^ *+' conftest.er1
>conftest.err
5472 cat conftest.err
>&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.
$ac_objext; then
5478 ac_cv_sys_large_files
=no
; break
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.
$ac_ext >&5
5486 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5487 cat >conftest.
$ac_ext <<_ACEOF
5490 cat confdefs.h
>>conftest.
$ac_ext
5491 cat >>conftest.
$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #define _LARGE_FILES 1
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5511 rm -f conftest.
$ac_objext
5512 if { (ac_try
="$ac_compile"
5514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5520 grep -v '^ *+' conftest.er1 >conftest.err
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 ac_cv_sys_large_files=1; break
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_cv_sys_large_files=unknown
5541 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5542 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5543 case $ac_cv_sys_large_files in #(
5546 cat >>confdefs.h <<_ACEOF
5547 #define _LARGE_FILES $ac_cv_sys_large_files
5557 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5558 ### be located in either /usr/lib64 or /usr/lib.
5559 case "${canonical}" in
5560 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5561 if test -d /usr/lib64; then
5563 cat >>confdefs.h <<\_ACEOF
5564 #define HAVE_LIB64_DIR 1
5573 if test "${with_sound}" != "no"; then
5574 # Sound support for GNU/Linux and the free BSDs.
5575 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5577 if test "${ac_cv_header_stdc+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 cat >conftest.$ac_ext <<_ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5603 *) ac_try_echo
=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1
>conftest.err
5610 cat conftest.err
>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.
$ac_objext; then
5616 ac_cv_header_stdc
=yes
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5621 ac_cv_header_stdc
=no
5624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5626 if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat >conftest.
$ac_ext <<_ACEOF
5631 cat confdefs.h
>>conftest.
$ac_ext
5632 cat >>conftest.
$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev
/null
2>&1; then
5641 ac_cv_header_stdc
=no
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 cat confdefs.h
>>conftest.
$ac_ext
5653 cat >>conftest.
$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "free" >/dev
/null
2>&1; then
5662 ac_cv_header_stdc
=no
5668 if test $ac_cv_header_stdc = yes; then
5669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5670 if test "$cross_compiling" = yes; then
5673 cat >conftest.
$ac_ext <<_ACEOF
5676 cat confdefs.h
>>conftest.
$ac_ext
5677 cat >>conftest.
$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5681 #if ((' ' & 0x0FF) == 0x020)
5682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5685 # define ISLOWER(c) \
5686 (('a' <= (c) && (c) <= 'i') \
5687 || ('j' <= (c) && (c) <= 'r') \
5688 || ('s' <= (c) && (c) <= 'z'))
5689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5697 for (i = 0; i < 256; i++)
5698 if (XOR (islower (i), ISLOWER (i))
5699 || toupper (i) != TOUPPER (i))
5704 rm -f conftest
$ac_exeext
5705 if { (ac_try
="$ac_link"
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_link") 2>&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5717 *) ac_try_echo
=$ac_try;;
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5726 echo "$as_me: program exited with status $ac_status" >&5
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.
$ac_ext >&5
5731 ac_cv_header_stdc
=no
5733 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5739 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5740 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5741 if test $ac_cv_header_stdc = yes; then
5743 cat >>confdefs.h
<<\_ACEOF
5744 #define STDC_HEADERS 1
5749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5759 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5760 inttypes.h stdint.h unistd.h
5762 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 cat >conftest.
$ac_ext <<_ACEOF
5771 cat confdefs.h
>>conftest.
$ac_ext
5772 cat >>conftest.
$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5776 #include <$ac_header>
5778 rm -f conftest.
$ac_objext
5779 if { (ac_try
="$ac_compile"
5781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5787 grep -v '^ *+' conftest.er1 >conftest.err
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.$ac_objext; then
5795 eval "$as_ac_Header=yes"
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5800 eval "$as_ac_Header=no"
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5805 ac_res=`eval echo '${'$as_ac_Header'}'`
5806 { echo "$as_me:$LINENO: result: $ac_res" >&5
5807 echo "${ECHO_T}$ac_res" >&6; }
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h <<_ACEOF
5810 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5821 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5823 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5830 ac_res=`eval echo '${'$as_ac_Header'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5834 # Is the header compilable?
5835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5837 cat >conftest.$ac_ext <<_ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5844 #include <$ac_header>
5846 rm -f conftest.$ac_objext
5847 if { (ac_try="$ac_compile"
5849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5850 *) ac_try_echo
=$ac_try;;
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1
>conftest.err
5857 cat conftest.err
>&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest.
$ac_objext; then
5863 ac_header_compiler
=yes
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5868 ac_header_compiler
=no
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5873 echo "${ECHO_T}$ac_header_compiler" >&6; }
5875 # Is the header present?
5876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <$ac_header>
5886 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } >/dev/null && {
5899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5902 ac_header_preproc=yes
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 ac_header_preproc=no
5910 rm -f conftest.err conftest.$ac_ext
5911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912 echo "${ECHO_T}$ac_header_preproc" >&6; }
5914 # So? What about this header?
5915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5921 ac_header_preproc=yes
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 eval "$as_ac_Header=\$ac_header_preproc"
5946 ac_res=`eval echo '${'$as_ac_Header'}'`
5947 { echo "$as_me:$LINENO: result: $ac_res" >&5
5948 echo "${ECHO_T}$ac_res" >&6; }
5951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5960 # Emulation library used on NetBSD.
5961 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5962 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5963 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 ac_check_lib_save_LIBS=$LIBS
5967 LIBS="-lossaudio $LIBS"
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5985 return _oss_ioctl ();
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5994 *) ac_try_echo
=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest
$ac_exeext &&
6007 $as_test_x conftest
$ac_exeext; then
6008 ac_cv_lib_ossaudio__oss_ioctl
=yes
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.
$ac_ext >&5
6013 ac_cv_lib_ossaudio__oss_ioctl
=no
6016 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6017 conftest
$ac_exeext conftest.
$ac_ext
6018 LIBS
=$ac_check_lib_save_LIBS
6020 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6021 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6022 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6031 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6035 # Extract the first word of "pkg-config", so it can be a program name with args.
6036 set dummy pkg-config
; ac_word
=$2
6037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6051 test -z "$as_dir" && as_dir
=.
6052 for ac_exec_ext
in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6062 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6066 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6067 if test -n "$PKG_CONFIG"; then
6068 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6069 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6077 if test "$PKG_CONFIG" = "no" ; then
6080 PKG_CONFIG_MIN_VERSION
=0.9.0
6081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6082 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6083 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6085 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6086 { echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6; }
6090 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6091 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6092 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6093 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6094 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6096 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6097 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6098 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6099 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6100 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6106 ## If we have a custom action on failure, don't print errors, but
6107 ## do set a variable so people can do so.
6108 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6120 if test $succeeded = yes; then
6126 if test $HAVE_ALSA = yes; then
6127 SAVE_CFLAGS
="$CFLAGS"
6128 SAVE_LDFLAGS
="$LDFLAGS"
6129 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6130 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6131 cat >conftest.
$ac_ext <<_ACEOF
6134 cat confdefs.h
>>conftest.
$ac_ext
6135 cat >>conftest.
$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <asoundlib.h>
6141 snd_lib_error_set_handler (0);
6146 rm -f conftest.
$ac_objext
6147 if { (ac_try
="$ac_compile"
6149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6155 grep -v '^ *+' conftest.er1 >conftest.err
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 emacs_alsa_normal=yes
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6168 emacs_alsa_normal=no
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test "$emacs_alsa_normal" != yes; then
6173 cat >conftest.$ac_ext <<_ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <alsa/asoundlib.h>
6183 snd_lib_error_set_handler (0);
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6192 *) ac_try_echo
=$ac_try;;
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6197 grep -v '^ *+' conftest.er1
>conftest.err
6199 cat conftest.err
>&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.
$ac_objext; then
6205 emacs_alsa_subdir
=yes
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.
$ac_ext >&5
6210 emacs_alsa_subdir
=no
6213 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6214 if test "$emacs_alsa_subdir" != yes; then
6215 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6216 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6217 { (exit 1); exit 1; }; }
6219 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6222 CFLAGS
="$SAVE_CFLAGS"
6223 LDFLAGS
="$SAVE_LDFLAGS"
6224 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6225 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6227 cat >>confdefs.h
<<\_ACEOF
6260 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6261 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6262 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6263 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6266 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6270 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 ac_res
=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6277 # Is the header compilable?
6278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6280 cat >conftest.
$ac_ext <<_ACEOF
6283 cat confdefs.h
>>conftest.
$ac_ext
6284 cat >>conftest.
$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 $ac_includes_default
6287 #include <$ac_header>
6289 rm -f conftest.
$ac_objext
6290 if { (ac_try
="$ac_compile"
6292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6298 grep -v '^ *+' conftest.er1 >conftest.err
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_header_compiler=yes
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6311 ac_header_compiler=no
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316 echo "${ECHO_T}$ac_header_compiler" >&6; }
6318 # Is the header present?
6319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6321 cat >conftest.$ac_ext <<_ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <$ac_header>
6329 if { (ac_try="$ac_cpp conftest.$ac_ext"
6331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6332 *) ac_try_echo
=$ac_try;;
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6337 grep -v '^ *+' conftest.er1
>conftest.err
6339 cat conftest.err
>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev
/null
&& {
6342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6345 ac_header_preproc
=yes
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.
$ac_ext >&5
6350 ac_header_preproc
=no
6353 rm -f conftest.err conftest.
$ac_ext
6354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355 echo "${ECHO_T}$ac_header_preproc" >&6; }
6357 # So? What about this header?
6358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364 ac_header_preproc
=yes
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6384 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6387 eval "$as_ac_Header=\$ac_header_preproc"
6389 ac_res
=`eval echo '${'$as_ac_Header'}'`
6390 { echo "$as_me:$LINENO: result: $ac_res" >&5
6391 echo "${ECHO_T}$ac_res" >&6; }
6394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6395 cat >>confdefs.h
<<_ACEOF
6396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6404 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6405 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6406 cat >conftest.
$ac_ext <<_ACEOF
6409 cat confdefs.h
>>conftest.
$ac_ext
6410 cat >>conftest.
$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <sys/personality.h>
6416 personality (PER_LINUX32)
6421 rm -f conftest.
$ac_objext
6422 if { (ac_try
="$ac_compile"
6424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6430 grep -v '^ *+' conftest.er1 >conftest.err
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438 emacs_cv_personality_linux32=yes
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6443 emacs_cv_personality_linux32=no
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6448 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6450 if test $emacs_cv_personality_linux32 = yes; then
6452 cat >>confdefs.h <<\_ACEOF
6453 #define HAVE_PERSONALITY_LINUX32 1
6459 for ac_header in term.h
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <$ac_header>
6475 if { (ac_try="$ac_cpp conftest.$ac_ext"
6477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6478 *) ac_try_echo
=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } >/dev
/null
&& {
6488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6491 eval "$as_ac_Header=yes"
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 eval "$as_ac_Header=no"
6499 rm -f conftest.err conftest.
$ac_ext
6501 ac_res
=`eval echo '${'$as_ac_Header'}'`
6502 { echo "$as_me:$LINENO: result: $ac_res" >&5
6503 echo "${ECHO_T}$ac_res" >&6; }
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h
<<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6513 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6515 if test "${ac_cv_header_stdc+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6518 cat >conftest.
$ac_ext <<_ACEOF
6521 cat confdefs.h
>>conftest.
$ac_ext
6522 cat >>conftest.
$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6537 rm -f conftest.
$ac_objext
6538 if { (ac_try
="$ac_compile"
6540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6546 grep -v '^ *+' conftest.er1 >conftest.err
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_cv_header_stdc=yes
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6559 ac_cv_header_stdc=no
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 if test $ac_cv_header_stdc = yes; then
6565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6566 cat >conftest.$ac_ext <<_ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576 $EGREP "memchr" >/dev/null 2>&1; then
6579 ac_cv_header_stdc=no
6585 if test $ac_cv_header_stdc = yes; then
6586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6587 cat >conftest.$ac_ext <<_ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6597 $EGREP "free" >/dev/null 2>&1; then
6600 ac_cv_header_stdc=no
6606 if test $ac_cv_header_stdc = yes; then
6607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6608 if test "$cross_compiling" = yes; then
6611 cat >conftest.$ac_ext <<_ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6619 #if ((' ' & 0x0FF) == 0x020)
6620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6623 # define ISLOWER(c) \
6624 (('a' <= (c) && (c) <= 'i') \
6625 || ('j' <= (c) && (c) <= 'r') \
6626 || ('s' <= (c) && (c) <= 'z'))
6627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6635 for (i = 0; i < 256; i++)
6636 if (XOR (islower (i), ISLOWER (i))
6637 || toupper (i) != TOUPPER (i))
6642 rm -f conftest$ac_exeext
6643 if { (ac_try="$ac_link"
6645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6646 *) ac_try_echo
=$ac_try;;
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_link") 2>&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6653 { (case "(($ac_try" in
6654 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6664 echo "$as_me: program exited with status $ac_status" >&5
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6669 ac_cv_header_stdc=no
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6677 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6678 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6679 if test $ac_cv_header_stdc = yes; then
6681 cat >>confdefs.h <<\_ACEOF
6682 #define STDC_HEADERS 1
6687 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6688 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6689 if test "${ac_cv_header_time+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 cat >conftest.$ac_ext <<_ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <sys/time.h>
6705 if ((struct tm *) 0)
6711 rm -f conftest.$ac_objext
6712 if { (ac_try="$ac_compile"
6714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6715 *) ac_try_echo
=$ac_try;;
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6720 grep -v '^ *+' conftest.er1
>conftest.err
6722 cat conftest.err
>&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.
$ac_objext; then
6728 ac_cv_header_time
=yes
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.
$ac_ext >&5
6733 ac_cv_header_time
=no
6736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6740 if test $ac_cv_header_time = yes; then
6742 cat >>confdefs.h
<<\_ACEOF
6743 #define TIME_WITH_SYS_TIME 1
6748 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6749 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6750 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.
$ac_ext <<_ACEOF
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6771 rm -f conftest.
$ac_objext
6772 if { (ac_try
="$ac_compile"
6774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6780 grep -v '^ *+' conftest.er1 >conftest.err
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 ac_cv_have_decl_sys_siglist=yes
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6793 ac_cv_have_decl_sys_siglist=no
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6799 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6800 if test $ac_cv_have_decl_sys_siglist = yes; then
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_DECL_SYS_SIGLIST 1
6808 cat >>confdefs.h <<_ACEOF
6809 #define HAVE_DECL_SYS_SIGLIST 0
6816 if test $ac_cv_have_decl_sys_siglist != yes; then
6817 # For Tru64, at least:
6818 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6819 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6820 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6833 #ifndef __sys_siglist
6834 (void) __sys_siglist;
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6845 *) ac_try_echo
=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6850 grep -v '^ *+' conftest.er1
>conftest.err
6852 cat conftest.err
>&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.
$ac_objext; then
6858 ac_cv_have_decl___sys_siglist
=yes
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.
$ac_ext >&5
6863 ac_cv_have_decl___sys_siglist
=no
6866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6869 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6870 if test $ac_cv_have_decl___sys_siglist = yes; then
6872 cat >>confdefs.h
<<_ACEOF
6873 #define HAVE_DECL___SYS_SIGLIST 1
6878 cat >>confdefs.h
<<_ACEOF
6879 #define HAVE_DECL___SYS_SIGLIST 0
6886 if test $ac_cv_have_decl___sys_siglist = yes; then
6888 cat >>confdefs.h
<<\_ACEOF
6889 #define sys_siglist __sys_siglist
6894 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 cat >conftest.
$ac_ext <<_ACEOF
6902 cat confdefs.h
>>conftest.
$ac_ext
6903 cat >>conftest.
$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 #include <sys/wait.h>
6908 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6911 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6919 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6924 rm -f conftest.
$ac_objext
6925 if { (ac_try
="$ac_compile"
6927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_compile") 2>conftest.er1
6933 grep -v '^ *+' conftest.er1 >conftest.err
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && {
6938 test -z "$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 } && test -s conftest.$ac_objext; then
6941 ac_cv_header_sys_wait_h=yes
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 ac_cv_header_sys_wait_h=no
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6952 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6953 if test $ac_cv_header_sys_wait_h = yes; then
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_SYS_WAIT_H 1
6962 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6963 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6964 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 #ifdef TIME_WITH_SYS_TIME
6974 #include <sys/time.h>
6977 #ifdef HAVE_SYS_TIME_H
6978 #include <sys/time.h>
6989 static struct utimbuf x; x.actime = x.modtime;
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6998 *) ac_try_echo
=$ac_try;;
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7003 grep -v '^ *+' conftest.er1
>conftest.err
7005 cat conftest.err
>&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.
$ac_objext; then
7011 emacs_cv_struct_utimbuf
=yes
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.
$ac_ext >&5
7016 emacs_cv_struct_utimbuf
=no
7019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7021 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7022 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7023 if test $emacs_cv_struct_utimbuf = yes; then
7025 cat >>confdefs.h
<<\_ACEOF
7026 #define HAVE_STRUCT_UTIMBUF 1
7031 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7032 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7033 if test "${ac_cv_type_signal+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.
$ac_ext <<_ACEOF
7039 cat confdefs.h
>>conftest.
$ac_ext
7040 cat >>conftest.
$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7048 return *(signal (0, 0)) (0) == 1;
7053 rm -f conftest.
$ac_objext
7054 if { (ac_try
="$ac_compile"
7056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_compile") 2>conftest.er1
7062 grep -v '^ *+' conftest.er1 >conftest.err
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 } && test -s conftest.$ac_objext; then
7070 ac_cv_type_signal=int
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7075 ac_cv_type_signal=void
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7081 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7083 cat >>confdefs.h <<_ACEOF
7084 #define RETSIGTYPE $ac_cv_type_signal
7089 { echo "$as_me:$LINENO: checking for speed_t" >&5
7090 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7091 if test "${emacs_cv_speed_t+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 cat >conftest.$ac_ext <<_ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <termios.h>
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7113 *) ac_try_echo
=$ac_try;;
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7118 grep -v '^ *+' conftest.er1
>conftest.err
7120 cat conftest.err
>&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.
$ac_objext; then
7126 emacs_cv_speed_t
=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.
$ac_ext >&5
7134 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7136 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7137 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7138 if test $emacs_cv_speed_t = yes; then
7140 cat >>confdefs.h
<<\_ACEOF
7141 #define HAVE_SPEED_T 1
7146 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7147 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7148 if test "${emacs_cv_struct_timeval+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7151 cat >conftest.
$ac_ext <<_ACEOF
7154 cat confdefs.h
>>conftest.
$ac_ext
7155 cat >>conftest.
$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #ifdef TIME_WITH_SYS_TIME
7158 #include <sys/time.h>
7161 #ifdef HAVE_SYS_TIME_H
7162 #include <sys/time.h>
7170 static struct timeval x; x.tv_sec = x.tv_usec;
7175 rm -f conftest.
$ac_objext
7176 if { (ac_try
="$ac_compile"
7178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_compile") 2>conftest.er1
7184 grep -v '^ *+' conftest.er1 >conftest.err
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_c_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest.$ac_objext; then
7192 emacs_cv_struct_timeval=yes
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7197 emacs_cv_struct_timeval=no
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7203 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7204 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7205 if test $emacs_cv_struct_timeval = yes; then
7207 cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_TIMEVAL 1
7213 { echo "$as_me:$LINENO: checking for struct exception" >&5
7214 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7215 if test "${emacs_cv_struct_exception+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7218 cat >conftest.$ac_ext <<_ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7228 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7237 *) ac_try_echo
=$ac_try;;
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7242 grep -v '^ *+' conftest.er1
>conftest.err
7244 cat conftest.err
>&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.
$ac_objext; then
7250 emacs_cv_struct_exception
=yes
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.
$ac_ext >&5
7255 emacs_cv_struct_exception
=no
7258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7260 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7261 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7262 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7263 if test $emacs_cv_struct_exception != yes; then
7265 cat >>confdefs.h
<<\_ACEOF
7266 #define NO_MATHERR 1
7272 for ac_header
in sys
/socket.h
7274 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7275 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7278 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7281 ac_res
=`eval echo '${'$as_ac_Header'}'`
7282 { echo "$as_me:$LINENO: result: $ac_res" >&5
7283 echo "${ECHO_T}$ac_res" >&6; }
7285 # Is the header compilable?
7286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7288 cat >conftest.
$ac_ext <<_ACEOF
7291 cat confdefs.h
>>conftest.
$ac_ext
7292 cat >>conftest.
$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 $ac_includes_default
7295 #include <$ac_header>
7297 rm -f conftest.
$ac_objext
7298 if { (ac_try
="$ac_compile"
7300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7306 grep -v '^ *+' conftest.er1 >conftest.err
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_header_compiler=yes
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_header_compiler=no
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7324 echo "${ECHO_T}$ac_header_compiler" >&6; }
7326 # Is the header present?
7327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <$ac_header>
7337 if { (ac_try="$ac_cpp conftest.$ac_ext"
7339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7340 *) ac_try_echo
=$ac_try;;
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7345 grep -v '^ *+' conftest.er1
>conftest.err
7347 cat conftest.err
>&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } >/dev
/null
&& {
7350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7353 ac_header_preproc
=yes
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.
$ac_ext >&5
7358 ac_header_preproc
=no
7361 rm -f conftest.err conftest.
$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7363 echo "${ECHO_T}$ac_header_preproc" >&6; }
7365 # So? What about this header?
7366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7372 ac_header_preproc
=yes
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7395 eval "$as_ac_Header=\$ac_header_preproc"
7397 ac_res
=`eval echo '${'$as_ac_Header'}'`
7398 { echo "$as_me:$LINENO: result: $ac_res" >&5
7399 echo "${ECHO_T}$ac_res" >&6; }
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h
<<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7412 for ac_header
in net
/if.h
7414 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7417 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7420 cat >conftest.
$ac_ext <<_ACEOF
7423 cat confdefs.h
>>conftest.
$ac_ext
7424 cat >>conftest.
$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 #if HAVE_SYS_SOCKET_H
7428 #include <sys/socket.h>
7431 #include <$ac_header>
7433 rm -f conftest.
$ac_objext
7434 if { (ac_try
="$ac_compile"
7436 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7442 grep -v '^ *+' conftest.er1 >conftest.err
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 eval "$as_ac_Header=yes"
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7455 eval "$as_ac_Header=no"
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 ac_res=`eval echo '${'$as_ac_Header'}'`
7461 { echo "$as_me:$LINENO: result: $ac_res" >&5
7462 echo "${ECHO_T}$ac_res" >&6; }
7463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7464 cat >>confdefs.h <<_ACEOF
7465 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7473 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7475 if test "${ac_cv_struct_tm+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 cat >conftest.$ac_ext <<_ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7491 int *p = &tm.tm_sec;
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7501 *) ac_try_echo
=$ac_try;;
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_compile") 2>conftest.er1
7506 grep -v '^ *+' conftest.er1
>conftest.err
7508 cat conftest.err
>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest.
$ac_objext; then
7514 ac_cv_struct_tm
=time.h
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.
$ac_ext >&5
7519 ac_cv_struct_tm
=sys
/time.h
7522 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7524 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7525 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7526 if test $ac_cv_struct_tm = sys
/time.h
; then
7528 cat >>confdefs.h
<<\_ACEOF
7529 #define TM_IN_SYS_TIME 1
7534 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7535 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7536 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7539 cat >conftest.
$ac_ext <<_ACEOF
7542 cat confdefs.h
>>conftest.
$ac_ext
7543 cat >>conftest.
$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <sys/types.h>
7546 #include <$ac_cv_struct_tm>
7552 static struct tm ac_aggr;
7553 if (ac_aggr.tm_zone)
7559 rm -f conftest.
$ac_objext
7560 if { (ac_try
="$ac_compile"
7562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_compile") 2>conftest.er1
7568 grep -v '^ *+' conftest.er1 >conftest.err
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
7576 ac_cv_member_struct_tm_tm_zone=yes
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7581 cat >conftest.$ac_ext <<_ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <$ac_cv_struct_tm>
7594 static struct tm ac_aggr;
7595 if (sizeof ac_aggr.tm_zone)
7601 rm -f conftest.$ac_objext
7602 if { (ac_try="$ac_compile"
7604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7605 *) ac_try_echo
=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.
$ac_objext; then
7618 ac_cv_member_struct_tm_tm_zone
=yes
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.
$ac_ext >&5
7623 ac_cv_member_struct_tm_tm_zone
=no
7626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7633 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7635 cat >>confdefs.h
<<_ACEOF
7636 #define HAVE_STRUCT_TM_TM_ZONE 1
7642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7644 cat >>confdefs.h
<<\_ACEOF
7645 #define HAVE_TM_ZONE 1
7649 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7650 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7651 if test "${ac_cv_have_decl_tzname+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7654 cat >conftest.
$ac_ext <<_ACEOF
7657 cat confdefs.h
>>conftest.
$ac_ext
7658 cat >>conftest.
$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7673 rm -f conftest.
$ac_objext
7674 if { (ac_try
="$ac_compile"
7676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7682 grep -v '^ *+' conftest.er1 >conftest.err
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_cv_have_decl_tzname=yes
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7695 ac_cv_have_decl_tzname=no
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7701 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7702 if test $ac_cv_have_decl_tzname = yes; then
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_DECL_TZNAME 1
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DECL_TZNAME 0
7718 { echo "$as_me:$LINENO: checking for tzname" >&5
7719 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7720 if test "${ac_cv_var_tzname+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 cat >conftest.$ac_ext <<_ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7730 #if !HAVE_DECL_TZNAME
7731 extern char *tzname[];
7737 return tzname[0][0];
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7746 *) ac_try_echo
=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>conftest.er1
7751 grep -v '^ *+' conftest.er1
>conftest.err
7753 cat conftest.err
>&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest
$ac_exeext &&
7759 $as_test_x conftest
$ac_exeext; then
7760 ac_cv_var_tzname
=yes
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.
$ac_ext >&5
7768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7769 conftest
$ac_exeext conftest.
$ac_ext
7771 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7772 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7773 if test $ac_cv_var_tzname = yes; then
7775 cat >>confdefs.h
<<\_ACEOF
7776 #define HAVE_TZNAME 1
7782 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7783 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7784 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7798 static struct tm ac_aggr;
7799 if (ac_aggr.tm_gmtoff)
7805 rm -f conftest.
$ac_objext
7806 if { (ac_try
="$ac_compile"
7808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7822 ac_cv_member_struct_tm_tm_gmtoff=yes
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7838 static struct tm ac_aggr;
7839 if (sizeof ac_aggr.tm_gmtoff)
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7849 *) ac_try_echo
=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1
>conftest.err
7856 cat conftest.err
>&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.
$ac_objext; then
7862 ac_cv_member_struct_tm_tm_gmtoff
=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.
$ac_ext >&5
7867 ac_cv_member_struct_tm_tm_gmtoff
=no
7870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7873 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7875 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7876 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7877 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define HAVE_TM_GMTOFF 1
7885 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7886 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7887 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 cat >conftest.
$ac_ext <<_ACEOF
7893 cat confdefs.h
>>conftest.
$ac_ext
7894 cat >>conftest.
$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 $ac_includes_default
7897 #if HAVE_SYS_SOCKET_H
7898 #include <sys/socket.h>
7907 static struct ifreq ac_aggr;
7908 if (ac_aggr.ifr_flags)
7914 rm -f conftest.
$ac_objext
7915 if { (ac_try
="$ac_compile"
7917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7923 grep -v '^ *+' conftest.er1 >conftest.err
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 ac_cv_member_struct_ifreq_ifr_flags=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7936 cat >conftest.$ac_ext <<_ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7943 #if HAVE_SYS_SOCKET_H
7944 #include <sys/socket.h>
7953 static struct ifreq ac_aggr;
7954 if (sizeof ac_aggr.ifr_flags)
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7964 *) ac_try_echo
=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1
>conftest.err
7971 cat conftest.err
>&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.
$ac_objext; then
7977 ac_cv_member_struct_ifreq_ifr_flags
=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.
$ac_ext >&5
7982 ac_cv_member_struct_ifreq_ifr_flags
=no
7985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7991 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7992 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7994 cat >>confdefs.h
<<_ACEOF
7995 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8000 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8001 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8002 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8005 cat >conftest.
$ac_ext <<_ACEOF
8008 cat confdefs.h
>>conftest.
$ac_ext
8009 cat >>conftest.
$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 #if HAVE_SYS_SOCKET_H
8013 #include <sys/socket.h>
8022 static struct ifreq ac_aggr;
8023 if (ac_aggr.ifr_hwaddr)
8029 rm -f conftest.
$ac_objext
8030 if { (ac_try
="$ac_compile"
8032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
8046 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8051 cat >conftest.$ac_ext <<_ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 #if HAVE_SYS_SOCKET_H
8059 #include <sys/socket.h>
8068 static struct ifreq ac_aggr;
8069 if (sizeof ac_aggr.ifr_hwaddr)
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8079 *) ac_try_echo
=$ac_try;;
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1
>conftest.err
8086 cat conftest.err
>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.
$ac_objext; then
8092 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.
$ac_ext >&5
8097 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8105 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8106 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8107 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8109 cat >>confdefs.h
<<_ACEOF
8110 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8115 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8116 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8117 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8120 cat >conftest.
$ac_ext <<_ACEOF
8123 cat confdefs.h
>>conftest.
$ac_ext
8124 cat >>conftest.
$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 #if HAVE_SYS_SOCKET_H
8128 #include <sys/socket.h>
8137 static struct ifreq ac_aggr;
8138 if (ac_aggr.ifr_netmask)
8144 rm -f conftest.
$ac_objext
8145 if { (ac_try
="$ac_compile"
8147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8153 grep -v '^ *+' conftest.er1 >conftest.err
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_cv_member_struct_ifreq_ifr_netmask=yes
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8166 cat >conftest.$ac_ext <<_ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8183 static struct ifreq ac_aggr;
8184 if (sizeof ac_aggr.ifr_netmask)
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8194 *) ac_try_echo
=$ac_try;;
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8199 grep -v '^ *+' conftest.er1
>conftest.err
8201 cat conftest.err
>&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.
$ac_objext; then
8207 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.
$ac_ext >&5
8212 ac_cv_member_struct_ifreq_ifr_netmask
=no
8215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8221 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8222 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8224 cat >>confdefs.h
<<_ACEOF
8225 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8230 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8231 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8232 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.
$ac_ext <<_ACEOF
8238 cat confdefs.h
>>conftest.
$ac_ext
8239 cat >>conftest.
$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8242 #if HAVE_SYS_SOCKET_H
8243 #include <sys/socket.h>
8252 static struct ifreq ac_aggr;
8253 if (ac_aggr.ifr_broadaddr)
8259 rm -f conftest.
$ac_objext
8260 if { (ac_try
="$ac_compile"
8262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8268 grep -v '^ *+' conftest.er1 >conftest.err
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.$ac_objext; then
8276 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #if HAVE_SYS_SOCKET_H
8289 #include <sys/socket.h>
8298 static struct ifreq ac_aggr;
8299 if (sizeof ac_aggr.ifr_broadaddr)
8305 rm -f conftest.$ac_objext
8306 if { (ac_try="$ac_compile"
8308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8309 *) ac_try_echo
=$ac_try;;
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_compile") 2>conftest.er1
8314 grep -v '^ *+' conftest.er1
>conftest.err
8316 cat conftest.err
>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest.
$ac_objext; then
8322 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.
$ac_ext >&5
8327 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8335 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8336 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8337 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8339 cat >>confdefs.h
<<_ACEOF
8340 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8345 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8346 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8347 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 cat >conftest.
$ac_ext <<_ACEOF
8353 cat confdefs.h
>>conftest.
$ac_ext
8354 cat >>conftest.
$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8357 #if HAVE_SYS_SOCKET_H
8358 #include <sys/socket.h>
8367 static struct ifreq ac_aggr;
8368 if (ac_aggr.ifr_addr)
8374 rm -f conftest.
$ac_objext
8375 if { (ac_try
="$ac_compile"
8377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_cv_member_struct_ifreq_ifr_addr=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 cat >conftest.$ac_ext <<_ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8413 static struct ifreq ac_aggr;
8414 if (sizeof ac_aggr.ifr_addr)
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8424 *) ac_try_echo
=$ac_try;;
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8429 grep -v '^ *+' conftest.er1
>conftest.err
8431 cat conftest.err
>&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.
$ac_objext; then
8437 ac_cv_member_struct_ifreq_ifr_addr
=yes
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.
$ac_ext >&5
8442 ac_cv_member_struct_ifreq_ifr_addr
=no
8445 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8451 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8452 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8454 cat >>confdefs.h
<<_ACEOF
8455 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8463 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8464 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8465 if test "$ac_cv_prog_cc_c89" != no
; then
8466 { echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6; }
8469 cat >>confdefs.h
<<\_ACEOF
8470 #define PROTOTYPES 1
8474 cat >>confdefs.h
<<\_ACEOF
8475 #define __PROTOTYPES 1
8479 { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8483 { echo "$as_me:$LINENO: checking for working volatile" >&5
8484 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8485 if test "${ac_cv_c_volatile+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 cat >conftest.
$ac_ext <<_ACEOF
8491 cat confdefs.h
>>conftest.
$ac_ext
8492 cat >>conftest.
$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8500 int * volatile y = (int *) 0;
8506 rm -f conftest.
$ac_objext
8507 if { (ac_try
="$ac_compile"
8509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8515 grep -v '^ *+' conftest.er1 >conftest.err
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_cv_c_volatile=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8534 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8535 if test $ac_cv_c_volatile = no; then
8537 cat >>confdefs.h <<\_ACEOF
8543 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8545 if test "${ac_cv_c_const+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8558 /* FIXME: Include the comments suggested by Paul. */
8560 /* Ultrix mips cc rejects this. */
8561 typedef int charset[2];
8563 /* SunOS 4.1.1 cc rejects this. */
8564 char const *const *pcpcc;
8566 /* NEC SVR4.0.2 mips cc rejects this. */
8567 struct point {int x, y;};
8568 static struct point const zero = {0,0};
8569 /* AIX XL C 1.02.0.0 rejects this.
8570 It does not let you subtract one const X* pointer from another in
8571 an arm of an if-expression whose if-part is not a constant
8573 const char *g = "string";
8574 pcpcc = &g + (g ? g-g : 0);
8575 /* HPUX 7.0 cc rejects these. */
8577 ppc = (char**) pcpcc;
8578 pcpcc = (char const *const *) ppc;
8579 { /* SCO 3.2v4 cc rejects this. */
8581 char const *s = 0 ? (char *) 0 : (char const *) 0;
8586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8588 const int *foo = &x[0];
8591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8592 typedef const int *iptr;
8596 { /* AIX XL C 1.02.0.0 rejects this saying
8597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8598 struct s { int j; const int *ap[3]; };
8599 struct s *b; b->j = 5;
8601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8605 return !cs[0] && !zero.x;
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8616 *) ac_try_echo
=$ac_try;;
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8621 grep -v '^ *+' conftest.er1
>conftest.err
8623 cat conftest.err
>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.
$ac_objext; then
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.
$ac_ext >&5
8637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8640 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8641 if test $ac_cv_c_const = no
; then
8643 cat >>confdefs.h
<<\_ACEOF
8649 { echo "$as_me:$LINENO: checking for void * support" >&5
8650 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8651 if test "${emacs_cv_void_star+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8654 cat >conftest.
$ac_ext <<_ACEOF
8657 cat confdefs.h
>>conftest.
$ac_ext
8658 cat >>conftest.
$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8669 rm -f conftest.
$ac_objext
8670 if { (ac_try
="$ac_compile"
8672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 emacs_cv_void_star=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 emacs_cv_void_star=no
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8696 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8697 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8698 if test $emacs_cv_void_star = yes; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define POINTER_TYPE void
8704 cat >>confdefs.h <<\_ACEOF
8705 #define POINTER_TYPE char
8714 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8716 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8717 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8720 cat >conftest.make <<\_ACEOF
8723 @echo '@@@%%%=$(MAKE)=@@@%%%'
8725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8726 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8728 eval ac_cv_prog_make_${ac_make}_set=yes;;
8730 eval ac_cv_prog_make_${ac_make}_set=no;;
8734 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8735 { echo "$as_me:$LINENO: result: yes" >&5
8736 echo "${ECHO_T}yes" >&6; }
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741 SET_MAKE="MAKE=${MAKE-make}"
8745 { echo "$as_me:$LINENO: checking for long file names" >&5
8746 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8747 if test "${ac_cv_sys_long_file_names+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8750 ac_cv_sys_long_file_names=yes
8751 # Test for long file names in all the places we know might matter:
8752 # . the current directory, where building will happen
8753 # $prefix/lib where we will be installing things
8754 # $exec_prefix/lib likewise
8755 # $TMPDIR if set, where it might want to write temporary files
8756 # /tmp where it might want to write temporary files
8759 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8760 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8761 # in the usual case where exec_prefix is '${prefix}'.
8763 . | /* | ?:[\\/]*) ;; #(
8766 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8767 ac_xdir=$ac_dir/cf$$
8768 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8769 ac_tf1=$ac_xdir/conftest9012345
8770 ac_tf2=$ac_xdir/conftest9012346
8771 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8772 ac_cv_sys_long_file_names=no
8773 rm -f -r "$ac_xdir" 2>/dev/null
8774 test $ac_cv_sys_long_file_names = no && break
8777 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8778 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8779 if test $ac_cv_sys_long_file_names = yes; then
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_LONG_FILE_NAMES 1
8788 #### Choose a window system.
8790 { echo "$as_me:$LINENO: checking for X" >&5
8791 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8794 # Check whether --with-x was given.
8795 if test "${with_x+set}" = set; then
8799 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8800 if test "x$with_x" = xno; then
8801 # The user explicitly disabled X.
8804 case $x_includes,$x_libraries in #(
8805 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8806 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8807 { (exit 1); exit 1; }; };; #(
8808 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 # One or both of the vars are not set, and there is no cached value.
8812 ac_x_includes=no ac_x_libraries=no
8813 rm -f -r conftest.dir
8814 if mkdir conftest.dir; then
8816 cat >Imakefile <<'_ACEOF'
8818 @echo incroot='${INCROOT}'
8820 @echo usrlibdir='${USRLIBDIR}'
8822 @echo libdir='${LIBDIR}'
8824 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8826 for ac_var in incroot usrlibdir libdir; do
8827 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8830 for ac_extension in a so sl; do
8831 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8832 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8833 ac_im_usrlibdir=$ac_im_libdir; break
8836 # Screen out bogus values from the imake configuration. They are
8837 # bogus both because they are the default anyway, and because
8838 # using them would break gcc on systems where it needs fixed includes.
8839 case $ac_im_incroot in
8840 /usr/include) ac_x_includes= ;;
8841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8843 case $ac_im_usrlibdir in
8845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8849 rm -f -r conftest.dir
8852 # Standard set of common directories for X headers.
8853 # Check X11 before X11Rn because it is often a symlink to the current release.
8865 /usr/local/X11/include
8866 /usr/local/X11R6/include
8867 /usr/local/X11R5/include
8868 /usr/local/X11R4/include
8870 /usr/local/include/X11
8871 /usr/local/include/X11R6
8872 /usr/local/include/X11R5
8873 /usr/local/include/X11R4
8877 /usr/XFree86/include/X11
8881 /usr/unsupported/include
8883 /usr/local/x11r5/include
8884 /usr/lpp/Xamples/include
8886 /usr/openwin/include
8887 /usr/openwin/share/include'
8889 if test "$ac_x_includes" = no; then
8890 # Guess where to find include files, by looking for Xlib.h.
8891 # First, try using that file with no special directory specified.
8892 cat >conftest.$ac_ext <<_ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <X11/Xlib.h>
8900 if { (ac_try="$ac_cpp conftest.$ac_ext"
8902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8903 *) ac_try_echo
=$ac_try;;
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8908 grep -v '^ *+' conftest.er1
>conftest.err
8910 cat conftest.err
>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } >/dev
/null
&& {
8913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8916 # We can compile using X headers with no special include directory.
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.
$ac_ext >&5
8922 for ac_dir
in $ac_x_header_dirs; do
8923 if test -r "$ac_dir/X11/Xlib.h"; then
8924 ac_x_includes
=$ac_dir
8930 rm -f conftest.err conftest.
$ac_ext
8931 fi # $ac_x_includes = no
8933 if test "$ac_x_libraries" = no
; then
8934 # Check for the libraries.
8935 # See if we find them without any special options.
8936 # Don't add to $LIBS permanently.
8939 cat >conftest.
$ac_ext <<_ACEOF
8942 cat confdefs.h
>>conftest.
$ac_ext
8943 cat >>conftest.
$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 #include <X11/Xlib.h>
8954 rm -f conftest.
$ac_objext conftest
$ac_exeext
8955 if { (ac_try
="$ac_link"
8957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest$ac_exeext &&
8971 $as_test_x conftest$ac_exeext; then
8973 # We can link X programs with no special library path.
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8980 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8982 # Don't even attempt the hair of trying to link an X program!
8983 for ac_extension in a so sl; do
8984 if test -r "$ac_dir/libX11.$ac_extension"; then
8985 ac_x_libraries=$ac_dir
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8993 conftest$ac_exeext conftest.$ac_ext
8994 fi # $ac_x_libraries = no
8996 case $ac_x_includes,$ac_x_libraries in #(
8998 # Didn't find X, or a directory has "'" in its name.
8999 ac_cv_have_x="have_x=no";; #(
9001 # Record where we found X for the cache.
9002 ac_cv_have_x="have_x=yes\
9003 ac_x_includes='$ac_x_includes'\
9004 ac_x_libraries='$ac_x_libraries'"
9010 eval "$ac_cv_have_x"
9013 if test "$have_x" != yes; then
9014 { echo "$as_me:$LINENO: result: $have_x" >&5
9015 echo "${ECHO_T}$have_x" >&6; }
9018 # If each of the values was on the command line, it overrides each guess.
9019 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9020 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9021 # Update the cache value to reflect the command line values.
9022 ac_cv_have_x="have_x=yes\
9023 ac_x_includes='$x_includes'\
9024 ac_x_libraries='$x_libraries'"
9025 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9026 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9029 if test "$no_x" = yes; then
9035 if test "${x_libraries}" != NONE; then
9036 if test -n "${x_libraries}"; then
9037 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9038 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9040 x_default_search_path=""
9041 x_search_path=${x_libraries}
9042 if test -z "${x_search_path}"; then
9043 x_search_path=/usr/lib
9045 for x_library in `echo ${x_search_path}: | \
9046 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9048 ${x_library}/X11/%L/%T/%N%C%S:\
9049 ${x_library}/X11/%l/%T/%N%C%S:\
9050 ${x_library}/X11/%T/%N%C%S:\
9051 ${x_library}/X11/%L/%T/%N%S:\
9052 ${x_library}/X11/%l/%T/%N%S:\
9053 ${x_library}/X11/%T/%N%S"
9054 if test x"${x_default_search_path}" = x; then
9055 x_default_search_path=${x_search_path}
9057 x_default_search_path="${x_search_path}:${x_default_search_path}"
9061 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9062 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9065 if test x"${x_includes}" = x; then
9066 bitmapdir=/usr/include/X11/bitmaps
9068 # accumulate include directories that have X11 bitmap subdirectories
9070 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9071 if test -d "${bmd}/X11/bitmaps"; then
9072 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9074 if test -d "${bmd}/bitmaps"; then
9075 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9078 if test ${bmd_acc} != "dummyval"; then
9079 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9084 if test "${with_carbon}" != no; then
9085 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9086 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9087 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9088 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9091 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9092 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9094 # Is the header compilable?
9095 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9096 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 $ac_includes_default
9104 #include <Carbon/Carbon.h>
9106 rm -f conftest.$ac_objext
9107 if { (ac_try="$ac_compile"
9109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9110 *) ac_try_echo
=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_compile") 2>conftest.er1
9115 grep -v '^ *+' conftest.er1
>conftest.err
9117 cat conftest.err
>&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest.
$ac_objext; then
9123 ac_header_compiler
=yes
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.
$ac_ext >&5
9128 ac_header_compiler
=no
9131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6; }
9135 # Is the header present?
9136 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9137 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <Carbon/Carbon.h>
9146 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9154 grep -v '^ *+' conftest.er1 >conftest.err
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } >/dev/null && {
9159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9162 ac_header_preproc=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9181 ac_header_preproc=yes
9184 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9199 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9200 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9201 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9204 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9206 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9207 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9210 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9216 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9217 if test "${with_carbon+set}" != set \
9218 && test "${carbon_appdir_x+set}" != set; then
9219 for var in with_x with_x_toolkit with_gtk with_xim \
9220 with_xpm with_jpeg with_tiff with_gif with_png; do
9221 if eval test \"\${$var+set}\" = set; then
9228 if test "${HAVE_CARBON}" = yes; then
9232 case "${window_system}" in
9236 case "${with_x_toolkit}" in
9237 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9238 motif ) USE_X_TOOLKIT=MOTIF ;;
9240 USE_X_TOOLKIT=none ;;
9241 no ) USE_X_TOOLKIT=none ;;
9243 if test x"$with_gtk" = xyes; then
9258 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9259 # Extract the first word of "X", so it can be a program name with args.
9260 set dummy X; ac_word=$2
9261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9263 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9266 if test -n "$HAVE_XSERVER"; then
9267 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_prog_HAVE_XSERVER="true"
9277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9284 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9287 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9288 if test -n "$HAVE_XSERVER"; then
9289 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9290 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9292 { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9297 if test "$HAVE_XSERVER" = true ||
9298 test -n "$DISPLAY" ||
9299 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9300 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9301 were found. You should install the relevant development files for X
9302 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9303 sure you have development files for image handling, i.e.
9304 tiff, gif, jpeg, png and xpm.
9305 If you are sure you want Emacs compiled without X window support, pass
9308 echo "$as_me: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9315 to configure." >&2;}
9316 { (exit 1); exit 1; }; }
9320 ### If we're using X11, we should use the X menu package.
9323 yes ) HAVE_MENUS=yes ;;
9326 ### Compute the unexec source name from the object name.
9327 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9329 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9330 # Assume not, until told otherwise.
9333 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9334 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define malloc_get_state innocuous_malloc_get_state
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char malloc_get_state (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9354 # include <limits.h>
9356 # include <assert.h>
9359 #undef malloc_get_state
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9367 char malloc_get_state ();
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9378 return malloc_get_state ();
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9387 *) ac_try_echo
=$ac_try;;
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_link") 2>conftest.er1
9392 grep -v '^ *+' conftest.er1
>conftest.err
9394 cat conftest.err
>&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest
$ac_exeext &&
9400 $as_test_x conftest
$ac_exeext; then
9401 ac_cv_func_malloc_get_state
=yes
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.
$ac_ext >&5
9406 ac_cv_func_malloc_get_state
=no
9409 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9410 conftest
$ac_exeext conftest.
$ac_ext
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9413 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9414 if test $ac_cv_func_malloc_get_state = yes; then
9420 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9421 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9422 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 cat >conftest.
$ac_ext <<_ACEOF
9428 cat confdefs.h
>>conftest.
$ac_ext
9429 cat >>conftest.
$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433 #define malloc_set_state innocuous_malloc_set_state
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char malloc_set_state (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9441 # include <limits.h>
9443 # include <assert.h>
9446 #undef malloc_set_state
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9454 char malloc_set_state ();
9455 /* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9465 return malloc_set_state ();
9470 rm -f conftest.
$ac_objext conftest
$ac_exeext
9471 if { (ac_try
="$ac_link"
9473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext &&
9487 $as_test_x conftest$ac_exeext; then
9488 ac_cv_func_malloc_set_state=yes
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9493 ac_cv_func_malloc_set_state=no
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9499 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9500 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9501 if test $ac_cv_func_malloc_set_state = yes; then
9507 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9508 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9509 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9512 cat >conftest.$ac_ext <<_ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 extern void (* __after_morecore_hook)();
9522 __after_morecore_hook = 0
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9531 *) ac_try_echo
=$ac_try;;
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_link") 2>conftest.er1
9536 grep -v '^ *+' conftest.er1
>conftest.err
9538 cat conftest.err
>&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest
$ac_exeext &&
9544 $as_test_x conftest
$ac_exeext; then
9545 emacs_cv_var___after_morecore_hook
=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.
$ac_ext >&5
9550 emacs_cv_var___after_morecore_hook
=no
9553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9554 conftest
$ac_exeext conftest.
$ac_ext
9556 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9557 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9558 if test $emacs_cv_var___after_morecore_hook = no
; then
9561 if test "${system_malloc}" = "yes"; then
9564 (The GNU allocators don't work with this system configuration.)"
9566 if test "$doug_lea_malloc" = "yes" ; then
9567 if test "$GNU_MALLOC" = yes ; then
9569 (Using Doug Lea's new malloc from the GNU C Library.)"
9572 cat >>confdefs.h
<<\_ACEOF
9573 #define DOUG_LEA_MALLOC 1
9578 if test x
"${REL_ALLOC}" = x
; then
9579 REL_ALLOC
=${GNU_MALLOC}
9585 for ac_header
in stdlib.h unistd.h
9587 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 ac_res
=`eval echo '${'$as_ac_Header'}'`
9595 { echo "$as_me:$LINENO: result: $ac_res" >&5
9596 echo "${ECHO_T}$ac_res" >&6; }
9598 # Is the header compilable?
9599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9601 cat >conftest.
$ac_ext <<_ACEOF
9604 cat confdefs.h
>>conftest.
$ac_ext
9605 cat >>conftest.
$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 #include <$ac_header>
9610 rm -f conftest.
$ac_objext
9611 if { (ac_try
="$ac_compile"
9613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_compile") 2>conftest.er1
9619 grep -v '^ *+' conftest.er1 >conftest.err
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest.$ac_objext; then
9627 ac_header_compiler=yes
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_header_compiler=no
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9637 echo "${ECHO_T}$ac_header_compiler" >&6; }
9639 # Is the header present?
9640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <$ac_header>
9650 if { (ac_try="$ac_cpp conftest.$ac_ext"
9652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9653 *) ac_try_echo
=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9658 grep -v '^ *+' conftest.er1
>conftest.err
9660 cat conftest.err
>&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } >/dev
/null
&& {
9663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9666 ac_header_preproc
=yes
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.
$ac_ext >&5
9671 ac_header_preproc
=no
9674 rm -f conftest.err conftest.
$ac_ext
9675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9676 echo "${ECHO_T}$ac_header_preproc" >&6; }
9678 # So? What about this header?
9679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9685 ac_header_preproc
=yes
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 eval "$as_ac_Header=\$ac_header_preproc"
9710 ac_res
=`eval echo '${'$as_ac_Header'}'`
9711 { echo "$as_me:$LINENO: result: $ac_res" >&5
9712 echo "${ECHO_T}$ac_res" >&6; }
9715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9716 cat >>confdefs.h
<<_ACEOF
9717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9725 for ac_func
in getpagesize
9727 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9730 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9733 cat >conftest.
$ac_ext <<_ACEOF
9736 cat confdefs.h
>>conftest.
$ac_ext
9737 cat >>conftest.
$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9741 #define $ac_func innocuous_$ac_func
9743 /* System header to define __stub macros and hopefully few prototypes,
9744 which can conflict with char $ac_func (); below.
9745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9746 <limits.h> exists even on freestanding compilers. */
9749 # include <limits.h>
9751 # include <assert.h>
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined __stub_$ac_func || defined __stub___$ac_func
9778 rm -f conftest.
$ac_objext conftest
$ac_exeext
9779 if { (ac_try
="$ac_link"
9781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9787 grep -v '^ *+' conftest.er1 >conftest.err
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest$ac_exeext &&
9795 $as_test_x conftest$ac_exeext; then
9796 eval "$as_ac_var=yes"
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9801 eval "$as_ac_var=no"
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9807 ac_res=`eval echo '${'$as_ac_var'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9810 if test `eval echo '${'$as_ac_var'}'` = yes; then
9811 cat >>confdefs.h <<_ACEOF
9812 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9818 { echo "$as_me:$LINENO: checking for working mmap" >&5
9819 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9820 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 if test "$cross_compiling" = yes; then
9824 ac_cv_func_mmap_fixed_mapped=no
9826 cat >conftest.$ac_ext <<_ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 /* malloc might have been renamed as rpl_malloc. */
9836 /* Thanks to Mike Haertel and Jim Avera for this test.
9837 Here is a matrix of mmap possibilities:
9838 mmap private not fixed
9839 mmap private fixed at somewhere currently unmapped
9840 mmap private fixed at somewhere already mapped
9841 mmap shared not fixed
9842 mmap shared fixed at somewhere currently unmapped
9843 mmap shared fixed at somewhere already mapped
9844 For private mappings, we should verify that changes cannot be read()
9845 back from the file, nor mmap's back from the file at a different
9846 address. (There have been systems where private was not correctly
9847 implemented like the infamous i386 svr4.0, and systems where the
9848 VM page cache was not coherent with the file system buffer cache
9849 like early versions of FreeBSD and possibly contemporary NetBSD.)
9850 For shared mappings, we should conversely verify that changes get
9851 propagated back to all the places they're supposed to be.
9853 Grep wants private fixed already mapped.
9854 The main things grep needs to know about mmap are:
9855 * does it exist and is it safe to write into the mmap'd area
9856 * how to use it (BSD variants) */
9859 #include <sys/mman.h>
9861 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9865 /* This mess was copied from the GNU getpagesize.h. */
9866 #ifndef HAVE_GETPAGESIZE
9867 /* Assume that all systems that can run configure have sys/param.h. */
9868 # ifndef HAVE_SYS_PARAM_H
9869 # define HAVE_SYS_PARAM_H 1
9872 # ifdef _SC_PAGESIZE
9873 # define getpagesize() sysconf(_SC_PAGESIZE)
9874 # else /* no _SC_PAGESIZE */
9875 # ifdef HAVE_SYS_PARAM_H
9876 # include <sys/param.h>
9877 # ifdef EXEC_PAGESIZE
9878 # define getpagesize() EXEC_PAGESIZE
9879 # else /* no EXEC_PAGESIZE */
9881 # define getpagesize() NBPG * CLSIZE
9884 # endif /* no CLSIZE */
9885 # else /* no NBPG */
9887 # define getpagesize() NBPC
9888 # else /* no NBPC */
9890 # define getpagesize() PAGESIZE
9891 # endif /* PAGESIZE */
9892 # endif /* no NBPC */
9893 # endif /* no NBPG */
9894 # endif /* no EXEC_PAGESIZE */
9895 # else /* no HAVE_SYS_PARAM_H */
9896 # define getpagesize() 8192 /* punt totally */
9897 # endif /* no HAVE_SYS_PARAM_H */
9898 # endif /* no _SC_PAGESIZE */
9900 #endif /* no HAVE_GETPAGESIZE */
9905 char *data, *data2, *data3;
9909 pagesize = getpagesize ();
9911 /* First, make a file with some known garbage in it. */
9912 data = (char *) malloc (pagesize);
9915 for (i = 0; i < pagesize; ++i)
9916 *(data + i) = rand ();
9918 fd = creat ("conftest.mmap", 0600);
9921 if (write (fd, data, pagesize) != pagesize)
9925 /* Next, try to mmap the file at a fixed address which already has
9926 something else allocated at it. If we can, also make sure that
9927 we see the same garbage. */
9928 fd = open ("conftest.mmap", O_RDWR);
9931 data2 = (char *) malloc (2 * pagesize);
9934 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9935 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9938 for (i = 0; i < pagesize; ++i)
9939 if (*(data + i) != *(data2 + i))
9942 /* Finally, make sure that changes to the mapped area do not
9943 percolate back to the file as seen by read(). (This is a bug on
9944 some variants of i386 svr4.0.) */
9945 for (i = 0; i < pagesize; ++i)
9946 *(data2 + i) = *(data2 + i) + 1;
9947 data3 = (char *) malloc (pagesize);
9950 if (read (fd, data3, pagesize) != pagesize)
9952 for (i = 0; i < pagesize; ++i)
9953 if (*(data + i) != *(data3 + i))
9959 rm -f conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9963 *) ac_try_echo
=$ac_try;;
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_func_mmap_fixed_mapped=yes
9981 echo "$as_me: program exited with status $ac_status" >&5
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9986 ac_cv_func_mmap_fixed_mapped=no
9988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9993 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9994 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9995 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9997 cat >>confdefs.h <<\_ACEOF
10002 rm -f conftest.mmap
10004 if test $use_mmap_for_buffers = yes; then
10008 LIBS="$libsrc_libs $LIBS"
10011 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10012 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ldnet $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10035 return dnet_ntoa ();
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10044 *) ac_try_echo
=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10049 grep -v '^ *+' conftest.er1
>conftest.err
10051 cat conftest.err
>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest
$ac_exeext &&
10057 $as_test_x conftest
$ac_exeext; then
10058 ac_cv_lib_dnet_dnet_ntoa
=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.
$ac_ext >&5
10063 ac_cv_lib_dnet_dnet_ntoa
=no
10066 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10067 conftest
$ac_exeext conftest.
$ac_ext
10068 LIBS
=$ac_check_lib_save_LIBS
10070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10072 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10073 cat >>confdefs.h
<<_ACEOF
10074 #define HAVE_LIBDNET 1
10077 LIBS
="-ldnet $LIBS"
10082 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10083 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10084 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 ac_check_lib_save_LIBS
=$LIBS
10088 LIBS
="-lXbsd $LIBS"
10089 cat >conftest.
$ac_ext <<_ACEOF
10092 cat confdefs.h
>>conftest.
$ac_ext
10093 cat >>conftest.
$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10105 rm -f conftest.
$ac_objext conftest
$ac_exeext
10106 if { (ac_try
="$ac_link"
10107 case "(($ac_try" in
10108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10114 grep -v '^ *+' conftest.er1 >conftest.err
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_Xbsd_main=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10128 ac_cv_lib_Xbsd_main=no
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10136 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10137 if test $ac_cv_lib_Xbsd_main = yes; then
10138 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10143 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10144 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10145 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lpthreads $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10167 return cma_open ();
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10176 *) ac_try_echo
=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10181 grep -v '^ *+' conftest.er1
>conftest.err
10183 cat conftest.err
>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest
$ac_exeext &&
10189 $as_test_x conftest
$ac_exeext; then
10190 ac_cv_lib_pthreads_cma_open
=yes
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.
$ac_ext >&5
10195 ac_cv_lib_pthreads_cma_open
=no
10198 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10199 conftest
$ac_exeext conftest.
$ac_ext
10200 LIBS
=$ac_check_lib_save_LIBS
10202 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10203 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10204 if test $ac_cv_lib_pthreads_cma_open = yes; then
10205 cat >>confdefs.h
<<_ACEOF
10206 #define HAVE_LIBPTHREADS 1
10209 LIBS
="-lpthreads $LIBS"
10214 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10215 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10216 if test -d /usr
/X386
/include
; then
10218 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10222 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10223 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10228 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10229 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10230 if test "${gdb_cv_bigtoc+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10236 *) gdb_cv_bigtoc
=-bbigtoc ;;
10239 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10240 cat >conftest.
$ac_ext <<_ACEOF
10243 cat confdefs.h
>>conftest.
$ac_ext
10244 cat >>conftest.
$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10255 rm -f conftest.
$ac_objext conftest
$ac_exeext
10256 if { (ac_try
="$ac_link"
10257 case "(($ac_try" in
10258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1 >conftest.err
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10285 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10286 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10290 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10291 # used for the tests that follow. We set them back to REAL_CFLAGS and
10292 # REAL_CPPFLAGS later on.
10294 REAL_CPPFLAGS="$CPPFLAGS"
10296 if test "${HAVE_X11}" = "yes"; then
10297 DEFS="$C_SWITCH_X_SITE $DEFS"
10298 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10300 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10301 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10303 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10304 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10305 # but it's more convenient here to set LD_RUN_PATH
10306 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10307 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10308 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10312 if test "${opsys}" = "gnu-linux"; then
10313 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10314 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10325 XOpenDisplay ("foo");
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10334 *) ac_try_echo
=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest
$ac_exeext &&
10347 $as_test_x conftest
$ac_exeext; then
10348 xlinux_first_failure
=no
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.
$ac_ext >&5
10353 xlinux_first_failure
=yes
10356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10357 conftest
$ac_exeext conftest.
$ac_ext
10358 if test "${xlinux_first_failure}" = "yes"; then
10359 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10360 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10361 OLD_CPPFLAGS
="$CPPFLAGS"
10363 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10364 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10365 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10366 LIBS
="$LIBS -b i486-linuxaout"
10367 cat >conftest.
$ac_ext <<_ACEOF
10370 cat confdefs.h
>>conftest.
$ac_ext
10371 cat >>conftest.
$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10377 XOpenDisplay ("foo");
10382 rm -f conftest.
$ac_objext conftest
$ac_exeext
10383 if { (ac_try
="$ac_link"
10384 case "(($ac_try" in
10385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_link") 2>conftest.er1
10391 grep -v '^ *+' conftest.er1 >conftest.err
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest$ac_exeext &&
10399 $as_test_x conftest$ac_exeext; then
10400 xlinux_second_failure=no
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 xlinux_second_failure=yes
10408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409 conftest$ac_exeext conftest.$ac_ext
10410 if test "${xlinux_second_failure}" = "yes"; then
10411 # If we get the same failure with -b, there is no use adding -b.
10412 # So take it out. This plays safe.
10413 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10414 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10415 CPPFLAGS="$OLD_CPPFLAGS"
10417 { echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6; }
10420 { echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6; }
10424 { echo "$as_me:$LINENO: result: no" >&5
10425 echo "${ECHO_T}no" >&6; }
10429 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10430 # header files included from there.
10431 { echo "$as_me:$LINENO: checking for Xkb" >&5
10432 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <X11/Xlib.h>
10440 #include <X11/XKBlib.h>
10444 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10453 *) ac_try_echo
=$ac_try;;
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10458 grep -v '^ *+' conftest.er1
>conftest.err
10460 cat conftest.err
>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest
$ac_exeext &&
10466 $as_test_x conftest
$ac_exeext; then
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.
$ac_ext >&5
10475 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10476 conftest
$ac_exeext conftest.
$ac_ext
10477 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10478 echo "${ECHO_T}$emacs_xkb" >&6; }
10479 if test $emacs_xkb = yes; then
10481 cat >>confdefs.h
<<\_ACEOF
10482 #define HAVE_XKBGETKEYBOARD 1
10491 for ac_func
in XrmSetDatabase XScreenResourceString \
10492 XScreenNumberOfScreen XSetWMProtocols
10494 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10500 cat >conftest.
$ac_ext <<_ACEOF
10503 cat confdefs.h
>>conftest.
$ac_ext
10504 cat >>conftest.
$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10508 #define $ac_func innocuous_$ac_func
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below.
10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 <limits.h> exists even on freestanding compilers. */
10516 # include <limits.h>
10518 # include <assert.h>
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined __stub_$ac_func || defined __stub___$ac_func
10540 return $ac_func ();
10545 rm -f conftest.
$ac_objext conftest
$ac_exeext
10546 if { (ac_try
="$ac_link"
10547 case "(($ac_try" in
10548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 eval "$as_ac_var=yes"
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 eval "$as_ac_var=no"
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10574 ac_res=`eval echo '${'$as_ac_var'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576 echo "${ECHO_T}$ac_res" >&6; }
10577 if test `eval echo '${'$as_ac_var'}'` = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10587 if test "${window_system}" = "x11"; then
10588 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10589 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10590 if test "${emacs_cv_x11_version_6+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10593 cat >conftest.$ac_ext <<_ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <X11/Xlib.h>
10603 #if XlibSpecificationRelease < 6
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10615 *) ac_try_echo
=$ac_try;;
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_link") 2>conftest.er1
10620 grep -v '^ *+' conftest.er1
>conftest.err
10622 cat conftest.err
>&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest
$ac_exeext &&
10628 $as_test_x conftest
$ac_exeext; then
10629 emacs_cv_x11_version_6
=yes
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.
$ac_ext >&5
10634 emacs_cv_x11_version_6
=no
10637 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10638 conftest
$ac_exeext conftest.
$ac_ext
10641 if test $emacs_cv_x11_version_6 = yes; then
10642 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10643 echo "${ECHO_T}6 or newer" >&6; }
10645 cat >>confdefs.h
<<\_ACEOF
10646 #define HAVE_X11R6 1
10650 { echo "$as_me:$LINENO: result: before 6" >&5
10651 echo "${ECHO_T}before 6" >&6; }
10656 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10658 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10659 if test "${with_rsvg}" != "no"; then
10660 RSVG_REQUIRED
=2.0.0
10661 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10666 # Extract the first word of "pkg-config", so it can be a program name with args.
10667 set dummy pkg-config
; ac_word
=$2
10668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 case $PKG_CONFIG in
10675 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10679 for as_dir
in $PATH
10682 test -z "$as_dir" && as_dir
=.
10683 for ac_exec_ext
in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10697 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10698 if test -n "$PKG_CONFIG"; then
10699 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10700 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10702 { echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6; }
10708 if test "$PKG_CONFIG" = "no" ; then
10711 PKG_CONFIG_MIN_VERSION
=0.9.0
10712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10713 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10714 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10716 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10717 { echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6; }
10721 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10722 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10723 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10724 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10725 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10727 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10728 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10729 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10730 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10731 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10733 { echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6; }
10737 ## If we have a custom action on failure, don't print errors, but
10738 ## do set a variable so people can do so.
10739 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10751 if test $succeeded = yes; then
10760 if test ".${RSVG_CFLAGS}" != "."; then
10763 cat >>confdefs.h
<<\_ACEOF
10764 #define HAVE_RSVG 1
10767 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10768 LIBS
="$RSVG_LIBS $LIBS"
10775 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10778 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
10779 test "$USE_X_TOOLKIT" = "maybe"; then
10780 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10781 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10782 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10783 { (exit 1); exit 1; }; };
10787 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10792 # Extract the first word of "pkg-config", so it can be a program name with args.
10793 set dummy pkg-config
; ac_word
=$2
10794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10799 case $PKG_CONFIG in
10801 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10804 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10805 for as_dir
in $PATH
10808 test -z "$as_dir" && as_dir
=.
10809 for ac_exec_ext
in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10823 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10824 if test -n "$PKG_CONFIG"; then
10825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10828 { echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6; }
10834 if test "$PKG_CONFIG" = "no" ; then
10837 PKG_CONFIG_MIN_VERSION
=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10840 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10842 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10843 { echo "$as_me:$LINENO: result: yes" >&5
10844 echo "${ECHO_T}yes" >&6; }
10847 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10848 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10849 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10850 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10851 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10853 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10854 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10855 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10856 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10857 echo "${ECHO_T}$GTK_LIBS" >&6; }
10859 { echo "$as_me:$LINENO: result: no" >&5
10860 echo "${ECHO_T}no" >&6; }
10863 ## If we have a custom action on failure, don't print errors, but
10864 ## do set a variable so people can do so.
10865 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10877 if test $succeeded = yes; then
10883 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10884 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10885 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10886 { (exit 1); exit 1; }; }
10891 if test x
"$pkg_check_gtk" = xyes
; then
10895 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10896 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10897 LIBS
="$GTK_LIBS $LIBS"
10900 for ac_func
in gtk_main
10902 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10905 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 cat >conftest.
$ac_ext <<_ACEOF
10911 cat confdefs.h
>>conftest.
$ac_ext
10912 cat >>conftest.
$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10916 #define $ac_func innocuous_$ac_func
10918 /* System header to define __stub macros and hopefully few prototypes,
10919 which can conflict with char $ac_func (); below.
10920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10921 <limits.h> exists even on freestanding compilers. */
10924 # include <limits.h>
10926 # include <assert.h>
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10938 /* The GNU C library defines this for functions which it implements
10939 to always fail with ENOSYS. Some functions are actually named
10940 something starting with __ and the normal name is an alias. */
10941 #if defined __stub_$ac_func || defined __stub___$ac_func
10948 return $ac_func ();
10953 rm -f conftest.
$ac_objext conftest
$ac_exeext
10954 if { (ac_try
="$ac_link"
10955 case "(($ac_try" in
10956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_link") 2>conftest.er1
10962 grep -v '^ *+' conftest.er1 >conftest.err
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext &&
10970 $as_test_x conftest$ac_exeext; then
10971 eval "$as_ac_var=yes"
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10976 eval "$as_ac_var=no"
10979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10980 conftest$ac_exeext conftest.$ac_ext
10982 ac_res=`eval echo '${'$as_ac_var'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10985 if test `eval echo '${'$as_ac_var'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10993 if test "${GTK_COMPILES}" != "yes"; then
10994 if test "$USE_X_TOOLKIT" != "maybe"; then
10995 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10996 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10997 { (exit 1); exit 1; }; };
11002 cat >>confdefs.h <<\_ACEOF
11012 if test "${HAVE_GTK}" = "yes"; then
11014 if test "$with_toolkit_scroll_bars" != no; then
11015 with_toolkit_scroll_bars=yes
11018 HAVE_GTK_MULTIDISPLAY=no
11020 for ac_func in gdk_display_open
11022 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 cat >conftest.$ac_ext <<_ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11036 #define $ac_func innocuous_$ac_func
11038 /* System header to define __stub macros and hopefully few prototypes,
11039 which can conflict with char $ac_func (); below.
11040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11041 <limits.h> exists even on freestanding compilers. */
11044 # include <limits.h>
11046 # include <assert.h>
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11058 /* The GNU C library defines this for functions which it implements
11059 to always fail with ENOSYS. Some functions are actually named
11060 something starting with __ and the normal name is an alias. */
11061 #if defined __stub_$ac_func || defined __stub___$ac_func
11068 return $ac_func ();
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11077 *) ac_try_echo
=$ac_try;;
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11082 grep -v '^ *+' conftest.er1
>conftest.err
11084 cat conftest.err
>&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest
$ac_exeext &&
11090 $as_test_x conftest
$ac_exeext; then
11091 eval "$as_ac_var=yes"
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.
$ac_ext >&5
11096 eval "$as_ac_var=no"
11099 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11100 conftest
$ac_exeext conftest.
$ac_ext
11102 ac_res
=`eval echo '${'$as_ac_var'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105 if test `eval echo '${'$as_ac_var'}'` = yes; then
11106 cat >>confdefs.h
<<_ACEOF
11107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11109 HAVE_GTK_MULTIDISPLAY
=yes
11113 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11115 cat >>confdefs.h
<<\_ACEOF
11116 #define HAVE_GTK_MULTIDISPLAY 1
11121 HAVE_GTK_FILE_SELECTION
=no
11123 for ac_func
in gtk_file_selection_new
11125 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11128 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11131 cat >conftest.
$ac_ext <<_ACEOF
11134 cat confdefs.h
>>conftest.
$ac_ext
11135 cat >>conftest.
$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11139 #define $ac_func innocuous_$ac_func
11141 /* System header to define __stub macros and hopefully few prototypes,
11142 which can conflict with char $ac_func (); below.
11143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144 <limits.h> exists even on freestanding compilers. */
11147 # include <limits.h>
11149 # include <assert.h>
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11161 /* The GNU C library defines this for functions which it implements
11162 to always fail with ENOSYS. Some functions are actually named
11163 something starting with __ and the normal name is an alias. */
11164 #if defined __stub_$ac_func || defined __stub___$ac_func
11171 return $ac_func ();
11176 rm -f conftest.
$ac_objext conftest
$ac_exeext
11177 if { (ac_try
="$ac_link"
11178 case "(($ac_try" in
11179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11185 grep -v '^ *+' conftest.er1 >conftest.err
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194 eval "$as_ac_var=yes"
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11199 eval "$as_ac_var=no"
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203 conftest$ac_exeext conftest.$ac_ext
11205 ac_res=`eval echo '${'$as_ac_var'}'`
11206 { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11208 if test `eval echo '${'$as_ac_var'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11212 HAVE_GTK_FILE_SELECTION=yes
11217 HAVE_GTK_FILE_CHOOSER=no
11219 for ac_func in gtk_file_chooser_dialog_new
11221 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11227 cat >conftest.$ac_ext <<_ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11235 #define $ac_func innocuous_$ac_func
11237 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func (); below.
11239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11240 <limits.h> exists even on freestanding compilers. */
11243 # include <limits.h>
11245 # include <assert.h>
11250 /* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined __stub_$ac_func || defined __stub___$ac_func
11267 return $ac_func ();
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (ac_try="$ac_link"
11274 case "(($ac_try" in
11275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11276 *) ac_try_echo
=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_link") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1
>conftest.err
11283 cat conftest.err
>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest
$ac_exeext &&
11289 $as_test_x conftest
$ac_exeext; then
11290 eval "$as_ac_var=yes"
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.
$ac_ext >&5
11295 eval "$as_ac_var=no"
11298 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11299 conftest
$ac_exeext conftest.
$ac_ext
11301 ac_res
=`eval echo '${'$as_ac_var'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 if test `eval echo '${'$as_ac_var'}'` = yes; then
11305 cat >>confdefs.h
<<_ACEOF
11306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 HAVE_GTK_FILE_CHOOSER
=yes
11313 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11314 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11316 cat >>confdefs.h
<<\_ACEOF
11317 #define HAVE_GTK_FILE_BOTH 1
11322 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11323 HAVE_GTK_AND_PTHREAD
=no
11325 for ac_header
in pthread.h
11327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 ac_res
=`eval echo '${'$as_ac_Header'}'`
11335 { echo "$as_me:$LINENO: result: $ac_res" >&5
11336 echo "${ECHO_T}$ac_res" >&6; }
11338 # Is the header compilable?
11339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11341 cat >conftest.
$ac_ext <<_ACEOF
11344 cat confdefs.h
>>conftest.
$ac_ext
11345 cat >>conftest.
$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 #include <$ac_header>
11350 rm -f conftest.
$ac_objext
11351 if { (ac_try
="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11359 grep -v '^ *+' conftest.er1 >conftest.err
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.$ac_objext; then
11367 ac_header_compiler=yes
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11372 ac_header_compiler=no
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377 echo "${ECHO_T}$ac_header_compiler" >&6; }
11379 # Is the header present?
11380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #include <$ac_header>
11390 if { (ac_try="$ac_cpp conftest.$ac_ext"
11391 case "(($ac_try" in
11392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11393 *) ac_try_echo
=$ac_try;;
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11398 grep -v '^ *+' conftest.er1
>conftest.err
11400 cat conftest.err
>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev
/null
&& {
11403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11406 ac_header_preproc
=yes
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.
$ac_ext >&5
11411 ac_header_preproc
=no
11414 rm -f conftest.err conftest.
$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc
=yes
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 eval "$as_ac_Header=\$ac_header_preproc"
11450 ac_res
=`eval echo '${'$as_ac_Header'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11456 cat >>confdefs.h
<<_ACEOF
11457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11464 if test "$ac_cv_header_pthread_h"; then
11465 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11466 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_check_lib_save_LIBS
=$LIBS
11471 LIBS
="-lpthread $LIBS"
11472 cat >conftest.
$ac_ext <<_ACEOF
11475 cat confdefs.h
>>conftest.
$ac_ext
11476 cat >>conftest.
$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11485 char pthread_self ();
11489 return pthread_self ();
11494 rm -f conftest.
$ac_objext conftest
$ac_exeext
11495 if { (ac_try
="$ac_link"
11496 case "(($ac_try" in
11497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
11503 grep -v '^ *+' conftest.er1 >conftest.err
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest$ac_exeext &&
11511 $as_test_x conftest$ac_exeext; then
11512 ac_cv_lib_pthread_pthread_self=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_lib_pthread_pthread_self=no
11520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11524 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11525 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11526 if test $ac_cv_lib_pthread_pthread_self = yes; then
11527 HAVE_GTK_AND_PTHREAD=yes
11531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11532 case "${canonical}" in
11534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_GTK_AND_PTHREAD 1
11546 { echo "$as_me:$LINENO: checking maybe dbus" >&5
11547 echo $ECHO_N "checking maybe dbus... $ECHO_C" >&6; }
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
11650 { echo "$as_me:$LINENO: result: $HAVE_DBUS" >&5
11651 echo "${ECHO_T}$HAVE_DBUS" >&6; }
11653 { echo "$as_me:$LINENO: result: no bub" >&5
11654 echo "${ECHO_T}no bub" >&6; }
11657 ### Link with -lXft if available to work around a bug.
11659 if test "${HAVE_GTK}" = "yes"; then
11663 # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config; ac_word=$2
11665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 case $PKG_CONFIG in
11672 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11694 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11695 if test -n "$PKG_CONFIG"; then
11696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11699 { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11705 if test "$PKG_CONFIG" = "no" ; then
11708 PKG_CONFIG_MIN_VERSION=0.9.0
11709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11710 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11711 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11713 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11714 { echo "$as_me:$LINENO: result: yes" >&5
11715 echo "${ECHO_T}yes" >&6; }
11718 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11719 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11720 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11721 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11722 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11724 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11725 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11726 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
11727 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11728 echo "${ECHO_T}$XFT_LIBS" >&6; }
11730 { echo "$as_me:$LINENO: result: no" >&5
11731 echo "${ECHO_T}no" >&6; }
11734 ## If we have a custom action on failure, don't print errors, but
11735 ## do set a variable so people can do so.
11736 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11748 if test $succeeded = yes; then
11754 if test "$HAVE_XFT" != no; then
11755 OLD_CFLAGS="$CPPFLAGS"
11756 OLD_CPPFLAGS="$CFLAGS"
11758 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11759 CFLAGS="$CFLAGS $XFT_CFLAGS"
11760 LIBS="$XFT_LIBS $LIBS"
11761 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11762 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11763 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11768 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11770 # Is the header compilable?
11771 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11772 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 $ac_includes_default
11780 #include <X11/Xft/Xft.h>
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11786 *) ac_try_echo
=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1
>conftest.err
11793 cat conftest.err
>&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } && {
11796 test -z "$ac_c_werror_flag" ||
11797 test ! -s conftest.err
11798 } && test -s conftest.
$ac_objext; then
11799 ac_header_compiler
=yes
11801 echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.
$ac_ext >&5
11804 ac_header_compiler
=no
11807 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11809 echo "${ECHO_T}$ac_header_compiler" >&6; }
11811 # Is the header present?
11812 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11813 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11820 #include <X11/Xft/Xft.h>
11822 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11823 case "(($ac_try" in
11824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11825 *) ac_try_echo=$ac_try;;
11827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11830 grep -v '^ *+' conftest.er1 >conftest.err
11832 cat conftest.err >&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } >/dev/null && {
11835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11836 test ! -s conftest.err
11838 ac_header_preproc=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11843 ac_header_preproc=no
11846 rm -f conftest.err conftest.$ac_ext
11847 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11848 echo "${ECHO_T}$ac_header_preproc" >&6; }
11850 # So? What about this header?
11851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11853 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11854 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11856 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11857 ac_header_preproc=yes
11860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11861 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11862 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11863 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11865 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11867 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11869 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11871 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11875 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11876 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11877 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11882 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11883 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11886 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11887 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11888 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11889 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
11892 ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lXft $XFT_LIBS $LIBS"
11894 cat >conftest.$ac_ext <<_ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h. */
11901 /* Override any GCC internal prototype to avoid an error.
11902 Use char because int might match the return type of a GCC
11903 builtin and then its argument prototype would still apply. */
11907 char XftFontOpen ();
11911 return XftFontOpen ();
11916 rm -f conftest.$ac_objext conftest$ac_exeext
11917 if { (ac_try="$ac_link"
11918 case "(($ac_try" in
11919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11920 *) ac_try_echo
=$ac_try;;
11922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11923 (eval "$ac_link") 2>conftest.er1
11925 grep -v '^ *+' conftest.er1
>conftest.err
11927 cat conftest.err
>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); } && {
11930 test -z "$ac_c_werror_flag" ||
11931 test ! -s conftest.err
11932 } && test -s conftest
$ac_exeext &&
11933 $as_test_x conftest
$ac_exeext; then
11934 ac_cv_lib_Xft_XftFontOpen
=yes
11936 echo "$as_me: failed program was:" >&5
11937 sed 's/^/| /' conftest.
$ac_ext >&5
11939 ac_cv_lib_Xft_XftFontOpen
=no
11942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11943 conftest
$ac_exeext conftest.
$ac_ext
11944 LIBS
=$ac_check_lib_save_LIBS
11946 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11947 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11948 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11956 if test "${HAVE_XFT}" = "yes"; then
11958 cat >>confdefs.h
<<\_ACEOF
11963 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
11965 CFLAGS
="$OLD_CPPFLAGS"
11966 CFLAGS
="$OLD_CFLAGS"
11973 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11974 if test "$with_xaw3d" != no
; then
11975 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11976 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11977 if test "${emacs_cv_xaw3d+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.
$ac_ext <<_ACEOF
11983 cat confdefs.h
>>conftest.
$ac_ext
11984 cat >>conftest.
$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 #include <X11/Intrinsic.h>
11988 #include <X11/Xaw3d/Simple.h>
11997 rm -f conftest.
$ac_objext conftest
$ac_exeext
11998 if { (ac_try
="$ac_link"
11999 case "(($ac_try" in
12000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12030 if test $emacs_cv_xaw3d = yes; then
12031 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12032 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12033 USE_X_TOOLKIT=LUCID
12036 cat >>confdefs.h <<\_ACEOF
12037 #define HAVE_XAW3D 1
12041 { echo "$as_me:$LINENO: result: no" >&5
12042 echo "${ECHO_T}no" >&6; }
12043 { echo "$as_me:$LINENO: checking for libXaw" >&5
12044 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12045 if test "${emacs_cv_xaw+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 cat >conftest.$ac_ext <<_ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12055 #include <X11/Intrinsic.h>
12056 #include <X11/Xaw/Simple.h>
12065 rm -f conftest.$ac_objext conftest$ac_exeext
12066 if { (ac_try="$ac_link"
12067 case "(($ac_try" in
12068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12069 *) ac_try_echo
=$ac_try;;
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072 (eval "$ac_link") 2>conftest.er1
12074 grep -v '^ *+' conftest.er1
>conftest.err
12076 cat conftest.err
>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } && {
12079 test -z "$ac_c_werror_flag" ||
12080 test ! -s conftest.err
12081 } && test -s conftest
$ac_exeext &&
12082 $as_test_x conftest
$ac_exeext; then
12085 echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.
$ac_ext >&5
12091 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12092 conftest
$ac_exeext conftest.
$ac_ext
12095 if test $emacs_cv_xaw = yes; then
12096 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12097 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12098 USE_X_TOOLKIT
=LUCID
12099 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12100 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12101 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12102 { (exit 1); exit 1; }; }
12104 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12105 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12111 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12113 if test "${USE_X_TOOLKIT}" != "none"; then
12114 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12115 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12116 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.
$ac_ext <<_ACEOF
12122 cat confdefs.h
>>conftest.
$ac_ext
12123 cat >>conftest.
$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #include <X11/Intrinsic.h>
12129 #if XtSpecificationRelease < 6
12137 rm -f conftest.
$ac_objext conftest
$ac_exeext
12138 if { (ac_try
="$ac_link"
12139 case "(($ac_try" in
12140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_link") 2>conftest.er1
12146 grep -v '^ *+' conftest.er1 >conftest.err
12148 cat conftest.err >&5
12149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150 (exit $ac_status); } && {
12151 test -z "$ac_c_werror_flag" ||
12152 test ! -s conftest.err
12153 } && test -s conftest$ac_exeext &&
12154 $as_test_x conftest$ac_exeext; then
12155 emacs_cv_x11_toolkit_version_6=yes
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 emacs_cv_x11_toolkit_version_6=no
12163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12164 conftest$ac_exeext conftest.$ac_ext
12167 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12168 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12169 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12170 echo "${ECHO_T}6 or newer" >&6; }
12172 cat >>confdefs.h <<\_ACEOF
12173 #define HAVE_X11XTR6 1
12177 { echo "$as_me:$LINENO: result: before 6" >&5
12178 echo "${ECHO_T}before 6" >&6; }
12182 if test x$HAVE_X11XTR6 = xyes; then
12183 LIBS="-lXt -lSM -lICE $LIBS"
12188 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12189 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12190 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 ac_check_lib_save_LIBS=$LIBS
12195 cat >conftest.$ac_ext <<_ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h. */
12202 /* Override any GCC internal prototype to avoid an error.
12203 Use char because int might match the return type of a GCC
12204 builtin and then its argument prototype would still apply. */
12208 char XmuConvertStandardSelection ();
12212 return XmuConvertStandardSelection ();
12217 rm -f conftest.$ac_objext conftest$ac_exeext
12218 if { (ac_try="$ac_link"
12219 case "(($ac_try" in
12220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12221 *) ac_try_echo
=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_link") 2>conftest.er1
12226 grep -v '^ *+' conftest.er1
>conftest.err
12228 cat conftest.err
>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest
$ac_exeext &&
12234 $as_test_x conftest
$ac_exeext; then
12235 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12237 echo "$as_me: failed program was:" >&5
12238 sed 's/^/| /' conftest.
$ac_ext >&5
12240 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12244 conftest
$ac_exeext conftest.
$ac_ext
12245 LIBS
=$ac_check_lib_save_LIBS
12247 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12248 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12249 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12250 cat >>confdefs.h
<<_ACEOF
12251 #define HAVE_LIBXMU 1
12258 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12261 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12262 if test "${HAVE_X11}" = "yes"; then
12263 if test "${USE_X_TOOLKIT}" != "none"; then
12265 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12266 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12267 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 ac_check_lib_save_LIBS
=$LIBS
12271 LIBS
="-lXext $LIBS"
12272 cat >conftest.
$ac_ext <<_ACEOF
12275 cat confdefs.h
>>conftest.
$ac_ext
12276 cat >>conftest.
$ac_ext <<_ACEOF
12277 /* end confdefs.h. */
12279 /* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12285 char XShapeQueryExtension ();
12289 return XShapeQueryExtension ();
12294 rm -f conftest.
$ac_objext conftest
$ac_exeext
12295 if { (ac_try
="$ac_link"
12296 case "(($ac_try" in
12297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12301 (eval "$ac_link") 2>conftest.er1
12303 grep -v '^ *+' conftest.er1 >conftest.err
12305 cat conftest.err >&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } && {
12308 test -z "$ac_c_werror_flag" ||
12309 test ! -s conftest.err
12310 } && test -s conftest$ac_exeext &&
12311 $as_test_x conftest$ac_exeext; then
12312 ac_cv_lib_Xext_XShapeQueryExtension=yes
12314 echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12317 ac_cv_lib_Xext_XShapeQueryExtension=no
12320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12321 conftest$ac_exeext conftest.$ac_ext
12322 LIBS=$ac_check_lib_save_LIBS
12324 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12325 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12326 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12327 cat >>confdefs.h <<_ACEOF
12328 #define HAVE_LIBXEXT 1
12331 LIBS="-lXext $LIBS"
12338 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12339 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12340 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12341 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12342 echo $ECHO_N "(cached) $ECHO_C" >&6
12344 cat >conftest.$ac_ext <<_ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12354 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12357 Motif version prior to 2.1.
12363 rm -f conftest.$ac_objext
12364 if { (ac_try="$ac_compile"
12365 case "(($ac_try" in
12366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12367 *) ac_try_echo
=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_compile") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1
>conftest.err
12374 cat conftest.err
>&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } && {
12377 test -z "$ac_c_werror_flag" ||
12378 test ! -s conftest.err
12379 } && test -s conftest.
$ac_objext; then
12380 emacs_cv_motif_version_2_1
=yes
12382 echo "$as_me: failed program was:" >&5
12383 sed 's/^/| /' conftest.
$ac_ext >&5
12385 emacs_cv_motif_version_2_1
=no
12388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12390 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12391 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12392 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12393 if test $emacs_cv_motif_version_2_1 = yes; then
12396 cat >>confdefs.h
<<\_ACEOF
12397 #define HAVE_MOTIF_2_1 1
12400 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12401 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12405 ac_check_lib_save_LIBS
=$LIBS
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 /* Override any GCC internal prototype to avoid an error.
12415 Use char because int might match the return type of a GCC
12416 builtin and then its argument prototype would still apply. */
12420 char XpCreateContext ();
12424 return XpCreateContext ();
12429 rm -f conftest.
$ac_objext conftest
$ac_exeext
12430 if { (ac_try
="$ac_link"
12431 case "(($ac_try" in
12432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_link") 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest$ac_exeext &&
12446 $as_test_x conftest$ac_exeext; then
12447 ac_cv_lib_Xp_XpCreateContext=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12452 ac_cv_lib_Xp_XpCreateContext=no
12455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12459 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12460 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12461 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12465 if test ${HAVE_LIBXP} = yes; then
12467 cat >>confdefs.h <<\_ACEOF
12468 #define HAVE_LIBXP 1
12473 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12474 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12475 if test "${emacs_cv_lesstif+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 # We put this in CFLAGS temporarily to precede other -I options
12479 # that might be in CFLAGS temporarily.
12480 # We put this in CPPFLAGS where it precedes the other -I options.
12481 OLD_CPPFLAGS=$CPPFLAGS
12483 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12484 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12500 rm -f conftest.$ac_objext
12501 if { (ac_try="$ac_compile"
12502 case "(($ac_try" in
12503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12504 *) ac_try_echo
=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_compile") 2>conftest.er1
12509 grep -v '^ *+' conftest.er1
>conftest.err
12511 cat conftest.err
>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); } && {
12514 test -z "$ac_c_werror_flag" ||
12515 test ! -s conftest.err
12516 } && test -s conftest.
$ac_objext; then
12517 emacs_cv_lesstif
=yes
12519 echo "$as_me: failed program was:" >&5
12520 sed 's/^/| /' conftest.
$ac_ext >&5
12522 emacs_cv_lesstif
=no
12525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12527 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12528 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12529 if test $emacs_cv_lesstif = yes; then
12530 # Make sure this -I option remains in CPPFLAGS after it is set
12531 # back to REAL_CPPFLAGS.
12532 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12533 # have those other -I options anyway. Ultimately, having this
12534 # directory ultimately in CPPFLAGS will be enough.
12535 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12536 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12539 CPPFLAGS
=$OLD_CPPFLAGS
12546 USE_TOOLKIT_SCROLL_BARS
=no
12547 if test "${with_toolkit_scroll_bars}" != "no"; then
12548 if test "${USE_X_TOOLKIT}" != "none"; then
12549 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12550 cat >>confdefs.h
<<\_ACEOF
12551 #define USE_TOOLKIT_SCROLL_BARS 1
12555 USE_TOOLKIT_SCROLL_BARS
=yes
12556 elif test "${HAVE_XAW3D}" = "yes"; then
12557 cat >>confdefs.h
<<\_ACEOF
12558 #define USE_TOOLKIT_SCROLL_BARS 1
12561 USE_TOOLKIT_SCROLL_BARS
=yes
12563 elif test "${HAVE_GTK}" = "yes"; then
12564 cat >>confdefs.h
<<\_ACEOF
12565 #define USE_TOOLKIT_SCROLL_BARS 1
12568 USE_TOOLKIT_SCROLL_BARS
=yes
12569 elif test "${HAVE_CARBON}" = "yes"; then
12570 cat >>confdefs.h
<<\_ACEOF
12571 #define USE_TOOLKIT_SCROLL_BARS 1
12574 USE_TOOLKIT_SCROLL_BARS
=yes
12578 cat >conftest.
$ac_ext <<_ACEOF
12581 cat confdefs.h
>>conftest.
$ac_ext
12582 cat >>conftest.
$ac_ext <<_ACEOF
12583 /* end confdefs.h. */
12585 #include <X11/Xlib.h>
12586 #include <X11/Xresource.h>
12595 rm -f conftest.
$ac_objext
12596 if { (ac_try
="$ac_compile"
12597 case "(($ac_try" in
12598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12599 *) ac_try_echo=$ac_try;;
12601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12602 (eval "$ac_compile") 2>conftest.er1
12604 grep -v '^ *+' conftest.er1 >conftest.err
12606 cat conftest.err >&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); } && {
12609 test -z "$ac_c_werror_flag" ||
12610 test ! -s conftest.err
12611 } && test -s conftest.$ac_objext; then
12614 cat >>confdefs.h <<\_ACEOF
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.$ac_ext >&5
12625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 if test "${with_xim}" != "no"; then
12630 cat >>confdefs.h <<\_ACEOF
12637 if test "${HAVE_XIM}" != "no"; then
12638 late_CFLAGS=$CFLAGS
12639 if test "$GCC" = yes; then
12640 CFLAGS="$CFLAGS --pedantic-errors"
12642 cat >conftest.$ac_ext <<_ACEOF
12645 cat confdefs.h >>conftest.$ac_ext
12646 cat >>conftest.$ac_ext <<_ACEOF
12647 /* end confdefs.h. */
12649 #include <X11/Xlib.h>
12650 #include <X11/Xresource.h>
12659 XPointer *client_data;
12661 /* If we're not using GCC, it's probably not XFree86, and this is
12662 probably right, but we can't use something like --pedantic-errors. */
12663 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12664 char*, XIMProc, XPointer*);
12666 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12676 *) ac_try_echo
=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12681 grep -v '^ *+' conftest.er1
>conftest.err
12683 cat conftest.err
>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.
$ac_objext; then
12689 emacs_cv_arg6_star
=yes
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.
$ac_ext >&5
12697 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12699 if test "$emacs_cv_arg6_star" = yes; then
12700 cat >>confdefs.h
<<\_ACEOF
12701 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12705 cat >>confdefs.h
<<\_ACEOF
12706 #define XRegisterIMInstantiateCallback_arg6 XPointer
12710 CFLAGS
=$late_CFLAGS
12713 ### Use -lXpm if available, unless `--with-xpm=no'.
12715 if test "${HAVE_X11}" = "yes"; then
12716 if test "${with_xpm}" != "no"; then
12717 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12718 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12719 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12720 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12724 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12726 # Is the header compilable?
12727 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12728 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12729 cat >conftest.
$ac_ext <<_ACEOF
12732 cat confdefs.h
>>conftest.
$ac_ext
12733 cat >>conftest.
$ac_ext <<_ACEOF
12734 /* end confdefs.h. */
12735 $ac_includes_default
12736 #include <X11/xpm.h>
12738 rm -f conftest.
$ac_objext
12739 if { (ac_try
="$ac_compile"
12740 case "(($ac_try" in
12741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_compile") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest.$ac_objext; then
12755 ac_header_compiler=yes
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_header_compiler=no
12763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12765 echo "${ECHO_T}$ac_header_compiler" >&6; }
12767 # Is the header present?
12768 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12769 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12770 cat >conftest.$ac_ext <<_ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h. */
12776 #include <X11/xpm.h>
12778 if { (ac_try="$ac_cpp conftest.$ac_ext"
12779 case "(($ac_try" in
12780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12781 *) ac_try_echo
=$ac_try;;
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12786 grep -v '^ *+' conftest.er1
>conftest.err
12788 cat conftest.err
>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } >/dev
/null
&& {
12791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12794 ac_header_preproc
=yes
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.
$ac_ext >&5
12799 ac_header_preproc
=no
12802 rm -f conftest.err conftest.
$ac_ext
12803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12804 echo "${ECHO_T}$ac_header_preproc" >&6; }
12806 # So? What about this header?
12807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12809 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12810 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12812 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12813 ac_header_preproc
=yes
12816 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12817 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12818 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12819 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12820 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12821 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12822 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12823 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12824 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12825 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12826 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12827 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12831 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12832 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12833 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12838 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12839 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12842 if test $ac_cv_header_X11_xpm_h = yes; then
12843 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12844 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12845 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12846 echo $ECHO_N "(cached) $ECHO_C" >&6
12848 ac_check_lib_save_LIBS
=$LIBS
12849 LIBS
="-lXpm -lX11 $LIBS"
12850 cat >conftest.
$ac_ext <<_ACEOF
12853 cat confdefs.h
>>conftest.
$ac_ext
12854 cat >>conftest.
$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12857 /* Override any GCC internal prototype to avoid an error.
12858 Use char because int might match the return type of a GCC
12859 builtin and then its argument prototype would still apply. */
12863 char XpmReadFileToPixmap ();
12867 return XpmReadFileToPixmap ();
12872 rm -f conftest.
$ac_objext conftest
$ac_exeext
12873 if { (ac_try
="$ac_link"
12874 case "(($ac_try" in
12875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_link") 2>conftest.er1
12881 grep -v '^ *+' conftest.er1 >conftest.err
12883 cat conftest.err >&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } && {
12886 test -z "$ac_c_werror_flag" ||
12887 test ! -s conftest.err
12888 } && test -s conftest$ac_exeext &&
12889 $as_test_x conftest$ac_exeext; then
12890 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12892 echo "$as_me: failed program was:" >&5
12893 sed 's/^/| /' conftest.$ac_ext >&5
12895 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12899 conftest$ac_exeext conftest.$ac_ext
12900 LIBS=$ac_check_lib_save_LIBS
12902 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12903 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12904 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12911 if test "${HAVE_XPM}" = "yes"; then
12912 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12913 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12914 cat >conftest.$ac_ext <<_ACEOF
12917 cat confdefs.h >>conftest.$ac_ext
12918 cat >>conftest.$ac_ext <<_ACEOF
12919 /* end confdefs.h. */
12920 #include "X11/xpm.h"
12921 #ifndef XpmReturnAllocPixels
12922 no_return_alloc_pixels
12926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12927 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12935 if test "${HAVE_XPM}" = "yes"; then
12936 { echo "$as_me:$LINENO: result: yes" >&5
12937 echo "${ECHO_T}yes" >&6; }
12939 { echo "$as_me:$LINENO: result: no" >&5
12940 echo "${ECHO_T}no" >&6; }
12945 if test "${HAVE_XPM}" = "yes"; then
12947 cat >>confdefs.h <<\_ACEOF
12954 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12956 if test "${HAVE_X11}" = "yes"; then
12957 if test "${with_jpeg}" != "no"; then
12958 if test "${ac_cv_header_jerror_h+set}" = set; then
12959 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12960 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12961 if test "${ac_cv_header_jerror_h+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12965 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12967 # Is the header compilable?
12968 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12969 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12970 cat >conftest.$ac_ext <<_ACEOF
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12977 #include <jerror.h>
12979 rm -f conftest.$ac_objext
12980 if { (ac_try="$ac_compile"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_compile") 2>conftest.er1
12988 grep -v '^
*+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && {
12993 test -z "$ac_c_werror_flag" ||
12994 test ! -s conftest.err
12995 } && test -s conftest.$ac_objext; then
12996 ac_header_compiler=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's
/^
/|
/' conftest.$ac_ext >&5
13001 ac_header_compiler=no
13004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13005 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13006 echo "${ECHO_T}$ac_header_compiler" >&6; }
13008 # Is the header present?
13009 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13010 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13011 cat >conftest.$ac_ext <<_ACEOF
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 #include <jerror.h>
13019 if { (ac_try="$ac_cpp conftest.$ac_ext"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13027 grep -v '^
*+' conftest.er1 >conftest.err
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } >/dev/null && {
13032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13035 ac_header_preproc=yes
13037 echo "$as_me: failed program was:" >&5
13038 sed 's
/^
/|
/' conftest.$ac_ext >&5
13040 ac_header_preproc=no
13043 rm -f conftest.err conftest.$ac_ext
13044 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13045 echo "${ECHO_T}$ac_header_preproc" >&6; }
13047 # So? What about this header?
13048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13050 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13051 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13053 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13054 ac_header_preproc=yes
13057 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13058 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13059 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13060 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13061 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13062 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13063 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13064 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13065 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13066 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13067 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13068 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13072 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13073 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13074 if test "${ac_cv_header_jerror_h+set}" = set; then
13075 echo $ECHO_N "(cached) $ECHO_C" >&6
13077 ac_cv_header_jerror_h=$ac_header_preproc
13079 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13080 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13083 if test $ac_cv_header_jerror_h = yes; then
13084 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13085 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13086 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 ac_check_lib_save_LIBS=$LIBS
13090 LIBS="-ljpeg $LIBS"
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13098 /* Override any GCC internal prototype to avoid an error.
13099 Use char because int might match the return type of a GCC
13100 builtin and then its argument prototype would still apply. */
13104 char jpeg_destroy_compress ();
13108 return jpeg_destroy_compress ();
13113 rm -f conftest.$ac_objext conftest$ac_exeext
13114 if { (ac_try="$ac_link"
13115 case "(($ac_try" in
13116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13117 *) ac_try_echo=$ac_try;;
13119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13120 (eval "$ac_link") 2>conftest.er1
13122 grep -v '^
*+' conftest.er1 >conftest.err
13124 cat conftest.err >&5
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); } && {
13127 test -z "$ac_c_werror_flag" ||
13128 test ! -s conftest.err
13129 } && test -s conftest$ac_exeext &&
13130 $as_test_x conftest$ac_exeext; then
13131 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13133 echo "$as_me: failed program was:" >&5
13134 sed 's
/^
/|
/' conftest.$ac_ext >&5
13136 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13140 conftest$ac_exeext conftest.$ac_ext
13141 LIBS=$ac_check_lib_save_LIBS
13143 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13144 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13145 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13155 if test "${HAVE_JPEG}" = "yes"; then
13156 cat >>confdefs.h <<\_ACEOF
13157 #define HAVE_JPEG 1
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13166 #include <jpeglib.h>
13167 version=JPEG_LIB_VERSION
13170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13171 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13172 cat >>confdefs.h <<\_ACEOF
13173 #define HAVE_JPEG 1
13177 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13178 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13186 ### Use -lpng if available, unless `--with-png=no'.
13188 if test "${HAVE_X11}" = "yes"; then
13189 if test "${with_png}" != "no"; then
13190 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13191 # in /usr/include/libpng.
13194 for ac_header
in png.h libpng
/png.h
13196 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13197 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13200 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 ac_res
=`eval echo '${'$as_ac_Header'}'`
13204 { echo "$as_me:$LINENO: result: $ac_res" >&5
13205 echo "${ECHO_T}$ac_res" >&6; }
13207 # Is the header compilable?
13208 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13209 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13210 cat >conftest.
$ac_ext <<_ACEOF
13213 cat confdefs.h
>>conftest.
$ac_ext
13214 cat >>conftest.
$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 $ac_includes_default
13217 #include <$ac_header>
13219 rm -f conftest.
$ac_objext
13220 if { (ac_try
="$ac_compile"
13221 case "(($ac_try" in
13222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_compile") 2>conftest.er1
13228 grep -v '^ *+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest.$ac_objext; then
13236 ac_header_compiler=yes
13238 echo "$as_me: failed program was:" >&5
13239 sed 's/^/| /' conftest.$ac_ext >&5
13241 ac_header_compiler=no
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13246 echo "${ECHO_T}$ac_header_compiler" >&6; }
13248 # Is the header present?
13249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13251 cat >conftest.$ac_ext <<_ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #include <$ac_header>
13259 if { (ac_try="$ac_cpp conftest.$ac_ext"
13260 case "(($ac_try" in
13261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13262 *) ac_try_echo
=$ac_try;;
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13267 grep -v '^ *+' conftest.er1
>conftest.err
13269 cat conftest.err
>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } >/dev
/null
&& {
13272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13275 ac_header_preproc
=yes
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.
$ac_ext >&5
13280 ac_header_preproc
=no
13283 rm -f conftest.err conftest.
$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13285 echo "${ECHO_T}$ac_header_preproc" >&6; }
13287 # So? What about this header?
13288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13294 ac_header_preproc
=yes
13297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13312 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13314 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13315 echo $ECHO_N "(cached) $ECHO_C" >&6
13317 eval "$as_ac_Header=\$ac_header_preproc"
13319 ac_res
=`eval echo '${'$as_ac_Header'}'`
13320 { echo "$as_me:$LINENO: result: $ac_res" >&5
13321 echo "${ECHO_T}$ac_res" >&6; }
13324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13325 cat >>confdefs.h
<<_ACEOF
13326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13333 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13334 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13335 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13336 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13337 echo $ECHO_N "(cached) $ECHO_C" >&6
13339 ac_check_lib_save_LIBS
=$LIBS
13340 LIBS
="-lpng -lz -lm $LIBS"
13341 cat >conftest.
$ac_ext <<_ACEOF
13344 cat confdefs.h
>>conftest.
$ac_ext
13345 cat >>conftest.
$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13348 /* Override any GCC internal prototype to avoid an error.
13349 Use char because int might match the return type of a GCC
13350 builtin and then its argument prototype would still apply. */
13354 char png_get_channels ();
13358 return png_get_channels ();
13363 rm -f conftest.
$ac_objext conftest
$ac_exeext
13364 if { (ac_try
="$ac_link"
13365 case "(($ac_try" in
13366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_link") 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } && {
13377 test -z "$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13379 } && test -s conftest$ac_exeext &&
13380 $as_test_x conftest$ac_exeext; then
13381 ac_cv_lib_png_png_get_channels=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13386 ac_cv_lib_png_png_get_channels=no
13389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13394 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13395 if test $ac_cv_lib_png_png_get_channels = yes; then
13402 if test "${HAVE_PNG}" = "yes"; then
13404 cat >>confdefs.h <<\_ACEOF
13411 ### Use -ltiff if available, unless `--with-tiff=no
'.
13413 if test "${HAVE_X11}" = "yes"; then
13414 if test "${with_tiff}" != "no"; then
13415 if test "${ac_cv_header_tiffio_h+set}" = set; then
13416 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13417 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_tiffio_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13424 # Is the header compilable?
13425 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13426 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 #include <tiffio.h>
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^
*+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_header_compiler=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's
/^
/|
/' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 echo "${ECHO_T}$ac_header_compiler" >&6; }
13465 # Is the header present?
13466 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13467 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <tiffio.h>
13476 if { (ac_try="$ac_cpp conftest.$ac_ext"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13484 grep -v '^
*+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } >/dev/null && {
13489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13492 ac_header_preproc=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's
/^
/|
/' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 echo "${ECHO_T}$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13510 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13511 ac_header_preproc=yes
13514 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13515 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13517 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13519 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13521 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13523 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13525 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13529 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13530 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_tiffio_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_cv_header_tiffio_h=$ac_header_preproc
13536 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13537 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13540 if test $ac_cv_header_tiffio_h = yes; then
13542 # At least one tiff package requires the jpeg library.
13543 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13544 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13545 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13546 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13547 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 ac_check_lib_save_LIBS=$LIBS
13550 LIBS="-ltiff $tifflibs $LIBS"
13551 cat >conftest.$ac_ext <<_ACEOF
13554 cat confdefs.h >>conftest.$ac_ext
13555 cat >>conftest.$ac_ext <<_ACEOF
13556 /* end confdefs.h. */
13558 /* Override any GCC internal prototype to avoid an error.
13559 Use char because int might match the return type of a GCC
13560 builtin and then its argument prototype would still apply. */
13564 char TIFFGetVersion ();
13568 return TIFFGetVersion ();
13573 rm -f conftest.$ac_objext conftest$ac_exeext
13574 if { (ac_try="$ac_link"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>conftest.er1
13582 grep -v '^
*+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } && {
13587 test -z "$ac_c_werror_flag" ||
13588 test ! -s conftest.err
13589 } && test -s conftest$ac_exeext &&
13590 $as_test_x conftest$ac_exeext; then
13591 ac_cv_lib_tiff_TIFFGetVersion=yes
13593 echo "$as_me: failed program was:" >&5
13594 sed 's
/^
/|
/' conftest.$ac_ext >&5
13596 ac_cv_lib_tiff_TIFFGetVersion=no
13599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13600 conftest$ac_exeext conftest.$ac_ext
13601 LIBS=$ac_check_lib_save_LIBS
13603 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13604 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13605 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13614 if test "${HAVE_TIFF}" = "yes"; then
13616 cat >>confdefs.h <<\_ACEOF
13617 #define HAVE_TIFF 1
13623 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13625 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13626 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13627 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13628 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13629 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13630 echo $ECHO_N "(cached) $ECHO_C" >&6
13632 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13633 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13635 # Is the header compilable?
13636 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13637 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13638 cat >conftest.
$ac_ext <<_ACEOF
13641 cat confdefs.h
>>conftest.
$ac_ext
13642 cat >>conftest.
$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 $ac_includes_default
13645 #include <gif_lib.h>
13647 rm -f conftest.
$ac_objext
13648 if { (ac_try
="$ac_compile"
13649 case "(($ac_try" in
13650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13651 *) ac_try_echo=$ac_try;;
13653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13654 (eval "$ac_compile") 2>conftest.er1
13656 grep -v '^ *+' conftest.er1 >conftest.err
13658 cat conftest.err >&5
13659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest.$ac_objext; then
13664 ac_header_compiler=yes
13666 echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13669 ac_header_compiler=no
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13673 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13674 echo "${ECHO_T}$ac_header_compiler" >&6; }
13676 # Is the header present?
13677 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13678 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13679 cat >conftest.$ac_ext <<_ACEOF
13682 cat confdefs.h >>conftest.$ac_ext
13683 cat >>conftest.$ac_ext <<_ACEOF
13684 /* end confdefs.h. */
13685 #include <gif_lib.h>
13687 if { (ac_try="$ac_cpp conftest.$ac_ext"
13688 case "(($ac_try" in
13689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13690 *) ac_try_echo
=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13695 grep -v '^ *+' conftest.er1
>conftest.err
13697 cat conftest.err
>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } >/dev
/null
&& {
13700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13701 test ! -s conftest.err
13703 ac_header_preproc
=yes
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.
$ac_ext >&5
13708 ac_header_preproc
=no
13711 rm -f conftest.err conftest.
$ac_ext
13712 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13713 echo "${ECHO_T}$ac_header_preproc" >&6; }
13715 # So? What about this header?
13716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13718 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13719 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13721 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13722 ac_header_preproc
=yes
13725 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13726 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13727 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13728 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13729 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13730 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13731 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13732 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13733 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13734 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13736 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13740 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13741 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13742 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13743 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 ac_cv_header_gif_lib_h
=$ac_header_preproc
13747 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13748 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13751 if test $ac_cv_header_gif_lib_h = yes; then
13752 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13753 # Earlier versions can crash Emacs.
13754 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13755 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13756 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 ac_check_lib_save_LIBS
=$LIBS
13761 cat >conftest.
$ac_ext <<_ACEOF
13764 cat confdefs.h
>>conftest.
$ac_ext
13765 cat >>conftest.
$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13768 /* Override any GCC internal prototype to avoid an error.
13769 Use char because int might match the return type of a GCC
13770 builtin and then its argument prototype would still apply. */
13774 char EGifPutExtensionLast ();
13778 return EGifPutExtensionLast ();
13783 rm -f conftest.
$ac_objext conftest
$ac_exeext
13784 if { (ac_try
="$ac_link"
13785 case "(($ac_try" in
13786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13787 *) ac_try_echo=$ac_try;;
13789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13790 (eval "$ac_link") 2>conftest.er1
13792 grep -v '^ *+' conftest.er1 >conftest.err
13794 cat conftest.err >&5
13795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest$ac_exeext &&
13800 $as_test_x conftest$ac_exeext; then
13801 ac_cv_lib_gif_EGifPutExtensionLast=yes
13803 echo "$as_me: failed program was:" >&5
13804 sed 's/^/| /' conftest.$ac_ext >&5
13806 ac_cv_lib_gif_EGifPutExtensionLast=no
13809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13810 conftest$ac_exeext conftest.$ac_ext
13811 LIBS=$ac_check_lib_save_LIBS
13813 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13814 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13815 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13825 if test "$HAVE_GIF" = yes; then
13826 ac_gif_lib_name="-lgif"
13829 # If gif_lib.h but no libgif, try libungif.
13830 if test x"$try_libungif" = xyes; then
13831 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13832 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13833 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 ac_check_lib_save_LIBS=$LIBS
13837 LIBS="-lungif $LIBS"
13838 cat >conftest.$ac_ext <<_ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h. */
13845 /* Override any GCC internal prototype to avoid an error.
13846 Use char because int might match the return type of a GCC
13847 builtin and then its argument prototype would still apply. */
13851 char EGifPutExtensionLast ();
13855 return EGifPutExtensionLast ();
13860 rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (ac_try="$ac_link"
13862 case "(($ac_try" in
13863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13864 *) ac_try_echo
=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_link") 2>conftest.er1
13869 grep -v '^ *+' conftest.er1
>conftest.err
13871 cat conftest.err
>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && {
13874 test -z "$ac_c_werror_flag" ||
13875 test ! -s conftest.err
13876 } && test -s conftest
$ac_exeext &&
13877 $as_test_x conftest
$ac_exeext; then
13878 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
13880 echo "$as_me: failed program was:" >&5
13881 sed 's/^/| /' conftest.
$ac_ext >&5
13883 ac_cv_lib_ungif_EGifPutExtensionLast
=no
13886 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13887 conftest
$ac_exeext conftest.
$ac_ext
13888 LIBS
=$ac_check_lib_save_LIBS
13890 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13891 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13892 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13897 if test "$HAVE_GIF" = yes; then
13899 cat >>confdefs.h
<<\_ACEOF
13900 #define LIBGIF -lungif
13903 ac_gif_lib_name
="-lungif"
13907 if test "${HAVE_GIF}" = "yes"; then
13909 cat >>confdefs.h
<<\_ACEOF
13916 if test "${HAVE_X11}" = "yes"; then
13919 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13920 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
13921 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13922 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
13923 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13924 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
13925 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13926 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
13927 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13928 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
13930 if test "X${MISSING}" != X
; then
13931 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13933 Maybe some development libraries/packages are missing?
13934 If you don't want to link with them give
13936 as options to configure" >&5
13937 echo "$as_me: error: The following required libraries were not found:
13939 Maybe some development libraries/packages are missing?
13940 If you don't want to link with them give
13942 as options to configure" >&2;}
13943 { (exit 1); exit 1; }; }
13947 ### Use -lgpm if available, unless `--with-gpm=no'.
13949 if test "${with_gpm}" != "no"; then
13950 if test "${ac_cv_header_gpm_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13952 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_gpm_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13961 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13962 cat >conftest.
$ac_ext <<_ACEOF
13965 cat confdefs.h
>>conftest.
$ac_ext
13966 cat >>conftest.
$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13971 rm -f conftest.
$ac_objext
13972 if { (ac_try
="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14002 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14014 *) ac_try_echo
=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14019 grep -v '^ *+' conftest.er1
>conftest.err
14021 cat conftest.err
>&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev
/null
&& {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14027 ac_header_preproc
=yes
14029 echo "$as_me: failed program was:" >&5
14030 sed 's/^/| /' conftest.
$ac_ext >&5
14032 ac_header_preproc
=no
14035 rm -f conftest.err conftest.
$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14045 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14046 ac_header_preproc
=yes
14049 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14058 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14064 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14065 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_gpm_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_cv_header_gpm_h
=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14075 if test $ac_cv_header_gpm_h = yes; then
14076 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14077 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14078 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14079 echo $ECHO_N "(cached) $ECHO_C" >&6
14081 ac_check_lib_save_LIBS
=$LIBS
14083 cat >conftest.
$ac_ext <<_ACEOF
14086 cat confdefs.h
>>conftest.
$ac_ext
14087 cat >>conftest.
$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14090 /* Override any GCC internal prototype to avoid an error.
14091 Use char because int might match the return type of a GCC
14092 builtin and then its argument prototype would still apply. */
14100 return Gpm_Open ();
14105 rm -f conftest.
$ac_objext conftest
$ac_exeext
14106 if { (ac_try
="$ac_link"
14107 case "(($ac_try" in
14108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_link") 2>conftest.er1
14114 grep -v '^ *+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } && {
14119 test -z "$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14121 } && test -s conftest$ac_exeext &&
14122 $as_test_x conftest$ac_exeext; then
14123 ac_cv_lib_gpm_Gpm_Open=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_cv_lib_gpm_Gpm_Open=no
14131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14132 conftest$ac_exeext conftest.$ac_ext
14133 LIBS=$ac_check_lib_save_LIBS
14135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14136 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14137 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14146 if test "${HAVE_GPM}" = "yes"; then
14148 cat >>confdefs.h <<\_ACEOF
14154 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14155 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14156 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14157 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14161 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14163 # Is the header compilable?
14164 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14165 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14166 cat >conftest.$ac_ext <<_ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14172 $ac_includes_default
14173 #include <malloc/malloc.h>
14175 rm -f conftest.$ac_objext
14176 if { (ac_try="$ac_compile"
14177 case "(($ac_try" in
14178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14179 *) ac_try_echo
=$ac_try;;
14181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14182 (eval "$ac_compile") 2>conftest.er1
14184 grep -v '^ *+' conftest.er1
>conftest.err
14186 cat conftest.err
>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); } && {
14189 test -z "$ac_c_werror_flag" ||
14190 test ! -s conftest.err
14191 } && test -s conftest.
$ac_objext; then
14192 ac_header_compiler
=yes
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.
$ac_ext >&5
14197 ac_header_compiler
=no
14200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14202 echo "${ECHO_T}$ac_header_compiler" >&6; }
14204 # Is the header present?
14205 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14206 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14207 cat >conftest.
$ac_ext <<_ACEOF
14210 cat confdefs.h
>>conftest.
$ac_ext
14211 cat >>conftest.
$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 #include <malloc/malloc.h>
14215 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14216 case "(($ac_try" in
14217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14218 *) ac_try_echo=$ac_try;;
14220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14223 grep -v '^ *+' conftest.er1 >conftest.err
14225 cat conftest.err >&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); } >/dev/null && {
14228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14229 test ! -s conftest.err
14231 ac_header_preproc=yes
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.$ac_ext >&5
14236 ac_header_preproc=no
14239 rm -f conftest.err conftest.$ac_ext
14240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14241 echo "${ECHO_T}$ac_header_preproc" >&6; }
14243 # So? What about this header?
14244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14247 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14249 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14250 ac_header_preproc=yes
14253 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14254 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14256 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14257 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14258 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14259 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14260 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14261 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14262 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14263 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14264 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14268 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14269 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14270 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14275 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14276 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14279 if test $ac_cv_header_malloc_malloc_h = yes; then
14281 cat >>confdefs.h <<\_ACEOF
14282 #define HAVE_MALLOC_MALLOC_H 1
14289 ### Use Mac OS X Carbon API to implement GUI.
14290 if test "${HAVE_CARBON}" = "yes"; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_CARBON 1
14296 ## Specify the install directory
14298 if test "${carbon_appdir_x}" != ""; then
14299 case ${carbon_appdir_x} in
14300 y | ye | yes) carbon_appdir=/Applications ;;
14301 * ) carbon_appdir=${carbon_appdir_x} ;;
14304 # We also have mouse menus.
14308 ### Use session management (-lSM -lICE) if available
14310 if test "${HAVE_X11}" = "yes"; then
14311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14312 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14313 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14314 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14317 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14318 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14320 # Is the header compilable?
14321 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14322 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14323 cat >conftest.$ac_ext <<_ACEOF
14326 cat confdefs.h >>conftest.$ac_ext
14327 cat >>conftest.$ac_ext <<_ACEOF
14328 /* end confdefs.h. */
14329 $ac_includes_default
14330 #include <X11/SM/SMlib.h>
14332 rm -f conftest.$ac_objext
14333 if { (ac_try="$ac_compile"
14334 case "(($ac_try" in
14335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14336 *) ac_try_echo
=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_compile") 2>conftest.er1
14341 grep -v '^ *+' conftest.er1
>conftest.err
14343 cat conftest.err
>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest.
$ac_objext; then
14349 ac_header_compiler
=yes
14351 echo "$as_me: failed program was:" >&5
14352 sed 's/^/| /' conftest.
$ac_ext >&5
14354 ac_header_compiler
=no
14357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14359 echo "${ECHO_T}$ac_header_compiler" >&6; }
14361 # Is the header present?
14362 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14363 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14364 cat >conftest.
$ac_ext <<_ACEOF
14367 cat confdefs.h
>>conftest.
$ac_ext
14368 cat >>conftest.
$ac_ext <<_ACEOF
14369 /* end confdefs.h. */
14370 #include <X11/SM/SMlib.h>
14372 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14373 case "(($ac_try" in
14374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14380 grep -v '^ *+' conftest.er1 >conftest.err
14382 cat conftest.err >&5
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); } >/dev/null && {
14385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14386 test ! -s conftest.err
14388 ac_header_preproc=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_header_preproc=no
14396 rm -f conftest.err conftest.$ac_ext
14397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14398 echo "${ECHO_T}$ac_header_preproc" >&6; }
14400 # So? What about this header?
14401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14404 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14406 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14407 ac_header_preproc=yes
14410 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14411 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14412 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14413 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14414 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14415 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14416 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14417 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14418 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14419 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14420 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14421 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14425 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14426 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14427 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14432 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14433 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14436 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14437 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14438 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14439 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14440 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 ac_check_lib_save_LIBS=$LIBS
14443 LIBS="-lSM -lICE $LIBS"
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14451 /* Override any GCC internal prototype to avoid an error.
14452 Use char because int might match the return type of a GCC
14453 builtin and then its argument prototype would still apply. */
14457 char SmcOpenConnection ();
14461 return SmcOpenConnection ();
14466 rm -f conftest.$ac_objext conftest$ac_exeext
14467 if { (ac_try="$ac_link"
14468 case "(($ac_try" in
14469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14470 *) ac_try_echo
=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1
>conftest.err
14477 cat conftest.err
>&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest
$ac_exeext &&
14483 $as_test_x conftest
$ac_exeext; then
14484 ac_cv_lib_SM_SmcOpenConnection
=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.
$ac_ext >&5
14489 ac_cv_lib_SM_SmcOpenConnection
=no
14492 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14493 conftest
$ac_exeext conftest.
$ac_ext
14494 LIBS
=$ac_check_lib_save_LIBS
14496 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14497 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14498 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14506 if test "${HAVE_X_SM}" = "yes"; then
14508 cat >>confdefs.h
<<\_ACEOF
14509 #define HAVE_X_SM 1
14514 *) LIBS
="-lSM -lICE $LIBS" ;;
14519 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14520 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14521 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14522 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14523 echo $ECHO_N "(cached) $ECHO_C" >&6
14525 cat >conftest.
$ac_ext <<_ACEOF
14528 cat confdefs.h
>>conftest.
$ac_ext
14529 cat >>conftest.
$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14540 rm -f conftest.
$ac_objext conftest
$ac_exeext
14541 if { (ac_try
="$ac_link"
14542 case "(($ac_try" in
14543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_link") 2>conftest.er1
14549 grep -v '^ *+' conftest.er1 >conftest.err
14551 cat conftest.err >&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); } && {
14554 test -z "$ac_c_werror_flag" ||
14555 test ! -s conftest.err
14556 } && test -s conftest$ac_exeext &&
14557 $as_test_x conftest$ac_exeext; then
14558 emacs_cv_netdb_declares_h_errno=yes
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 emacs_cv_netdb_declares_h_errno=no
14566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14567 conftest$ac_exeext conftest.$ac_ext
14569 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14570 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14571 if test $emacs_cv_netdb_declares_h_errno = yes; then
14573 cat >>confdefs.h <<\_ACEOF
14574 #define HAVE_H_ERRNO 1
14579 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14580 # for constant arguments. Useless!
14581 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14582 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14583 if test "${ac_cv_working_alloca_h+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 cat >conftest.$ac_ext <<_ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <alloca.h>
14596 char *p = (char *) alloca (2 * sizeof (int));
14602 rm -f conftest.$ac_objext conftest$ac_exeext
14603 if { (ac_try="$ac_link"
14604 case "(($ac_try" in
14605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14606 *) ac_try_echo
=$ac_try;;
14608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14609 (eval "$ac_link") 2>conftest.er1
14611 grep -v '^ *+' conftest.er1
>conftest.err
14613 cat conftest.err
>&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } && {
14616 test -z "$ac_c_werror_flag" ||
14617 test ! -s conftest.err
14618 } && test -s conftest
$ac_exeext &&
14619 $as_test_x conftest
$ac_exeext; then
14620 ac_cv_working_alloca_h
=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 ac_cv_working_alloca_h
=no
14628 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14629 conftest
$ac_exeext conftest.
$ac_ext
14631 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14632 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14633 if test $ac_cv_working_alloca_h = yes; then
14635 cat >>confdefs.h
<<\_ACEOF
14636 #define HAVE_ALLOCA_H 1
14641 { echo "$as_me:$LINENO: checking for alloca" >&5
14642 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14643 if test "${ac_cv_func_alloca_works+set}" = set; then
14644 echo $ECHO_N "(cached) $ECHO_C" >&6
14646 cat >conftest.
$ac_ext <<_ACEOF
14649 cat confdefs.h
>>conftest.
$ac_ext
14650 cat >>conftest.
$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14653 # define alloca __builtin_alloca
14656 # include <malloc.h>
14657 # define alloca _alloca
14659 # ifdef HAVE_ALLOCA_H
14660 # include <alloca.h>
14665 # ifndef alloca /* predefined by HP cc +Olibcalls */
14676 char *p = (char *) alloca (1);
14682 rm -f conftest.
$ac_objext conftest
$ac_exeext
14683 if { (ac_try
="$ac_link"
14684 case "(($ac_try" in
14685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>conftest.er1
14691 grep -v '^ *+' conftest.er1 >conftest.err
14693 cat conftest.err >&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } && {
14696 test -z "$ac_c_werror_flag" ||
14697 test ! -s conftest.err
14698 } && test -s conftest$ac_exeext &&
14699 $as_test_x conftest$ac_exeext; then
14700 ac_cv_func_alloca_works=yes
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14705 ac_cv_func_alloca_works=no
14708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14709 conftest$ac_exeext conftest.$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14712 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14714 if test $ac_cv_func_alloca_works = yes; then
14716 cat >>confdefs.h <<\_ACEOF
14717 #define HAVE_ALLOCA 1
14721 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14722 # that cause trouble. Some versions do not even contain alloca or
14723 # contain a buggy version. If you still want to use their alloca,
14724 # use ar to extract alloca.o from them instead of compiling alloca.c.
14726 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14728 cat >>confdefs.h <<\_ACEOF
14733 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14734 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14735 if test "${ac_cv_os_cray+set}" = set; then
14736 echo $ECHO_N "(cached
) $ECHO_C" >&6
14738 cat >conftest.$ac_ext <<_ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h. */
14744 #if defined CRAY && ! defined CRAY2
14751 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14752 $EGREP "webecray
" >/dev/null 2>&1; then
14760 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14761 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14762 if test $ac_cv_os_cray = yes; then
14763 for ac_func in _getb67 GETB67 getb67; do
14764 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14765 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14766 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14767 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14768 echo $ECHO_N "(cached
) $ECHO_C" >&6
14770 cat >conftest.$ac_ext <<_ACEOF
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14778 #define $ac_func innocuous_$ac_func
14780 /* System header to define __stub macros and hopefully few prototypes,
14781 which can conflict with char $ac_func (); below.
14782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14783 <limits.h> exists even on freestanding compilers. */
14786 # include <limits.h>
14788 # include <assert.h>
14793 /* Override any GCC internal prototype to avoid an error.
14794 Use char because int might match the return type of a GCC
14795 builtin and then its argument prototype would still apply. */
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined __stub_$ac_func || defined __stub___$ac_func
14810 return $ac_func ();
14815 rm -f conftest.$ac_objext conftest$ac_exeext
14816 if { (ac_try="$ac_link"
14817 case "(($ac_try" in
14818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14819 *) ac_try_echo=$ac_try;;
14821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14822 (eval "$ac_link") 2>conftest.er1
14824 grep -v '^ *+' conftest.er1 >conftest.err
14826 cat conftest.err >&5
14827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14828 (exit $ac_status); } && {
14829 test -z "$ac_c_werror_flag" ||
14830 test ! -s conftest.err
14831 } && test -s conftest$ac_exeext &&
14832 $as_test_x conftest$ac_exeext; then
14833 eval "$as_ac_var=yes"
14835 echo "$as_me: failed program was
:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14838 eval "$as_ac_var=no
"
14841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14842 conftest$ac_exeext conftest.$ac_ext
14844 ac_res=`eval echo '${'$as_ac_var'}'`
14845 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_var'}'` = yes; then
14849 cat >>confdefs.h <<_ACEOF
14850 #define CRAY_STACKSEG_END $ac_func
14859 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14860 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14861 if test "${ac_cv_c_stack_direction+set}" = set; then
14862 echo $ECHO_N "(cached
) $ECHO_C" >&6
14864 if test "$cross_compiling" = yes; then
14865 ac_cv_c_stack_direction=0
14867 cat >conftest.$ac_ext <<_ACEOF
14870 cat confdefs.h >>conftest.$ac_ext
14871 cat >>conftest.$ac_ext <<_ACEOF
14872 /* end confdefs.h. */
14873 $ac_includes_default
14875 find_stack_direction ()
14877 static char *addr = 0;
14882 return find_stack_direction ();
14885 return (&dummy > addr) ? 1 : -1;
14891 return find_stack_direction () < 0;
14894 rm -f conftest$ac_exeext
14895 if { (ac_try="$ac_link"
14896 case "(($ac_try" in
14897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14898 *) ac_try_echo=$ac_try;;
14900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14901 (eval "$ac_link") 2>&5
14903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_try") 2>&5
14912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_cv_c_stack_direction=1
14916 echo "$as_me: program exited with status
$ac_status" >&5
14917 echo "$as_me: failed program was
:" >&5
14918 sed 's/^/| /' conftest.$ac_ext >&5
14920 ( exit $ac_status )
14921 ac_cv_c_stack_direction=-1
14923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14929 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14931 cat >>confdefs.h <<_ACEOF
14932 #define STACK_DIRECTION $ac_cv_c_stack_direction
14939 if test x"$ac_cv_func_alloca_works" != xyes; then
14940 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
14941 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
14942 { (exit 1); exit 1; }; }
14945 # fmod, logb, and frexp are found in -lm on most systems.
14946 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14948 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14949 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14950 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14951 echo $ECHO_N "(cached
) $ECHO_C" >&6
14953 ac_check_lib_save_LIBS=$LIBS
14955 cat >conftest.$ac_ext <<_ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14986 grep -v '^ *+' conftest.er1 >conftest.err
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_c_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14995 ac_cv_lib_m_sqrt=yes
14997 echo "$as_me: failed program was
:" >&5
14998 sed 's/^/| /' conftest.$ac_ext >&5
15000 ac_cv_lib_m_sqrt=no
15003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15004 conftest$ac_exeext conftest.$ac_ext
15005 LIBS=$ac_check_lib_save_LIBS
15007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15008 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15009 if test $ac_cv_lib_m_sqrt = yes; then
15010 cat >>confdefs.h <<_ACEOF
15011 #define HAVE_LIBM 1
15019 # Check for mail-locking functions in a "mail" library. Probably this should
15020 # have the same check as for liblockfile below.
15022 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15023 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15024 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15025 echo $ECHO_N "(cached
) $ECHO_C" >&6
15027 ac_check_lib_save_LIBS=$LIBS
15028 LIBS="-lmail $LIBS"
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15036 /* Override any GCC internal prototype to avoid an error.
15037 Use char because int might match the return type of a GCC
15038 builtin and then its argument prototype would still apply. */
15046 return maillock ();
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 ac_cv_lib_mail_maillock=yes
15071 echo "$as_me: failed program was
:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 ac_cv_lib_mail_maillock=no
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15079 LIBS=$ac_check_lib_save_LIBS
15081 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15082 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15083 if test $ac_cv_lib_mail_maillock = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define HAVE_LIBMAIL 1
15088 LIBS="-lmail $LIBS"
15093 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15094 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15095 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15096 echo $ECHO_N "(cached
) $ECHO_C" >&6
15098 ac_check_lib_save_LIBS=$LIBS
15099 LIBS="-llockfile $LIBS"
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15107 /* Override any GCC internal prototype to avoid an error.
15108 Use char because int might match the return type of a GCC
15109 builtin and then its argument prototype would still apply. */
15117 return maillock ();
15122 rm -f conftest.$ac_objext conftest$ac_exeext
15123 if { (ac_try="$ac_link"
15124 case "(($ac_try" in
15125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_c_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15140 ac_cv_lib_lockfile_maillock=yes
15142 echo "$as_me: failed program was
:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_cv_lib_lockfile_maillock=no
15148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15149 conftest$ac_exeext conftest.$ac_ext
15150 LIBS=$ac_check_lib_save_LIBS
15152 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15153 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15154 if test $ac_cv_lib_lockfile_maillock = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define HAVE_LIBLOCKFILE 1
15159 LIBS="-llockfile $LIBS"
15163 # If we have the shared liblockfile, assume we must use it for mail
15164 # locking (e.g. Debian). If we couldn't link against liblockfile
15165 # (no liblockfile.a installed), ensure that we don't need to.
15166 if test "$ac_cv_lib_lockfile_maillock" = no; then
15167 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15168 set dummy liblockfile.so; ac_word=$2
15169 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15170 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15171 if test "${ac_cv_prog_liblockfile+set}" = set; then
15172 echo $ECHO_N "(cached
) $ECHO_C" >&6
15174 if test -n "$liblockfile"; then
15175 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15178 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15179 for as_dir in $as_dummy
15182 test -z "$as_dir" && as_dir=.
15183 for ac_exec_ext in '' $ac_executable_extensions; do
15184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15185 ac_cv_prog_liblockfile="yes"
15186 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15193 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15196 liblockfile=$ac_cv_prog_liblockfile
15197 if test -n "$liblockfile"; then
15198 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15199 echo "${ECHO_T}$liblockfile" >&6; }
15201 { echo "$as_me:$LINENO: result
: no
" >&5
15202 echo "${ECHO_T}no
" >&6; }
15206 if test $ac_cv_prog_liblockfile = yes; then
15207 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15208 This probably means that movemail could lose mail.
15209 There may be a \`development' package to
install containing liblockfile.
" >&5
15210 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15211 This probably means that movemail could lose mail.
15212 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15213 { (exit 1); exit 1; }; }
15218 for ac_func in touchlock
15220 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15221 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15222 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15223 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15224 echo $ECHO_N "(cached
) $ECHO_C" >&6
15226 cat >conftest.$ac_ext <<_ACEOF
15229 cat confdefs.h >>conftest.$ac_ext
15230 cat >>conftest.$ac_ext <<_ACEOF
15231 /* end confdefs.h. */
15232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15234 #define $ac_func innocuous_$ac_func
15236 /* System header to define __stub macros and hopefully few prototypes,
15237 which can conflict with char $ac_func (); below.
15238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15239 <limits.h> exists even on freestanding compilers. */
15242 # include <limits.h>
15244 # include <assert.h>
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15256 /* The GNU C library defines this for functions which it implements
15257 to always fail with ENOSYS. Some functions are actually named
15258 something starting with __ and the normal name is an alias. */
15259 #if defined __stub_$ac_func || defined __stub___$ac_func
15266 return $ac_func ();
15271 rm -f conftest.$ac_objext conftest$ac_exeext
15272 if { (ac_try="$ac_link"
15273 case "(($ac_try" in
15274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15275 *) ac_try_echo=$ac_try;;
15277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15278 (eval "$ac_link") 2>conftest.er1
15280 grep -v '^ *+' conftest.er1 >conftest.err
15282 cat conftest.err >&5
15283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15284 (exit $ac_status); } && {
15285 test -z "$ac_c_werror_flag" ||
15286 test ! -s conftest.err
15287 } && test -s conftest$ac_exeext &&
15288 $as_test_x conftest$ac_exeext; then
15289 eval "$as_ac_var=yes"
15291 echo "$as_me: failed program was
:" >&5
15292 sed 's/^/| /' conftest.$ac_ext >&5
15294 eval "$as_ac_var=no
"
15297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15298 conftest$ac_exeext conftest.$ac_ext
15300 ac_res=`eval echo '${'$as_ac_var'}'`
15301 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15302 echo "${ECHO_T}$ac_res" >&6; }
15303 if test `eval echo '${'$as_ac_var'}'` = yes; then
15304 cat >>confdefs.h <<_ACEOF
15305 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15312 for ac_header in maillock.h
15314 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15316 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15317 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15318 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15319 echo $ECHO_N "(cached
) $ECHO_C" >&6
15321 ac_res=`eval echo '${'$as_ac_Header'}'`
15322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15323 echo "${ECHO_T}$ac_res" >&6; }
15325 # Is the header compilable?
15326 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15327 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 $ac_includes_default
15335 #include <$ac_header>
15337 rm -f conftest.$ac_objext
15338 if { (ac_try="$ac_compile"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_compile") 2>conftest.er1
15346 grep -v '^ *+' conftest.er1 >conftest.err
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest.$ac_objext; then
15354 ac_header_compiler=yes
15356 echo "$as_me: failed program was
:" >&5
15357 sed 's/^/| /' conftest.$ac_ext >&5
15359 ac_header_compiler=no
15362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15363 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15364 echo "${ECHO_T}$ac_header_compiler" >&6; }
15366 # Is the header present?
15367 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15368 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 #include <$ac_header>
15377 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15389 (exit $ac_status); } >/dev/null && {
15390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15391 test ! -s conftest.err
15393 ac_header_preproc=yes
15395 echo "$as_me: failed program was
:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15398 ac_header_preproc=no
15401 rm -f conftest.err conftest.$ac_ext
15402 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15403 echo "${ECHO_T}$ac_header_preproc" >&6; }
15405 # So? What about this header?
15406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15408 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15409 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15410 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15412 ac_header_preproc=yes
15415 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15416 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15417 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15418 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15419 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15420 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15421 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15422 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15423 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15425 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15426 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15430 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15431 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15433 echo $ECHO_N "(cached
) $ECHO_C" >&6
15435 eval "$as_ac_Header=\
$ac_header_preproc"
15437 ac_res=`eval echo '${'$as_ac_Header'}'`
15438 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15439 echo "${ECHO_T}$ac_res" >&6; }
15442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15443 cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15520 for ac_func in gethostname getdomainname dup2 \
15521 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15522 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15523 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15524 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15525 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15526 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15527 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15528 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15530 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15531 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15532 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15533 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15534 echo $ECHO_N "(cached
) $ECHO_C" >&6
15536 cat >conftest.$ac_ext <<_ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h. */
15542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15544 #define $ac_func innocuous_$ac_func
15546 /* System header to define __stub macros and hopefully few prototypes,
15547 which can conflict with char $ac_func (); below.
15548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15549 <limits.h> exists even on freestanding compilers. */
15552 # include <limits.h>
15554 # include <assert.h>
15559 /* Override any GCC internal prototype to avoid an error.
15560 Use char because int might match the return type of a GCC
15561 builtin and then its argument prototype would still apply. */
15566 /* The GNU C library defines this for functions which it implements
15567 to always fail with ENOSYS. Some functions are actually named
15568 something starting with __ and the normal name is an alias. */
15569 #if defined __stub_$ac_func || defined __stub___$ac_func
15576 return $ac_func ();
15581 rm -f conftest.$ac_objext conftest$ac_exeext
15582 if { (ac_try="$ac_link"
15583 case "(($ac_try" in
15584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15585 *) ac_try_echo=$ac_try;;
15587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15588 (eval "$ac_link") 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext &&
15598 $as_test_x conftest$ac_exeext; then
15599 eval "$as_ac_var=yes"
15601 echo "$as_me: failed program was
:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 eval "$as_ac_var=no
"
15607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15608 conftest$ac_exeext conftest.$ac_ext
15610 ac_res=`eval echo '${'$as_ac_var'}'`
15611 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15612 echo "${ECHO_T}$ac_res" >&6; }
15613 if test `eval echo '${'$as_ac_var'}'` = yes; then
15614 cat >>confdefs.h <<_ACEOF
15615 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15623 for ac_header in sys/un.h
15625 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15626 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15627 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15628 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15629 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached
) $ECHO_C" >&6
15632 ac_res=`eval echo '${'$as_ac_Header'}'`
15633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15634 echo "${ECHO_T}$ac_res" >&6; }
15636 # Is the header compilable?
15637 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15638 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15639 cat >conftest.$ac_ext <<_ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h. */
15645 $ac_includes_default
15646 #include <$ac_header>
15648 rm -f conftest.$ac_objext
15649 if { (ac_try="$ac_compile"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_compile") 2>conftest.er1
15657 grep -v '^ *+' conftest.er1 >conftest.err
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest.$ac_objext; then
15665 ac_header_compiler=yes
15667 echo "$as_me: failed program was
:" >&5
15668 sed 's/^/| /' conftest.$ac_ext >&5
15670 ac_header_compiler=no
15673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15674 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15675 echo "${ECHO_T}$ac_header_compiler" >&6; }
15677 # Is the header present?
15678 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15679 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <$ac_header>
15688 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15689 case "(($ac_try" in
15690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691 *) ac_try_echo=$ac_try;;
15693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15694 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15696 grep -v '^ *+' conftest.er1 >conftest.err
15698 cat conftest.err >&5
15699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15700 (exit $ac_status); } >/dev/null && {
15701 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15702 test ! -s conftest.err
15704 ac_header_preproc=yes
15706 echo "$as_me: failed program was
:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 ac_header_preproc=no
15712 rm -f conftest.err conftest.$ac_ext
15713 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15714 echo "${ECHO_T}$ac_header_preproc" >&6; }
15716 # So? What about this header?
15717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15719 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15720 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15721 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15722 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15723 ac_header_preproc=yes
15726 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15727 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15728 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15729 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15730 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15731 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15732 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15733 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15734 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15735 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15736 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15737 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15741 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15742 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15743 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15744 echo $ECHO_N "(cached
) $ECHO_C" >&6
15746 eval "$as_ac_Header=\
$ac_header_preproc"
15748 ac_res=`eval echo '${'$as_ac_Header'}'`
15749 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15750 echo "${ECHO_T}$ac_res" >&6; }
15753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15754 cat >>confdefs.h <<_ACEOF
15755 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15767 for ac_header in $ac_header_list
15769 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15770 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15771 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15772 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15774 echo $ECHO_N "(cached
) $ECHO_C" >&6
15776 ac_res=`eval echo '${'$as_ac_Header'}'`
15777 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15778 echo "${ECHO_T}$ac_res" >&6; }
15780 # Is the header compilable?
15781 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15782 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15783 cat >conftest.$ac_ext <<_ACEOF
15786 cat confdefs.h >>conftest.$ac_ext
15787 cat >>conftest.$ac_ext <<_ACEOF
15788 /* end confdefs.h. */
15789 $ac_includes_default
15790 #include <$ac_header>
15792 rm -f conftest.$ac_objext
15793 if { (ac_try="$ac_compile"
15794 case "(($ac_try" in
15795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15796 *) ac_try_echo=$ac_try;;
15798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15799 (eval "$ac_compile") 2>conftest.er1
15801 grep -v '^ *+' conftest.er1 >conftest.err
15803 cat conftest.err >&5
15804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15805 (exit $ac_status); } && {
15806 test -z "$ac_c_werror_flag" ||
15807 test ! -s conftest.err
15808 } && test -s conftest.$ac_objext; then
15809 ac_header_compiler=yes
15811 echo "$as_me: failed program was
:" >&5
15812 sed 's/^/| /' conftest.$ac_ext >&5
15814 ac_header_compiler=no
15817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15818 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15819 echo "${ECHO_T}$ac_header_compiler" >&6; }
15821 # Is the header present?
15822 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15823 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15830 #include <$ac_header>
15832 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15833 case "(($ac_try" in
15834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15835 *) ac_try_echo=$ac_try;;
15837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15838 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15840 grep -v '^ *+' conftest.er1 >conftest.err
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15844 (exit $ac_status); } >/dev/null && {
15845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15846 test ! -s conftest.err
15848 ac_header_preproc=yes
15850 echo "$as_me: failed program was
:" >&5
15851 sed 's/^/| /' conftest.$ac_ext >&5
15853 ac_header_preproc=no
15856 rm -f conftest.err conftest.$ac_ext
15857 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15858 echo "${ECHO_T}$ac_header_preproc" >&6; }
15860 # So? What about this header?
15861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15863 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15864 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15867 ac_header_preproc=yes
15870 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15871 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15872 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15873 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15874 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15875 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15876 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15877 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15881 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15885 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15886 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15888 echo $ECHO_N "(cached
) $ECHO_C" >&6
15890 eval "$as_ac_Header=\
$ac_header_preproc"
15892 ac_res=`eval echo '${'$as_ac_Header'}'`
15893 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15894 echo "${ECHO_T}$ac_res" >&6; }
15897 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15898 cat >>confdefs.h <<_ACEOF
15899 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15914 for ac_func in $ac_func_list
15916 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15917 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15918 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15919 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached
) $ECHO_C" >&6
15922 cat >conftest.$ac_ext <<_ACEOF
15925 cat confdefs.h >>conftest.$ac_ext
15926 cat >>conftest.$ac_ext <<_ACEOF
15927 /* end confdefs.h. */
15928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15930 #define $ac_func innocuous_$ac_func
15932 /* System header to define __stub macros and hopefully few prototypes,
15933 which can conflict with char $ac_func (); below.
15934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15935 <limits.h> exists even on freestanding compilers. */
15938 # include <limits.h>
15940 # include <assert.h>
15945 /* Override any GCC internal prototype to avoid an error.
15946 Use char because int might match the return type of a GCC
15947 builtin and then its argument prototype would still apply. */
15952 /* The GNU C library defines this for functions which it implements
15953 to always fail with ENOSYS. Some functions are actually named
15954 something starting with __ and the normal name is an alias. */
15955 #if defined __stub_$ac_func || defined __stub___$ac_func
15962 return $ac_func ();
15967 rm -f conftest.$ac_objext conftest$ac_exeext
15968 if { (ac_try="$ac_link"
15969 case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_link") 2>conftest.er1
15976 grep -v '^ *+' conftest.er1 >conftest.err
15978 cat conftest.err >&5
15979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15980 (exit $ac_status); } && {
15981 test -z "$ac_c_werror_flag" ||
15982 test ! -s conftest.err
15983 } && test -s conftest$ac_exeext &&
15984 $as_test_x conftest$ac_exeext; then
15985 eval "$as_ac_var=yes"
15987 echo "$as_me: failed program was
:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15990 eval "$as_ac_var=no
"
15993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15994 conftest$ac_exeext conftest.$ac_ext
15996 ac_res=`eval echo '${'$as_ac_var'}'`
15997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15998 echo "${ECHO_T}$ac_res" >&6; }
15999 if test `eval echo '${'$as_ac_var'}'` = yes; then
16000 cat >>confdefs.h <<_ACEOF
16001 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16023 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16024 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16025 if test "${ac_cv_func_working_mktime+set}" = set; then
16026 echo $ECHO_N "(cached
) $ECHO_C" >&6
16028 if test "$cross_compiling" = yes; then
16029 ac_cv_func_working_mktime=no
16031 cat >conftest.$ac_ext <<_ACEOF
16034 cat confdefs.h >>conftest.$ac_ext
16035 cat >>conftest.$ac_ext <<_ACEOF
16036 /* end confdefs.h. */
16037 /* Test program from Paul Eggert and Tony Leneis. */
16038 #ifdef TIME_WITH_SYS_TIME
16039 # include <sys/time.h>
16042 # ifdef HAVE_SYS_TIME_H
16043 # include <sys/time.h>
16049 #include <stdlib.h>
16051 #ifdef HAVE_UNISTD_H
16052 # include <unistd.h>
16056 # define alarm(X) /* empty */
16059 /* Work around redefinition to rpl_putenv by other config tests. */
16062 static time_t time_t_max;
16063 static time_t time_t_min;
16065 /* Values we'll use to set the TZ environment variable. */
16066 static char *tz_strings[] = {
16067 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16068 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16070 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16072 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16073 Based on a problem report from Andreas Jaeger. */
16075 spring_forward_gap ()
16077 /* glibc (up to about 1998-10-07) failed this test. */
16080 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16081 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16082 on systems that don't support the Olson extension, or don't have the
16083 full zoneinfo tables installed. */
16084 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16093 return mktime (&tm) != (time_t) -1;
16101 return ! (lt = localtime (&now)) || mktime (lt) == now;
16108 return (mktime_test1 (now)
16109 && mktime_test1 ((time_t) (time_t_max - now))
16110 && mktime_test1 ((time_t) (time_t_min + now)));
16116 /* Based on code from Ariel Faigon. */
16126 return tm.tm_mon == 2 && tm.tm_mday == 31;
16135 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16136 now = mktime (&tm);
16137 if (now != (time_t) -1)
16139 struct tm *lt = localtime (&now);
16141 && lt->tm_year == tm.tm_year
16142 && lt->tm_mon == tm.tm_mon
16143 && lt->tm_mday == tm.tm_mday
16144 && lt->tm_hour == tm.tm_hour
16145 && lt->tm_min == tm.tm_min
16146 && lt->tm_sec == tm.tm_sec
16147 && lt->tm_yday == tm.tm_yday
16148 && lt->tm_wday == tm.tm_wday
16149 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16150 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16159 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16160 ignoring leap seconds. */
16161 unsigned long int answer = 2527315200UL;
16165 tm.tm_year = 2050 - 1900;
16168 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16171 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16172 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16173 on systems that don't support the Olson extension, or don't have the
16174 full zoneinfo tables installed. */
16175 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16179 /* Check that the result is either a failure, or close enough
16180 to the correct answer that we can assume the discrepancy is
16181 due to leap seconds. */
16182 return (t == (time_t) -1
16183 || (0 < t && answer - 120 <= t && t <= answer + 120));
16192 /* This test makes some buggy mktime implementations loop.
16193 Give up after 60 seconds; a mktime slower than that
16194 isn't worth using anyway. */
16197 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16200 if ((time_t) -1 < 0)
16201 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16203 delta = time_t_max / 997; /* a suitable prime number */
16204 for (i = 0; i < N_STRINGS; i++)
16207 putenv (tz_strings[i]);
16209 for (t = 0; t <= time_t_max - delta; t += delta)
16210 if (! mktime_test (t))
16212 if (! (mktime_test ((time_t) 1)
16213 && mktime_test ((time_t) (60 * 60))
16214 && mktime_test ((time_t) (60 * 60 * 24))))
16217 for (j = 1; 0 < j; j *= 2)
16218 if (! bigtime_test (j))
16220 if (! bigtime_test (j - 1))
16223 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16226 rm -f conftest$ac_exeext
16227 if { (ac_try="$ac_link"
16228 case "(($ac_try" in
16229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16230 *) ac_try_echo=$ac_try;;
16232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16233 (eval "$ac_link") 2>&5
16235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16237 { (case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_try") 2>&5
16244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16245 (exit $ac_status); }; }; then
16246 ac_cv_func_working_mktime=yes
16248 echo "$as_me: program exited with status
$ac_status" >&5
16249 echo "$as_me: failed program was
:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 ( exit $ac_status )
16253 ac_cv_func_working_mktime=no
16255 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16260 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16261 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16262 if test $ac_cv_func_working_mktime = no; then
16263 case " $LIBOBJS " in
16264 *" mktime.
$ac_objext "* ) ;;
16265 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16271 if test "$ac_cv_func_working_mktime" = no; then
16273 cat >>confdefs.h <<\_ACEOF
16274 #define BROKEN_MKTIME 1
16279 ac_have_func=no # yes means we've found a way to get the load average.
16281 # Make sure getloadavg.c is where it belongs, at configure-time.
16282 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16283 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16284 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16285 { (exit 1); exit 1; }; }
16289 # Check for getloadavg, but be sure not to touch the cache variable.
16290 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16291 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16292 if test "${ac_cv_func_getloadavg+set}" = set; then
16293 echo $ECHO_N "(cached
) $ECHO_C" >&6
16295 cat >conftest.$ac_ext <<_ACEOF
16298 cat confdefs.h >>conftest.$ac_ext
16299 cat >>conftest.$ac_ext <<_ACEOF
16300 /* end confdefs.h. */
16301 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16303 #define getloadavg innocuous_getloadavg
16305 /* System header to define __stub macros and hopefully few prototypes,
16306 which can conflict with char getloadavg (); below.
16307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16308 <limits.h> exists even on freestanding compilers. */
16311 # include <limits.h>
16313 # include <assert.h>
16318 /* Override any GCC internal prototype to avoid an error.
16319 Use char because int might match the return type of a GCC
16320 builtin and then its argument prototype would still apply. */
16324 char getloadavg ();
16325 /* The GNU C library defines this for functions which it implements
16326 to always fail with ENOSYS. Some functions are actually named
16327 something starting with __ and the normal name is an alias. */
16328 #if defined __stub_getloadavg || defined __stub___getloadavg
16335 return getloadavg ();
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (ac_try="$ac_link"
16342 case "(($ac_try" in
16343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16344 *) ac_try_echo=$ac_try;;
16346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16347 (eval "$ac_link") 2>conftest.er1
16349 grep -v '^ *+' conftest.er1 >conftest.err
16351 cat conftest.err >&5
16352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16353 (exit $ac_status); } && {
16354 test -z "$ac_c_werror_flag" ||
16355 test ! -s conftest.err
16356 } && test -s conftest$ac_exeext &&
16357 $as_test_x conftest$ac_exeext; then
16358 ac_cv_func_getloadavg=yes
16360 echo "$as_me: failed program was
:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_cv_func_getloadavg=no
16366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16367 conftest$ac_exeext conftest.$ac_ext
16369 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16370 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16371 if test $ac_cv_func_getloadavg = yes; then
16376 ) && ac_have_func=yes
16378 # On HPUX9, an unprivileged user can get load averages through this function.
16380 for ac_func in pstat_getdynamic
16382 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16383 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16384 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16385 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached
) $ECHO_C" >&6
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16396 #define $ac_func innocuous_$ac_func
16398 /* System header to define __stub macros and hopefully few prototypes,
16399 which can conflict with char $ac_func (); below.
16400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16401 <limits.h> exists even on freestanding compilers. */
16404 # include <limits.h>
16406 # include <assert.h>
16411 /* Override any GCC internal prototype to avoid an error.
16412 Use char because int might match the return type of a GCC
16413 builtin and then its argument prototype would still apply. */
16418 /* The GNU C library defines this for functions which it implements
16419 to always fail with ENOSYS. Some functions are actually named
16420 something starting with __ and the normal name is an alias. */
16421 #if defined __stub_$ac_func || defined __stub___$ac_func
16428 return $ac_func ();
16433 rm -f conftest.$ac_objext conftest$ac_exeext
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16440 (eval "$ac_link") 2>conftest.er1
16442 grep -v '^ *+' conftest.er1 >conftest.err
16444 cat conftest.err >&5
16445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16446 (exit $ac_status); } && {
16447 test -z "$ac_c_werror_flag" ||
16448 test ! -s conftest.err
16449 } && test -s conftest$ac_exeext &&
16450 $as_test_x conftest$ac_exeext; then
16451 eval "$as_ac_var=yes"
16453 echo "$as_me: failed program was
:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 eval "$as_ac_var=no
"
16459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16460 conftest$ac_exeext conftest.$ac_ext
16462 ac_res=`eval echo '${'$as_ac_var'}'`
16463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16464 echo "${ECHO_T}$ac_res" >&6; }
16465 if test `eval echo '${'$as_ac_var'}'` = yes; then
16466 cat >>confdefs.h <<_ACEOF
16467 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16474 # Solaris has libkstat which does not require root.
16476 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16477 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16478 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16479 echo $ECHO_N "(cached
) $ECHO_C" >&6
16481 ac_check_lib_save_LIBS=$LIBS
16482 LIBS="-lkstat $LIBS"
16483 cat >conftest.$ac_ext <<_ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 /* Override any GCC internal prototype to avoid an error.
16491 Use char because int might match the return type of a GCC
16492 builtin and then its argument prototype would still apply. */
16496 char kstat_open ();
16500 return kstat_open ();
16505 rm -f conftest.$ac_objext conftest$ac_exeext
16506 if { (ac_try="$ac_link"
16507 case "(($ac_try" in
16508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16509 *) ac_try_echo=$ac_try;;
16511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16512 (eval "$ac_link") 2>conftest.er1
16514 grep -v '^ *+' conftest.er1 >conftest.err
16516 cat conftest.err >&5
16517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16518 (exit $ac_status); } && {
16519 test -z "$ac_c_werror_flag" ||
16520 test ! -s conftest.err
16521 } && test -s conftest$ac_exeext &&
16522 $as_test_x conftest$ac_exeext; then
16523 ac_cv_lib_kstat_kstat_open=yes
16525 echo "$as_me: failed program was
:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16528 ac_cv_lib_kstat_kstat_open=no
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532 conftest$ac_exeext conftest.$ac_ext
16533 LIBS=$ac_check_lib_save_LIBS
16535 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16536 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16537 if test $ac_cv_lib_kstat_kstat_open = yes; then
16538 cat >>confdefs.h <<_ACEOF
16539 #define HAVE_LIBKSTAT 1
16542 LIBS="-lkstat $LIBS"
16546 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16548 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16549 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16550 # to get the right answer into the cache.
16551 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16552 if test $ac_have_func = no; then
16553 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16554 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16555 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16556 echo $ECHO_N "(cached
) $ECHO_C" >&6
16558 ac_check_lib_save_LIBS=$LIBS
16560 cat >conftest.$ac_ext <<_ACEOF
16563 cat confdefs.h >>conftest.$ac_ext
16564 cat >>conftest.$ac_ext <<_ACEOF
16565 /* end confdefs.h. */
16567 /* Override any GCC internal prototype to avoid an error.
16568 Use char because int might match the return type of a GCC
16569 builtin and then its argument prototype would still apply. */
16577 return elf_begin ();
16582 rm -f conftest.$ac_objext conftest$ac_exeext
16583 if { (ac_try="$ac_link"
16584 case "(($ac_try" in
16585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16586 *) ac_try_echo=$ac_try;;
16588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_link") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1 >conftest.err
16593 cat conftest.err >&5
16594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16595 (exit $ac_status); } && {
16596 test -z "$ac_c_werror_flag" ||
16597 test ! -s conftest.err
16598 } && test -s conftest$ac_exeext &&
16599 $as_test_x conftest$ac_exeext; then
16600 ac_cv_lib_elf_elf_begin=yes
16602 echo "$as_me: failed program was
:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16605 ac_cv_lib_elf_elf_begin=no
16608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16609 conftest$ac_exeext conftest.$ac_ext
16610 LIBS=$ac_check_lib_save_LIBS
16612 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16613 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16614 if test $ac_cv_lib_elf_elf_begin = yes; then
16619 if test $ac_have_func = no; then
16620 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16621 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16622 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16623 echo $ECHO_N "(cached
) $ECHO_C" >&6
16625 ac_check_lib_save_LIBS=$LIBS
16627 cat >conftest.$ac_ext <<_ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16644 return kvm_open ();
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_link") 2>conftest.er1
16658 grep -v '^ *+' conftest.er1 >conftest.err
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest$ac_exeext &&
16666 $as_test_x conftest$ac_exeext; then
16667 ac_cv_lib_kvm_kvm_open=yes
16669 echo "$as_me: failed program was
:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16672 ac_cv_lib_kvm_kvm_open=no
16675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 conftest$ac_exeext conftest.$ac_ext
16677 LIBS=$ac_check_lib_save_LIBS
16679 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16680 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16681 if test $ac_cv_lib_kvm_kvm_open = yes; then
16685 # Check for the 4.4BSD definition of getloadavg.
16686 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16687 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16688 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16689 echo $ECHO_N "(cached
) $ECHO_C" >&6
16691 ac_check_lib_save_LIBS=$LIBS
16692 LIBS="-lutil $LIBS"
16693 cat >conftest.$ac_ext <<_ACEOF
16696 cat confdefs.h >>conftest.$ac_ext
16697 cat >>conftest.$ac_ext <<_ACEOF
16698 /* end confdefs.h. */
16700 /* Override any GCC internal prototype to avoid an error.
16701 Use char because int might match the return type of a GCC
16702 builtin and then its argument prototype would still apply. */
16706 char getloadavg ();
16710 return getloadavg ();
16715 rm -f conftest.$ac_objext conftest$ac_exeext
16716 if { (ac_try="$ac_link"
16717 case "(($ac_try" in
16718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16719 *) ac_try_echo=$ac_try;;
16721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16722 (eval "$ac_link") 2>conftest.er1
16724 grep -v '^ *+' conftest.er1 >conftest.err
16726 cat conftest.err >&5
16727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16728 (exit $ac_status); } && {
16729 test -z "$ac_c_werror_flag" ||
16730 test ! -s conftest.err
16731 } && test -s conftest$ac_exeext &&
16732 $as_test_x conftest$ac_exeext; then
16733 ac_cv_lib_util_getloadavg=yes
16735 echo "$as_me: failed program was
:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_cv_lib_util_getloadavg=no
16741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16742 conftest$ac_exeext conftest.$ac_ext
16743 LIBS=$ac_check_lib_save_LIBS
16745 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16746 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16747 if test $ac_cv_lib_util_getloadavg = yes; then
16748 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16753 if test $ac_have_func = no; then
16754 # There is a commonly available library for RS/6000 AIX.
16755 # Since it is not a standard part of AIX, it might be installed locally.
16756 ac_getloadavg_LIBS=$LIBS
16757 LIBS="-L/usr
/local
/lib
$LIBS"
16758 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16759 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16760 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16761 echo $ECHO_N "(cached
) $ECHO_C" >&6
16763 ac_check_lib_save_LIBS=$LIBS
16764 LIBS="-lgetloadavg $LIBS"
16765 cat >conftest.$ac_ext <<_ACEOF
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16772 /* Override any GCC internal prototype to avoid an error.
16773 Use char because int might match the return type of a GCC
16774 builtin and then its argument prototype would still apply. */
16778 char getloadavg ();
16782 return getloadavg ();
16787 rm -f conftest.$ac_objext conftest$ac_exeext
16788 if { (ac_try="$ac_link"
16789 case "(($ac_try" in
16790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16791 *) ac_try_echo=$ac_try;;
16793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16794 (eval "$ac_link") 2>conftest.er1
16796 grep -v '^ *+' conftest.er1 >conftest.err
16798 cat conftest.err >&5
16799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_c_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest$ac_exeext &&
16804 $as_test_x conftest$ac_exeext; then
16805 ac_cv_lib_getloadavg_getloadavg=yes
16807 echo "$as_me: failed program was
:" >&5
16808 sed 's/^/| /' conftest.$ac_ext >&5
16810 ac_cv_lib_getloadavg_getloadavg=no
16813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16814 conftest$ac_exeext conftest.$ac_ext
16815 LIBS=$ac_check_lib_save_LIBS
16817 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16818 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16819 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16820 LIBS="-lgetloadavg $LIBS"
16822 LIBS=$ac_getloadavg_LIBS
16827 # Make sure it is really in the library, if we think we found it,
16828 # otherwise set up the replacement function.
16830 for ac_func in getloadavg
16832 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16833 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16834 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16835 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16836 echo $ECHO_N "(cached
) $ECHO_C" >&6
16838 cat >conftest.$ac_ext <<_ACEOF
16841 cat confdefs.h >>conftest.$ac_ext
16842 cat >>conftest.$ac_ext <<_ACEOF
16843 /* end confdefs.h. */
16844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16846 #define $ac_func innocuous_$ac_func
16848 /* System header to define __stub macros and hopefully few prototypes,
16849 which can conflict with char $ac_func (); below.
16850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16851 <limits.h> exists even on freestanding compilers. */
16854 # include <limits.h>
16856 # include <assert.h>
16861 /* Override any GCC internal prototype to avoid an error.
16862 Use char because int might match the return type of a GCC
16863 builtin and then its argument prototype would still apply. */
16868 /* The GNU C library defines this for functions which it implements
16869 to always fail with ENOSYS. Some functions are actually named
16870 something starting with __ and the normal name is an alias. */
16871 #if defined __stub_$ac_func || defined __stub___$ac_func
16878 return $ac_func ();
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_link") 2>conftest.er1
16892 grep -v '^ *+' conftest.er1 >conftest.err
16894 cat conftest.err >&5
16895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16896 (exit $ac_status); } && {
16897 test -z "$ac_c_werror_flag" ||
16898 test ! -s conftest.err
16899 } && test -s conftest$ac_exeext &&
16900 $as_test_x conftest$ac_exeext; then
16901 eval "$as_ac_var=yes"
16903 echo "$as_me: failed program was
:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 eval "$as_ac_var=no
"
16909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16910 conftest$ac_exeext conftest.$ac_ext
16912 ac_res=`eval echo '${'$as_ac_var'}'`
16913 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16914 echo "${ECHO_T}$ac_res" >&6; }
16915 if test `eval echo '${'$as_ac_var'}'` = yes; then
16916 cat >>confdefs.h <<_ACEOF
16917 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16921 case " $LIBOBJS " in
16922 *" getloadavg.
$ac_objext "* ) ;;
16923 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16928 cat >>confdefs.h <<\_ACEOF
16929 #define C_GETLOADAVG 1
16932 # Figure out what our getloadavg.c needs.
16934 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16935 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16936 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16937 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16938 echo $ECHO_N "(cached
) $ECHO_C" >&6
16940 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16941 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16943 # Is the header compilable?
16944 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16945 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16946 cat >conftest.$ac_ext <<_ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
16951 /* end confdefs.h. */
16952 $ac_includes_default
16953 #include <sys/dg_sys_info.h>
16955 rm -f conftest.$ac_objext
16956 if { (ac_try="$ac_compile"
16957 case "(($ac_try" in
16958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16959 *) ac_try_echo=$ac_try;;
16961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16962 (eval "$ac_compile") 2>conftest.er1
16964 grep -v '^ *+' conftest.er1 >conftest.err
16966 cat conftest.err >&5
16967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16968 (exit $ac_status); } && {
16969 test -z "$ac_c_werror_flag" ||
16970 test ! -s conftest.err
16971 } && test -s conftest.$ac_objext; then
16972 ac_header_compiler=yes
16974 echo "$as_me: failed program was
:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16977 ac_header_compiler=no
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16982 echo "${ECHO_T}$ac_header_compiler" >&6; }
16984 # Is the header present?
16985 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16986 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16987 cat >conftest.$ac_ext <<_ACEOF
16990 cat confdefs.h >>conftest.$ac_ext
16991 cat >>conftest.$ac_ext <<_ACEOF
16992 /* end confdefs.h. */
16993 #include <sys/dg_sys_info.h>
16995 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17007 (exit $ac_status); } >/dev/null && {
17008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17011 ac_header_preproc=yes
17013 echo "$as_me: failed program was
:" >&5
17014 sed 's/^/| /' conftest.$ac_ext >&5
17016 ac_header_preproc=no
17019 rm -f conftest.err conftest.$ac_ext
17020 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17021 echo "${ECHO_T}$ac_header_preproc" >&6; }
17023 # So? What about this header?
17024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17026 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17027 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17028 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17029 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17030 ac_header_preproc=yes
17033 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17034 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17035 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17036 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17037 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17038 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17039 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17040 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17041 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17042 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17043 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17044 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17048 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17049 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17050 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17051 echo $ECHO_N "(cached
) $ECHO_C" >&6
17053 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17055 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17056 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17059 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17062 cat >>confdefs.h <<\_ACEOF
17067 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17068 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17069 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17070 echo $ECHO_N "(cached
) $ECHO_C" >&6
17072 ac_check_lib_save_LIBS=$LIBS
17074 cat >conftest.$ac_ext <<_ACEOF
17077 cat confdefs.h >>conftest.$ac_ext
17078 cat >>conftest.$ac_ext <<_ACEOF
17079 /* end confdefs.h. */
17081 /* Override any GCC internal prototype to avoid an error.
17082 Use char because int might match the return type of a GCC
17083 builtin and then its argument prototype would still apply. */
17087 char dg_sys_info ();
17091 return dg_sys_info ();
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17103 (eval "$ac_link") 2>conftest.er1
17105 grep -v '^ *+' conftest.er1 >conftest.err
17107 cat conftest.err >&5
17108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17109 (exit $ac_status); } && {
17110 test -z "$ac_c_werror_flag" ||
17111 test ! -s conftest.err
17112 } && test -s conftest$ac_exeext &&
17113 $as_test_x conftest$ac_exeext; then
17114 ac_cv_lib_dgc_dg_sys_info=yes
17116 echo "$as_me: failed program was
:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ac_cv_lib_dgc_dg_sys_info=no
17122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17123 conftest$ac_exeext conftest.$ac_ext
17124 LIBS=$ac_check_lib_save_LIBS
17126 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17127 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17128 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17129 cat >>confdefs.h <<_ACEOF
17130 #define HAVE_LIBDGC 1
17141 if test "${ac_cv_header_locale_h+set}" = set; then
17142 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17143 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17144 if test "${ac_cv_header_locale_h+set}" = set; then
17145 echo $ECHO_N "(cached
) $ECHO_C" >&6
17147 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17148 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17150 # Is the header compilable?
17151 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17152 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17153 cat >conftest.$ac_ext <<_ACEOF
17156 cat confdefs.h >>conftest.$ac_ext
17157 cat >>conftest.$ac_ext <<_ACEOF
17158 /* end confdefs.h. */
17159 $ac_includes_default
17160 #include <locale.h>
17162 rm -f conftest.$ac_objext
17163 if { (ac_try="$ac_compile"
17164 case "(($ac_try" in
17165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17166 *) ac_try_echo=$ac_try;;
17168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17169 (eval "$ac_compile") 2>conftest.er1
17171 grep -v '^ *+' conftest.er1 >conftest.err
17173 cat conftest.err >&5
17174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17175 (exit $ac_status); } && {
17176 test -z "$ac_c_werror_flag" ||
17177 test ! -s conftest.err
17178 } && test -s conftest.$ac_objext; then
17179 ac_header_compiler=yes
17181 echo "$as_me: failed program was
:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17184 ac_header_compiler=no
17187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17189 echo "${ECHO_T}$ac_header_compiler" >&6; }
17191 # Is the header present?
17192 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17193 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17194 cat >conftest.$ac_ext <<_ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 #include <locale.h>
17202 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17203 case "(($ac_try" in
17204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17205 *) ac_try_echo=$ac_try;;
17207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17208 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17210 grep -v '^ *+' conftest.er1 >conftest.err
17212 cat conftest.err >&5
17213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17214 (exit $ac_status); } >/dev/null && {
17215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17216 test ! -s conftest.err
17218 ac_header_preproc=yes
17220 echo "$as_me: failed program was
:" >&5
17221 sed 's/^/| /' conftest.$ac_ext >&5
17223 ac_header_preproc=no
17226 rm -f conftest.err conftest.$ac_ext
17227 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17228 echo "${ECHO_T}$ac_header_preproc" >&6; }
17230 # So? What about this header?
17231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17233 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17234 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17235 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17236 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17237 ac_header_preproc=yes
17240 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17241 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17242 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17243 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17244 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17245 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17246 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17247 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17248 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17249 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17250 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17251 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17255 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17256 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17257 if test "${ac_cv_header_locale_h+set}" = set; then
17258 echo $ECHO_N "(cached
) $ECHO_C" >&6
17260 ac_cv_header_locale_h=$ac_header_preproc
17262 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17263 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17269 for ac_func in setlocale
17271 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17272 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17273 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17274 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached
) $ECHO_C" >&6
17277 cat >conftest.$ac_ext <<_ACEOF
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17285 #define $ac_func innocuous_$ac_func
17287 /* System header to define __stub macros and hopefully few prototypes,
17288 which can conflict with char $ac_func (); below.
17289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17290 <limits.h> exists even on freestanding compilers. */
17293 # include <limits.h>
17295 # include <assert.h>
17300 /* Override any GCC internal prototype to avoid an error.
17301 Use char because int might match the return type of a GCC
17302 builtin and then its argument prototype would still apply. */
17307 /* The GNU C library defines this for functions which it implements
17308 to always fail with ENOSYS. Some functions are actually named
17309 something starting with __ and the normal name is an alias. */
17310 #if defined __stub_$ac_func || defined __stub___$ac_func
17317 return $ac_func ();
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (ac_try="$ac_link"
17324 case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_link") 2>conftest.er1
17331 grep -v '^ *+' conftest.er1 >conftest.err
17333 cat conftest.err >&5
17334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17335 (exit $ac_status); } && {
17336 test -z "$ac_c_werror_flag" ||
17337 test ! -s conftest.err
17338 } && test -s conftest$ac_exeext &&
17339 $as_test_x conftest$ac_exeext; then
17340 eval "$as_ac_var=yes"
17342 echo "$as_me: failed program was
:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 eval "$as_ac_var=no
"
17348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17349 conftest$ac_exeext conftest.$ac_ext
17351 ac_res=`eval echo '${'$as_ac_var'}'`
17352 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17353 echo "${ECHO_T}$ac_res" >&6; }
17354 if test `eval echo '${'$as_ac_var'}'` = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17363 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17364 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17365 # Irix 4.0.5F has the header but not the library.
17366 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17369 cat >>confdefs.h <<\_ACEOF
17375 if test $ac_have_func = no; then
17376 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17377 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17378 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17379 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17380 echo $ECHO_N "(cached
) $ECHO_C" >&6
17382 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17383 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17385 # Is the header compilable?
17386 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17387 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17388 cat >conftest.$ac_ext <<_ACEOF
17391 cat confdefs.h >>conftest.$ac_ext
17392 cat >>conftest.$ac_ext <<_ACEOF
17393 /* end confdefs.h. */
17394 $ac_includes_default
17395 #include <inq_stats/cpustats.h>
17397 rm -f conftest.$ac_objext
17398 if { (ac_try="$ac_compile"
17399 case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_compile") 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17410 (exit $ac_status); } && {
17411 test -z "$ac_c_werror_flag" ||
17412 test ! -s conftest.err
17413 } && test -s conftest.$ac_objext; then
17414 ac_header_compiler=yes
17416 echo "$as_me: failed program was
:" >&5
17417 sed 's/^/| /' conftest.$ac_ext >&5
17419 ac_header_compiler=no
17422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17423 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17424 echo "${ECHO_T}$ac_header_compiler" >&6; }
17426 # Is the header present?
17427 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17428 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17429 cat >conftest.$ac_ext <<_ACEOF
17432 cat confdefs.h >>conftest.$ac_ext
17433 cat >>conftest.$ac_ext <<_ACEOF
17434 /* end confdefs.h. */
17435 #include <inq_stats/cpustats.h>
17437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17449 (exit $ac_status); } >/dev/null && {
17450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17453 ac_header_preproc=yes
17455 echo "$as_me: failed program was
:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_header_preproc=no
17461 rm -f conftest.err conftest.$ac_ext
17462 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17463 echo "${ECHO_T}$ac_header_preproc" >&6; }
17465 # So? What about this header?
17466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17468 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17469 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17470 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17471 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17472 ac_header_preproc=yes
17475 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17476 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17477 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17478 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17479 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17480 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17481 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17482 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17484 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17485 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17486 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17490 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17491 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17492 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17493 echo $ECHO_N "(cached
) $ECHO_C" >&6
17495 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17497 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17498 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17501 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17504 cat >>confdefs.h <<\_ACEOF
17509 cat >>confdefs.h <<\_ACEOF
17518 if test $ac_have_func = no; then
17519 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17520 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17521 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17522 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17523 echo $ECHO_N "(cached
) $ECHO_C" >&6
17525 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17526 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17528 # Is the header compilable?
17529 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17530 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17537 $ac_includes_default
17538 #include <sys/cpustats.h>
17540 rm -f conftest.$ac_objext
17541 if { (ac_try="$ac_compile"
17542 case "(($ac_try" in
17543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_compile") 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17553 (exit $ac_status); } && {
17554 test -z "$ac_c_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest.$ac_objext; then
17557 ac_header_compiler=yes
17559 echo "$as_me: failed program was
:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 ac_header_compiler=no
17565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17566 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17567 echo "${ECHO_T}$ac_header_compiler" >&6; }
17569 # Is the header present?
17570 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17571 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17572 cat >conftest.$ac_ext <<_ACEOF
17575 cat confdefs.h >>conftest.$ac_ext
17576 cat >>conftest.$ac_ext <<_ACEOF
17577 /* end confdefs.h. */
17578 #include <sys/cpustats.h>
17580 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17581 case "(($ac_try" in
17582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17583 *) ac_try_echo=$ac_try;;
17585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17586 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17588 grep -v '^ *+' conftest.er1 >conftest.err
17590 cat conftest.err >&5
17591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17592 (exit $ac_status); } >/dev/null && {
17593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17594 test ! -s conftest.err
17596 ac_header_preproc=yes
17598 echo "$as_me: failed program was
:" >&5
17599 sed 's/^/| /' conftest.$ac_ext >&5
17601 ac_header_preproc=no
17604 rm -f conftest.err conftest.$ac_ext
17605 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17606 echo "${ECHO_T}$ac_header_preproc" >&6; }
17608 # So? What about this header?
17609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17611 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17612 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17613 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17614 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17615 ac_header_preproc=yes
17618 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17619 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17620 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17621 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17622 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17623 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17624 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17625 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17626 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17627 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17628 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17629 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17633 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17634 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17635 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17636 echo $ECHO_N "(cached
) $ECHO_C" >&6
17638 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17640 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17641 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17644 if test $ac_cv_header_sys_cpustats_h = yes; then
17645 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17654 if test $ac_have_func = no; then
17656 for ac_header in mach/mach.h
17658 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17659 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17660 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17661 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17663 echo $ECHO_N "(cached
) $ECHO_C" >&6
17665 ac_res=`eval echo '${'$as_ac_Header'}'`
17666 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17667 echo "${ECHO_T}$ac_res" >&6; }
17669 # Is the header compilable?
17670 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17671 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 $ac_includes_default
17679 #include <$ac_header>
17681 rm -f conftest.$ac_objext
17682 if { (ac_try="$ac_compile"
17683 case "(($ac_try" in
17684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685 *) ac_try_echo=$ac_try;;
17687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17688 (eval "$ac_compile") 2>conftest.er1
17690 grep -v '^ *+' conftest.er1 >conftest.err
17692 cat conftest.err >&5
17693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17694 (exit $ac_status); } && {
17695 test -z "$ac_c_werror_flag" ||
17696 test ! -s conftest.err
17697 } && test -s conftest.$ac_objext; then
17698 ac_header_compiler=yes
17700 echo "$as_me: failed program was
:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_header_compiler=no
17706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17708 echo "${ECHO_T}$ac_header_compiler" >&6; }
17710 # Is the header present?
17711 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17712 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17713 cat >conftest.$ac_ext <<_ACEOF
17716 cat confdefs.h >>conftest.$ac_ext
17717 cat >>conftest.$ac_ext <<_ACEOF
17718 /* end confdefs.h. */
17719 #include <$ac_header>
17721 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17722 case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17729 grep -v '^ *+' conftest.er1 >conftest.err
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17733 (exit $ac_status); } >/dev/null && {
17734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17735 test ! -s conftest.err
17737 ac_header_preproc=yes
17739 echo "$as_me: failed program was
:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 ac_header_preproc=no
17745 rm -f conftest.err conftest.$ac_ext
17746 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17747 echo "${ECHO_T}$ac_header_preproc" >&6; }
17749 # So? What about this header?
17750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17752 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17753 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17754 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17756 ac_header_preproc=yes
17759 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17760 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17761 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17762 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17763 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17764 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17765 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17766 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17769 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17770 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17777 echo $ECHO_N "(cached
) $ECHO_C" >&6
17779 eval "$as_ac_Header=\
$ac_header_preproc"
17781 ac_res=`eval echo '${'$as_ac_Header'}'`
17782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17783 echo "${ECHO_T}$ac_res" >&6; }
17786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17787 cat >>confdefs.h <<_ACEOF
17788 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17798 for ac_header in nlist.h
17800 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17805 echo $ECHO_N "(cached
) $ECHO_C" >&6
17807 ac_res=`eval echo '${'$as_ac_Header'}'`
17808 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17809 echo "${ECHO_T}$ac_res" >&6; }
17811 # Is the header compilable?
17812 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17813 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17820 $ac_includes_default
17821 #include <$ac_header>
17823 rm -f conftest.$ac_objext
17824 if { (ac_try="$ac_compile"
17825 case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_compile") 2>conftest.er1
17832 grep -v '^ *+' conftest.er1 >conftest.err
17834 cat conftest.err >&5
17835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17836 (exit $ac_status); } && {
17837 test -z "$ac_c_werror_flag" ||
17838 test ! -s conftest.err
17839 } && test -s conftest.$ac_objext; then
17840 ac_header_compiler=yes
17842 echo "$as_me: failed program was
:" >&5
17843 sed 's/^/| /' conftest.$ac_ext >&5
17845 ac_header_compiler=no
17848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17849 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17850 echo "${ECHO_T}$ac_header_compiler" >&6; }
17852 # Is the header present?
17853 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17854 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17855 cat >conftest.$ac_ext <<_ACEOF
17858 cat confdefs.h >>conftest.$ac_ext
17859 cat >>conftest.$ac_ext <<_ACEOF
17860 /* end confdefs.h. */
17861 #include <$ac_header>
17863 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17864 case "(($ac_try" in
17865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866 *) ac_try_echo=$ac_try;;
17868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17869 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17871 grep -v '^ *+' conftest.er1 >conftest.err
17873 cat conftest.err >&5
17874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17875 (exit $ac_status); } >/dev/null && {
17876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17877 test ! -s conftest.err
17879 ac_header_preproc=yes
17881 echo "$as_me: failed program was
:" >&5
17882 sed 's/^/| /' conftest.$ac_ext >&5
17884 ac_header_preproc=no
17887 rm -f conftest.err conftest.$ac_ext
17888 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17889 echo "${ECHO_T}$ac_header_preproc" >&6; }
17891 # So? What about this header?
17892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17894 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17895 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17896 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17898 ac_header_preproc=yes
17901 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17902 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17903 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17904 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17905 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17906 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17907 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17908 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17909 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17911 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17912 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17916 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17917 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17918 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17919 echo $ECHO_N "(cached
) $ECHO_C" >&6
17921 eval "$as_ac_Header=\
$ac_header_preproc"
17923 ac_res=`eval echo '${'$as_ac_Header'}'`
17924 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17925 echo "${ECHO_T}$ac_res" >&6; }
17928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17929 cat >>confdefs.h <<_ACEOF
17930 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17932 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17933 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17934 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17935 echo $ECHO_N "(cached
) $ECHO_C" >&6
17937 cat >conftest.$ac_ext <<_ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17948 static struct nlist ac_aggr;
17949 if (ac_aggr.n_un.n_name)
17955 rm -f conftest.$ac_objext
17956 if { (ac_try="$ac_compile"
17957 case "(($ac_try" in
17958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17959 *) ac_try_echo=$ac_try;;
17961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17962 (eval "$ac_compile") 2>conftest.er1
17964 grep -v '^ *+' conftest.er1 >conftest.err
17966 cat conftest.err >&5
17967 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17968 (exit $ac_status); } && {
17969 test -z "$ac_c_werror_flag" ||
17970 test ! -s conftest.err
17971 } && test -s conftest.$ac_objext; then
17972 ac_cv_member_struct_nlist_n_un_n_name=yes
17974 echo "$as_me: failed program was
:" >&5
17975 sed 's/^/| /' conftest.$ac_ext >&5
17977 cat >conftest.$ac_ext <<_ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17988 static struct nlist ac_aggr;
17989 if (sizeof ac_aggr.n_un.n_name)
17995 rm -f conftest.$ac_objext
17996 if { (ac_try="$ac_compile"
17997 case "(($ac_try" in
17998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17999 *) ac_try_echo=$ac_try;;
18001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_compile") 2>conftest.er1
18004 grep -v '^ *+' conftest.er1 >conftest.err
18006 cat conftest.err >&5
18007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18008 (exit $ac_status); } && {
18009 test -z "$ac_c_werror_flag" ||
18010 test ! -s conftest.err
18011 } && test -s conftest.$ac_objext; then
18012 ac_cv_member_struct_nlist_n_un_n_name=yes
18014 echo "$as_me: failed program was
:" >&5
18015 sed 's/^/| /' conftest.$ac_ext >&5
18017 ac_cv_member_struct_nlist_n_un_n_name=no
18020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18026 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18027 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18029 cat >>confdefs.h <<_ACEOF
18030 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18034 cat >>confdefs.h <<\_ACEOF
18035 #define NLIST_NAME_UNION 1
18049 # Some definitions of getloadavg require that the program be installed setgid.
18050 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18051 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18052 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18053 echo $ECHO_N "(cached
) $ECHO_C" >&6
18055 cat >conftest.$ac_ext <<_ACEOF
18058 cat confdefs.h >>conftest.$ac_ext
18059 cat >>conftest.$ac_ext <<_ACEOF
18060 /* end confdefs.h. */
18061 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18062 #ifdef LDAV_PRIVILEGED
18063 Yowza Am I SETGID yet
18066 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18067 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18068 ac_cv_func_getloadavg_setgid=yes
18070 ac_cv_func_getloadavg_setgid=no
18075 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18076 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18077 if test $ac_cv_func_getloadavg_setgid = yes; then
18080 cat >>confdefs.h <<\_ACEOF
18081 #define GETLOADAVG_PRIVILEGED 1
18088 if test $ac_cv_func_getloadavg_setgid = yes; then
18089 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18090 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18091 if test "${ac_cv_group_kmem+set}" = set; then
18092 echo $ECHO_N "(cached
) $ECHO_C" >&6
18094 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18095 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18096 # If we got an error (system does not support symlinks), try without -L.
18097 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18098 ac_cv_group_kmem=`echo $ac_ls_output \
18099 | sed -ne 's/[ ][ ]*/ /g;
18100 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18104 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18105 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18106 KMEM_GROUP=$ac_cv_group_kmem
18108 if test "x
$ac_save_LIBS" = x; then
18109 GETLOADAVG_LIBS=$LIBS
18111 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18117 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18118 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18119 if test "${ac_cv_sys_largefile_source+set}" = set; then
18120 echo $ECHO_N "(cached
) $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 #include <sys/types.h> /* for off_t */
18134 int (*fp) (FILE *, off_t, int) = fseeko;
18135 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18140 rm -f conftest.$ac_objext conftest$ac_exeext
18141 if { (ac_try="$ac_link"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_link") 2>conftest.er1
18149 grep -v '^ *+' conftest.er1 >conftest.err
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18153 (exit $ac_status); } && {
18154 test -z "$ac_c_werror_flag" ||
18155 test ! -s conftest.err
18156 } && test -s conftest$ac_exeext &&
18157 $as_test_x conftest$ac_exeext; then
18158 ac_cv_sys_largefile_source=no; break
18160 echo "$as_me: failed program was
:" >&5
18161 sed 's/^/| /' conftest.$ac_ext >&5
18166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18167 conftest$ac_exeext conftest.$ac_ext
18168 cat >conftest.$ac_ext <<_ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h. */
18174 #define _LARGEFILE_SOURCE 1
18175 #include <sys/types.h> /* for off_t */
18180 int (*fp) (FILE *, off_t, int) = fseeko;
18181 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18186 rm -f conftest.$ac_objext conftest$ac_exeext
18187 if { (ac_try="$ac_link"
18188 case "(($ac_try" in
18189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18190 *) ac_try_echo=$ac_try;;
18192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18193 (eval "$ac_link") 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18199 (exit $ac_status); } && {
18200 test -z "$ac_c_werror_flag" ||
18201 test ! -s conftest.err
18202 } && test -s conftest$ac_exeext &&
18203 $as_test_x conftest$ac_exeext; then
18204 ac_cv_sys_largefile_source=1; break
18206 echo "$as_me: failed program was
:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18213 conftest$ac_exeext conftest.$ac_ext
18214 ac_cv_sys_largefile_source=unknown
18218 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18219 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18220 case $ac_cv_sys_largefile_source in #(
18223 cat >>confdefs.h <<_ACEOF
18224 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18230 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18231 # in glibc 2.1.3, but that breaks too many other things.
18232 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18233 if test $ac_cv_sys_largefile_source != unknown; then
18235 cat >>confdefs.h <<\_ACEOF
18236 #define HAVE_FSEEKO 1
18242 # Configure getopt.
18243 # getopt.m4 serial 10
18245 # The getopt module assume you want GNU getopt, with getopt_long etc,
18246 # rather than vanilla POSIX getopt. This means your your code should
18247 # always include <getopt.h> for the getopt prototypes.
18259 # Prerequisites of lib/getopt*.
18266 for ac_header in getopt.h
18268 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18270 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18271 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18273 echo $ECHO_N "(cached
) $ECHO_C" >&6
18275 ac_res=`eval echo '${'$as_ac_Header'}'`
18276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18277 echo "${ECHO_T}$ac_res" >&6; }
18279 # Is the header compilable?
18280 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18281 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18288 $ac_includes_default
18289 #include <$ac_header>
18291 rm -f conftest.$ac_objext
18292 if { (ac_try="$ac_compile"
18293 case "(($ac_try" in
18294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18295 *) ac_try_echo=$ac_try;;
18297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18298 (eval "$ac_compile") 2>conftest.er1
18300 grep -v '^ *+' conftest.er1 >conftest.err
18302 cat conftest.err >&5
18303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18304 (exit $ac_status); } && {
18305 test -z "$ac_c_werror_flag" ||
18306 test ! -s conftest.err
18307 } && test -s conftest.$ac_objext; then
18308 ac_header_compiler=yes
18310 echo "$as_me: failed program was
:" >&5
18311 sed 's/^/| /' conftest.$ac_ext >&5
18313 ac_header_compiler=no
18316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18317 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18318 echo "${ECHO_T}$ac_header_compiler" >&6; }
18320 # Is the header present?
18321 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18322 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18323 cat >conftest.$ac_ext <<_ACEOF
18326 cat confdefs.h >>conftest.$ac_ext
18327 cat >>conftest.$ac_ext <<_ACEOF
18328 /* end confdefs.h. */
18329 #include <$ac_header>
18331 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18332 case "(($ac_try" in
18333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18334 *) ac_try_echo=$ac_try;;
18336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18339 grep -v '^ *+' conftest.er1 >conftest.err
18341 cat conftest.err >&5
18342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18343 (exit $ac_status); } >/dev/null && {
18344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18345 test ! -s conftest.err
18347 ac_header_preproc=yes
18349 echo "$as_me: failed program was
:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18352 ac_header_preproc=no
18355 rm -f conftest.err conftest.$ac_ext
18356 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18357 echo "${ECHO_T}$ac_header_preproc" >&6; }
18359 # So? What about this header?
18360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18363 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18366 ac_header_preproc=yes
18369 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18370 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18371 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18372 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18373 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18374 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18375 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18376 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18377 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18379 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18380 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18387 echo $ECHO_N "(cached
) $ECHO_C" >&6
18389 eval "$as_ac_Header=\
$ac_header_preproc"
18391 ac_res=`eval echo '${'$as_ac_Header'}'`
18392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18393 echo "${ECHO_T}$ac_res" >&6; }
18396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18397 cat >>confdefs.h <<_ACEOF
18398 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18407 if test -z "$GETOPT_H"; then
18409 for ac_func in getopt_long_only
18411 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18412 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18413 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18414 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18415 echo $ECHO_N "(cached
) $ECHO_C" >&6
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18425 #define $ac_func innocuous_$ac_func
18427 /* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char $ac_func (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. */
18433 # include <limits.h>
18435 # include <assert.h>
18440 /* Override any GCC internal prototype to avoid an error.
18441 Use char because int might match the return type of a GCC
18442 builtin and then its argument prototype would still apply. */
18447 /* The GNU C library defines this for functions which it implements
18448 to always fail with ENOSYS. Some functions are actually named
18449 something starting with __ and the normal name is an alias. */
18450 #if defined __stub_$ac_func || defined __stub___$ac_func
18457 return $ac_func ();
18462 rm -f conftest.$ac_objext conftest$ac_exeext
18463 if { (ac_try="$ac_link"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_link") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest$ac_exeext &&
18479 $as_test_x conftest$ac_exeext; then
18480 eval "$as_ac_var=yes"
18482 echo "$as_me: failed program was
:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 eval "$as_ac_var=no
"
18488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18489 conftest$ac_exeext conftest.$ac_ext
18491 ac_res=`eval echo '${'$as_ac_var'}'`
18492 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18493 echo "${ECHO_T}$ac_res" >&6; }
18494 if test `eval echo '${'$as_ac_var'}'` = yes; then
18495 cat >>confdefs.h <<_ACEOF
18496 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18506 if test -z "$GETOPT_H"; then
18507 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18508 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18509 if test "${ac_cv_have_decl_optreset+set}" = set; then
18510 echo $ECHO_N "(cached
) $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 #include <getopt.h>
18531 rm -f conftest.$ac_objext
18532 if { (ac_try="$ac_compile"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_compile") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest.$ac_objext; then
18548 ac_cv_have_decl_optreset=yes
18550 echo "$as_me: failed program was
:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18553 ac_cv_have_decl_optreset=no
18556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18558 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18559 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18560 if test $ac_cv_have_decl_optreset = yes; then
18566 if test -z "$GETOPT_H"; then
18567 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18568 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18569 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18570 echo $ECHO_N "(cached
) $ECHO_C" >&6
18572 if test "$cross_compiling" = yes; then
18573 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18574 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18575 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18576 echo $ECHO_N "(cached
) $ECHO_C" >&6
18578 cat >conftest.$ac_ext <<_ACEOF
18581 cat confdefs.h >>conftest.$ac_ext
18582 cat >>conftest.$ac_ext <<_ACEOF
18583 /* end confdefs.h. */
18584 #include <getopt.h>
18589 #ifndef getopt_clip
18590 (void) getopt_clip;
18597 rm -f conftest.$ac_objext
18598 if { (ac_try="$ac_compile"
18599 case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_compile") 2>conftest.er1
18606 grep -v '^ *+' conftest.er1 >conftest.err
18608 cat conftest.err >&5
18609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18610 (exit $ac_status); } && {
18611 test -z "$ac_c_werror_flag" ||
18612 test ! -s conftest.err
18613 } && test -s conftest.$ac_objext; then
18614 ac_cv_have_decl_getopt_clip=yes
18616 echo "$as_me: failed program was
:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_have_decl_getopt_clip=no
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18625 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18626 if test $ac_cv_have_decl_getopt_clip = yes; then
18627 gl_cv_func_gnu_getopt=no
18629 gl_cv_func_gnu_getopt=yes
18633 cat >conftest.$ac_ext <<_ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18639 #include <getopt.h>
18645 myargv[0] = "conftest
";
18648 return getopt (2, myargv, "+a
") != '?';
18654 rm -f conftest$ac_exeext
18655 if { (ac_try="$ac_link"
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_link") 2>&5
18663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18665 { (case "(($ac_try" in
18666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18667 *) ac_try_echo=$ac_try;;
18669 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18670 (eval "$ac_try") 2>&5
18672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18673 (exit $ac_status); }; }; then
18674 gl_cv_func_gnu_getopt=yes
18676 echo "$as_me: program exited with status
$ac_status" >&5
18677 echo "$as_me: failed program was
:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ( exit $ac_status )
18681 gl_cv_func_gnu_getopt=no
18683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18688 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18689 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18690 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18697 if test -n "$GETOPT_H"; then
18702 cat >>confdefs.h <<\_ACEOF
18703 #define __GETOPT_PREFIX rpl_
18709 GETOPTOBJS='getopt.o getopt1.o'
18716 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18717 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18718 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18719 echo $ECHO_N "(cached
) $ECHO_C" >&6
18721 # Use it with a single arg.
18722 cat >conftest.$ac_ext <<_ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 $ac_includes_default
18737 rm -f conftest.$ac_objext
18738 if { (ac_try="$ac_compile"
18739 case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_compile") 2>conftest.er1
18746 grep -v '^ *+' conftest.er1 >conftest.err
18748 cat conftest.err >&5
18749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18750 (exit $ac_status); } && {
18751 test -z "$ac_c_werror_flag" ||
18752 test ! -s conftest.err
18753 } && test -s conftest.$ac_objext; then
18754 ac_cv_func_getpgrp_void=no
18756 echo "$as_me: failed program was
:" >&5
18757 sed 's/^/| /' conftest.$ac_ext >&5
18759 ac_cv_func_getpgrp_void=yes
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18765 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18766 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18767 if test $ac_cv_func_getpgrp_void = yes; then
18769 cat >>confdefs.h <<\_ACEOF
18770 #define GETPGRP_VOID 1
18777 for ac_func in strftime
18779 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18780 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18781 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18782 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18783 echo $ECHO_N "(cached
) $ECHO_C" >&6
18785 cat >conftest.$ac_ext <<_ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18793 #define $ac_func innocuous_$ac_func
18795 /* System header to define __stub macros and hopefully few prototypes,
18796 which can conflict with char $ac_func (); below.
18797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 <limits.h> exists even on freestanding compilers. */
18801 # include <limits.h>
18803 # include <assert.h>
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18815 /* The GNU C library defines this for functions which it implements
18816 to always fail with ENOSYS. Some functions are actually named
18817 something starting with __ and the normal name is an alias. */
18818 #if defined __stub_$ac_func || defined __stub___$ac_func
18825 return $ac_func ();
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18837 (eval "$ac_link") 2>conftest.er1
18839 grep -v '^ *+' conftest.er1 >conftest.err
18841 cat conftest.err >&5
18842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18843 (exit $ac_status); } && {
18844 test -z "$ac_c_werror_flag" ||
18845 test ! -s conftest.err
18846 } && test -s conftest$ac_exeext &&
18847 $as_test_x conftest$ac_exeext; then
18848 eval "$as_ac_var=yes"
18850 echo "$as_me: failed program was
:" >&5
18851 sed 's/^/| /' conftest.$ac_ext >&5
18853 eval "$as_ac_var=no
"
18856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18857 conftest$ac_exeext conftest.$ac_ext
18859 ac_res=`eval echo '${'$as_ac_var'}'`
18860 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18861 echo "${ECHO_T}$ac_res" >&6; }
18862 if test `eval echo '${'$as_ac_var'}'` = yes; then
18863 cat >>confdefs.h <<_ACEOF
18864 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18868 # strftime is in -lintl on SCO UNIX.
18869 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18870 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18871 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18872 echo $ECHO_N "(cached
) $ECHO_C" >&6
18874 ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lintl $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18893 return strftime ();
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18911 (exit $ac_status); } && {
18912 test -z "$ac_c_werror_flag" ||
18913 test ! -s conftest.err
18914 } && test -s conftest$ac_exeext &&
18915 $as_test_x conftest$ac_exeext; then
18916 ac_cv_lib_intl_strftime=yes
18918 echo "$as_me: failed program was
:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_cv_lib_intl_strftime=no
18924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18928 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18929 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18930 if test $ac_cv_lib_intl_strftime = yes; then
18931 cat >>confdefs.h <<\_ACEOF
18932 #define HAVE_STRFTIME 1
18935 LIBS="-lintl $LIBS"
18944 for ac_func in grantpt
18946 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18947 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18948 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18949 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18950 echo $ECHO_N "(cached
) $ECHO_C" >&6
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960 #define $ac_func innocuous_$ac_func
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char $ac_func (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18968 # include <limits.h>
18970 # include <assert.h>
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18982 /* The GNU C library defines this for functions which it implements
18983 to always fail with ENOSYS. Some functions are actually named
18984 something starting with __ and the normal name is an alias. */
18985 #if defined __stub_$ac_func || defined __stub___$ac_func
18992 return $ac_func ();
18997 rm -f conftest.$ac_objext conftest$ac_exeext
18998 if { (ac_try="$ac_link"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_link") 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest$ac_exeext &&
19014 $as_test_x conftest$ac_exeext; then
19015 eval "$as_ac_var=yes"
19017 echo "$as_me: failed program was
:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 eval "$as_ac_var=no
"
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19026 ac_res=`eval echo '${'$as_ac_var'}'`
19027 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19028 echo "${ECHO_T}$ac_res" >&6; }
19029 if test `eval echo '${'$as_ac_var'}'` = yes; then
19030 cat >>confdefs.h <<_ACEOF
19031 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19038 # PTY-related GNU extensions.
19040 for ac_func in getpt
19042 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19043 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19044 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19045 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19046 echo $ECHO_N "(cached
) $ECHO_C" >&6
19048 cat >conftest.$ac_ext <<_ACEOF
19051 cat confdefs.h >>conftest.$ac_ext
19052 cat >>conftest.$ac_ext <<_ACEOF
19053 /* end confdefs.h. */
19054 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19056 #define $ac_func innocuous_$ac_func
19058 /* System header to define __stub macros and hopefully few prototypes,
19059 which can conflict with char $ac_func (); below.
19060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19061 <limits.h> exists even on freestanding compilers. */
19064 # include <limits.h>
19066 # include <assert.h>
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19078 /* The GNU C library defines this for functions which it implements
19079 to always fail with ENOSYS. Some functions are actually named
19080 something starting with __ and the normal name is an alias. */
19081 #if defined __stub_$ac_func || defined __stub___$ac_func
19088 return $ac_func ();
19093 rm -f conftest.$ac_objext conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_link") 2>conftest.er1
19102 grep -v '^ *+' conftest.er1 >conftest.err
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19106 (exit $ac_status); } && {
19107 test -z "$ac_c_werror_flag" ||
19108 test ! -s conftest.err
19109 } && test -s conftest$ac_exeext &&
19110 $as_test_x conftest$ac_exeext; then
19111 eval "$as_ac_var=yes"
19113 echo "$as_me: failed program was
:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 eval "$as_ac_var=no
"
19119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19120 conftest$ac_exeext conftest.$ac_ext
19122 ac_res=`eval echo '${'$as_ac_var'}'`
19123 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19124 echo "${ECHO_T}$ac_res" >&6; }
19125 if test `eval echo '${'$as_ac_var'}'` = yes; then
19126 cat >>confdefs.h <<_ACEOF
19127 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19134 # Check this now, so that we will NOT find the above functions in ncurses.
19135 # That is because we have not set up to link ncurses in lib-src.
19136 # It's better to believe a function is not available
19137 # than to expect to find it in ncurses.
19139 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19140 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19141 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19142 echo $ECHO_N "(cached
) $ECHO_C" >&6
19144 ac_check_lib_save_LIBS=$LIBS
19145 LIBS="-lncurses $LIBS"
19146 cat >conftest.$ac_ext <<_ACEOF
19149 cat confdefs.h >>conftest.$ac_ext
19150 cat >>conftest.$ac_ext <<_ACEOF
19151 /* end confdefs.h. */
19153 /* Override any GCC internal prototype to avoid an error.
19154 Use char because int might match the return type of a GCC
19155 builtin and then its argument prototype would still apply. */
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_link") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest$ac_exeext &&
19185 $as_test_x conftest$ac_exeext; then
19186 ac_cv_lib_ncurses_tparm=yes
19188 echo "$as_me: failed program was
:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 ac_cv_lib_ncurses_tparm=no
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19196 LIBS=$ac_check_lib_save_LIBS
19198 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19199 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19200 if test $ac_cv_lib_ncurses_tparm = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define HAVE_LIBNCURSES 1
19205 LIBS="-lncurses $LIBS"
19210 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 #include <netinet/in.h>
19220 #include <arpa/nameser.h>
19221 #include <resolv.h>
19230 rm -f conftest.$ac_objext conftest$ac_exeext
19231 if { (ac_try="$ac_link"
19232 case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_link") 2>conftest.er1
19239 grep -v '^ *+' conftest.er1 >conftest.err
19241 cat conftest.err >&5
19242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19243 (exit $ac_status); } && {
19244 test -z "$ac_c_werror_flag" ||
19245 test ! -s conftest.err
19246 } && test -s conftest$ac_exeext &&
19247 $as_test_x conftest$ac_exeext; then
19250 echo "$as_me: failed program was
:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19257 conftest$ac_exeext conftest.$ac_ext
19258 if test "$have_res_init" = no; then
19260 LIBS="$LIBS -lresolv"
19261 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19262 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <netinet/in.h>
19270 #include <arpa/nameser.h>
19271 #include <resolv.h>
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
19300 echo "$as_me: failed program was
:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19308 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19309 echo "${ECHO_T}$have_res_init" >&6; }
19310 if test "$have_res_init" = yes ; then
19316 if test "$have_res_init" = yes; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_RES_INIT 1
19324 # Do we need the Hesiod library to provide the support routines?
19325 if test "$with_hesiod" = yes ; then
19326 # Don't set $LIBS here -- see comments above.
19327 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19328 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19329 if test "${ac_cv_func_res_send+set}" = set; then
19330 echo $ECHO_N "(cached
) $ECHO_C" >&6
19332 cat >conftest.$ac_ext <<_ACEOF
19335 cat confdefs.h >>conftest.$ac_ext
19336 cat >>conftest.$ac_ext <<_ACEOF
19337 /* end confdefs.h. */
19338 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19340 #define res_send innocuous_res_send
19342 /* System header to define __stub macros and hopefully few prototypes,
19343 which can conflict with char res_send (); below.
19344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19345 <limits.h> exists even on freestanding compilers. */
19348 # include <limits.h>
19350 # include <assert.h>
19355 /* Override any GCC internal prototype to avoid an error.
19356 Use char because int might match the return type of a GCC
19357 builtin and then its argument prototype would still apply. */
19362 /* The GNU C library defines this for functions which it implements
19363 to always fail with ENOSYS. Some functions are actually named
19364 something starting with __ and the normal name is an alias. */
19365 #if defined __stub_res_send || defined __stub___res_send
19372 return res_send ();
19377 rm -f conftest.$ac_objext conftest$ac_exeext
19378 if { (ac_try="$ac_link"
19379 case "(($ac_try" in
19380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19381 *) ac_try_echo=$ac_try;;
19383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19384 (eval "$ac_link") 2>conftest.er1
19386 grep -v '^ *+' conftest.er1 >conftest.err
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19390 (exit $ac_status); } && {
19391 test -z "$ac_c_werror_flag" ||
19392 test ! -s conftest.err
19393 } && test -s conftest$ac_exeext &&
19394 $as_test_x conftest$ac_exeext; then
19395 ac_cv_func_res_send=yes
19397 echo "$as_me: failed program was
:" >&5
19398 sed 's/^/| /' conftest.$ac_ext >&5
19400 ac_cv_func_res_send=no
19403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19404 conftest$ac_exeext conftest.$ac_ext
19406 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19407 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19408 if test $ac_cv_func_res_send = yes; then
19411 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19412 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19413 if test "${ac_cv_func___res_send+set}" = set; then
19414 echo $ECHO_N "(cached
) $ECHO_C" >&6
19416 cat >conftest.$ac_ext <<_ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19424 #define __res_send innocuous___res_send
19426 /* System header to define __stub macros and hopefully few prototypes,
19427 which can conflict with char __res_send (); below.
19428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19429 <limits.h> exists even on freestanding compilers. */
19432 # include <limits.h>
19434 # include <assert.h>
19439 /* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19445 char __res_send ();
19446 /* The GNU C library defines this for functions which it implements
19447 to always fail with ENOSYS. Some functions are actually named
19448 something starting with __ and the normal name is an alias. */
19449 #if defined __stub___res_send || defined __stub_____res_send
19456 return __res_send ();
19461 rm -f conftest.$ac_objext conftest$ac_exeext
19462 if { (ac_try="$ac_link"
19463 case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19468 (eval "$ac_link") 2>conftest.er1
19470 grep -v '^ *+' conftest.er1 >conftest.err
19472 cat conftest.err >&5
19473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19474 (exit $ac_status); } && {
19475 test -z "$ac_c_werror_flag" ||
19476 test ! -s conftest.err
19477 } && test -s conftest$ac_exeext &&
19478 $as_test_x conftest$ac_exeext; then
19479 ac_cv_func___res_send=yes
19481 echo "$as_me: failed program was
:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19484 ac_cv_func___res_send=no
19487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19488 conftest$ac_exeext conftest.$ac_ext
19490 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19491 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19492 if test $ac_cv_func___res_send = yes; then
19495 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19496 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19497 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19498 echo $ECHO_N "(cached
) $ECHO_C" >&6
19500 ac_check_lib_save_LIBS=$LIBS
19501 LIBS="-lresolv $LIBS"
19502 cat >conftest.$ac_ext <<_ACEOF
19505 cat confdefs.h >>conftest.$ac_ext
19506 cat >>conftest.$ac_ext <<_ACEOF
19507 /* end confdefs.h. */
19509 /* Override any GCC internal prototype to avoid an error.
19510 Use char because int might match the return type of a GCC
19511 builtin and then its argument prototype would still apply. */
19519 return res_send ();
19524 rm -f conftest.$ac_objext conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_link") 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19537 (exit $ac_status); } && {
19538 test -z "$ac_c_werror_flag" ||
19539 test ! -s conftest.err
19540 } && test -s conftest$ac_exeext &&
19541 $as_test_x conftest$ac_exeext; then
19542 ac_cv_lib_resolv_res_send=yes
19544 echo "$as_me: failed program was
:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_cv_lib_resolv_res_send=no
19550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19551 conftest$ac_exeext conftest.$ac_ext
19552 LIBS=$ac_check_lib_save_LIBS
19554 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19555 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19556 if test $ac_cv_lib_resolv_res_send = yes; then
19559 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19560 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19561 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19562 echo $ECHO_N "(cached
) $ECHO_C" >&6
19564 ac_check_lib_save_LIBS=$LIBS
19565 LIBS="-lresolv $LIBS"
19566 cat >conftest.$ac_ext <<_ACEOF
19569 cat confdefs.h >>conftest.$ac_ext
19570 cat >>conftest.$ac_ext <<_ACEOF
19571 /* end confdefs.h. */
19573 /* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19579 char __res_send ();
19583 return __res_send ();
19588 rm -f conftest.$ac_objext conftest$ac_exeext
19589 if { (ac_try="$ac_link"
19590 case "(($ac_try" in
19591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592 *) ac_try_echo=$ac_try;;
19594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19595 (eval "$ac_link") 2>conftest.er1
19597 grep -v '^ *+' conftest.er1 >conftest.err
19599 cat conftest.err >&5
19600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19601 (exit $ac_status); } && {
19602 test -z "$ac_c_werror_flag" ||
19603 test ! -s conftest.err
19604 } && test -s conftest$ac_exeext &&
19605 $as_test_x conftest$ac_exeext; then
19606 ac_cv_lib_resolv___res_send=yes
19608 echo "$as_me: failed program was
:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19611 ac_cv_lib_resolv___res_send=no
19614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19615 conftest$ac_exeext conftest.$ac_ext
19616 LIBS=$ac_check_lib_save_LIBS
19618 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19619 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19620 if test $ac_cv_lib_resolv___res_send = yes; then
19630 if test "$resolv" = yes ; then
19635 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19636 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19637 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19638 echo $ECHO_N "(cached
) $ECHO_C" >&6
19640 cat >conftest.$ac_ext <<_ACEOF
19643 cat confdefs.h >>conftest.$ac_ext
19644 cat >>conftest.$ac_ext <<_ACEOF
19645 /* end confdefs.h. */
19646 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19648 #define hes_getmailhost innocuous_hes_getmailhost
19650 /* System header to define __stub macros and hopefully few prototypes,
19651 which can conflict with char hes_getmailhost (); below.
19652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19653 <limits.h> exists even on freestanding compilers. */
19656 # include <limits.h>
19658 # include <assert.h>
19661 #undef hes_getmailhost
19663 /* Override any GCC internal prototype to avoid an error.
19664 Use char because int might match the return type of a GCC
19665 builtin and then its argument prototype would still apply. */
19669 char hes_getmailhost ();
19670 /* The GNU C library defines this for functions which it implements
19671 to always fail with ENOSYS. Some functions are actually named
19672 something starting with __ and the normal name is an alias. */
19673 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19680 return hes_getmailhost ();
19685 rm -f conftest.$ac_objext conftest$ac_exeext
19686 if { (ac_try="$ac_link"
19687 case "(($ac_try" in
19688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19689 *) ac_try_echo=$ac_try;;
19691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19692 (eval "$ac_link") 2>conftest.er1
19694 grep -v '^ *+' conftest.er1 >conftest.err
19696 cat conftest.err >&5
19697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19698 (exit $ac_status); } && {
19699 test -z "$ac_c_werror_flag" ||
19700 test ! -s conftest.err
19701 } && test -s conftest$ac_exeext &&
19702 $as_test_x conftest$ac_exeext; then
19703 ac_cv_func_hes_getmailhost=yes
19705 echo "$as_me: failed program was
:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_func_hes_getmailhost=no
19711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19712 conftest$ac_exeext conftest.$ac_ext
19714 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19715 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19716 if test $ac_cv_func_hes_getmailhost = yes; then
19719 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19720 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19721 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19722 echo $ECHO_N "(cached
) $ECHO_C" >&6
19724 ac_check_lib_save_LIBS=$LIBS
19725 LIBS="-lhesiod $RESOLVLIB $LIBS"
19726 cat >conftest.$ac_ext <<_ACEOF
19729 cat confdefs.h >>conftest.$ac_ext
19730 cat >>conftest.$ac_ext <<_ACEOF
19731 /* end confdefs.h. */
19733 /* Override any GCC internal prototype to avoid an error.
19734 Use char because int might match the return type of a GCC
19735 builtin and then its argument prototype would still apply. */
19739 char hes_getmailhost ();
19743 return hes_getmailhost ();
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19766 ac_cv_lib_hesiod_hes_getmailhost=yes
19768 echo "$as_me: failed program was
:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_cv_lib_hesiod_hes_getmailhost=no
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775 conftest$ac_exeext conftest.$ac_ext
19776 LIBS=$ac_check_lib_save_LIBS
19778 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19779 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19780 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19782 cat >>confdefs.h <<\_ACEOF
19783 #define HAVE_LIBHESIOD 1
19794 # Do we need libresolv (due to res_init or Hesiod)?
19795 if test "$resolv" = yes ; then
19797 cat >>confdefs.h <<\_ACEOF
19798 #define HAVE_LIBRESOLV 1
19803 # These tell us which Kerberos-related libraries to use.
19804 if test "${with_kerberos+set}" = set; then
19806 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19807 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19808 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19809 echo $ECHO_N "(cached
) $ECHO_C" >&6
19811 ac_check_lib_save_LIBS=$LIBS
19812 LIBS="-lcom_err $LIBS"
19813 cat >conftest.$ac_ext <<_ACEOF
19816 cat confdefs.h >>conftest.$ac_ext
19817 cat >>conftest.$ac_ext <<_ACEOF
19818 /* end confdefs.h. */
19820 /* Override any GCC internal prototype to avoid an error.
19821 Use char because int might match the return type of a GCC
19822 builtin and then its argument prototype would still apply. */
19835 rm -f conftest.$ac_objext conftest$ac_exeext
19836 if { (ac_try="$ac_link"
19837 case "(($ac_try" in
19838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19839 *) ac_try_echo=$ac_try;;
19841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19842 (eval "$ac_link") 2>conftest.er1
19844 grep -v '^ *+' conftest.er1 >conftest.err
19846 cat conftest.err >&5
19847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest$ac_exeext &&
19852 $as_test_x conftest$ac_exeext; then
19853 ac_cv_lib_com_err_com_err=yes
19855 echo "$as_me: failed program was
:" >&5
19856 sed 's/^/| /' conftest.$ac_ext >&5
19858 ac_cv_lib_com_err_com_err=no
19861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19862 conftest$ac_exeext conftest.$ac_ext
19863 LIBS=$ac_check_lib_save_LIBS
19865 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19866 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19867 if test $ac_cv_lib_com_err_com_err = yes; then
19868 cat >>confdefs.h <<_ACEOF
19869 #define HAVE_LIBCOM_ERR 1
19872 LIBS="-lcom_err $LIBS"
19877 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19878 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19879 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19880 echo $ECHO_N "(cached
) $ECHO_C" >&6
19882 ac_check_lib_save_LIBS=$LIBS
19883 LIBS="-lk5crypto $LIBS"
19884 cat >conftest.$ac_ext <<_ACEOF
19887 cat confdefs.h >>conftest.$ac_ext
19888 cat >>conftest.$ac_ext <<_ACEOF
19889 /* end confdefs.h. */
19891 /* Override any GCC internal prototype to avoid an error.
19892 Use char because int might match the return type of a GCC
19893 builtin and then its argument prototype would still apply. */
19897 char mit_des_cbc_encrypt ();
19901 return mit_des_cbc_encrypt ();
19906 rm -f conftest.$ac_objext conftest$ac_exeext
19907 if { (ac_try="$ac_link"
19908 case "(($ac_try" in
19909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910 *) ac_try_echo=$ac_try;;
19912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19913 (eval "$ac_link") 2>conftest.er1
19915 grep -v '^ *+' conftest.er1 >conftest.err
19917 cat conftest.err >&5
19918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19919 (exit $ac_status); } && {
19920 test -z "$ac_c_werror_flag" ||
19921 test ! -s conftest.err
19922 } && test -s conftest$ac_exeext &&
19923 $as_test_x conftest$ac_exeext; then
19924 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19926 echo "$as_me: failed program was
:" >&5
19927 sed 's/^/| /' conftest.$ac_ext >&5
19929 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19933 conftest$ac_exeext conftest.$ac_ext
19934 LIBS=$ac_check_lib_save_LIBS
19936 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19937 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19938 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19939 cat >>confdefs.h <<_ACEOF
19940 #define HAVE_LIBK5CRYPTO 1
19943 LIBS="-lk5crypto $LIBS"
19948 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19949 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19950 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19951 echo $ECHO_N "(cached
) $ECHO_C" >&6
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lcrypto $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19968 char mit_des_cbc_encrypt ();
19972 return mit_des_cbc_encrypt ();
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19997 echo "$as_me: failed program was
:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20008 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20009 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20010 cat >>confdefs.h <<_ACEOF
20011 #define HAVE_LIBCRYPTO 1
20014 LIBS="-lcrypto $LIBS"
20019 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20020 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20021 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20022 echo $ECHO_N "(cached
) $ECHO_C" >&6
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lkrb5 $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20039 char krb5_init_context ();
20043 return krb5_init_context ();
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest$ac_exeext &&
20065 $as_test_x conftest$ac_exeext; then
20066 ac_cv_lib_krb5_krb5_init_context=yes
20068 echo "$as_me: failed program was
:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_lib_krb5_krb5_init_context=no
20074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20079 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20080 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082 #define HAVE_LIBKRB5 1
20085 LIBS="-lkrb5 $LIBS"
20089 if test "${with_kerberos5+set}" != set; then
20091 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20092 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20093 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20094 echo $ECHO_N "(cached
) $ECHO_C" >&6
20096 ac_check_lib_save_LIBS=$LIBS
20097 LIBS="-ldes425 $LIBS"
20098 cat >conftest.$ac_ext <<_ACEOF
20101 cat confdefs.h >>conftest.$ac_ext
20102 cat >>conftest.$ac_ext <<_ACEOF
20103 /* end confdefs.h. */
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20111 char des_cbc_encrypt ();
20115 return des_cbc_encrypt ();
20120 rm -f conftest.$ac_objext conftest$ac_exeext
20121 if { (ac_try="$ac_link"
20122 case "(($ac_try" in
20123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20124 *) ac_try_echo=$ac_try;;
20126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20127 (eval "$ac_link") 2>conftest.er1
20129 grep -v '^ *+' conftest.er1 >conftest.err
20131 cat conftest.err >&5
20132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20133 (exit $ac_status); } && {
20134 test -z "$ac_c_werror_flag" ||
20135 test ! -s conftest.err
20136 } && test -s conftest$ac_exeext &&
20137 $as_test_x conftest$ac_exeext; then
20138 ac_cv_lib_des425_des_cbc_encrypt=yes
20140 echo "$as_me: failed program was
:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20143 ac_cv_lib_des425_des_cbc_encrypt=no
20146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20147 conftest$ac_exeext conftest.$ac_ext
20148 LIBS=$ac_check_lib_save_LIBS
20150 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20151 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20152 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20153 cat >>confdefs.h <<_ACEOF
20154 #define HAVE_LIBDES425 1
20157 LIBS="-ldes425 $LIBS"
20161 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20162 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20163 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20164 echo $ECHO_N "(cached
) $ECHO_C" >&6
20166 ac_check_lib_save_LIBS=$LIBS
20168 cat >conftest.$ac_ext <<_ACEOF
20171 cat confdefs.h >>conftest.$ac_ext
20172 cat >>conftest.$ac_ext <<_ACEOF
20173 /* end confdefs.h. */
20175 /* Override any GCC internal prototype to avoid an error.
20176 Use char because int might match the return type of a GCC
20177 builtin and then its argument prototype would still apply. */
20181 char des_cbc_encrypt ();
20185 return des_cbc_encrypt ();
20190 rm -f conftest.$ac_objext conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194 *) ac_try_echo=$ac_try;;
20196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20197 (eval "$ac_link") 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20203 (exit $ac_status); } && {
20204 test -z "$ac_c_werror_flag" ||
20205 test ! -s conftest.err
20206 } && test -s conftest$ac_exeext &&
20207 $as_test_x conftest$ac_exeext; then
20208 ac_cv_lib_des_des_cbc_encrypt=yes
20210 echo "$as_me: failed program was
:" >&5
20211 sed 's/^/| /' conftest.$ac_ext >&5
20213 ac_cv_lib_des_des_cbc_encrypt=no
20216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20217 conftest$ac_exeext conftest.$ac_ext
20218 LIBS=$ac_check_lib_save_LIBS
20220 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20221 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20222 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20223 cat >>confdefs.h <<_ACEOF
20224 #define HAVE_LIBDES 1
20234 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20235 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20236 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20237 echo $ECHO_N "(cached
) $ECHO_C" >&6
20239 ac_check_lib_save_LIBS=$LIBS
20240 LIBS="-lkrb4 $LIBS"
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20248 /* Override any GCC internal prototype to avoid an error.
20249 Use char because int might match the return type of a GCC
20250 builtin and then its argument prototype would still apply. */
20254 char krb_get_cred ();
20258 return krb_get_cred ();
20263 rm -f conftest.$ac_objext conftest$ac_exeext
20264 if { (ac_try="$ac_link"
20265 case "(($ac_try" in
20266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20267 *) ac_try_echo=$ac_try;;
20269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20270 (eval "$ac_link") 2>conftest.er1
20272 grep -v '^ *+' conftest.er1 >conftest.err
20274 cat conftest.err >&5
20275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20276 (exit $ac_status); } && {
20277 test -z "$ac_c_werror_flag" ||
20278 test ! -s conftest.err
20279 } && test -s conftest$ac_exeext &&
20280 $as_test_x conftest$ac_exeext; then
20281 ac_cv_lib_krb4_krb_get_cred=yes
20283 echo "$as_me: failed program was
:" >&5
20284 sed 's/^/| /' conftest.$ac_ext >&5
20286 ac_cv_lib_krb4_krb_get_cred=no
20289 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20290 conftest$ac_exeext conftest.$ac_ext
20291 LIBS=$ac_check_lib_save_LIBS
20293 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20294 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20295 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20296 cat >>confdefs.h <<_ACEOF
20297 #define HAVE_LIBKRB4 1
20300 LIBS="-lkrb4 $LIBS"
20304 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20305 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20306 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20307 echo $ECHO_N "(cached
) $ECHO_C" >&6
20309 ac_check_lib_save_LIBS=$LIBS
20311 cat >conftest.$ac_ext <<_ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20324 char krb_get_cred ();
20328 return krb_get_cred ();
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337 *) ac_try_echo=$ac_try;;
20339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20340 (eval "$ac_link") 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20346 (exit $ac_status); } && {
20347 test -z "$ac_c_werror_flag" ||
20348 test ! -s conftest.err
20349 } && test -s conftest$ac_exeext &&
20350 $as_test_x conftest$ac_exeext; then
20351 ac_cv_lib_krb_krb_get_cred=yes
20353 echo "$as_me: failed program was
:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_lib_krb_krb_get_cred=no
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20361 LIBS=$ac_check_lib_save_LIBS
20363 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20364 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20365 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define HAVE_LIBKRB 1
20378 if test "${with_kerberos5+set}" = set; then
20380 for ac_header in krb5.h
20382 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20387 echo $ECHO_N "(cached
) $ECHO_C" >&6
20389 ac_res=`eval echo '${'$as_ac_Header'}'`
20390 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20391 echo "${ECHO_T}$ac_res" >&6; }
20393 # Is the header compilable?
20394 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20395 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20396 cat >conftest.$ac_ext <<_ACEOF
20399 cat confdefs.h >>conftest.$ac_ext
20400 cat >>conftest.$ac_ext <<_ACEOF
20401 /* end confdefs.h. */
20402 $ac_includes_default
20403 #include <$ac_header>
20405 rm -f conftest.$ac_objext
20406 if { (ac_try="$ac_compile"
20407 case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20412 (eval "$ac_compile") 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20418 (exit $ac_status); } && {
20419 test -z "$ac_c_werror_flag" ||
20420 test ! -s conftest.err
20421 } && test -s conftest.$ac_objext; then
20422 ac_header_compiler=yes
20424 echo "$as_me: failed program was
:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_header_compiler=no
20430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20432 echo "${ECHO_T}$ac_header_compiler" >&6; }
20434 # Is the header present?
20435 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20436 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 #include <$ac_header>
20445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20457 (exit $ac_status); } >/dev/null && {
20458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20461 ac_header_preproc=yes
20463 echo "$as_me: failed program was
:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_header_preproc=no
20469 rm -f conftest.err conftest.$ac_ext
20470 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20471 echo "${ECHO_T}$ac_header_preproc" >&6; }
20473 # So? What about this header?
20474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20476 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20477 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20478 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20480 ac_header_preproc=yes
20483 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20484 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20485 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20486 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20487 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20488 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20489 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20490 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20491 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20493 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20494 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20498 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20499 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20500 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20501 echo $ECHO_N "(cached
) $ECHO_C" >&6
20503 eval "$as_ac_Header=\
$ac_header_preproc"
20505 ac_res=`eval echo '${'$as_ac_Header'}'`
20506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20507 echo "${ECHO_T}$ac_res" >&6; }
20510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20511 cat >>confdefs.h <<_ACEOF
20512 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20521 for ac_header in des.h
20523 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20525 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20526 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20528 echo $ECHO_N "(cached
) $ECHO_C" >&6
20530 ac_res=`eval echo '${'$as_ac_Header'}'`
20531 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20532 echo "${ECHO_T}$ac_res" >&6; }
20534 # Is the header compilable?
20535 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20536 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20543 $ac_includes_default
20544 #include <$ac_header>
20546 rm -f conftest.$ac_objext
20547 if { (ac_try="$ac_compile"
20548 case "(($ac_try" in
20549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20550 *) ac_try_echo=$ac_try;;
20552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20553 (eval "$ac_compile") 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20559 (exit $ac_status); } && {
20560 test -z "$ac_c_werror_flag" ||
20561 test ! -s conftest.err
20562 } && test -s conftest.$ac_objext; then
20563 ac_header_compiler=yes
20565 echo "$as_me: failed program was
:" >&5
20566 sed 's/^/| /' conftest.$ac_ext >&5
20568 ac_header_compiler=no
20571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20572 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20573 echo "${ECHO_T}$ac_header_compiler" >&6; }
20575 # Is the header present?
20576 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20577 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20584 #include <$ac_header>
20586 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20598 (exit $ac_status); } >/dev/null && {
20599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20602 ac_header_preproc=yes
20604 echo "$as_me: failed program was
:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_header_preproc=no
20610 rm -f conftest.err conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20612 echo "${ECHO_T}$ac_header_preproc" >&6; }
20614 # So? What about this header?
20615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20617 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20618 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20619 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20621 ac_header_preproc=yes
20624 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20625 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20626 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20627 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20628 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20629 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20630 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20631 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20632 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20634 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20635 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20639 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20640 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20642 echo $ECHO_N "(cached
) $ECHO_C" >&6
20644 eval "$as_ac_Header=\
$ac_header_preproc"
20646 ac_res=`eval echo '${'$as_ac_Header'}'`
20647 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20648 echo "${ECHO_T}$ac_res" >&6; }
20651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20652 cat >>confdefs.h <<_ACEOF
20653 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20658 for ac_header in kerberosIV/des.h
20660 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20662 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20663 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20665 echo $ECHO_N "(cached
) $ECHO_C" >&6
20667 ac_res=`eval echo '${'$as_ac_Header'}'`
20668 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20669 echo "${ECHO_T}$ac_res" >&6; }
20671 # Is the header compilable?
20672 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20673 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20680 $ac_includes_default
20681 #include <$ac_header>
20683 rm -f conftest.$ac_objext
20684 if { (ac_try="$ac_compile"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_compile") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20696 (exit $ac_status); } && {
20697 test -z "$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20699 } && test -s conftest.$ac_objext; then
20700 ac_header_compiler=yes
20702 echo "$as_me: failed program was
:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_header_compiler=no
20708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20709 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20710 echo "${ECHO_T}$ac_header_compiler" >&6; }
20712 # Is the header present?
20713 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20714 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20715 cat >conftest.$ac_ext <<_ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h. */
20721 #include <$ac_header>
20723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20724 case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20731 grep -v '^ *+' conftest.er1 >conftest.err
20733 cat conftest.err >&5
20734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20735 (exit $ac_status); } >/dev/null && {
20736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20737 test ! -s conftest.err
20739 ac_header_preproc=yes
20741 echo "$as_me: failed program was
:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_header_preproc=no
20747 rm -f conftest.err conftest.$ac_ext
20748 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20749 echo "${ECHO_T}$ac_header_preproc" >&6; }
20751 # So? What about this header?
20752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20754 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20755 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20756 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20758 ac_header_preproc=yes
20761 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20762 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20763 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20764 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20766 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20767 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20768 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20769 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20771 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20772 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20779 echo $ECHO_N "(cached
) $ECHO_C" >&6
20781 eval "$as_ac_Header=\
$ac_header_preproc"
20783 ac_res=`eval echo '${'$as_ac_Header'}'`
20784 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20785 echo "${ECHO_T}$ac_res" >&6; }
20788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20789 cat >>confdefs.h <<_ACEOF
20790 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20795 for ac_header in kerberos/des.h
20797 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20798 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20799 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20800 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20802 echo $ECHO_N "(cached
) $ECHO_C" >&6
20804 ac_res=`eval echo '${'$as_ac_Header'}'`
20805 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20806 echo "${ECHO_T}$ac_res" >&6; }
20808 # Is the header compilable?
20809 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20810 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20811 cat >conftest.$ac_ext <<_ACEOF
20814 cat confdefs.h >>conftest.$ac_ext
20815 cat >>conftest.$ac_ext <<_ACEOF
20816 /* end confdefs.h. */
20817 $ac_includes_default
20818 #include <$ac_header>
20820 rm -f conftest.$ac_objext
20821 if { (ac_try="$ac_compile"
20822 case "(($ac_try" in
20823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20824 *) ac_try_echo=$ac_try;;
20826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20827 (eval "$ac_compile") 2>conftest.er1
20829 grep -v '^ *+' conftest.er1 >conftest.err
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20833 (exit $ac_status); } && {
20834 test -z "$ac_c_werror_flag" ||
20835 test ! -s conftest.err
20836 } && test -s conftest.$ac_objext; then
20837 ac_header_compiler=yes
20839 echo "$as_me: failed program was
:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 ac_header_compiler=no
20845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20846 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20847 echo "${ECHO_T}$ac_header_compiler" >&6; }
20849 # Is the header present?
20850 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20851 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 #include <$ac_header>
20860 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20861 case "(($ac_try" in
20862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20863 *) ac_try_echo=$ac_try;;
20865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20866 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20868 grep -v '^ *+' conftest.er1 >conftest.err
20870 cat conftest.err >&5
20871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20872 (exit $ac_status); } >/dev/null && {
20873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20874 test ! -s conftest.err
20876 ac_header_preproc=yes
20878 echo "$as_me: failed program was
:" >&5
20879 sed 's/^/| /' conftest.$ac_ext >&5
20881 ac_header_preproc=no
20884 rm -f conftest.err conftest.$ac_ext
20885 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20886 echo "${ECHO_T}$ac_header_preproc" >&6; }
20888 # So? What about this header?
20889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20891 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20892 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20893 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20895 ac_header_preproc=yes
20898 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20899 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20900 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20901 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20902 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20903 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20904 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20905 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20906 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20908 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20909 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20913 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20914 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20915 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20916 echo $ECHO_N "(cached
) $ECHO_C" >&6
20918 eval "$as_ac_Header=\
$ac_header_preproc"
20920 ac_res=`eval echo '${'$as_ac_Header'}'`
20921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20922 echo "${ECHO_T}$ac_res" >&6; }
20925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20926 cat >>confdefs.h <<_ACEOF
20927 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20943 for ac_header in krb.h
20945 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20947 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20948 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20950 echo $ECHO_N "(cached
) $ECHO_C" >&6
20952 ac_res=`eval echo '${'$as_ac_Header'}'`
20953 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20954 echo "${ECHO_T}$ac_res" >&6; }
20956 # Is the header compilable?
20957 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20958 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 $ac_includes_default
20966 #include <$ac_header>
20968 rm -f conftest.$ac_objext
20969 if { (ac_try="$ac_compile"
20970 case "(($ac_try" in
20971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20972 *) ac_try_echo=$ac_try;;
20974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_compile") 2>conftest.er1
20977 grep -v '^ *+' conftest.er1 >conftest.err
20979 cat conftest.err >&5
20980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20981 (exit $ac_status); } && {
20982 test -z "$ac_c_werror_flag" ||
20983 test ! -s conftest.err
20984 } && test -s conftest.$ac_objext; then
20985 ac_header_compiler=yes
20987 echo "$as_me: failed program was
:" >&5
20988 sed 's/^/| /' conftest.$ac_ext >&5
20990 ac_header_compiler=no
20993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20994 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20995 echo "${ECHO_T}$ac_header_compiler" >&6; }
20997 # Is the header present?
20998 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20999 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <$ac_header>
21008 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21009 case "(($ac_try" in
21010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21011 *) ac_try_echo=$ac_try;;
21013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21014 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21016 grep -v '^ *+' conftest.er1 >conftest.err
21018 cat conftest.err >&5
21019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21020 (exit $ac_status); } >/dev/null && {
21021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21024 ac_header_preproc=yes
21026 echo "$as_me: failed program was
:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21029 ac_header_preproc=no
21032 rm -f conftest.err conftest.$ac_ext
21033 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21034 echo "${ECHO_T}$ac_header_preproc" >&6; }
21036 # So? What about this header?
21037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21039 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21040 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21041 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21043 ac_header_preproc=yes
21046 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21047 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21048 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21049 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21051 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21052 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21053 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21054 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21057 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21061 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21062 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21064 echo $ECHO_N "(cached
) $ECHO_C" >&6
21066 eval "$as_ac_Header=\
$ac_header_preproc"
21068 ac_res=`eval echo '${'$as_ac_Header'}'`
21069 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21070 echo "${ECHO_T}$ac_res" >&6; }
21073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21074 cat >>confdefs.h <<_ACEOF
21075 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21080 for ac_header in kerberosIV/krb.h
21082 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21084 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21085 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21087 echo $ECHO_N "(cached
) $ECHO_C" >&6
21089 ac_res=`eval echo '${'$as_ac_Header'}'`
21090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21091 echo "${ECHO_T}$ac_res" >&6; }
21093 # Is the header compilable?
21094 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21095 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21096 cat >conftest.$ac_ext <<_ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h. */
21102 $ac_includes_default
21103 #include <$ac_header>
21105 rm -f conftest.$ac_objext
21106 if { (ac_try="$ac_compile"
21107 case "(($ac_try" in
21108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_compile") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest.$ac_objext; then
21122 ac_header_compiler=yes
21124 echo "$as_me: failed program was
:" >&5
21125 sed 's/^/| /' conftest.$ac_ext >&5
21127 ac_header_compiler=no
21130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21131 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21132 echo "${ECHO_T}$ac_header_compiler" >&6; }
21134 # Is the header present?
21135 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21136 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21137 cat >conftest.$ac_ext <<_ACEOF
21140 cat confdefs.h >>conftest.$ac_ext
21141 cat >>conftest.$ac_ext <<_ACEOF
21142 /* end confdefs.h. */
21143 #include <$ac_header>
21145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21157 (exit $ac_status); } >/dev/null && {
21158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21159 test ! -s conftest.err
21161 ac_header_preproc=yes
21163 echo "$as_me: failed program was
:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ac_header_preproc=no
21169 rm -f conftest.err conftest.$ac_ext
21170 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21171 echo "${ECHO_T}$ac_header_preproc" >&6; }
21173 # So? What about this header?
21174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21176 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21177 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21178 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21180 ac_header_preproc=yes
21183 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21184 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21185 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21186 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21188 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21189 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21190 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21193 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21194 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21198 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21199 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21200 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21201 echo $ECHO_N "(cached
) $ECHO_C" >&6
21203 eval "$as_ac_Header=\
$ac_header_preproc"
21205 ac_res=`eval echo '${'$as_ac_Header'}'`
21206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21207 echo "${ECHO_T}$ac_res" >&6; }
21210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21211 cat >>confdefs.h <<_ACEOF
21212 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21217 for ac_header in kerberos/krb.h
21219 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21221 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21222 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21223 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21224 echo $ECHO_N "(cached
) $ECHO_C" >&6
21226 ac_res=`eval echo '${'$as_ac_Header'}'`
21227 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21228 echo "${ECHO_T}$ac_res" >&6; }
21230 # Is the header compilable?
21231 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21232 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 $ac_includes_default
21240 #include <$ac_header>
21242 rm -f conftest.$ac_objext
21243 if { (ac_try="$ac_compile"
21244 case "(($ac_try" in
21245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246 *) ac_try_echo=$ac_try;;
21248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21249 (eval "$ac_compile") 2>conftest.er1
21251 grep -v '^ *+' conftest.er1 >conftest.err
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21255 (exit $ac_status); } && {
21256 test -z "$ac_c_werror_flag" ||
21257 test ! -s conftest.err
21258 } && test -s conftest.$ac_objext; then
21259 ac_header_compiler=yes
21261 echo "$as_me: failed program was
:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_header_compiler=no
21267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21268 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21269 echo "${ECHO_T}$ac_header_compiler" >&6; }
21271 # Is the header present?
21272 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21273 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 #include <$ac_header>
21282 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21294 (exit $ac_status); } >/dev/null && {
21295 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21298 ac_header_preproc=yes
21300 echo "$as_me: failed program was
:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_header_preproc=no
21306 rm -f conftest.err conftest.$ac_ext
21307 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21308 echo "${ECHO_T}$ac_header_preproc" >&6; }
21310 # So? What about this header?
21311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21314 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21315 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21317 ac_header_preproc=yes
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21321 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21323 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21324 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21325 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21326 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21327 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21330 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21331 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21335 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21336 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21337 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21338 echo $ECHO_N "(cached
) $ECHO_C" >&6
21340 eval "$as_ac_Header=\
$ac_header_preproc"
21342 ac_res=`eval echo '${'$as_ac_Header'}'`
21343 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21348 cat >>confdefs.h <<_ACEOF
21349 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21366 for ac_header in com_err.h
21368 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21370 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21371 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached
) $ECHO_C" >&6
21375 ac_res=`eval echo '${'$as_ac_Header'}'`
21376 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21379 # Is the header compilable?
21380 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21381 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 #include <$ac_header>
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_header_compiler=yes
21410 echo "$as_me: failed program was
:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_header_compiler=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21418 echo "${ECHO_T}$ac_header_compiler" >&6; }
21420 # Is the header present?
21421 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21422 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <$ac_header>
21431 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21443 (exit $ac_status); } >/dev/null && {
21444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21445 test ! -s conftest.err
21447 ac_header_preproc=yes
21449 echo "$as_me: failed program was
:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_preproc=no
21455 rm -f conftest.err conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21457 echo "${ECHO_T}$ac_header_preproc" >&6; }
21459 # So? What about this header?
21460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21462 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21463 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21464 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21466 ac_header_preproc=yes
21469 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21470 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21471 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21472 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21473 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21474 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21475 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21476 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21477 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21479 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21480 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21484 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21485 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21486 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21487 echo $ECHO_N "(cached
) $ECHO_C" >&6
21489 eval "$as_ac_Header=\
$ac_header_preproc"
21491 ac_res=`eval echo '${'$as_ac_Header'}'`
21492 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21493 echo "${ECHO_T}$ac_res" >&6; }
21496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21497 cat >>confdefs.h <<_ACEOF
21498 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21507 # Solaris requires -lintl if you want strerror (which calls dgettext)
21508 # to return localized messages.
21510 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21511 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21512 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21513 echo $ECHO_N "(cached
) $ECHO_C" >&6
21515 ac_check_lib_save_LIBS=$LIBS
21516 LIBS="-lintl $LIBS"
21517 cat >conftest.$ac_ext <<_ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h. */
21524 /* Override any GCC internal prototype to avoid an error.
21525 Use char because int might match the return type of a GCC
21526 builtin and then its argument prototype would still apply. */
21534 return dgettext ();
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_link") 2>conftest.er1
21548 grep -v '^ *+' conftest.er1 >conftest.err
21550 cat conftest.err >&5
21551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21552 (exit $ac_status); } && {
21553 test -z "$ac_c_werror_flag" ||
21554 test ! -s conftest.err
21555 } && test -s conftest$ac_exeext &&
21556 $as_test_x conftest$ac_exeext; then
21557 ac_cv_lib_intl_dgettext=yes
21559 echo "$as_me: failed program was
:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 ac_cv_lib_intl_dgettext=no
21565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21566 conftest$ac_exeext conftest.$ac_ext
21567 LIBS=$ac_check_lib_save_LIBS
21569 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21570 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21571 if test $ac_cv_lib_intl_dgettext = yes; then
21572 cat >>confdefs.h <<_ACEOF
21573 #define HAVE_LIBINTL 1
21576 LIBS="-lintl $LIBS"
21581 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21582 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21583 if test "${emacs_cv_localtime_cache+set}" = set; then
21584 echo $ECHO_N "(cached
) $ECHO_C" >&6
21586 if test x$ac_cv_func_tzset = xyes; then
21587 if test "$cross_compiling" = yes; then
21588 # If we have tzset, assume the worst when cross-compiling.
21589 emacs_cv_localtime_cache=yes
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21598 extern char **environ;
21602 for (to = from = environ; (*to = *from); from++)
21603 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21606 char TZ_GMT0[] = "TZ
=GMT0
";
21607 char TZ_PST8[] = "TZ
=PST8
";
21610 time_t now = time ((time_t *) 0);
21611 int hour_GMT0, hour_unset;
21612 if (putenv (TZ_GMT0) != 0)
21614 hour_GMT0 = localtime (&now)->tm_hour;
21616 hour_unset = localtime (&now)->tm_hour;
21617 if (putenv (TZ_PST8) != 0)
21619 if (localtime (&now)->tm_hour == hour_GMT0)
21622 if (localtime (&now)->tm_hour != hour_unset)
21627 rm -f conftest$ac_exeext
21628 if { (ac_try="$ac_link"
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_link") 2>&5
21636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21638 { (case "(($ac_try" in
21639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21640 *) ac_try_echo=$ac_try;;
21642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21643 (eval "$ac_try") 2>&5
21645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21646 (exit $ac_status); }; }; then
21647 emacs_cv_localtime_cache=no
21649 echo "$as_me: program exited with status
$ac_status" >&5
21650 echo "$as_me: failed program was
:" >&5
21651 sed 's/^/| /' conftest.$ac_ext >&5
21653 ( exit $ac_status )
21654 emacs_cv_localtime_cache=yes
21656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21661 # If we lack tzset, report that localtime does not cache TZ,
21662 # since we can't invalidate the cache if we don't have tzset.
21663 emacs_cv_localtime_cache=no
21666 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21667 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21668 if test $emacs_cv_localtime_cache = yes; then
21670 cat >>confdefs.h <<\_ACEOF
21671 #define LOCALTIME_CACHE 1
21676 if test "x
$HAVE_TIMEVAL" = xyes; then
21678 for ac_func in gettimeofday
21680 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21681 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21682 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21683 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21684 echo $ECHO_N "(cached
) $ECHO_C" >&6
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21694 #define $ac_func innocuous_$ac_func
21696 /* System header to define __stub macros and hopefully few prototypes,
21697 which can conflict with char $ac_func (); below.
21698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21699 <limits.h> exists even on freestanding compilers. */
21702 # include <limits.h>
21704 # include <assert.h>
21709 /* Override any GCC internal prototype to avoid an error.
21710 Use char because int might match the return type of a GCC
21711 builtin and then its argument prototype would still apply. */
21716 /* The GNU C library defines this for functions which it implements
21717 to always fail with ENOSYS. Some functions are actually named
21718 something starting with __ and the normal name is an alias. */
21719 #if defined __stub_$ac_func || defined __stub___$ac_func
21726 return $ac_func ();
21731 rm -f conftest.$ac_objext conftest$ac_exeext
21732 if { (ac_try="$ac_link"
21733 case "(($ac_try" in
21734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735 *) ac_try_echo=$ac_try;;
21737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21738 (eval "$ac_link") 2>conftest.er1
21740 grep -v '^ *+' conftest.er1 >conftest.err
21742 cat conftest.err >&5
21743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext &&
21748 $as_test_x conftest$ac_exeext; then
21749 eval "$as_ac_var=yes"
21751 echo "$as_me: failed program was
:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 eval "$as_ac_var=no
"
21757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21758 conftest$ac_exeext conftest.$ac_ext
21760 ac_res=`eval echo '${'$as_ac_var'}'`
21761 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21762 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_var'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21771 if test $ac_cv_func_gettimeofday = yes; then
21772 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21773 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21774 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21775 echo $ECHO_N "(cached
) $ECHO_C" >&6
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21784 #ifdef TIME_WITH_SYS_TIME
21785 #include <sys/time.h>
21788 #ifdef HAVE_SYS_TIME_H
21789 #include <sys/time.h>
21797 struct timeval time;
21798 gettimeofday (&time, 0);
21803 rm -f conftest.$ac_objext
21804 if { (ac_try="$ac_compile"
21805 case "(($ac_try" in
21806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21807 *) ac_try_echo=$ac_try;;
21809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21810 (eval "$ac_compile") 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21816 (exit $ac_status); } && {
21817 test -z "$ac_c_werror_flag" ||
21818 test ! -s conftest.err
21819 } && test -s conftest.$ac_objext; then
21820 emacs_cv_gettimeofday_two_arguments=yes
21822 echo "$as_me: failed program was
:" >&5
21823 sed 's/^/| /' conftest.$ac_ext >&5
21825 emacs_cv_gettimeofday_two_arguments=no
21828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21830 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21831 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21832 if test $emacs_cv_gettimeofday_two_arguments = no; then
21834 cat >>confdefs.h <<\_ACEOF
21835 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21843 { echo "$as_me:$LINENO: checking
for socket
" >&5
21844 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21845 if test "${ac_cv_func_socket+set}" = set; then
21846 echo $ECHO_N "(cached
) $ECHO_C" >&6
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21856 #define socket innocuous_socket
21858 /* System header to define __stub macros and hopefully few prototypes,
21859 which can conflict with char socket (); below.
21860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21861 <limits.h> exists even on freestanding compilers. */
21864 # include <limits.h>
21866 # include <assert.h>
21871 /* Override any GCC internal prototype to avoid an error.
21872 Use char because int might match the return type of a GCC
21873 builtin and then its argument prototype would still apply. */
21878 /* The GNU C library defines this for functions which it implements
21879 to always fail with ENOSYS. Some functions are actually named
21880 something starting with __ and the normal name is an alias. */
21881 #if defined __stub_socket || defined __stub___socket
21893 rm -f conftest.$ac_objext conftest$ac_exeext
21894 if { (ac_try="$ac_link"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_link") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest$ac_exeext &&
21910 $as_test_x conftest$ac_exeext; then
21911 ac_cv_func_socket=yes
21913 echo "$as_me: failed program was
:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_cv_func_socket=no
21919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21920 conftest$ac_exeext conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21923 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21924 if test $ac_cv_func_socket = yes; then
21930 if test $ok_so_far = yes; then
21931 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21932 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21933 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21934 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21935 echo $ECHO_N "(cached
) $ECHO_C" >&6
21937 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21938 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21940 # Is the header compilable?
21941 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21942 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21943 cat >conftest.$ac_ext <<_ACEOF
21946 cat confdefs.h >>conftest.$ac_ext
21947 cat >>conftest.$ac_ext <<_ACEOF
21948 /* end confdefs.h. */
21949 $ac_includes_default
21950 #include <netinet/in.h>
21952 rm -f conftest.$ac_objext
21953 if { (ac_try="$ac_compile"
21954 case "(($ac_try" in
21955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21956 *) ac_try_echo=$ac_try;;
21958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21959 (eval "$ac_compile") 2>conftest.er1
21961 grep -v '^ *+' conftest.er1 >conftest.err
21963 cat conftest.err >&5
21964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21965 (exit $ac_status); } && {
21966 test -z "$ac_c_werror_flag" ||
21967 test ! -s conftest.err
21968 } && test -s conftest.$ac_objext; then
21969 ac_header_compiler=yes
21971 echo "$as_me: failed program was
:" >&5
21972 sed 's/^/| /' conftest.$ac_ext >&5
21974 ac_header_compiler=no
21977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21978 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21979 echo "${ECHO_T}$ac_header_compiler" >&6; }
21981 # Is the header present?
21982 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21983 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21984 cat >conftest.$ac_ext <<_ACEOF
21987 cat confdefs.h >>conftest.$ac_ext
21988 cat >>conftest.$ac_ext <<_ACEOF
21989 /* end confdefs.h. */
21990 #include <netinet/in.h>
21992 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21993 case "(($ac_try" in
21994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21995 *) ac_try_echo=$ac_try;;
21997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21998 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22000 grep -v '^ *+' conftest.er1 >conftest.err
22002 cat conftest.err >&5
22003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22004 (exit $ac_status); } >/dev/null && {
22005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22008 ac_header_preproc=yes
22010 echo "$as_me: failed program was
:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 ac_header_preproc=no
22016 rm -f conftest.err conftest.$ac_ext
22017 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22018 echo "${ECHO_T}$ac_header_preproc" >&6; }
22020 # So? What about this header?
22021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22023 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22024 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22025 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22026 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22027 ac_header_preproc=yes
22030 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22031 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22032 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22033 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22034 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22035 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22036 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22037 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22038 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22039 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22040 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22041 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22045 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22046 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22047 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22048 echo $ECHO_N "(cached
) $ECHO_C" >&6
22050 ac_cv_header_netinet_in_h=$ac_header_preproc
22052 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22053 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22056 if test $ac_cv_header_netinet_in_h = yes; then
22064 if test $ok_so_far = yes; then
22065 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22066 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22067 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22068 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22069 echo $ECHO_N "(cached
) $ECHO_C" >&6
22071 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22072 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22074 # Is the header compilable?
22075 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22076 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22077 cat >conftest.$ac_ext <<_ACEOF
22080 cat confdefs.h >>conftest.$ac_ext
22081 cat >>conftest.$ac_ext <<_ACEOF
22082 /* end confdefs.h. */
22083 $ac_includes_default
22084 #include <arpa/inet.h>
22086 rm -f conftest.$ac_objext
22087 if { (ac_try="$ac_compile"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_compile") 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22099 (exit $ac_status); } && {
22100 test -z "$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22102 } && test -s conftest.$ac_objext; then
22103 ac_header_compiler=yes
22105 echo "$as_me: failed program was
:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_header_compiler=no
22111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22112 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22113 echo "${ECHO_T}$ac_header_compiler" >&6; }
22115 # Is the header present?
22116 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22117 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22124 #include <arpa/inet.h>
22126 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22138 (exit $ac_status); } >/dev/null && {
22139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22142 ac_header_preproc=yes
22144 echo "$as_me: failed program was
:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_preproc=no
22150 rm -f conftest.err conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22152 echo "${ECHO_T}$ac_header_preproc" >&6; }
22154 # So? What about this header?
22155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22157 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22158 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22159 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22160 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22161 ac_header_preproc=yes
22164 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22165 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22166 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22167 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22168 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22169 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22170 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22171 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22172 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22173 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22174 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22175 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22179 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22180 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22181 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22182 echo $ECHO_N "(cached
) $ECHO_C" >&6
22184 ac_cv_header_arpa_inet_h=$ac_header_preproc
22186 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22187 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22190 if test $ac_cv_header_arpa_inet_h = yes; then
22198 if test $ok_so_far = yes; then
22200 cat >>confdefs.h <<\_ACEOF
22201 #define HAVE_INET_SOCKETS 1
22207 for ac_header in sys/ioctl.h
22209 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22211 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22212 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22214 echo $ECHO_N "(cached
) $ECHO_C" >&6
22216 ac_res=`eval echo '${'$as_ac_Header'}'`
22217 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22220 # Is the header compilable?
22221 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22222 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22223 cat >conftest.$ac_ext <<_ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22229 $ac_includes_default
22230 #include <$ac_header>
22232 rm -f conftest.$ac_objext
22233 if { (ac_try="$ac_compile"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_compile") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest.$ac_objext; then
22249 ac_header_compiler=yes
22251 echo "$as_me: failed program was
:" >&5
22252 sed 's/^/| /' conftest.$ac_ext >&5
22254 ac_header_compiler=no
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22258 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22259 echo "${ECHO_T}$ac_header_compiler" >&6; }
22261 # Is the header present?
22262 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22263 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22264 cat >conftest.$ac_ext <<_ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270 #include <$ac_header>
22272 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22284 (exit $ac_status); } >/dev/null && {
22285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22288 ac_header_preproc=yes
22290 echo "$as_me: failed program was
:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 ac_header_preproc=no
22296 rm -f conftest.err conftest.$ac_ext
22297 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22298 echo "${ECHO_T}$ac_header_preproc" >&6; }
22300 # So? What about this header?
22301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22303 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22304 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22305 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22307 ac_header_preproc=yes
22310 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22311 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22312 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22313 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22314 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22315 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22316 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22317 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22318 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22320 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22321 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22325 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22326 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22328 echo $ECHO_N "(cached
) $ECHO_C" >&6
22330 eval "$as_ac_Header=\
$ac_header_preproc"
22332 ac_res=`eval echo '${'$as_ac_Header'}'`
22333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22334 echo "${ECHO_T}$ac_res" >&6; }
22337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22347 if test -f /usr/lpp/X11/bin/smt.exp; then
22349 cat >>confdefs.h <<\_ACEOF
22350 #define HAVE_AIX_SMT_EXP 1
22355 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22356 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22357 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22358 { echo "$as_me:$LINENO: result
: yes" >&5
22359 echo "${ECHO_T}yes" >&6; }
22361 cat >>confdefs.h <<\_ACEOF
22362 #define HAVE_DEV_PTMX 1
22366 { echo "$as_me:$LINENO: result
: no
" >&5
22367 echo "${ECHO_T}no
" >&6; }
22370 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22371 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22372 if test "${ac_cv_type_pid_t+set}" = set; then
22373 echo $ECHO_N "(cached
) $ECHO_C" >&6
22375 cat >conftest.$ac_ext <<_ACEOF
22378 cat confdefs.h >>conftest.$ac_ext
22379 cat >>conftest.$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22381 $ac_includes_default
22382 typedef pid_t ac__type_new_;
22386 if ((ac__type_new_ *) 0)
22388 if (sizeof (ac__type_new_))
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_compile") 2>conftest.er1
22403 grep -v '^ *+' conftest.er1 >conftest.err
22405 cat conftest.err >&5
22406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22407 (exit $ac_status); } && {
22408 test -z "$ac_c_werror_flag" ||
22409 test ! -s conftest.err
22410 } && test -s conftest.$ac_objext; then
22411 ac_cv_type_pid_t=yes
22413 echo "$as_me: failed program was
:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22416 ac_cv_type_pid_t=no
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22421 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22422 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22423 if test $ac_cv_type_pid_t = yes; then
22427 cat >>confdefs.h <<_ACEOF
22434 for ac_header in vfork.h
22436 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22438 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22439 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22441 echo $ECHO_N "(cached
) $ECHO_C" >&6
22443 ac_res=`eval echo '${'$as_ac_Header'}'`
22444 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22445 echo "${ECHO_T}$ac_res" >&6; }
22447 # Is the header compilable?
22448 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22449 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22450 cat >conftest.$ac_ext <<_ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22456 $ac_includes_default
22457 #include <$ac_header>
22459 rm -f conftest.$ac_objext
22460 if { (ac_try="$ac_compile"
22461 case "(($ac_try" in
22462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22463 *) ac_try_echo=$ac_try;;
22465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22466 (eval "$ac_compile") 2>conftest.er1
22468 grep -v '^ *+' conftest.er1 >conftest.err
22470 cat conftest.err >&5
22471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22472 (exit $ac_status); } && {
22473 test -z "$ac_c_werror_flag" ||
22474 test ! -s conftest.err
22475 } && test -s conftest.$ac_objext; then
22476 ac_header_compiler=yes
22478 echo "$as_me: failed program was
:" >&5
22479 sed 's/^/| /' conftest.$ac_ext >&5
22481 ac_header_compiler=no
22484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22486 echo "${ECHO_T}$ac_header_compiler" >&6; }
22488 # Is the header present?
22489 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22490 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22491 cat >conftest.$ac_ext <<_ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 #include <$ac_header>
22499 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22500 case "(($ac_try" in
22501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502 *) ac_try_echo=$ac_try;;
22504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22505 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22507 grep -v '^ *+' conftest.er1 >conftest.err
22509 cat conftest.err >&5
22510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22511 (exit $ac_status); } >/dev/null && {
22512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22513 test ! -s conftest.err
22515 ac_header_preproc=yes
22517 echo "$as_me: failed program was
:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22520 ac_header_preproc=no
22523 rm -f conftest.err conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22525 echo "${ECHO_T}$ac_header_preproc" >&6; }
22527 # So? What about this header?
22528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22530 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22531 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22532 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22534 ac_header_preproc=yes
22537 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22538 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22539 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22540 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22541 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22542 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22543 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22544 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22545 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22547 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22548 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22555 echo $ECHO_N "(cached
) $ECHO_C" >&6
22557 eval "$as_ac_Header=\
$ac_header_preproc"
22559 ac_res=`eval echo '${'$as_ac_Header'}'`
22560 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22561 echo "${ECHO_T}$ac_res" >&6; }
22564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22565 cat >>confdefs.h <<_ACEOF
22566 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22575 for ac_func in fork vfork
22577 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22578 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22579 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22580 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22581 echo $ECHO_N "(cached
) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22591 #define $ac_func innocuous_$ac_func
22593 /* System header to define __stub macros and hopefully few prototypes,
22594 which can conflict with char $ac_func (); below.
22595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22596 <limits.h> exists even on freestanding compilers. */
22599 # include <limits.h>
22601 # include <assert.h>
22606 /* Override any GCC internal prototype to avoid an error.
22607 Use char because int might match the return type of a GCC
22608 builtin and then its argument prototype would still apply. */
22613 /* The GNU C library defines this for functions which it implements
22614 to always fail with ENOSYS. Some functions are actually named
22615 something starting with __ and the normal name is an alias. */
22616 #if defined __stub_$ac_func || defined __stub___$ac_func
22623 return $ac_func ();
22628 rm -f conftest.$ac_objext conftest$ac_exeext
22629 if { (ac_try="$ac_link"
22630 case "(($ac_try" in
22631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22632 *) ac_try_echo=$ac_try;;
22634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22635 (eval "$ac_link") 2>conftest.er1
22637 grep -v '^ *+' conftest.er1 >conftest.err
22639 cat conftest.err >&5
22640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22641 (exit $ac_status); } && {
22642 test -z "$ac_c_werror_flag" ||
22643 test ! -s conftest.err
22644 } && test -s conftest$ac_exeext &&
22645 $as_test_x conftest$ac_exeext; then
22646 eval "$as_ac_var=yes"
22648 echo "$as_me: failed program was
:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22651 eval "$as_ac_var=no
"
22654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22655 conftest$ac_exeext conftest.$ac_ext
22657 ac_res=`eval echo '${'$as_ac_var'}'`
22658 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22659 echo "${ECHO_T}$ac_res" >&6; }
22660 if test `eval echo '${'$as_ac_var'}'` = yes; then
22661 cat >>confdefs.h <<_ACEOF
22662 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22668 if test "x
$ac_cv_func_fork" = xyes; then
22669 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22670 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22671 if test "${ac_cv_func_fork_works+set}" = set; then
22672 echo $ECHO_N "(cached
) $ECHO_C" >&6
22674 if test "$cross_compiling" = yes; then
22675 ac_cv_func_fork_works=cross
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 $ac_includes_default
22688 /* By Ruediger Kuhlmann. */
22689 return fork () < 0;
22695 rm -f conftest$ac_exeext
22696 if { (ac_try="$ac_link"
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_link") 2>&5
22704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22706 { (case "(($ac_try" in
22707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22708 *) ac_try_echo=$ac_try;;
22710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22711 (eval "$ac_try") 2>&5
22713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22714 (exit $ac_status); }; }; then
22715 ac_cv_func_fork_works=yes
22717 echo "$as_me: program exited with status
$ac_status" >&5
22718 echo "$as_me: failed program was
:" >&5
22719 sed 's/^/| /' conftest.$ac_ext >&5
22721 ( exit $ac_status )
22722 ac_cv_func_fork_works=no
22724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22729 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22730 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22733 ac_cv_func_fork_works=$ac_cv_func_fork
22735 if test "x
$ac_cv_func_fork_works" = xcross; then
22737 *-*-amigaos* | *-*-msdosdjgpp*)
22738 # Override, as these systems have only a dummy fork() stub
22739 ac_cv_func_fork_works=no
22742 ac_cv_func_fork_works=yes
22745 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22746 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22748 ac_cv_func_vfork_works=$ac_cv_func_vfork
22749 if test "x
$ac_cv_func_vfork" = xyes; then
22750 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22751 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22752 if test "${ac_cv_func_vfork_works+set}" = set; then
22753 echo $ECHO_N "(cached
) $ECHO_C" >&6
22755 if test "$cross_compiling" = yes; then
22756 ac_cv_func_vfork_works=cross
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 /* Thanks to Paul Eggert for this test. */
22765 $ac_includes_default
22766 #include <sys/wait.h>
22767 #ifdef HAVE_VFORK_H
22768 # include <vfork.h>
22770 /* On some sparc systems, changes by the child to local and incoming
22771 argument registers are propagated back to the parent. The compiler
22772 is told about this with #include <vfork.h>, but some compilers
22773 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22774 static variable whose address is put into a register that is
22775 clobbered by the vfork. */
22778 sparc_address_test (int arg)
22780 sparc_address_test (arg) int arg;
22783 static pid_t child;
22801 pid_t parent = getpid ();
22804 sparc_address_test (0);
22809 /* Here is another test for sparc vfork register problems. This
22810 test uses lots of local variables, at least as many local
22811 variables as main has allocated so far including compiler
22812 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22813 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22814 reuse the register of parent for one of the local variables,
22815 since it will think that parent can't possibly be used any more
22816 in this routine. Assigning to the local variable will thus
22817 munge parent in the parent process. */
22819 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22820 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22821 /* Convince the compiler that p..p7 are live; otherwise, it might
22822 use the same hardware register for all 8 local variables. */
22823 if (p != p1 || p != p2 || p != p3 || p != p4
22824 || p != p5 || p != p6 || p != p7)
22827 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22828 from child file descriptors. If the child closes a descriptor
22829 before it execs or exits, this munges the parent's descriptor
22830 as well. Test for this by closing stdout in the child. */
22831 _exit(close(fileno(stdout)) != 0);
22836 while (wait(&status) != child)
22839 /* Was there some problem with vforking? */
22842 /* Did the child fail? (This shouldn't happen.) */
22845 /* Did the vfork/compiler bug occur? */
22846 || parent != getpid()
22848 /* Did the file descriptor bug occur? */
22849 || fstat(fileno(stdout), &st) != 0
22854 rm -f conftest$ac_exeext
22855 if { (ac_try="$ac_link"
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_link") 2>&5
22863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22865 { (case "(($ac_try" in
22866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867 *) ac_try_echo=$ac_try;;
22869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22870 (eval "$ac_try") 2>&5
22872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22873 (exit $ac_status); }; }; then
22874 ac_cv_func_vfork_works=yes
22876 echo "$as_me: program exited with status
$ac_status" >&5
22877 echo "$as_me: failed program was
:" >&5
22878 sed 's/^/| /' conftest.$ac_ext >&5
22880 ( exit $ac_status )
22881 ac_cv_func_vfork_works=no
22883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22888 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22889 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22892 if test "x
$ac_cv_func_fork_works" = xcross; then
22893 ac_cv_func_vfork_works=$ac_cv_func_vfork
22894 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22895 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22898 if test "x
$ac_cv_func_vfork_works" = xyes; then
22900 cat >>confdefs.h <<\_ACEOF
22901 #define HAVE_WORKING_VFORK 1
22906 cat >>confdefs.h <<\_ACEOF
22911 if test "x
$ac_cv_func_fork_works" = xyes; then
22913 cat >>confdefs.h <<\_ACEOF
22914 #define HAVE_WORKING_FORK 1
22920 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22921 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22922 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22923 echo $ECHO_N "(cached
) $ECHO_C" >&6
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include <langinfo.h>
22935 char* cs = nl_langinfo(CODESET);
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (ac_try="$ac_link"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_link") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22953 (exit $ac_status); } && {
22954 test -z "$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22956 } && test -s conftest$ac_exeext &&
22957 $as_test_x conftest$ac_exeext; then
22958 emacs_cv_langinfo_codeset=yes
22960 echo "$as_me: failed program was
:" >&5
22961 sed 's/^/| /' conftest.$ac_ext >&5
22963 emacs_cv_langinfo_codeset=no
22966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22967 conftest$ac_exeext conftest.$ac_ext
22970 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22971 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22972 if test $emacs_cv_langinfo_codeset = yes; then
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_LANGINFO_CODESET 1
22980 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22981 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22982 if test "${ac_cv_type_size_t+set}" = set; then
22983 echo $ECHO_N "(cached
) $ECHO_C" >&6
22985 cat >conftest.$ac_ext <<_ACEOF
22988 cat confdefs.h >>conftest.$ac_ext
22989 cat >>conftest.$ac_ext <<_ACEOF
22990 /* end confdefs.h. */
22991 $ac_includes_default
22992 typedef size_t ac__type_new_;
22996 if ((ac__type_new_ *) 0)
22998 if (sizeof (ac__type_new_))
23004 rm -f conftest.$ac_objext
23005 if { (ac_try="$ac_compile"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_type_size_t=yes
23023 echo "$as_me: failed program was
:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_cv_type_size_t=no
23029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23032 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23033 if test $ac_cv_type_size_t = yes; then
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_SIZE_T 1
23043 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23044 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23045 if test "${ac_cv_type_mbstate_t+set}" = set; then
23046 echo $ECHO_N "(cached
) $ECHO_C" >&6
23048 cat >conftest.$ac_ext <<_ACEOF
23051 cat confdefs.h >>conftest.$ac_ext
23052 cat >>conftest.$ac_ext <<_ACEOF
23053 /* end confdefs.h. */
23054 $ac_includes_default
23055 # include <wchar.h>
23059 mbstate_t x; return sizeof x;
23064 rm -f conftest.$ac_objext
23065 if { (ac_try="$ac_compile"
23066 case "(($ac_try" in
23067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23068 *) ac_try_echo=$ac_try;;
23070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23071 (eval "$ac_compile") 2>conftest.er1
23073 grep -v '^ *+' conftest.er1 >conftest.err
23075 cat conftest.err >&5
23076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23077 (exit $ac_status); } && {
23078 test -z "$ac_c_werror_flag" ||
23079 test ! -s conftest.err
23080 } && test -s conftest.$ac_objext; then
23081 ac_cv_type_mbstate_t=yes
23083 echo "$as_me: failed program was
:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_type_mbstate_t=no
23089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23092 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23093 if test $ac_cv_type_mbstate_t = yes; then
23095 cat >>confdefs.h <<\_ACEOF
23096 #define HAVE_MBSTATE_T 1
23101 cat >>confdefs.h <<\_ACEOF
23102 #define mbstate_t int
23107 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23108 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23109 if test "${emacs_cv_c_restrict+set}" = set; then
23110 echo $ECHO_N "(cached
) $ECHO_C" >&6
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 void fred (int *restrict x);
23127 rm -f conftest.$ac_objext
23128 if { (ac_try="$ac_compile"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_compile") 2>conftest.er1
23136 grep -v '^ *+' conftest.er1 >conftest.err
23138 cat conftest.err >&5
23139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23140 (exit $ac_status); } && {
23141 test -z "$ac_c_werror_flag" ||
23142 test ! -s conftest.err
23143 } && test -s conftest.$ac_objext; then
23144 emacs_cv_c_restrict=yes
23146 echo "$as_me: failed program was
:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 cat >conftest.$ac_ext <<_ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 void fred (int *__restrict x);
23164 rm -f conftest.$ac_objext
23165 if { (ac_try="$ac_compile"
23166 case "(($ac_try" in
23167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23168 *) ac_try_echo=$ac_try;;
23170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23171 (eval "$ac_compile") 2>conftest.er1
23173 grep -v '^ *+' conftest.er1 >conftest.err
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23177 (exit $ac_status); } && {
23178 test -z "$ac_c_werror_flag" ||
23179 test ! -s conftest.err
23180 } && test -s conftest.$ac_objext; then
23181 emacs_cv_c_restrict=__restrict
23183 echo "$as_me: failed program was
:" >&5
23184 sed 's/^/| /' conftest.$ac_ext >&5
23186 emacs_cv_c_restrict=no
23189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23194 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23195 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23196 case "$emacs_cv_c_restrict" in
23197 yes) emacs_restrict=restrict;;
23198 no) emacs_restrict="";;
23199 *) emacs_restrict="$emacs_cv_c_restrict";;
23201 if test "$emacs_restrict" != __restrict; then
23203 cat >>confdefs.h <<_ACEOF
23204 #define __restrict $emacs_restrict
23209 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23210 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23211 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23212 echo $ECHO_N "(cached
) $ECHO_C" >&6
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 void fred (int x[__restrict]);
23229 rm -f conftest.$ac_objext
23230 if { (ac_try="$ac_compile"
23231 case "(($ac_try" in
23232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233 *) ac_try_echo=$ac_try;;
23235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23236 (eval "$ac_compile") 2>conftest.er1
23238 grep -v '^ *+' conftest.er1 >conftest.err
23240 cat conftest.err >&5
23241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23242 (exit $ac_status); } && {
23243 test -z "$ac_c_werror_flag" ||
23244 test ! -s conftest.err
23245 } && test -s conftest.$ac_objext; then
23246 emacs_cv_c_restrict_arr=yes
23248 echo "$as_me: failed program was
:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23251 emacs_cv_c_restrict_arr=no
23254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23256 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23257 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23258 if test "$emacs_cv_c_restrict_arr" = yes; then
23260 cat >>confdefs.h <<\_ACEOF
23261 #define __restrict_arr __restrict
23268 # Set up the CFLAGS for real compilation, so we can substitute it.
23269 CFLAGS="$REAL_CFLAGS"
23270 CPPFLAGS="$REAL_CPPFLAGS"
23272 #### Find out which version of Emacs this is.
23273 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23274 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23275 if test x"${version}" = x; then
23276 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23277 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23278 { (exit 1); exit 1; }; }
23281 ### Specify what sort of things we'll be editing into Makefile and config.h.
23282 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23318 cat >>confdefs.h <<_ACEOF
23319 #define EMACS_CONFIGURATION "${canonical}"
23323 cat >>confdefs.h <<_ACEOF
23324 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23328 cat >>confdefs.h <<_ACEOF
23329 #define config_machfile "${machfile}"
23333 cat >>confdefs.h <<_ACEOF
23334 #define config_opsysfile "${opsysfile}"
23338 cat >>confdefs.h <<_ACEOF
23339 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23343 cat >>confdefs.h <<_ACEOF
23344 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23348 cat >>confdefs.h <<_ACEOF
23349 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23353 cat >>confdefs.h <<_ACEOF
23354 #define UNEXEC_SRC ${UNEXEC_SRC}
23358 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23360 cat >>confdefs.h <<\_ACEOF
23361 #define HAVE_X_WINDOWS 1
23365 if test "${USE_X_TOOLKIT}" != "none
" ; then
23367 cat >>confdefs.h <<\_ACEOF
23368 #define USE_X_TOOLKIT 1
23372 if test "${HAVE_X11}" = "yes" ; then
23374 cat >>confdefs.h <<\_ACEOF
23379 if test "${HAVE_XFREE386}" = "yes" ; then
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_XFREE386 1
23386 if test "${HAVE_MENUS}" = "yes" ; then
23388 cat >>confdefs.h <<\_ACEOF
23389 #define HAVE_MENUS 1
23393 if test "${GNU_MALLOC}" = "yes" ; then
23395 cat >>confdefs.h <<\_ACEOF
23396 #define GNU_MALLOC 1
23400 if test "${REL_ALLOC}" = "yes" ; then
23402 cat >>confdefs.h <<\_ACEOF
23403 #define REL_ALLOC 1
23413 #### Report on what we decided to do.
23414 #### Report GTK as a toolkit, even if it doesn't use Xt.
23415 #### It makes printing result more understandable as using GTK sets
23416 #### toolkit_scroll_bars to yes by default.
23417 if test "${HAVE_GTK}" = "yes"; then
23422 Configured
for \
`${canonical}'.
23424 Where should the build process find the source code? ${srcdir}
23425 What operating system and machine description files should Emacs use?
23426 \`${opsysfile}' and \`${machfile}'
23427 What compiler should emacs be built with?
${CC} ${CFLAGS}
23428 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23429 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23430 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23431 What window system should Emacs use?
${window_system}
23432 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23434 if test -n "${x_includes}"; then
23435 echo " Where
do we
find X Windows header files?
${x_includes}"
23437 echo " Where
do we
find X Windows header files? Standard
dirs"
23439 if test -n "${x_libraries}"; then
23440 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23442 echo " Where
do we
find X Windows libraries? Standard
dirs"
23445 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23446 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23447 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23448 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23449 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23450 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23451 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23452 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23453 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23456 if test $USE_XASSERTS = yes; then
23457 echo " Compiling with asserts turned on.
"
23458 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23462 if test "$USE_X_TOOLKIT" = GTK; then
23463 case "$canonical" in
23465 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23466 will probably get a crash on startup. If this happens
, please use another
23467 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23473 if test "$HAVE_CARBON" = "yes"; then
23475 echo "Warning
: The Mac Carbon port is currently unsupported and has
23476 known problems. It is not recommended
for use by non-developers.
23477 Read the emacs-devel archives
for more information.
"
23481 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23482 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23487 # Remove any trailing slashes in these variables.
23488 test "${prefix}" != NONE &&
23489 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23490 test "${exec_prefix}" != NONE &&
23491 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23493 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23494 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23495 ## from Makefile.c can correctly provide the arg `-traditional' to the
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23506 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23507 $EGREP "yes..
yes" >/dev/null 2>&1; then
23508 CPP_NEED_TRADITIONAL=no
23510 CPP_NEED_TRADITIONAL=yes
23515 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
"
23517 ac_config_commands="$ac_config_commands default
"
23519 cat >confcache <<\_ACEOF
23520 # This file is a shell script that caches the results of configure
23521 # tests run on this system so they can be shared between configure
23522 # scripts and configure runs, see configure's option --config-cache.
23523 # It is not useful on other systems. If it contains results you don't
23524 # want to keep, you may remove or edit it.
23526 # config.status only pays attention to the cache file if you give it
23527 # the --recheck option to rerun configure.
23529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23531 # following values.
23535 # The following way of writing the cache mishandles newlines in values,
23536 # but we know of no workaround that is simple, portable, and efficient.
23537 # So, we kill variables containing newlines.
23538 # Ultrix sh set writes to stderr and can't be redirected directly,
23539 # and sets the high bit in the cache file unless we assign to the vars.
23541 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23542 eval ac_val=\$$ac_var
23546 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23547 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23550 _ | IFS | as_nl) ;; #(
23551 *) $as_unset $ac_var ;;
23557 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23558 *${as_nl}ac_space=\ *)
23559 # `set' does not quote correctly, so add quotes (double-quote
23560 # substitution turns \\\\ into \\, and sed turns \\ into \).
23563 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23566 # `set' quotes correctly as required by POSIX, so do not add quotes.
23567 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23576 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23578 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23580 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23581 if test -w "$cache_file"; then
23582 test "x
$cache_file" != "x
/dev
/null
" &&
23583 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23584 echo "$as_me: updating cache
$cache_file" >&6;}
23585 cat confcache >$cache_file
23587 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23588 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23593 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23594 # Let make expand exec_prefix.
23595 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23597 DEFS=-DHAVE_CONFIG_H
23601 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23602 # 1. Remove the extension, and $U if already installed.
23603 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23604 ac_i=`echo "$ac_i" | sed "$ac_script"`
23605 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23606 # will be set to the directory where LIBOBJS objects are built.
23607 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23608 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23610 LIBOBJS=$ac_libobjs
23612 LTLIBOBJS=$ac_ltlibobjs
23616 : ${CONFIG_STATUS=./config.status}
23617 ac_clean_files_save=$ac_clean_files
23618 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23619 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23620 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23621 cat >$CONFIG_STATUS <<_ACEOF
23623 # Generated by $as_me.
23624 # Run this file to recreate the current configuration.
23625 # Compiler output produced by configure, useful for debugging
23626 # configure, is in config.log if it exists.
23629 ac_cs_recheck=false
23631 SHELL=\${CONFIG_SHELL-$SHELL}
23634 cat >>$CONFIG_STATUS <<\_ACEOF
23635 ## --------------------- ##
23636 ## M4sh Initialization. ##
23637 ## --------------------- ##
23639 # Be more Bourne compatible
23640 DUALCASE=1; export DUALCASE # for MKS sh
23641 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23644 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23645 # is contrary to our usage. Disable this feature.
23646 alias -g '${1+"$@"}'='"$@
"'
23647 setopt NO_GLOB_SUBST
23649 case `(set -o) 2>/dev/null` in
23650 *posix*) set -o posix ;;
23659 # Avoid depending upon Character Ranges.
23660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23663 as_cr_digits='0123456789'
23664 as_cr_alnum=$as_cr_Letters$as_cr_digits
23666 # The user is always right.
23667 if test "${PATH_SEPARATOR+set}" != set; then
23668 echo "#! /bin/sh" >conf$$.sh
23669 echo "exit 0" >>conf$$.sh
23671 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23679 # Support unset when possible.
23680 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23688 # We need space, tab and new line, in precisely that order. Quoting is
23689 # there to prevent editors from complaining about space-tab.
23690 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23691 # splitting by setting IFS to empty value.)
23696 # Find who we are. Look in the path if we contain no directory separator.
23698 *[\\/]* ) as_myself
=$0 ;;
23699 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23700 for as_dir
in $PATH
23703 test -z "$as_dir" && as_dir
=.
23704 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23710 # We did not find ourselves, most probably we were run as `sh COMMAND'
23711 # in which case we are not to be found in the path.
23712 if test "x$as_myself" = x
; then
23715 if test ! -f "$as_myself"; then
23716 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23717 { (exit 1); exit 1; }
23720 # Work around bugs in pre-3.0 UWIN ksh.
23721 for as_var
in ENV MAIL MAILPATH
23722 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23730 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23731 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23732 LC_TELEPHONE LC_TIME
23734 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23735 eval $as_var=C
; export $as_var
23737 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23741 # Required to use basename.
23742 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23743 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23749 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23750 as_basename
=basename
23756 # Name of the executable.
23757 as_me
=`$as_basename -- "$0" ||
23758 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23759 X"$0" : 'X\(//\)$' \| \
23760 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23762 sed '/^.*\/\([^/][^/]*\)\/*$/{
23781 as_lineno_1
=$LINENO
23782 as_lineno_2
=$LINENO
23783 test "x$as_lineno_1" != "x$as_lineno_2" &&
23784 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23786 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23787 # uniformly replaced by the line number. The first 'sed' inserts a
23788 # line-number line after each line using $LINENO; the second 'sed'
23789 # does the real work. The second script uses 'N' to pair each
23790 # line-number line with the line containing $LINENO, and appends
23791 # trailing '-' during substitution so that $LINENO is not a special
23792 # case at line end.
23793 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23794 # scripts with optimization help from Paolo Bonzini. Blame Lee
23795 # E. McMahon (1931-1989) for sed's syntax. :-)
23807 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23810 ' >$as_me.lineno
&&
23811 chmod +x
"$as_me.lineno" ||
23812 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23813 { (exit 1); exit 1; }; }
23815 # Don't try to exec as it changes $[0], causing all sort of problems
23816 # (the dirname of $[0] is not the place where we might find the
23817 # original and so on. Autoconf is especially sensitive to this).
23818 .
"./$as_me.lineno"
23819 # Exit status is that of the last command.
23824 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23830 ECHO_C
= ECHO_N
= ECHO_T
=
23831 case `echo -n x` in
23833 case `echo 'x\c'` in
23834 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23841 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23842 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23848 rm -f conf$$ conf$$.exe conf$$.
file
23849 if test -d conf$$.dir
; then
23850 rm -f conf$$.dir
/conf$$.
file
23856 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23858 # ... but there are two gotchas:
23859 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23860 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23861 # In both cases, we have to default to `cp -p'.
23862 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23864 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23869 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23870 rmdir conf$$.dir
2>/dev
/null
23872 if mkdir
-p .
2>/dev
/null
; then
23875 test -d .
/-p && rmdir .
/-p
23879 if test -x / >/dev
/null
2>&1; then
23880 as_test_x
='test -x'
23882 if ls -dL / >/dev
/null
2>&1; then
23889 if test -d "$1"; then
23895 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23896 ???[sx]*):;;*)false;;esac;fi
23900 as_executable_p
=$as_test_x
23902 # Sed expression to map a string onto a valid CPP name.
23903 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23905 # Sed expression to map a string onto a valid variable name.
23906 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23911 # Save the log message, to keep $[0] and so on meaningful, and to
23912 # report actual input values of CONFIG_FILES etc. instead of their
23913 # values after options handling.
23915 This file was extended by emacs $as_me 23.0.50, which was
23916 generated by GNU Autoconf 2.61. Invocation command line was
23918 CONFIG_FILES = $CONFIG_FILES
23919 CONFIG_HEADERS = $CONFIG_HEADERS
23920 CONFIG_LINKS = $CONFIG_LINKS
23921 CONFIG_COMMANDS = $CONFIG_COMMANDS
23924 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23929 cat >>$CONFIG_STATUS <<_ACEOF
23930 # Files that config.status was made for.
23931 config_files="$ac_config_files"
23932 config_headers="$ac_config_headers"
23933 config_commands="$ac_config_commands"
23937 cat >>$CONFIG_STATUS <<\_ACEOF
23939 \`$as_me' instantiates files from templates according to the
23940 current configuration.
23942 Usage: $0 [OPTIONS] [FILE]...
23944 -h, --help print this help, then exit
23945 -V, --version print version number and configuration settings, then exit
23946 -q, --quiet do not print progress messages
23947 -d, --debug don't remove temporary files
23948 --recheck update $as_me by reconfiguring in the same conditions
23949 --file=FILE[:TEMPLATE]
23950 instantiate the configuration file FILE
23951 --header=FILE[:TEMPLATE]
23952 instantiate the configuration header FILE
23954 Configuration files:
23957 Configuration headers:
23960 Configuration commands:
23963 Report bugs to <bug-autoconf@gnu.org>."
23966 cat >>$CONFIG_STATUS <<_ACEOF
23968 emacs config.status 23.0.50
23969 configured by $0, generated by GNU Autoconf 2.61,
23970 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23972 Copyright (C) 2006 Free Software Foundation, Inc.
23973 This config.status script is free software; the Free Software Foundation
23974 gives unlimited permission to copy, distribute and modify it."
23981 cat >>$CONFIG_STATUS <<\_ACEOF
23982 # If no file are specified by the user, then we need to provide default
23983 # value. By we need to know if files were specified by the user.
23989 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23990 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24001 # Handling of the options.
24002 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24004 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24005 echo "$ac_cs_version"; exit ;;
24006 --debug |
--debu |
--deb |
--de |
--d |
-d )
24008 --file |
--fil |
--fi |
--f )
24010 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24011 ac_need_defaults
=false
;;
24012 --header |
--heade |
--head |
--hea )
24014 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24015 ac_need_defaults
=false
;;
24017 # Conflict between --help and --header
24018 { echo "$as_me: error: ambiguous option: $1
24019 Try \`$0 --help' for more information." >&2
24020 { (exit 1); exit 1; }; };;
24021 --help |
--hel |
-h )
24022 echo "$ac_cs_usage"; exit ;;
24023 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24024 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24027 # This is an error.
24028 -*) { echo "$as_me: error: unrecognized option: $1
24029 Try \`$0 --help' for more information." >&2
24030 { (exit 1); exit 1; }; } ;;
24032 *) ac_config_targets
="$ac_config_targets $1"
24033 ac_need_defaults
=false
;;
24039 ac_configure_extra_args
=
24041 if $ac_cs_silent; then
24043 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24047 cat >>$CONFIG_STATUS <<_ACEOF
24048 if \$ac_cs_recheck; then
24049 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24050 CONFIG_SHELL=$SHELL
24051 export CONFIG_SHELL
24052 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24056 cat >>$CONFIG_STATUS <<\_ACEOF
24060 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24061 ## Running $as_me. ##
24067 cat >>$CONFIG_STATUS <<_ACEOF
24071 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24075 cat >>$CONFIG_STATUS <<\_ACEOF
24077 # Handling of arguments.
24078 for ac_config_target
in $ac_config_targets
24080 case $ac_config_target in
24081 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24082 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24083 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24084 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24085 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24086 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24087 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24088 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24089 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24090 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24091 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24092 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24093 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24095 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24096 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24097 { (exit 1); exit 1; }; };;
24102 # If the user did not use the arguments to specify the items to instantiate,
24103 # then the envvar interface is used. Set only those that are not.
24104 # We use the long form for the default assignment because of an extremely
24105 # bizarre bug on SunOS 4.1.3.
24106 if $ac_need_defaults; then
24107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24108 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24109 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24112 # Have a temporary directory for convenience. Make it in the build tree
24113 # simply because there is no reason against having it here, and in addition,
24114 # creating and moving files from /tmp can sometimes cause problems.
24115 # Hook for its removal unless debugging.
24116 # Note that there is a small window in which the directory will not be cleaned:
24117 # after its creation but before its name has been assigned to `$tmp'.
24121 trap 'exit_status=$?
24122 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24124 trap '{ (exit 1); exit 1; }' 1 2 13 15
24126 # Create a (secure) tmp directory for tmp files.
24129 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24130 test -n "$tmp" && test -d "$tmp"
24133 tmp
=.
/conf$$
-$RANDOM
24134 (umask 077 && mkdir
"$tmp")
24137 echo "$me: cannot create a temporary directory in ." >&2
24138 { (exit 1); exit 1; }
24142 # Set up the sed scripts for CONFIG_FILES section.
24145 # No need to generate the scripts if there are no CONFIG_FILES.
24146 # This happens for instance when ./config.status config.h
24147 if test -n "$CONFIG_FILES"; then
24154 for ac_last_try
in false false false false false
:; do
24155 cat >conf$
$subs.
sed <<_ACEOF
24156 SHELL!$SHELL$ac_delim
24157 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24158 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24159 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24160 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24161 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24162 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24163 exec_prefix!$exec_prefix$ac_delim
24164 prefix!$prefix$ac_delim
24165 program_transform_name!$program_transform_name$ac_delim
24166 bindir!$bindir$ac_delim
24167 sbindir!$sbindir$ac_delim
24168 libexecdir!$libexecdir$ac_delim
24169 datarootdir!$datarootdir$ac_delim
24170 datadir!$datadir$ac_delim
24171 sysconfdir!$sysconfdir$ac_delim
24172 sharedstatedir!$sharedstatedir$ac_delim
24173 localstatedir!$localstatedir$ac_delim
24174 includedir!$includedir$ac_delim
24175 oldincludedir!$oldincludedir$ac_delim
24176 docdir!$docdir$ac_delim
24177 infodir!$infodir$ac_delim
24178 htmldir!$htmldir$ac_delim
24179 dvidir!$dvidir$ac_delim
24180 pdfdir!$pdfdir$ac_delim
24181 psdir!$psdir$ac_delim
24182 libdir!$libdir$ac_delim
24183 localedir!$localedir$ac_delim
24184 mandir!$mandir$ac_delim
24185 DEFS!$DEFS$ac_delim
24186 ECHO_C!$ECHO_C$ac_delim
24187 ECHO_N!$ECHO_N$ac_delim
24188 ECHO_T!$ECHO_T$ac_delim
24189 LIBS!$LIBS$ac_delim
24190 build_alias!$build_alias$ac_delim
24191 host_alias!$host_alias$ac_delim
24192 target_alias!$target_alias$ac_delim
24193 MAINT!$MAINT$ac_delim
24194 build!$build$ac_delim
24195 build_cpu!$build_cpu$ac_delim
24196 build_vendor!$build_vendor$ac_delim
24197 build_os!$build_os$ac_delim
24198 host!$host$ac_delim
24199 host_cpu!$host_cpu$ac_delim
24200 host_vendor!$host_vendor$ac_delim
24201 host_os!$host_os$ac_delim
24203 CFLAGS!$CFLAGS$ac_delim
24204 LDFLAGS!$LDFLAGS$ac_delim
24205 CPPFLAGS!$CPPFLAGS$ac_delim
24206 ac_ct_CC!$ac_ct_CC$ac_delim
24207 EXEEXT!$EXEEXT$ac_delim
24208 OBJEXT!$OBJEXT$ac_delim
24210 GREP!$GREP$ac_delim
24211 EGREP!$EGREP$ac_delim
24212 LN_S!$LN_S$ac_delim
24213 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24214 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24215 INSTALL_DATA!$INSTALL_DATA$ac_delim
24216 RANLIB!$RANLIB$ac_delim
24217 INSTALL_INFO!$INSTALL_INFO$ac_delim
24218 GZIP_PROG!$GZIP_PROG$ac_delim
24219 MAKEINFO!$MAKEINFO$ac_delim
24220 LIBSOUND!$LIBSOUND$ac_delim
24221 PKG_CONFIG!$PKG_CONFIG$ac_delim
24222 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24223 ALSA_LIBS!$ALSA_LIBS$ac_delim
24224 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24225 SET_MAKE!$SET_MAKE$ac_delim
24226 XMKMF!$XMKMF$ac_delim
24227 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24228 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24229 RSVG_LIBS!$RSVG_LIBS$ac_delim
24230 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24231 GTK_LIBS!$GTK_LIBS$ac_delim
24232 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24233 DBUS_LIBS!$DBUS_LIBS$ac_delim
24234 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24235 XFT_LIBS!$XFT_LIBS$ac_delim
24236 ALLOCA!$ALLOCA$ac_delim
24237 liblockfile!$liblockfile$ac_delim
24238 LIBOBJS!$LIBOBJS$ac_delim
24239 NEED_SETGID!$NEED_SETGID$ac_delim
24240 KMEM_GROUP!$KMEM_GROUP$ac_delim
24241 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24242 GETOPT_H!$GETOPT_H$ac_delim
24243 GETOPTOBJS!$GETOPTOBJS$ac_delim
24244 version!$version$ac_delim
24245 configuration!$configuration$ac_delim
24246 canonical!$canonical$ac_delim
24247 srcdir!$srcdir$ac_delim
24248 lispdir!$lispdir$ac_delim
24249 locallisppath!$locallisppath$ac_delim
24250 lisppath!$lisppath$ac_delim
24251 x_default_search_path!$x_default_search_path$ac_delim
24252 etcdir!$etcdir$ac_delim
24255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24257 elif $ac_last_try; then
24258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24259 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24260 { (exit 1); exit 1; }; }
24262 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24266 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24267 if test -n "$ac_eof"; then
24268 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24269 ac_eof
=`expr $ac_eof + 1`
24272 cat >>$CONFIG_STATUS <<_ACEOF
24273 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24277 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24278 s/^/s,@/; s/!/@,|#_!!_#|/
24281 s/'"$ac_delim"'$/,g/; t
24283 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24284 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24285 rm -f conf$
$subs.
sed
24286 cat >>$CONFIG_STATUS <<_ACEOF
24292 for ac_last_try
in false false false false false
:; do
24293 cat >conf$
$subs.
sed <<_ACEOF
24294 archlibdir!$archlibdir$ac_delim
24295 bitmapdir!$bitmapdir$ac_delim
24296 gamedir!$gamedir$ac_delim
24297 gameuser!$gameuser$ac_delim
24298 c_switch_system!$c_switch_system$ac_delim
24299 c_switch_machine!$c_switch_machine$ac_delim
24300 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24301 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24302 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24303 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24304 machfile!$machfile$ac_delim
24305 opsysfile!$opsysfile$ac_delim
24306 carbon_appdir!$carbon_appdir$ac_delim
24307 LTLIBOBJS!$LTLIBOBJS$ac_delim
24310 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24312 elif $ac_last_try; then
24313 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24314 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24315 { (exit 1); exit 1; }; }
24317 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24321 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24322 if test -n "$ac_eof"; then
24323 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24324 ac_eof
=`expr $ac_eof + 1`
24327 cat >>$CONFIG_STATUS <<_ACEOF
24328 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24332 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24333 s/^/s,@/; s/!/@,|#_!!_#|/
24336 s/'"$ac_delim"'$/,g/; t
24338 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24339 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24340 rm -f conf$
$subs.
sed
24341 cat >>$CONFIG_STATUS <<_ACEOF
24348 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24349 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24350 # trailing colons and then remove the whole line if VPATH becomes empty
24351 # (actually we leave an empty line to preserve line numbers).
24352 if test "x$srcdir" = x.
; then
24353 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24354 s/:*\$(srcdir):*/:/
24355 s/:*\${srcdir}:*/:/
24357 s/^\([^=]*=[ ]*\):*/\1/
24363 cat >>$CONFIG_STATUS <<\_ACEOF
24364 fi # test -n "$CONFIG_FILES"
24367 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24370 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24372 case $ac_mode$ac_tag in
24374 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24375 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24376 { (exit 1); exit 1; }; };;
24377 :[FH
]-) ac_tag
=-:-;;
24378 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24395 -) ac_f
="$tmp/stdin";;
24396 *) # Look for the file first in the build tree, then in the source tree
24397 # (if the path is not absolute). The absolute path cannot be DOS-style,
24398 # because $ac_f cannot contain `:'.
24402 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24404 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24405 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24406 { (exit 1); exit 1; }; };;
24408 ac_file_inputs
="$ac_file_inputs $ac_f"
24411 # Let's still pretend it is `configure' which instantiates (i.e., don't
24412 # use $as_me), people would be surprised to read:
24413 # /* config.h. Generated by config.status. */
24414 configure_input
="Generated from "`IFS=:
24415 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24416 if test x
"$ac_file" != x-
; then
24417 configure_input
="$ac_file. $configure_input"
24418 { echo "$as_me:$LINENO: creating $ac_file" >&5
24419 echo "$as_me: creating $ac_file" >&6;}
24423 *:-:* |
*:-) cat >"$tmp/stdin";;
24428 ac_dir
=`$as_dirname -- "$ac_file" ||
24429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24430 X"$ac_file" : 'X\(//\)[^/]' \| \
24431 X"$ac_file" : 'X\(//\)$' \| \
24432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24438 /^X\(\/\/\)[^/].*/{
24453 -*) as_dir
=.
/$as_dir;;
24455 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24459 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24460 *) as_qdir
=$as_dir;;
24462 as_dirs
="'$as_qdir' $as_dirs"
24463 as_dir
=`$as_dirname -- "$as_dir" ||
24464 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24465 X"$as_dir" : 'X\(//\)[^/]' \| \
24466 X"$as_dir" : 'X\(//\)$' \| \
24467 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24473 /^X\(\/\/\)[^/].*/{
24486 test -d "$as_dir" && break
24488 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24489 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24490 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24491 { (exit 1); exit 1; }; }; }
24495 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24497 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24498 # A ".." for each directory in $ac_dir_suffix.
24499 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24500 case $ac_top_builddir_sub in
24501 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24502 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24505 ac_abs_top_builddir
=$ac_pwd
24506 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24507 # for backward compatibility:
24508 ac_top_builddir
=$ac_top_build_prefix
24511 .
) # We are building in place.
24513 ac_top_srcdir
=$ac_top_builddir_sub
24514 ac_abs_top_srcdir
=$ac_pwd ;;
24515 [\\/]* | ?
:[\\/]* ) # Absolute name.
24516 ac_srcdir
=$srcdir$ac_dir_suffix;
24517 ac_top_srcdir
=$srcdir
24518 ac_abs_top_srcdir
=$srcdir ;;
24519 *) # Relative name.
24520 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24521 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24522 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24524 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24534 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24535 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24539 cat >>$CONFIG_STATUS <<\_ACEOF
24540 # If the template does not know about datarootdir, expand it.
24541 # FIXME: This hack should be removed a few years after 2.60.
24542 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24544 case `sed -n '/datarootdir/ {
24553 ' $ac_file_inputs` in
24554 *datarootdir
*) ac_datarootdir_seen
=yes;;
24555 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24556 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24557 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24559 cat >>$CONFIG_STATUS <<_ACEOF
24560 ac_datarootdir_hack='
24561 s&@datadir@&$datadir&g
24562 s&@docdir@&$docdir&g
24563 s&@infodir@&$infodir&g
24564 s&@localedir@&$localedir&g
24565 s&@mandir@&$mandir&g
24566 s&\\\${datarootdir}&$datarootdir&g' ;;
24570 # Neutralize VPATH when `$srcdir' = `.'.
24571 # Shell code in configure.ac might set extrasub.
24572 # FIXME: do we really want to maintain this feature?
24573 cat >>$CONFIG_STATUS <<_ACEOF
24577 cat >>$CONFIG_STATUS <<\_ACEOF
24579 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24580 s
&@configure_input@
&$configure_input&;t t
24581 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24582 s
&@srcdir@
&$ac_srcdir&;t t
24583 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24584 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24585 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24586 s
&@builddir@
&$ac_builddir&;t t
24587 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24588 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24589 s
&@INSTALL@
&$ac_INSTALL&;t t
24590 $ac_datarootdir_hack
24591 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24593 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24594 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24595 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24596 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24597 which seems to be undefined. Please make sure it is defined." >&5
24598 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24599 which seems to be undefined. Please make sure it is defined." >&2;}
24603 -) cat "$tmp/out"; rm -f "$tmp/out";;
24604 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24613 # Transform confdefs.h into a sed script `conftest.defines', that
24614 # substitutes the proper values into config.h.in to produce config.h.
24615 rm -f conftest.defines conftest.
tail
24616 # First, append a space to every undef/define line, to ease matching.
24617 echo 's/$/ /' >conftest.defines
24618 # Then, protect against being on the right side of a sed subst, or in
24619 # an unquoted here document, in config.status. If some macros were
24620 # called several times there might be several #defines for the same
24621 # symbol, which is useless. But do not sort them, since the last
24622 # AC_DEFINE must be honored.
24623 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24624 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24625 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24626 # PARAMS is the parameter list in the macro definition--in most cases, it's
24627 # just an empty string.
24628 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24629 ac_dB
='\\)[ (].*,\\1define\\2'
24637 s/^[ ]*#[ ]*define[ ][ ]*//
24642 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24643 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24644 ' >>conftest.defines
24646 # Remove the space that was appended to ease matching.
24647 # Then replace #undef with comments. This is necessary, for
24648 # example, in the case of _POSIX_SOURCE, which is predefined and required
24649 # on some systems where configure will not decide to define it.
24650 # (The regexp can be short, since the line contains either #define or #undef.)
24652 s,^[ #]*u.*,/* & */,' >>conftest.defines
24654 # Break up conftest.defines:
24655 ac_max_sed_lines
=50
24657 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24658 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24659 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24661 ac_in
='$ac_file_inputs'
24662 ac_out
='"$tmp/out1"'
24663 ac_nxt
='"$tmp/out2"'
24667 # Write a here document:
24668 cat >>$CONFIG_STATUS <<_ACEOF
24669 # First, check the format of the line:
24670 cat >"\$tmp/defines.sed" <<\\CEOF
24671 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24672 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24676 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24678 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24679 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24680 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24681 grep . conftest.
tail >/dev
/null ||
break
24682 rm -f conftest.defines
24683 mv conftest.
tail conftest.defines
24685 rm -f conftest.defines conftest.
tail
24687 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24688 cat >>$CONFIG_STATUS <<\_ACEOF
24689 if test x
"$ac_file" != x-
; then
24690 echo "/* $configure_input */" >"$tmp/config.h"
24691 cat "$ac_result" >>"$tmp/config.h"
24692 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24693 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24694 echo "$as_me: $ac_file is unchanged" >&6;}
24697 mv "$tmp/config.h" $ac_file
24700 echo "/* $configure_input */"
24706 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24707 echo "$as_me: executing $ac_file commands" >&6;}
24712 case $ac_file$ac_mode in
24715 ### Make the necessary directories, if they don't exist.
24716 for dir
in etc lisp
; do
24717 test -d ${dir} || mkdir
${dir}
24720 # Build src/Makefile from ${srcdir}/src/Makefile.c
24721 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24722 # This must be done after src/config.h is built, since we rely on that file.
24724 # Now get this: Some word that is part of the ${srcdir} directory name
24725 # or the ${configuration} value might, just might, happen to be an
24726 # identifier like `sun4' or `i386' or something, and be predefined by
24727 # the C preprocessor to some helpful value like 1, or maybe the empty
24728 # string. Needless to say consequent macro substitutions are less
24729 # than conducive to the makefile finding the correct directory.
24730 undefs
="`echo $top_srcdir $configuration $canonical |
24731 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24732 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24735 echo creating src
/epaths.h
24736 ${MAKE-make} epaths-force
24738 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24739 # `..' to `. .' unless invoked with -traditional
24741 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24742 CPPFLAGS
="$CPPFLAGS -traditional"
24745 echo creating lib-src
/Makefile
24747 rm -f junk.c junk1.c junk2.c
24748 sed -e '/start of cpp stuff/q' \
24749 < Makefile.c
> junk1.c
24750 sed -e '1,/start of cpp stuff/d'\
24751 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24752 < Makefile.c
> junk.c
24753 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24754 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24755 cat junk1.c junk2.c
> Makefile.new
24756 rm -f junk.c junk1.c junk2.c
24757 chmod 444 Makefile.new
24758 mv -f Makefile.new Makefile
24761 echo creating src
/Makefile
24763 rm -f junk.c junk1.c junk2.c
24764 sed -e '/start of cpp stuff/q' \
24765 < Makefile.c
> junk1.c
24766 sed -e '1,/start of cpp stuff/d'\
24767 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24768 < Makefile.c
> junk.c
24769 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24770 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24771 cat junk1.c junk2.c
> Makefile.new
24772 rm -f junk.c junk1.c junk2.c
24773 chmod 444 Makefile.new
24774 mv -f Makefile.new Makefile
24777 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24778 echo creating src
/.gdbinit
24779 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24782 # This is how we know whether to re-run configure in certain cases.
24783 touch src
/config.stamp
24791 { (exit 0); exit 0; }
24793 chmod +x
$CONFIG_STATUS
24794 ac_clean_files
=$ac_clean_files_save
24797 # configure is writing to config.log, and then calls config.status.
24798 # config.status does its own redirection, appending to config.log.
24799 # Unfortunately, on DOS this fails, as config.log is still kept open
24800 # by configure, so config.status won't be able to write to it; its
24801 # output is simply discarded. So we exec the FD to /dev/null,
24802 # effectively closing config.log, so it can be properly (re)opened and
24803 # appended to by config.status. When coming back to configure, we
24804 # need to make the FD available again.
24805 if test "$no_create" != yes; then
24807 ac_config_status_args
=
24808 test "$silent" = yes &&
24809 ac_config_status_args
="$ac_config_status_args --quiet"
24811 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24813 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24814 # would make configure fail if this is the last instruction.
24815 $ac_cs_success ||
{ (exit 1); exit 1; }