2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be 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.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
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 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --enable-asserts compile code with asserts enabled
1336 --enable-maintainer-mode
1337 enable make rules and dependencies not useful
(and
1338 sometimes confusing
) to the casual installer
1339 --enable-locallisppath=PATH
1340 directories Emacs should search
for lisp files
1341 specific to this site
1342 --disable-largefile omit support
for large files
1345 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1346 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1347 --without-pop don
't support POP mail retrieval with movemail
1348 --with-kerberos support Kerberos-authenticated POP
1349 --with-kerberos5 support Kerberos version 5 authenticated POP
1350 --with-hesiod support Hesiod to get the POP server host
1351 --without-sound don't compile with sound support
1352 --without-sync-input Process async input synchronously
1353 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1355 --without-xpm don
't compile with XPM image support
1356 --without-jpeg don't compile with JPEG image support
1357 --without-tiff don
't compile with TIFF image support
1358 --without-gif don't compile with GIF image support
1359 --without-png don
't compile with PNG image support
1360 --without-rsvg don't compile with SVG image support
1361 --without-freetype don
't use Freetype for local font support
1362 --without-xft don't use XFT
for anti aliased fonts
1363 --without-libotf don
't use libotf for OpenType font support
1364 --without-m17n-flt don't use m17n-flt
for text shaping
1365 --without-toolkit-scroll-bars
1366 don
't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don't use Xaw3d
1368 --without-xim don
't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1370 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1372 --without-dbus don
't compile with D-Bus support
1373 --without-makeinfo don't require makeinfo
for building manuals
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config
for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables
:
1380 CC C compiler
command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1383 nonstandard directory
<lib dir
>
1384 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1385 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1386 you have headers
in a nonstandard directory
<include dir
>
1388 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1390 Use these variables to override the choices made by
`configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1480 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1481 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1482 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1483 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1484 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1487 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1489 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1491 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1493 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1495 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_must_keep_next=false
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1539 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 -* ) ac_must_keep_next=true ;;
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1587 eval ac_val=\$$ac_var
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1754 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1758 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1765 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1766 echo "$as_me: former value
: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1768 echo "$as_me: current value
: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1786 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1787 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s
,x
,x
', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 lispdir='${datadir}/emacs
/${version}/lisp
'
1842 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1843 '${datadir}/emacs
/site-lisp
'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1845 etcdir='${datadir}/emacs
/${version}/etc
'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs
/${version}/etc
'
1848 gamedir='${localstatedir}/games
/emacs
'
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1897 cat >>confdefs.h <<\_ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1962 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1963 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1964 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1966 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2107 ## For the times when you want to build Emacs but don't have
2108 ## a suitable makeinfo, and can live without the manuals.
2110 # Check whether --with-makeinfo was given.
2111 if test "${with_makeinfo+set}" = set; then
2112 withval
=$with_makeinfo;
2119 # Check whether --with-gtk was given.
2120 if test "${with_gtk+set}" = set; then
2121 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2122 specify a toolkit." >&5
2123 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2124 specify a toolkit." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-gcc was given.
2131 if test "${with_gcc+set}" = set; then
2132 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2133 variable to specify a compiler." >&5
2134 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2135 variable to specify a compiler." >&2;}
2136 { (exit 1); exit 1; }; }
2141 # Check whether --with-pkg-config-prog was given.
2142 if test "${with_pkg_config_prog+set}" = set; then
2143 withval
=$with_pkg_config_prog;
2146 if test "X${with_pkg_config_prog}" != X
; then
2147 if test "${with_pkg_config_prog}" != yes; then
2148 PKG_CONFIG
="${with_pkg_config_prog}"
2152 # Check whether --enable-carbon-app was given.
2153 if test "${enable_carbon_app+set}" = set; then
2154 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2158 # Check whether --enable-asserts was given.
2159 if test "${enable_asserts+set}" = set; then
2160 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2166 # Check whether --enable-maintainer-mode was given.
2167 if test "${enable_maintainer_mode+set}" = set; then
2168 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2170 USE_MAINTAINER_MODE
=no
2173 if test $USE_MAINTAINER_MODE = yes; then
2180 # Check whether --enable-locallisppath was given.
2181 if test "${enable_locallisppath+set}" = set; then
2182 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2184 elif test "${enableval}" != "yes"; then
2185 locallisppath
=${enableval}
2190 #### Make srcdir absolute, if it isn't already. It's important to
2191 #### avoid running the path through pwd unnecessarily, since pwd can
2192 #### give you automounter prefixes, which can go away. We do all this
2193 #### so Emacs can find its files when run uninstalled.
2194 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2199 ## We may be able to use the $PWD environment variable to make this
2200 ## absolute. But sometimes PWD is inaccurate.
2201 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2202 ## but that tested only for a well-formed and valid PWD,
2203 ## it did not object when PWD was well-formed and valid but just wrong.
2204 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2208 srcdir
="`(cd ${srcdir}; pwd)`"
2211 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2214 #### Check if the source directory already has a configured system in it.
2215 if test `pwd` != `(cd ${srcdir} && pwd)` \
2216 && test -f "${srcdir}/src/config.h" ; then
2217 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2218 as a build directory right now; it has been configured in its own
2219 right. To configure in another directory as well, you MUST
2220 use GNU make. If you do not have GNU make, then you must
2221 now do \`make distclean' in ${srcdir},
2222 and then run $0 again." >&5
2223 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2224 as a build directory right now; it has been configured in its own
2225 right. To configure in another directory as well, you MUST
2226 use GNU make. If you do not have GNU make, then you must
2227 now do \`make distclean' in ${srcdir},
2228 and then run $0 again." >&2;}
2231 #### Given the configuration name, set machfile and opsysfile to the
2232 #### names of the m/*.h and s/*.h files we should use.
2234 ### Canonicalize the configuration name.
2237 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2238 if test -f "$ac_dir/install-sh"; then
2240 ac_install_sh
="$ac_aux_dir/install-sh -c"
2242 elif test -f "$ac_dir/install.sh"; then
2244 ac_install_sh
="$ac_aux_dir/install.sh -c"
2246 elif test -f "$ac_dir/shtool"; then
2248 ac_install_sh
="$ac_aux_dir/shtool install -c"
2252 if test -z "$ac_aux_dir"; then
2253 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2254 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2255 { (exit 1); exit 1; }; }
2258 # These three variables are undocumented and unsupported,
2259 # and are intended to be withdrawn in a future Autoconf release.
2260 # They can cause serious problems if a builder's source tree is in a directory
2261 # whose full name contains unusual characters.
2262 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2263 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2264 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2267 # Make sure we can run config.sub.
2268 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2269 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2270 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2271 { (exit 1); exit 1; }; }
2273 { echo "$as_me:$LINENO: checking build system type" >&5
2274 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2275 if test "${ac_cv_build+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 ac_build_alias
=$build_alias
2279 test "x$ac_build_alias" = x
&&
2280 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2281 test "x$ac_build_alias" = x
&&
2282 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2283 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2284 { (exit 1); exit 1; }; }
2285 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2286 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2287 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2288 { (exit 1); exit 1; }; }
2291 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2292 echo "${ECHO_T}$ac_cv_build" >&6; }
2293 case $ac_cv_build in
2295 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2296 echo "$as_me: error: invalid value of canonical build" >&2;}
2297 { (exit 1); exit 1; }; };;
2300 ac_save_IFS
=$IFS; IFS
='-'
2306 # Remember, the first character of IFS is used to create $*,
2307 # except with old shells:
2310 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2313 { echo "$as_me:$LINENO: checking host system type" >&5
2314 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2315 if test "${ac_cv_host+set}" = set; then
2316 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 if test "x$host_alias" = x
; then
2319 ac_cv_host
=$ac_cv_build
2321 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2322 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2323 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2324 { (exit 1); exit 1; }; }
2328 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2329 echo "${ECHO_T}$ac_cv_host" >&6; }
2332 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2333 echo "$as_me: error: invalid value of canonical host" >&2;}
2334 { (exit 1); exit 1; }; };;
2337 ac_save_IFS
=$IFS; IFS
='-'
2343 # Remember, the first character of IFS is used to create $*,
2344 # except with old shells:
2347 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2351 configuration
=${host_alias-${build_alias-$host}}
2355 ### If you add support for a new configuration, add code to this
2356 ### switch statement to recognize your configuration name and select
2357 ### the appropriate operating system and machine description files.
2359 ### You would hope that you could choose an m/*.h file pretty much
2360 ### based on the machine portion of the configuration name, and an s-
2361 ### file based on the operating system portion. However, it turns out
2362 ### that each m/*.h file is pretty manufacturer-specific - for
2363 ### example mips.h is MIPS
2364 ### So we basically have to have a special case for each
2365 ### configuration name.
2367 ### As far as handling version numbers on operating systems is
2368 ### concerned, make sure things will fail in a fixable way. If
2369 ### /etc/MACHINES doesn't say anything about version numbers, be
2370 ### prepared to handle anything reasonably. If version numbers
2371 ### matter, be sure /etc/MACHINES says something about it.
2373 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2374 ### "System V Release 4"; he writes, "The old convention encouraged
2375 ### confusion between `system' and `release' levels'."
2377 machine
='' opsys
='' unported
=no
2378 case "${canonical}" in
2383 case "${canonical}" in
2384 alpha
*-*-freebsd*) machine
=alpha
;;
2385 arm
*-*-freebsd*) machine
=arm
;;
2386 ia64-
*-freebsd*) machine
=ia64
;;
2387 sparc64-
*-freebsd*) machine
=sparc
;;
2388 powerpc-
*-freebsd*) machine
=macppc
;;
2389 i
[3456]86-*-freebsd*) machine
=intel386
;;
2390 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2394 ## FreeBSD kernel + glibc based userland
2397 case "${canonical}" in
2398 alpha
*-*-kfreebsd*) machine
=alpha
;;
2399 ia64-
*-kfreebsd*) machine
=ia64
;;
2400 sparc64-
*-kfreebsd*) machine
=sparc
;;
2401 powerpc-
*-kfreebsd*) machine
=macppc
;;
2402 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2403 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2410 if test -f /usr
/lib
/crti.o
; then
2412 cat >>confdefs.h
<<\_ACEOF
2418 case "${canonical}" in
2419 alpha
*-*-netbsd*) machine
=alpha
;;
2420 i
[3456]86-*-netbsd*) machine
=intel386
;;
2421 powerpc-
*-netbsd*) machine
=macppc
;;
2422 sparc
*-*-netbsd*) machine
=sparc
;;
2423 vax-
*-netbsd*) machine
=vax
;;
2424 arm-
*-netbsd*) machine
=arm
;;
2425 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2426 hppa-
*-netbsd*) machine
=hp800
;;
2433 case "${canonical}" in
2434 alpha
*-*-openbsd*) machine
=alpha
;;
2435 arm-
*-openbsd*) machine
=arm
;;
2436 i386-
*-openbsd*) machine
=intel386
;;
2437 powerpc-
*-openbsd*) machine
=macppc
;;
2438 sparc
*-*-openbsd*) machine
=sparc
;;
2439 vax-
*-openbsd*) machine
=vax
;;
2440 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2447 case "${canonical}" in
2448 i
[3456]86-*-lynxos*) machine
=intel386
;;
2449 powerpc-
*-lynxos*) machine
=powerpc
;;
2453 alpha
*-*-linux-gnu* )
2454 machine
=alpha opsys
=gnu-linux
2458 machine
=arm opsys
=gnu-linux
2461 ## Apple Darwin / Mac OS X
2463 case "${canonical}" in
2464 i
[3456]86-* ) machine
=intel386
;;
2465 powerpc-
* ) machine
=macppc
;;
2469 # Define CPP as follows to make autoconf work correctly.
2470 CPP
="${CC-cc} -E -no-cpp-precomp"
2471 # Use fink packages if available.
2472 if test -d /sw
/include
&& test -d /sw
/lib
; then
2473 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2474 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2475 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2479 ## HP 9000 series 700 and 800, running HP/UX
2480 hppa
*-hp-hpux10.2
* )
2481 machine
=hp800 opsys
=hpux10-20
2483 hppa
*-hp-hpux1[1-9]* )
2484 machine
=hp800 opsys
=hpux11
2485 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2488 hppa
*-*-linux-gnu* )
2489 machine
=hp800 opsys
=gnu-linux
2494 machine
=ibms390 opsys
=gnu-linux
2496 s390x-
*-linux-gnu* )
2497 machine
=ibms390x opsys
=gnu-linux
2499 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2500 machine
=ibmrs6000 opsys
=aix4-2
2502 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2503 machine
=ibmrs6000 opsys
=aix4-2
2505 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2506 machine
=ibmrs6000 opsys
=aix4-2
2508 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2509 machine
=ibmrs6000 opsys
=aix4-2
2512 ## Macintosh PowerPC
2513 powerpc
*-*-linux-gnu* )
2514 machine
=macppc opsys
=gnu-linux
2517 ## Silicon Graphics machines
2520 machine
=iris4d opsys
=irix6-5
2521 # Without defining _LANGUAGE_C, things get masked out in the headers
2522 # so that, for instance, grepping for `free' in stdlib.h fails and
2523 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2524 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2525 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2529 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2530 machine
=sparc opsys
=gnu-linux
2534 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2535 | rs6000-
*-solaris2*)
2536 case "${canonical}" in
2537 i
[3456]86-*-* ) machine
=intel386
;;
2538 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2539 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2540 sparc
* ) machine
=sparc
;;
2543 case "${canonical}" in
2544 *-sunos5.3
* |
*-solaris2.3
* )
2546 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2548 *-sunos5.4
* |
*-solaris2.4
* )
2550 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2553 *-sunos5.5
* |
*-solaris2.5
* )
2555 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2558 *-sunos5.6
* |
*-solaris2.6
* )
2560 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2563 *-sunos5* |
*-solaris* )
2565 emacs_check_sunpro_c
=yes
2566 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2569 ## Watch out for a compiler that we know will not work.
2570 case "${canonical}" in
2571 *-solaris* |
*-sunos5* )
2572 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2573 ## /usr/ucb/cc doesn't work;
2574 ## we should find some other compiler that does work.
2585 case "${canonical}" in
2586 *-vms* ) opsys
=vms
;;
2593 machine
=ia64 opsys
=gnu-linux
2596 ## Intel 386 machines where we don't care about the manufacturer
2599 case "${canonical}" in
2600 *-cygwin ) opsys
=cygwin
;;
2601 *-darwin* ) opsys
=darwin
2602 CPP
="${CC-cc} -E -no-cpp-precomp"
2604 *-linux-gnu* ) opsys
=gnu-linux
;;
2605 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2606 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2607 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2608 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2612 ## m68k Linux-based GNU system
2614 machine
=m68k opsys
=gnu-linux
2617 ## Mips Linux-based GNU system
2618 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2619 machine
=mips opsys
=gnu-linux
2622 ## AMD x86-64 Linux-based GNU system
2623 x86_64-
*-linux-gnu* )
2624 machine
=amdx86-64 opsys
=gnu-linux
2627 ## Tensilica Xtensa Linux-based GNU system
2628 xtensa
*-*-linux-gnu* )
2629 machine
=xtensa opsys
=gnu-linux
2637 ### If the code above didn't choose an operating system, just choose
2638 ### an operating system based on the configuration name. You really
2639 ### only want to use this when you have no idea what the right
2640 ### operating system is; if you know what operating systems a machine
2641 ### runs, it's cleaner to make it explicit in the case statement
2643 if test x
"${opsys}" = x
; then
2644 case "${canonical}" in
2645 *-gnu* ) opsys
=gnu
;;
2646 *-sysv4.2uw
* ) opsys
=unixware
;;
2647 *-sysv5uw* ) opsys
=unixware
;;
2648 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2649 *-sysv4.1
* |
*-sysvr4.1
* )
2650 NON_GNU_CPP
=/usr
/lib
/cpp
2652 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2653 if [ x
$NON_GNU_CPP = x
]; then
2654 if [ -f /usr
/ccs
/lib
/cpp
]; then
2655 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2657 NON_GNU_CPP
=/lib
/cpp
2661 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2670 if test $unported = yes; then
2671 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2672 Check \`etc/MACHINES' for recognized configuration names." >&5
2673 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2674 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2675 { (exit 1); exit 1; }; }
2678 machfile
="m/${machine}.h"
2679 opsysfile
="s/${opsys}.h"
2682 #### Choose a compiler.
2683 test -n "$CC" && cc_specified
=yes
2685 # Save the value of CFLAGS that the user specified.
2686 SPECIFIED_CFLAGS
="$CFLAGS"
2689 ac_cpp
='$CPP $CPPFLAGS'
2690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2695 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2698 if test "${ac_cv_prog_CC+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC
="$CC" # Let the user override the test.
2704 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2708 test -z "$as_dir" && as_dir
=.
2709 for ac_exec_ext
in '' $ac_executable_extensions; do
2710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2711 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2722 if test -n "$CC"; then
2723 { echo "$as_me:$LINENO: result: $CC" >&5
2724 echo "${ECHO_T}$CC" >&6; }
2726 { echo "$as_me:$LINENO: result: no" >&5
2727 echo "${ECHO_T}no" >&6; }
2732 if test -z "$ac_cv_prog_CC"; then
2734 # Extract the first word of "gcc", so it can be a program name with args.
2735 set dummy gcc
; ac_word
=$2
2736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2738 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 if test -n "$ac_ct_CC"; then
2742 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2751 ac_cv_prog_ac_ct_CC
="gcc"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2761 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2762 if test -n "$ac_ct_CC"; then
2763 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2764 echo "${ECHO_T}$ac_ct_CC" >&6; }
2766 { echo "$as_me:$LINENO: result: no" >&5
2767 echo "${ECHO_T}no" >&6; }
2770 if test "x$ac_ct_CC" = x
; then
2773 case $cross_compiling:$ac_tool_warned in
2775 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2776 whose name does not start with the host triplet. If you think this
2777 configuration is useful to you, please write to autoconf@gnu.org." >&5
2778 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2779 whose name does not start with the host triplet. If you think this
2780 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2781 ac_tool_warned
=yes ;;
2789 if test -z "$CC"; then
2790 if test -n "$ac_tool_prefix"; then
2791 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2792 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_CC+set}" = set; then
2796 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 if test -n "$CC"; then
2799 ac_cv_prog_CC
="$CC" # Let the user override the test.
2801 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2805 test -z "$as_dir" && as_dir
=.
2806 for ac_exec_ext
in '' $ac_executable_extensions; do
2807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2819 if test -n "$CC"; then
2820 { echo "$as_me:$LINENO: result: $CC" >&5
2821 echo "${ECHO_T}$CC" >&6; }
2823 { echo "$as_me:$LINENO: result: no" >&5
2824 echo "${ECHO_T}no" >&6; }
2830 if test -z "$CC"; then
2831 # Extract the first word of "cc", so it can be a program name with args.
2832 set dummy cc
; ac_word
=$2
2833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_CC+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 if test -n "$CC"; then
2839 ac_cv_prog_CC
="$CC" # Let the user override the test.
2842 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2846 test -z "$as_dir" && as_dir
=.
2847 for ac_exec_ext
in '' $ac_executable_extensions; do
2848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2849 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2850 ac_prog_rejected
=yes
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 if test $ac_prog_rejected = yes; then
2862 # We found a bogon in the path, so make sure we never use it.
2863 set dummy
$ac_cv_prog_CC
2865 if test $# != 0; then
2866 # We chose a different compiler from the bogus one.
2867 # However, it has the same basename, so the bogon will be chosen
2868 # first if we set CC to just the basename; use the full file name.
2870 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2876 if test -n "$CC"; then
2877 { echo "$as_me:$LINENO: result: $CC" >&5
2878 echo "${ECHO_T}$CC" >&6; }
2880 { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2886 if test -z "$CC"; then
2887 if test -n "$ac_tool_prefix"; then
2888 for ac_prog
in cl.exe
2890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2891 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2894 if test "${ac_cv_prog_CC+set}" = set; then
2895 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 if test -n "$CC"; then
2898 ac_cv_prog_CC
="$CC" # Let the user override the test.
2900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir
=.
2905 for ac_exec_ext
in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2918 if test -n "$CC"; then
2919 { echo "$as_me:$LINENO: result: $CC" >&5
2920 echo "${ECHO_T}$CC" >&6; }
2922 { echo "$as_me:$LINENO: result: no" >&5
2923 echo "${ECHO_T}no" >&6; }
2927 test -n "$CC" && break
2930 if test -z "$CC"; then
2932 for ac_prog
in cl.exe
2934 # Extract the first word of "$ac_prog", so it can be a program name with args.
2935 set dummy
$ac_prog; ac_word
=$2
2936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2938 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2948 test -z "$as_dir" && as_dir
=.
2949 for ac_exec_ext
in '' $ac_executable_extensions; do
2950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2951 ac_cv_prog_ac_ct_CC
="$ac_prog"
2952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2964 echo "${ECHO_T}$ac_ct_CC" >&6; }
2966 { echo "$as_me:$LINENO: result: no" >&5
2967 echo "${ECHO_T}no" >&6; }
2971 test -n "$ac_ct_CC" && break
2974 if test "x$ac_ct_CC" = x
; then
2977 case $cross_compiling:$ac_tool_warned in
2979 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2980 whose name does not start with the host triplet. If you think this
2981 configuration is useful to you, please write to autoconf@gnu.org." >&5
2982 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2983 whose name does not start with the host triplet. If you think this
2984 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2985 ac_tool_warned
=yes ;;
2994 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2995 See \`config.log' for more details." >&5
2996 echo "$as_me: error: no acceptable C compiler found in \$PATH
2997 See \`config.log' for more details." >&2;}
2998 { (exit 1); exit 1; }; }
3000 # Provide some information about the compiler.
3001 echo "$as_me:$LINENO: checking for C compiler version" >&5
3002 ac_compiler
=`set X $ac_compile; echo $2`
3003 { (ac_try
="$ac_compiler --version >&5"
3005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_compiler --version >&5") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }
3013 { (ac_try="$ac_compiler -v >&5"
3015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3016 *) ac_try_echo
=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compiler -v >&5") 2>&5
3021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022 (exit $ac_status); }
3023 { (ac_try
="$ac_compiler -V >&5"
3025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3026 *) ac_try_echo=$ac_try;;
3028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029 (eval "$ac_compiler -V >&5") 2>&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }
3034 cat >conftest.$ac_ext <<_ACEOF
3037 cat confdefs.h >>conftest.$ac_ext
3038 cat >>conftest.$ac_ext <<_ACEOF
3039 /* end confdefs.h. */
3049 ac_clean_files_save=$ac_clean_files
3050 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3051 # Try to create an executable without -o first, disregard a.out.
3052 # It will help us diagnose broken compilers, and finding out an intuition
3054 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3055 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3056 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3058 # List of possible output files, starting from the most likely.
3059 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3060 # only as a last resort. b.out is created by i960 compilers.
3061 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3063 # The IRIX 6 linker writes into existing files which may not be
3064 # executable, retaining their permissions. Remove them first so a
3065 # subsequent execution test works.
3067 for ac_file in $ac_files
3070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076 if { (ac_try="$ac_link_default"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link_default") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3087 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3088 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3089 # so that the user can short-circuit this test for compilers unknown to
3091 for ac_file
in $ac_files ''
3093 test -f "$ac_file" ||
continue
3095 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3098 # We found the default executable, but exeext='' is most
3102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3104 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106 # We set ac_cv_exeext here because the later test for it is not
3107 # safe: cross compilers may not add the suffix if given an `-o'
3108 # argument, so we may need to know it at that point already.
3109 # Even if this section looks crufty: it has the advantage of
3116 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3122 { echo "$as_me:$LINENO: result: $ac_file" >&5
3123 echo "${ECHO_T}$ac_file" >&6; }
3124 if test -z "$ac_file"; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.
$ac_ext >&5
3128 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C compiler cannot create executables
3131 See \`config.log' for more details." >&2;}
3132 { (exit 77); exit 77; }; }
3135 ac_exeext
=$ac_cv_exeext
3137 # Check that the compiler produces executables we can run. If not, either
3138 # the compiler is broken, or we cross compile.
3139 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3140 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3141 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3142 # If not cross compiling, check that we can run a simple program.
3143 if test "$cross_compiling" != yes; then
3144 if { ac_try
='./$ac_file'
3145 { (case "(($ac_try" in
3146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3150 (eval "$ac_try") 2>&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); }; }; then
3156 if test "$cross_compiling" = maybe; then
3159 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3160 If you meant to cross compile, use \`--host'.
3161 See \`config.log' for more details.
" >&5
3162 echo "$as_me: error
: cannot run C compiled programs.
3163 If you meant to cross compile
, use \
`--host'.
3164 See \`config.log
' for more details." >&2;}
3165 { (exit 1); exit 1; }; }
3169 { echo "$as_me:$LINENO: result: yes" >&5
3170 echo "${ECHO_T}yes" >&6; }
3172 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3173 ac_clean_files=$ac_clean_files_save
3174 # Check that the compiler produces executables we can run. If not, either
3175 # the compiler is broken, or we cross compile.
3176 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3177 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3178 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3179 echo "${ECHO_T}$cross_compiling" >&6; }
3181 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3182 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3183 if { (ac_try="$ac_link"
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_link") 2>&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }; then
3193 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3194 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3195 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3197 for ac_file
in conftest.exe conftest conftest.
*; do
3198 test -f "$ac_file" ||
continue
3200 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3201 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3207 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3208 See \`config.log' for more details." >&5
3209 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3210 See \`config.log' for more details." >&2;}
3211 { (exit 1); exit 1; }; }
3214 rm -f conftest
$ac_cv_exeext
3215 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3216 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3218 rm -f conftest.
$ac_ext
3219 EXEEXT
=$ac_cv_exeext
3221 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3222 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3223 if test "${ac_cv_objext+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3226 cat >conftest.
$ac_ext <<_ACEOF
3229 cat confdefs.h
>>conftest.
$ac_ext
3230 cat >>conftest.
$ac_ext <<_ACEOF
3231 /* end confdefs.h. */
3241 rm -f conftest.o conftest.obj
3242 if { (ac_try
="$ac_compile"
3244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_compile") 2>&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); }; then
3252 for ac_file in conftest.o conftest.obj conftest.*; do
3253 test -f "$ac_file" || continue;
3255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3256 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3261 echo "$as_me: failed program was:" >&5
3262 sed 's/^/| /' conftest.$ac_ext >&5
3264 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3265 See \`config.log
' for more details." >&5
3266 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3267 See \`config.log' for more details.
" >&2;}
3268 { (exit 1); exit 1; }; }
3271 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3273 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3274 echo "${ECHO_T}$ac_cv_objext" >&6; }
3275 OBJEXT=$ac_cv_objext
3277 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3278 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3279 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3280 echo $ECHO_N "(cached
) $ECHO_C" >&6
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_compile") 2>conftest.er1
3309 grep -v '^ *+' conftest.er1 >conftest.err
3311 cat conftest.err >&5
3312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3313 (exit $ac_status); } && {
3314 test -z "$ac_c_werror_flag" ||
3315 test ! -s conftest.err
3316 } && test -s conftest.$ac_objext; then
3319 echo "$as_me: failed program was
:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3329 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3330 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3331 GCC=`test $ac_compiler_gnu = yes && echo yes`
3332 ac_test_CFLAGS=${CFLAGS+set}
3333 ac_save_CFLAGS=$CFLAGS
3334 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3335 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cc_g+set}" = set; then
3337 echo $ECHO_N "(cached
) $ECHO_C" >&6
3339 ac_save_c_werror_flag=$ac_c_werror_flag
3340 ac_c_werror_flag=yes
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_compile") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3371 (exit $ac_status); } && {
3372 test -z "$ac_c_werror_flag" ||
3373 test ! -s conftest.err
3374 } && test -s conftest.$ac_objext; then
3377 echo "$as_me: failed program was
:" >&5
3378 sed 's/^/| /' conftest.$ac_ext >&5
3381 cat >conftest.$ac_ext <<_ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h. */
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compile") 2>conftest.er1
3405 grep -v '^ *+' conftest.er1 >conftest.err
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3409 (exit $ac_status); } && {
3410 test -z "$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 } && test -s conftest.$ac_objext; then
3415 echo "$as_me: failed program was
:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3418 ac_c_werror_flag=$ac_save_c_werror_flag
3420 cat >conftest.$ac_ext <<_ACEOF
3423 cat confdefs.h >>conftest.$ac_ext
3424 cat >>conftest.$ac_ext <<_ACEOF
3425 /* end confdefs.h. */
3435 rm -f conftest.$ac_objext
3436 if { (ac_try="$ac_compile"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_compile") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3448 (exit $ac_status); } && {
3449 test -z "$ac_c_werror_flag" ||
3450 test ! -s conftest.err
3451 } && test -s conftest.$ac_objext; then
3454 echo "$as_me: failed program was
:" >&5
3455 sed 's/^/| /' conftest.$ac_ext >&5
3460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_c_werror_flag=$ac_save_c_werror_flag
3469 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3470 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3471 if test "$ac_test_CFLAGS" = set; then
3472 CFLAGS=$ac_save_CFLAGS
3473 elif test $ac_cv_prog_cc_g = yes; then
3474 if test "$GCC" = yes; then
3480 if test "$GCC" = yes; then
3486 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3487 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3488 if test "${ac_cv_prog_cc_c89+set}" = set; then
3489 echo $ECHO_N "(cached
) $ECHO_C" >&6
3491 ac_cv_prog_cc_c89=no
3493 cat >conftest.$ac_ext <<_ACEOF
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3501 #include <sys/types.h>
3502 #include <sys/stat.h>
3503 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3504 struct buf { int x; };
3505 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3506 static char *e (p, i)
3512 static char *f (char * (*g) (char **, int), char **p, ...)
3517 s = g (p, va_arg (v,int));
3522 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3523 function prototypes and stuff, but not '\xHH' hex character constants.
3524 These don't provoke an error unfortunately, instead are silently treated
3525 as 'x'. The following induces an error, until -std is added to get
3526 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3527 array size at least. It's necessary to write '\x00'==0 to get something
3528 that's true only with -std. */
3529 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3531 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3532 inside strings and character constants. */
3534 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3536 int test (int i, double x);
3537 struct s1 {int (*f) (int a);};
3538 struct s2 {int (*f) (double a);};
3539 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3545 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3550 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3551 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3553 CC="$ac_save_CC $ac_arg"
3554 rm -f conftest.$ac_objext
3555 if { (ac_try="$ac_compile"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_compile") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3567 (exit $ac_status); } && {
3568 test -z "$ac_c_werror_flag" ||
3569 test ! -s conftest.err
3570 } && test -s conftest.$ac_objext; then
3571 ac_cv_prog_cc_c89=$ac_arg
3573 echo "$as_me: failed program was
:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3579 rm -f core conftest.err conftest.$ac_objext
3580 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3582 rm -f conftest.$ac_ext
3587 case "x
$ac_cv_prog_cc_c89" in
3589 { echo "$as_me:$LINENO: result
: none needed
" >&5
3590 echo "${ECHO_T}none needed
" >&6; } ;;
3592 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3593 echo "${ECHO_T}unsupported
" >&6; } ;;
3595 CC="$CC $ac_cv_prog_cc_c89"
3596 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3597 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3602 ac_cpp='$CPP $CPPFLAGS'
3603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3608 # On Suns, sometimes $CPP names a directory.
3609 if test -n "$CPP" && test -d "$CPP"; then
3613 ## If not using gcc, and on Solaris, and no CPP specified, see if
3614 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3615 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3616 test x"$CPP" = x; then
3617 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3618 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3620 if test "${emacs_cv_sunpro_c+set}" = set; then
3621 echo $ECHO_N "(cached
) $ECHO_C" >&6
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3641 rm -f conftest.$ac_objext conftest$ac_exeext
3642 if { (ac_try="$ac_link"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_link") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest$ac_exeext &&
3658 $as_test_x conftest$ac_exeext; then
3659 emacs_cv_sunpro_c=yes
3661 echo "$as_me: failed program was
:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3664 emacs_cv_sunpro_c=no
3667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3668 conftest$ac_exeext conftest.$ac_ext
3671 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3672 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3674 if test x"$emacs_cv_sunpro_c" = xyes; then
3675 NON_GNU_CPP="$CC -E -Xs"
3679 #### Some systems specify a CPP to use unless we are using GCC.
3680 #### Now that we know whether we are using GCC, we can decide whether
3681 #### to use that one.
3682 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3687 #### Some systems specify a CC to use unless we are using GCC.
3688 #### Now that we know whether we are using GCC, we can decide whether
3689 #### to use that one.
3690 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3691 test x$cc_specified != xyes
3696 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3698 CC="$CC $GCC_TEST_OPTIONS"
3701 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3703 CC="$CC $NON_GCC_TEST_OPTIONS"
3707 cat >>confdefs.h <<\_ACEOF
3708 #define _GNU_SOURCE 1
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3718 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3719 # On Suns, sometimes $CPP names a directory.
3720 if test -n "$CPP" && test -d "$CPP"; then
3723 if test -z "$CPP"; then
3724 if test "${ac_cv_prog_CPP+set}" = set; then
3725 echo $ECHO_N "(cached
) $ECHO_C" >&6
3727 # Double quotes because CPP needs to be expanded
3728 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3731 for ac_c_preproc_warn_flag in '' yes
3733 # Use a header file that comes with gcc, so configuring glibc
3734 # with a fresh cross-compiler works.
3735 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3736 # <limits.h> exists even on freestanding compilers.
3737 # On the NeXT, cc -E runs the code through the compiler's parser,
3738 # not just through cpp. "Syntax error
" is here to catch this case.
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3746 # include <limits.h>
3748 # include <assert.h>
3752 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755 *) ac_try_echo=$ac_try;;
3757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3758 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3760 grep -v '^ *+' conftest.er1 >conftest.err
3762 cat conftest.err >&5
3763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3764 (exit $ac_status); } >/dev/null && {
3765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3766 test ! -s conftest.err
3770 echo "$as_me: failed program was
:" >&5
3771 sed 's/^/| /' conftest.$ac_ext >&5
3773 # Broken: fails on valid input.
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3787 #include <ac_nonexistent.h>
3789 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3801 (exit $ac_status); } >/dev/null && {
3802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3805 # Broken: success on invalid input.
3808 echo "$as_me: failed program was
:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Passes both tests.
3816 rm -f conftest.err conftest.$ac_ext
3819 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3820 rm -f conftest.err conftest.$ac_ext
3821 if $ac_preproc_ok; then
3833 { echo "$as_me:$LINENO: result
: $CPP" >&5
3834 echo "${ECHO_T}$CPP" >&6; }
3836 for ac_c_preproc_warn_flag in '' yes
3838 # Use a header file that comes with gcc, so configuring glibc
3839 # with a fresh cross-compiler works.
3840 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3841 # <limits.h> exists even on freestanding compilers.
3842 # On the NeXT, cc -E runs the code through the compiler's parser,
3843 # not just through cpp. "Syntax error
" is here to catch this case.
3844 cat >conftest.$ac_ext <<_ACEOF
3847 cat confdefs.h >>conftest.$ac_ext
3848 cat >>conftest.$ac_ext <<_ACEOF
3849 /* end confdefs.h. */
3851 # include <limits.h>
3853 # include <assert.h>
3857 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3869 (exit $ac_status); } >/dev/null && {
3870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3875 echo "$as_me: failed program was
:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3878 # Broken: fails on valid input.
3882 rm -f conftest.err conftest.$ac_ext
3884 # OK, works on sane cases. Now check whether nonexistent headers
3885 # can be detected and how.
3886 cat >conftest.$ac_ext <<_ACEOF
3889 cat confdefs.h >>conftest.$ac_ext
3890 cat >>conftest.$ac_ext <<_ACEOF
3891 /* end confdefs.h. */
3892 #include <ac_nonexistent.h>
3894 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3906 (exit $ac_status); } >/dev/null && {
3907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3910 # Broken: success on invalid input.
3913 echo "$as_me: failed program was
:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 # Passes both tests.
3921 rm -f conftest.err conftest.$ac_ext
3924 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3925 rm -f conftest.err conftest.$ac_ext
3926 if $ac_preproc_ok; then
3929 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3930 See \
`config.log' for more details." >&5
3931 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3932 See \`config.log
' for more details." >&2;}
3933 { (exit 1); exit 1; }; }
3937 ac_cpp='$CPP $CPPFLAGS'
3938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3939 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3944 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3945 if test "${ac_cv_path_GREP+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 # Extract the first word of "grep ggrep" to use in msg output
3949 if test -z "$GREP"; then
3950 set dummy grep ggrep; ac_prog_name=$2
3951 if test "${ac_cv_path_GREP+set}" = set; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 ac_path_GREP_found=false
3955 # Loop through the user's path and
test for each of PROGNAME-LIST
3956 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3957 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3960 test -z "$as_dir" && as_dir
=.
3961 for ac_prog
in grep ggrep
; do
3962 for ac_exec_ext
in '' $ac_executable_extensions; do
3963 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3964 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3965 # Check for GNU ac_path_GREP and select it if it is found.
3966 # Check for GNU $ac_path_GREP
3967 case `"$ac_path_GREP" --version 2>&1` in
3969 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3972 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3975 cat "conftest.in" "conftest.in" >"conftest.tmp"
3976 mv "conftest.tmp" "conftest.in"
3977 cp "conftest.in" "conftest.nl"
3978 echo 'GREP' >> "conftest.nl"
3979 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3980 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3981 ac_count
=`expr $ac_count + 1`
3982 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3983 # Best one so far, save it but keep looking for a better one
3984 ac_cv_path_GREP
="$ac_path_GREP"
3985 ac_path_GREP_max
=$ac_count
3987 # 10*(2^10) chars as input seems more than enough
3988 test $ac_count -gt 10 && break
3990 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3994 $ac_path_GREP_found && break 3
4004 GREP
="$ac_cv_path_GREP"
4005 if test -z "$GREP"; then
4006 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4007 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4008 { (exit 1); exit 1; }; }
4012 ac_cv_path_GREP
=$GREP
4017 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4018 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4019 GREP
="$ac_cv_path_GREP"
4022 { echo "$as_me:$LINENO: checking for egrep" >&5
4023 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4024 if test "${ac_cv_path_EGREP+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4028 then ac_cv_path_EGREP
="$GREP -E"
4030 # Extract the first word of "egrep" to use in msg output
4031 if test -z "$EGREP"; then
4032 set dummy
egrep; ac_prog_name
=$2
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 ac_path_EGREP_found
=false
4037 # Loop through the user's path and test for each of PROGNAME-LIST
4038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4039 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4042 test -z "$as_dir" && as_dir
=.
4043 for ac_prog
in egrep; do
4044 for ac_exec_ext
in '' $ac_executable_extensions; do
4045 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4046 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4047 # Check for GNU ac_path_EGREP and select it if it is found.
4048 # Check for GNU $ac_path_EGREP
4049 case `"$ac_path_EGREP" --version 2>&1` in
4051 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4054 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4057 cat "conftest.in" "conftest.in" >"conftest.tmp"
4058 mv "conftest.tmp" "conftest.in"
4059 cp "conftest.in" "conftest.nl"
4060 echo 'EGREP' >> "conftest.nl"
4061 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4062 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4063 ac_count
=`expr $ac_count + 1`
4064 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4065 # Best one so far, save it but keep looking for a better one
4066 ac_cv_path_EGREP
="$ac_path_EGREP"
4067 ac_path_EGREP_max
=$ac_count
4069 # 10*(2^10) chars as input seems more than enough
4070 test $ac_count -gt 10 && break
4072 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4076 $ac_path_EGREP_found && break 3
4086 EGREP
="$ac_cv_path_EGREP"
4087 if test -z "$EGREP"; then
4088 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4089 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4090 { (exit 1); exit 1; }; }
4094 ac_cv_path_EGREP
=$EGREP
4100 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4101 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4102 EGREP
="$ac_cv_path_EGREP"
4106 { echo "$as_me:$LINENO: checking for AIX" >&5
4107 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4108 cat >conftest.
$ac_ext <<_ACEOF
4111 cat confdefs.h
>>conftest.
$ac_ext
4112 cat >>conftest.
$ac_ext <<_ACEOF
4113 /* end confdefs.h. */
4119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4120 $EGREP "yes" >/dev
/null
2>&1; then
4121 { echo "$as_me:$LINENO: result: yes" >&5
4122 echo "${ECHO_T}yes" >&6; }
4123 cat >>confdefs.h
<<\_ACEOF
4124 #define _ALL_SOURCE 1
4128 { echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6; }
4134 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4135 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4136 if test "${ac_cv_header_stdc+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 cat >conftest.
$ac_ext <<_ACEOF
4142 cat confdefs.h
>>conftest.
$ac_ext
4143 cat >>conftest.
$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4158 rm -f conftest.
$ac_objext
4159 if { (ac_try
="$ac_compile"
4161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4165 (eval "$ac_compile") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } && {
4172 test -z "$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4174 } && test -s conftest.$ac_objext; then
4175 ac_cv_header_stdc=yes
4177 echo "$as_me: failed program was:" >&5
4178 sed 's/^/| /' conftest.$ac_ext >&5
4180 ac_cv_header_stdc=no
4183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 if test $ac_cv_header_stdc = yes; then
4186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4197 $EGREP "memchr" >/dev/null 2>&1; then
4200 ac_cv_header_stdc=no
4206 if test $ac_cv_header_stdc = yes; then
4207 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4208 cat >conftest.$ac_ext <<_ACEOF
4211 cat confdefs.h >>conftest.$ac_ext
4212 cat >>conftest.$ac_ext <<_ACEOF
4213 /* end confdefs.h. */
4217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4218 $EGREP "free" >/dev/null 2>&1; then
4221 ac_cv_header_stdc=no
4227 if test $ac_cv_header_stdc = yes; then
4228 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4229 if test "$cross_compiling" = yes; then
4232 cat >conftest.$ac_ext <<_ACEOF
4235 cat confdefs.h >>conftest.$ac_ext
4236 cat >>conftest.$ac_ext <<_ACEOF
4237 /* end confdefs.h. */
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4244 # define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4263 rm -f conftest$ac_exeext
4264 if { (ac_try="$ac_link"
4266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4267 *) ac_try_echo
=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_link") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4274 { (case "(($ac_try" in
4275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4276 *) ac_try_echo=$ac_try;;
4278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4279 (eval "$ac_try") 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); }; }; then
4285 echo "$as_me: program exited with status $ac_status" >&5
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4290 ac_cv_header_stdc=no
4292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4298 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4299 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4300 if test $ac_cv_header_stdc = yes; then
4302 cat >>confdefs.h <<\_ACEOF
4303 #define STDC_HEADERS 1
4308 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4319 inttypes.h stdint.h unistd.h
4321 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4325 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 cat >conftest.$ac_ext <<_ACEOF
4330 cat confdefs.h >>conftest.$ac_ext
4331 cat >>conftest.$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4333 $ac_includes_default
4335 #include <$ac_header>
4337 rm -f conftest.$ac_objext
4338 if { (ac_try="$ac_compile"
4340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4341 *) ac_try_echo
=$ac_try;;
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_compile") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1
>conftest.err
4348 cat conftest.err
>&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } && {
4351 test -z "$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 } && test -s conftest.
$ac_objext; then
4354 eval "$as_ac_Header=yes"
4356 echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.
$ac_ext >&5
4359 eval "$as_ac_Header=no"
4362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4364 ac_res
=`eval echo '${'$as_ac_Header'}'`
4365 { echo "$as_me:$LINENO: result: $ac_res" >&5
4366 echo "${ECHO_T}$ac_res" >&6; }
4367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4368 cat >>confdefs.h
<<_ACEOF
4369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4377 if test "${ac_cv_header_minix_config_h+set}" = set; then
4378 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4379 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4380 if test "${ac_cv_header_minix_config_h+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4384 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4386 # Is the header compilable?
4387 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4388 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4389 cat >conftest.
$ac_ext <<_ACEOF
4392 cat confdefs.h
>>conftest.
$ac_ext
4393 cat >>conftest.
$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4395 $ac_includes_default
4396 #include <minix/config.h>
4398 rm -f conftest.
$ac_objext
4399 if { (ac_try
="$ac_compile"
4401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4415 ac_header_compiler=yes
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 ac_header_compiler=no
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6; }
4427 # Is the header present?
4428 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4429 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4430 cat >conftest.$ac_ext <<_ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h. */
4436 #include <minix/config.h>
4438 if { (ac_try="$ac_cpp conftest.$ac_ext"
4440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4441 *) ac_try_echo
=$ac_try;;
4443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4446 grep -v '^ *+' conftest.er1
>conftest.err
4448 cat conftest.err
>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); } >/dev
/null
&& {
4451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4452 test ! -s conftest.err
4454 ac_header_preproc
=yes
4456 echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.
$ac_ext >&5
4459 ac_header_preproc
=no
4462 rm -f conftest.err conftest.
$ac_ext
4463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4464 echo "${ECHO_T}$ac_header_preproc" >&6; }
4466 # So? What about this header?
4467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4469 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4470 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4471 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4472 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4473 ac_header_preproc
=yes
4476 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4477 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4478 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4479 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4480 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4481 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4482 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4483 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4485 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4487 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4491 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4492 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4493 if test "${ac_cv_header_minix_config_h+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 ac_cv_header_minix_config_h
=$ac_header_preproc
4498 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4499 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4502 if test $ac_cv_header_minix_config_h = yes; then
4509 if test "$MINIX" = yes; then
4511 cat >>confdefs.h
<<\_ACEOF
4512 #define _POSIX_SOURCE 1
4516 cat >>confdefs.h
<<\_ACEOF
4517 #define _POSIX_1_SOURCE 2
4521 cat >>confdefs.h
<<\_ACEOF
4537 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4538 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4539 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 cat >conftest.
$ac_ext <<_ACEOF
4545 cat confdefs.h
>>conftest.
$ac_ext
4546 cat >>conftest.
$ac_ext <<_ACEOF
4547 /* end confdefs.h. */
4549 # define __EXTENSIONS__ 1
4550 $ac_includes_default
4559 rm -f conftest.
$ac_objext
4560 if { (ac_try
="$ac_compile"
4562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4566 (eval "$ac_compile") 2>conftest.er1
4568 grep -v '^ *+' conftest.er1 >conftest.err
4570 cat conftest.err >&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } && {
4573 test -z "$ac_c_werror_flag" ||
4574 test ! -s conftest.err
4575 } && test -s conftest.$ac_objext; then
4576 ac_cv_safe_to_define___extensions__=yes
4578 echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_safe_to_define___extensions__=no
4584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4587 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4588 test $ac_cv_safe_to_define___extensions__ = yes &&
4589 cat >>confdefs.h <<\_ACEOF
4590 #define __EXTENSIONS__ 1
4593 cat >>confdefs.h <<\_ACEOF
4594 #define _POSIX_PTHREAD_SEMANTICS 1
4597 cat >>confdefs.h <<\_ACEOF
4598 #define _TANDEM_SOURCE 1
4603 ### Use -Wno-pointer-sign if the compiler supports it
4604 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4605 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4606 SAVE_CFLAGS="$CFLAGS"
4607 CFLAGS="$CFLAGS -Wno-pointer-sign"
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4623 rm -f conftest.$ac_objext
4624 if { (ac_try="$ac_compile"
4626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4627 *) ac_try_echo
=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_compile") 2>conftest.er1
4632 grep -v '^ *+' conftest.er1
>conftest.err
4634 cat conftest.err
>&5
4635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4636 (exit $ac_status); } && {
4637 test -z "$ac_c_werror_flag" ||
4638 test ! -s conftest.err
4639 } && test -s conftest.
$ac_objext; then
4642 echo "$as_me: failed program was:" >&5
4643 sed 's/^/| /' conftest.
$ac_ext >&5
4648 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4649 if test $has_option = yes; then
4650 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4652 { echo "$as_me:$LINENO: result: $has_option" >&5
4653 echo "${ECHO_T}$has_option" >&6; }
4654 CFLAGS
="$SAVE_CFLAGS"
4658 #### Some other nice autoconf tests.
4660 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4661 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4663 if test "$LN_S" = "ln -s"; then
4664 { echo "$as_me:$LINENO: result: yes" >&5
4665 echo "${ECHO_T}yes" >&6; }
4667 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4668 echo "${ECHO_T}no, using $LN_S" >&6; }
4672 ac_cpp
='$CPP $CPPFLAGS'
4673 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4674 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4675 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4676 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4677 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4678 # On Suns, sometimes $CPP names a directory.
4679 if test -n "$CPP" && test -d "$CPP"; then
4682 if test -z "$CPP"; then
4683 if test "${ac_cv_prog_CPP+set}" = set; then
4684 echo $ECHO_N "(cached) $ECHO_C" >&6
4686 # Double quotes because CPP needs to be expanded
4687 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4690 for ac_c_preproc_warn_flag
in '' yes
4692 # Use a header file that comes with gcc, so configuring glibc
4693 # with a fresh cross-compiler works.
4694 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4695 # <limits.h> exists even on freestanding compilers.
4696 # On the NeXT, cc -E runs the code through the compiler's parser,
4697 # not just through cpp. "Syntax error" is here to catch this case.
4698 cat >conftest.
$ac_ext <<_ACEOF
4701 cat confdefs.h
>>conftest.
$ac_ext
4702 cat >>conftest.
$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 # include <limits.h>
4707 # include <assert.h>
4711 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4713 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4719 grep -v '^ *+' conftest.er1 >conftest.err
4721 cat conftest.err >&5
4722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } >/dev/null && {
4724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4725 test ! -s conftest.err
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 # Broken: fails on valid input.
4736 rm -f conftest.err conftest.$ac_ext
4738 # OK, works on sane cases. Now check whether nonexistent headers
4739 # can be detected and how.
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4746 #include <ac_nonexistent.h>
4748 if { (ac_try="$ac_cpp conftest.$ac_ext"
4750 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4751 *) ac_try_echo
=$ac_try;;
4753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4756 grep -v '^ *+' conftest.er1
>conftest.err
4758 cat conftest.err
>&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); } >/dev
/null
&& {
4761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4762 test ! -s conftest.err
4764 # Broken: success on invalid input.
4767 echo "$as_me: failed program was:" >&5
4768 sed 's/^/| /' conftest.
$ac_ext >&5
4770 # Passes both tests.
4775 rm -f conftest.err conftest.
$ac_ext
4778 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4779 rm -f conftest.err conftest.
$ac_ext
4780 if $ac_preproc_ok; then
4792 { echo "$as_me:$LINENO: result: $CPP" >&5
4793 echo "${ECHO_T}$CPP" >&6; }
4795 for ac_c_preproc_warn_flag
in '' yes
4797 # Use a header file that comes with gcc, so configuring glibc
4798 # with a fresh cross-compiler works.
4799 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4800 # <limits.h> exists even on freestanding compilers.
4801 # On the NeXT, cc -E runs the code through the compiler's parser,
4802 # not just through cpp. "Syntax error" is here to catch this case.
4803 cat >conftest.
$ac_ext <<_ACEOF
4806 cat confdefs.h
>>conftest.
$ac_ext
4807 cat >>conftest.
$ac_ext <<_ACEOF
4808 /* end confdefs.h. */
4810 # include <limits.h>
4812 # include <assert.h>
4816 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4819 *) ac_try_echo=$ac_try;;
4821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } >/dev/null && {
4829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4830 test ! -s conftest.err
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4837 # Broken: fails on valid input.
4841 rm -f conftest.err conftest.$ac_ext
4843 # OK, works on sane cases. Now check whether nonexistent headers
4844 # can be detected and how.
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4851 #include <ac_nonexistent.h>
4853 if { (ac_try="$ac_cpp conftest.$ac_ext"
4855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4856 *) ac_try_echo
=$ac_try;;
4858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4861 grep -v '^ *+' conftest.er1
>conftest.err
4863 cat conftest.err
>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } >/dev
/null
&& {
4866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4867 test ! -s conftest.err
4869 # Broken: success on invalid input.
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.
$ac_ext >&5
4875 # Passes both tests.
4880 rm -f conftest.err conftest.
$ac_ext
4883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884 rm -f conftest.err conftest.
$ac_ext
4885 if $ac_preproc_ok; then
4888 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889 See \`config.log' for more details." >&5
4890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891 See \`config.log' for more details." >&2;}
4892 { (exit 1); exit 1; }; }
4896 ac_cpp
='$CPP $CPPFLAGS'
4897 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4901 # Find a good install program. We prefer a C program (faster),
4902 # so one script is as good as another. But avoid the broken or
4903 # incompatible versions:
4904 # SysV /etc/install, /usr/sbin/install
4905 # SunOS /usr/etc/install
4906 # IRIX /sbin/install
4908 # AmigaOS /C/install, which installs bootblocks on floppy discs
4909 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4910 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4911 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4912 # OS/2's system install, which has a completely different semantic
4913 # ./install, which can be erroneously created by make from ./install.sh.
4914 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4915 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4916 if test -z "$INSTALL"; then
4917 if test "${ac_cv_path_install+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir
=.
4925 # Account for people who put trailing slashes in PATH elements.
4927 .
/ | .
// |
/cC
/* | \
4928 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4929 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4932 # OSF1 and SCO ODT 3.0 have their own names for install.
4933 # Don't use installbsd from OSF since it installs stuff as root
4935 for ac_prog
in ginstall scoinst
install; do
4936 for ac_exec_ext
in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4938 if test $ac_prog = install &&
4939 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4940 # AIX install. It has an incompatible calling convention.
4942 elif test $ac_prog = install &&
4943 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4944 # program-specific install script used by HP pwplus--don't use.
4947 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4960 if test "${ac_cv_path_install+set}" = set; then
4961 INSTALL
=$ac_cv_path_install
4963 # As a last resort, use the slow shell script. Don't cache a
4964 # value for INSTALL within a source directory, because that will
4965 # break other packages using the cache if that directory is
4966 # removed, or if the value is a relative name.
4967 INSTALL
=$ac_install_sh
4970 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4971 echo "${ECHO_T}$INSTALL" >&6; }
4973 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4974 # It thinks the first close brace ends the variable substitution.
4975 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4977 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4979 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4981 if test "x$RANLIB" = x
; then
4982 if test -n "$ac_tool_prefix"; then
4983 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4984 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4987 if test "${ac_cv_prog_RANLIB+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 if test -n "$RANLIB"; then
4991 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4997 test -z "$as_dir" && as_dir
=.
4998 for ac_exec_ext
in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 RANLIB
=$ac_cv_prog_RANLIB
5011 if test -n "$RANLIB"; then
5012 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5013 echo "${ECHO_T}$RANLIB" >&6; }
5015 { echo "$as_me:$LINENO: result: no" >&5
5016 echo "${ECHO_T}no" >&6; }
5021 if test -z "$ac_cv_prog_RANLIB"; then
5022 ac_ct_RANLIB
=$RANLIB
5023 # Extract the first word of "ranlib", so it can be a program name with args.
5024 set dummy ranlib
; ac_word
=$2
5025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 if test -n "$ac_ct_RANLIB"; then
5031 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir
=.
5038 for ac_exec_ext
in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5051 if test -n "$ac_ct_RANLIB"; then
5052 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5053 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5055 { echo "$as_me:$LINENO: result: no" >&5
5056 echo "${ECHO_T}no" >&6; }
5059 if test "x$ac_ct_RANLIB" = x
; then
5062 case $cross_compiling:$ac_tool_warned in
5064 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5065 whose name does not start with the host triplet. If you think this
5066 configuration is useful to you, please write to autoconf@gnu.org." >&5
5067 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5068 whose name does not start with the host triplet. If you think this
5069 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5070 ac_tool_warned
=yes ;;
5072 RANLIB
=$ac_ct_RANLIB
5075 RANLIB
="$ac_cv_prog_RANLIB"
5079 # Extract the first word of "install-info", so it can be a program name with args.
5080 set dummy install-info
; ac_word
=$2
5081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5083 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5084 echo $ECHO_N "(cached) $ECHO_C" >&6
5086 case $INSTALL_INFO in
5088 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5095 test -z "$as_dir" && as_dir
=.
5096 for ac_exec_ext
in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5109 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5110 if test -n "$INSTALL_INFO"; then
5111 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5112 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5114 { echo "$as_me:$LINENO: result: no" >&5
5115 echo "${ECHO_T}no" >&6; }
5119 # Extract the first word of "install-info", so it can be a program name with args.
5120 set dummy install-info
; ac_word
=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 case $INSTALL_INFO in
5128 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5132 for as_dir
in /usr
/sbin
5135 test -z "$as_dir" && as_dir
=.
5136 for ac_exec_ext
in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5149 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5150 if test -n "$INSTALL_INFO"; then
5151 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5152 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5154 { echo "$as_me:$LINENO: result: no" >&5
5155 echo "${ECHO_T}no" >&6; }
5159 # Extract the first word of "install-info", so it can be a program name with args.
5160 set dummy install-info
; ac_word
=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 case $INSTALL_INFO in
5168 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir
=.
5176 for ac_exec_ext
in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5190 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5191 if test -n "$INSTALL_INFO"; then
5192 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5193 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5200 # Extract the first word of "gzip", so it can be a program name with args.
5201 set dummy
gzip; ac_word
=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5231 if test -n "$GZIP_PROG"; then
5232 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5233 echo "${ECHO_T}$GZIP_PROG" >&6; }
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5242 ## Need makeinfo >= 4.6 (?) to build the manuals.
5243 # Extract the first word of "makeinfo", so it can be a program name with args.
5244 set dummy makeinfo
; ac_word
=$2
5245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5247 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5252 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5259 test -z "$as_dir" && as_dir
=.
5260 for ac_exec_ext
in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5274 MAKEINFO
=$ac_cv_path_MAKEINFO
5275 if test -n "$MAKEINFO"; then
5276 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5277 echo "${ECHO_T}$MAKEINFO" >&6; }
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5284 if test "$MAKEINFO" != "no" && \
5285 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
5289 ## Makeinfo is unusual. For a released Emacs, the manuals are
5290 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5291 ## therefore in the category of "special tools" not normally required, which
5292 ## configure does not have to check for (eg autoconf itself).
5293 ## In a CVS checkout on the other hand, the manuals are not included.
5294 ## So makeinfo is a requirement to build from CVS, and configure
5295 ## should test for it as it does for any other build requirement.
5296 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5297 ## with pre-built manuals, from a CVS checkout.
5298 if test "$MAKEINFO" = "no"; then
5299 if test "x${with_makeinfo}" = "xno"; then
5301 elif ! test -e $srcdir/info
/emacs
; then
5302 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5303 source tree does not seem to have pre-built manuals in the \`info' directory.
5304 Either install a suitable version of makeinfo, or re-run configure
5305 with the \`--without-makeinfo' option to build without the manuals. " >&5
5306 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5307 source tree does not seem to have pre-built manuals in the \`info' directory.
5308 Either install a suitable version of makeinfo, or re-run configure
5309 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5310 { (exit 1); exit 1; }; }
5315 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5317 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5320 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5322 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5326 late_LDFLAGS
=$LDFLAGS
5327 if test "$GCC" = yes; then
5328 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5330 LDFLAGS
="$LDFLAGS -znocombreloc"
5333 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5334 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5335 cat >conftest.
$ac_ext <<_ACEOF
5338 rm -f conftest.
$ac_objext conftest
$ac_exeext
5339 if { (ac_try
="$ac_link"
5341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5342 *) ac_try_echo=$ac_try;;
5344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5345 (eval "$ac_link") 2>conftest.er1
5347 grep -v '^ *+' conftest.er1 >conftest.err
5349 cat conftest.err >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && {
5352 test -z "$ac_c_werror_flag" ||
5353 test ! -s conftest.err
5354 } && test -s conftest$ac_exeext &&
5355 $as_test_x conftest$ac_exeext; then
5356 { echo "$as_me:$LINENO: result: yes" >&5
5357 echo "${ECHO_T}yes" >&6; }
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5362 LDFLAGS=$late_LDFLAGS
5363 { echo "$as_me:$LINENO: result: no" >&5
5364 echo "${ECHO_T}no" >&6; }
5367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5368 conftest$ac_exeext conftest.$ac_ext
5370 #### Extract some information from the operating system and machine files.
5372 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5373 - which libraries the lib-src programs will want, and
5374 - whether the GNU malloc routines are usable..." >&5
5375 echo "$as_me: checking the machine- and system-dependent files to find out
5376 - which libraries the lib-src programs will want, and
5377 - whether the GNU malloc routines are usable..." >&6;}
5379 ### First figure out CFLAGS (which we use for running the compiler here)
5380 ### and REAL_CFLAGS (which we use for real compilation).
5381 ### The two are the same except on a few systems, where they are made
5382 ### different to work around various lossages. For example,
5383 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5384 ### as implying static linking.
5386 ### If the CFLAGS env var is specified, we use that value
5387 ### instead of the default.
5389 ### It's not important that this name contain the PID; you can't run
5390 ### two configures in the same directory and have anything work
5392 tempcname="conftest.c"
5395 #include "'${srcdir}'/src/'${opsysfile}'"
5396 #include "'${srcdir}'/src/'${machfile}'"
5397 #ifndef LIBS_MACHINE
5398 #define LIBS_MACHINE
5403 #ifndef C_SWITCH_SYSTEM
5404 #define C_SWITCH_SYSTEM
5406 #ifndef C_SWITCH_MACHINE
5407 #define C_SWITCH_MACHINE
5409 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5410 configure___ c_switch_system=C_SWITCH_SYSTEM
5411 configure___ c_switch_machine=C_SWITCH_MACHINE
5414 #define LIB_X11_LIB -lX11
5417 #ifndef LIBX11_SYSTEM
5418 #define LIBX11_SYSTEM
5420 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5423 configure___ unexec=UNEXEC
5425 configure___ unexec=unexec.o
5428 #ifdef SYSTEM_MALLOC
5429 configure___ system_malloc=yes
5431 configure___ system_malloc=no
5434 #ifdef USE_MMAP_FOR_BUFFERS
5435 configure___ use_mmap_for_buffers=yes
5437 configure___ use_mmap_for_buffers=no
5440 #ifndef C_DEBUG_SWITCH
5441 #define C_DEBUG_SWITCH -g
5444 #ifndef C_OPTIMIZE_SWITCH
5446 #define C_OPTIMIZE_SWITCH -O2
5448 #define C_OPTIMIZE_SWITCH -O
5452 #ifndef C_WARNINGS_SWITCH
5453 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5456 #ifndef LD_SWITCH_MACHINE
5457 #define LD_SWITCH_MACHINE
5460 #ifndef LD_SWITCH_SYSTEM
5461 #define LD_SWITCH_SYSTEM
5464 #ifndef LD_SWITCH_X_SITE_AUX
5465 #define LD_SWITCH_X_SITE_AUX
5468 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5469 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5471 #ifdef THIS_IS_CONFIGURE
5473 /* Get the CFLAGS for tests in configure. */
5475 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5477 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5480 #else /* not THIS_IS_CONFIGURE */
5482 /* Get the CFLAGS for real compilation. */
5484 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5486 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5489 #endif /* not THIS_IS_CONFIGURE */
5492 # The value of CPP is a quoted variable reference, so we need to do this
5493 # to get its actual value...
5494 CPP=`eval "echo $CPP"`
5495 eval `${CPP} -Isrc ${tempcname} \
5496 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5497 if test "x$SPECIFIED_CFLAGS" = x; then
5498 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5499 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5501 REAL_CFLAGS="$CFLAGS"
5505 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5507 ### Make sure subsequent tests use flags consistent with the build flags.
5509 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5510 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5512 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5517 # Check whether --enable-largefile was given.
5518 if test "${enable_largefile+set}" = set; then
5519 enableval=$enable_largefile;
5522 if test "$enable_largefile" != no; then
5524 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5525 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5526 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5529 ac_cv_sys_largefile_CC=no
5530 if test "$GCC" != yes; then
5533 # IRIX 6.2 and later do not support large files by default,
5534 # so use the C compiler's -n32 option if that helps.
5535 cat >conftest.$ac_ext <<_ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541 #include <sys/types.h>
5542 /* Check that off_t can represent 2**63 - 1 correctly.
5543 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5544 since some C++ compilers masquerading as C compilers
5545 incorrectly reject 9223372036854775807. */
5546 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5548 && LARGE_OFF_T % 2147483647 == 1)
5558 rm -f conftest.$ac_objext
5559 if { (ac_try="$ac_compile"
5561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5562 *) ac_try_echo
=$ac_try;;
5564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5565 (eval "$ac_compile") 2>conftest.er1
5567 grep -v '^ *+' conftest.er1
>conftest.err
5569 cat conftest.err
>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } && {
5572 test -z "$ac_c_werror_flag" ||
5573 test ! -s conftest.err
5574 } && test -s conftest.
$ac_objext; then
5577 echo "$as_me: failed program was:" >&5
5578 sed 's/^/| /' conftest.
$ac_ext >&5
5583 rm -f core conftest.err conftest.
$ac_objext
5585 rm -f conftest.
$ac_objext
5586 if { (ac_try
="$ac_compile"
5588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_compile") 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } && {
5599 test -z "$ac_c_werror_flag" ||
5600 test ! -s conftest.err
5601 } && test -s conftest.$ac_objext; then
5602 ac_cv_sys_largefile_CC=' -n32'; break
5604 echo "$as_me: failed program was:" >&5
5605 sed 's/^/| /' conftest.$ac_ext >&5
5610 rm -f core conftest.err conftest.$ac_objext
5614 rm -f conftest.$ac_ext
5617 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5618 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5619 if test "$ac_cv_sys_largefile_CC" != no; then
5620 CC=$CC$ac_cv_sys_largefile_CC
5623 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5624 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5625 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 cat >conftest.$ac_ext <<_ACEOF
5632 cat confdefs.h >>conftest.$ac_ext
5633 cat >>conftest.$ac_ext <<_ACEOF
5634 /* end confdefs.h. */
5635 #include <sys/types.h>
5636 /* Check that off_t can represent 2**63 - 1 correctly.
5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5638 since some C++ compilers masquerading as C compilers
5639 incorrectly reject 9223372036854775807. */
5640 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5641 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5642 && LARGE_OFF_T % 2147483647 == 1)
5652 rm -f conftest.$ac_objext
5653 if { (ac_try="$ac_compile"
5655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5656 *) ac_try_echo
=$ac_try;;
5658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5659 (eval "$ac_compile") 2>conftest.er1
5661 grep -v '^ *+' conftest.er1
>conftest.err
5663 cat conftest.err
>&5
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); } && {
5666 test -z "$ac_c_werror_flag" ||
5667 test ! -s conftest.err
5668 } && test -s conftest.
$ac_objext; then
5669 ac_cv_sys_file_offset_bits
=no
; break
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.
$ac_ext >&5
5677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5678 cat >conftest.
$ac_ext <<_ACEOF
5681 cat confdefs.h
>>conftest.
$ac_ext
5682 cat >>conftest.
$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5684 #define _FILE_OFFSET_BITS 64
5685 #include <sys/types.h>
5686 /* Check that off_t can represent 2**63 - 1 correctly.
5687 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5688 since some C++ compilers masquerading as C compilers
5689 incorrectly reject 9223372036854775807. */
5690 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5691 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5692 && LARGE_OFF_T % 2147483647 == 1)
5702 rm -f conftest.
$ac_objext
5703 if { (ac_try
="$ac_compile"
5705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5711 grep -v '^ *+' conftest.er1 >conftest.err
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 ac_cv_sys_file_offset_bits=64; break
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5728 ac_cv_sys_file_offset_bits=unknown
5732 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5733 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5734 case $ac_cv_sys_file_offset_bits in #(
5737 cat >>confdefs.h <<_ACEOF
5738 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5743 if test $ac_cv_sys_file_offset_bits = unknown; then
5744 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5745 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5746 if test "${ac_cv_sys_large_files+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 #include <sys/types.h>
5757 /* Check that off_t can represent 2**63 - 1 correctly.
5758 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5759 since some C++ compilers masquerading as C compilers
5760 incorrectly reject 9223372036854775807. */
5761 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5762 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5763 && LARGE_OFF_T % 2147483647 == 1)
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5777 *) ac_try_echo
=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1
>conftest.err
5784 cat conftest.err
>&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.
$ac_objext; then
5790 ac_cv_sys_large_files
=no
; break
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.
$ac_ext >&5
5798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 cat >conftest.
$ac_ext <<_ACEOF
5802 cat confdefs.h
>>conftest.
$ac_ext
5803 cat >>conftest.
$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #define _LARGE_FILES 1
5806 #include <sys/types.h>
5807 /* Check that off_t can represent 2**63 - 1 correctly.
5808 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5809 since some C++ compilers masquerading as C compilers
5810 incorrectly reject 9223372036854775807. */
5811 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5812 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5813 && LARGE_OFF_T % 2147483647 == 1)
5823 rm -f conftest.
$ac_objext
5824 if { (ac_try
="$ac_compile"
5826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_compile") 2>conftest.er1
5832 grep -v '^ *+' conftest.er1 >conftest.err
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } && {
5837 test -z "$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 } && test -s conftest.$ac_objext; then
5840 ac_cv_sys_large_files=1; break
5842 echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 ac_cv_sys_large_files=unknown
5853 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5854 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5855 case $ac_cv_sys_large_files in #(
5858 cat >>confdefs.h <<_ACEOF
5859 #define _LARGE_FILES $ac_cv_sys_large_files
5869 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5870 ### be located in either /usr/lib64 or /usr/lib.
5871 case "${canonical}" in
5872 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5873 if test -d /usr/lib64; then
5875 cat >>confdefs.h <<\_ACEOF
5876 #define HAVE_LIB64_DIR 1
5885 if test "${with_sound}" != "no"; then
5886 # Sound support for GNU/Linux and the free BSDs.
5890 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5892 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 ac_res=`eval echo '${'$as_ac_Header'}'`
5900 { echo "$as_me:$LINENO: result: $ac_res" >&5
5901 echo "${ECHO_T}$ac_res" >&6; }
5903 # Is the header compilable?
5904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5906 cat >conftest.$ac_ext <<_ACEOF
5909 cat confdefs.h >>conftest.$ac_ext
5910 cat >>conftest.$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 $ac_includes_default
5913 #include <$ac_header>
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5919 *) ac_try_echo
=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1
>conftest.err
5926 cat conftest.err
>&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && {
5929 test -z "$ac_c_werror_flag" ||
5930 test ! -s conftest.err
5931 } && test -s conftest.
$ac_objext; then
5932 ac_header_compiler
=yes
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.
$ac_ext >&5
5937 ac_header_compiler
=no
5940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5942 echo "${ECHO_T}$ac_header_compiler" >&6; }
5944 # Is the header present?
5945 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5946 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5947 cat >conftest.
$ac_ext <<_ACEOF
5950 cat confdefs.h
>>conftest.
$ac_ext
5951 cat >>conftest.
$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 #include <$ac_header>
5955 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5957 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1 >conftest.err
5965 cat conftest.err >&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } >/dev/null && {
5968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5971 ac_header_preproc=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_header_preproc=no
5979 rm -f conftest.err conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5981 echo "${ECHO_T}$ac_header_preproc" >&6; }
5983 # So? What about this header?
5984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5990 ac_header_preproc=yes
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6008 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 eval "$as_ac_Header=\$ac_header_preproc"
6015 ac_res=`eval echo '${'$as_ac_Header'}'`
6016 { echo "$as_me:$LINENO: result: $ac_res" >&5
6017 echo "${ECHO_T}$ac_res" >&6; }
6020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6021 cat >>confdefs.h <<_ACEOF
6022 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6029 # Emulation library used on NetBSD.
6030 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6031 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6032 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6033 echo $ECHO_N "(cached) $ECHO_C" >&6
6035 ac_check_lib_save_LIBS=$LIBS
6036 LIBS="-lossaudio $LIBS"
6037 cat >conftest.$ac_ext <<_ACEOF
6040 cat confdefs.h >>conftest.$ac_ext
6041 cat >>conftest.$ac_ext <<_ACEOF
6042 /* end confdefs.h. */
6044 /* Override any GCC internal prototype to avoid an error.
6045 Use char because int might match the return type of a GCC
6046 builtin and then its argument prototype would still apply. */
6054 return _oss_ioctl ();
6059 rm -f conftest.$ac_objext conftest$ac_exeext
6060 if { (ac_try="$ac_link"
6062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6063 *) ac_try_echo
=$ac_try;;
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_link") 2>conftest.er1
6068 grep -v '^ *+' conftest.er1
>conftest.err
6070 cat conftest.err
>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest
$ac_exeext &&
6076 $as_test_x conftest
$ac_exeext; then
6077 ac_cv_lib_ossaudio__oss_ioctl
=yes
6079 echo "$as_me: failed program was:" >&5
6080 sed 's/^/| /' conftest.
$ac_ext >&5
6082 ac_cv_lib_ossaudio__oss_ioctl
=no
6085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6086 conftest
$ac_exeext conftest.
$ac_ext
6087 LIBS
=$ac_check_lib_save_LIBS
6089 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6090 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6091 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6100 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6104 # Extract the first word of "pkg-config", so it can be a program name with args.
6105 set dummy pkg-config
; ac_word
=$2
6106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6108 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6109 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6116 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6120 test -z "$as_dir" && as_dir
=.
6121 for ac_exec_ext
in '' $ac_executable_extensions; do
6122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6131 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6135 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6136 if test -n "$PKG_CONFIG"; then
6137 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6138 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6140 { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6146 if test "$PKG_CONFIG" = "no" ; then
6149 PKG_CONFIG_MIN_VERSION
=0.9.0
6150 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6151 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6152 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6154 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6155 { echo "$as_me:$LINENO: result: yes" >&5
6156 echo "${ECHO_T}yes" >&6; }
6159 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6160 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6161 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6162 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6163 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6165 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6166 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6167 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6168 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6169 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6171 { echo "$as_me:$LINENO: result: no" >&5
6172 echo "${ECHO_T}no" >&6; }
6175 ## If we have a custom action on failure, don't print errors, but
6176 ## do set a variable so people can do so.
6177 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6184 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6185 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6189 if test $succeeded = yes; then
6195 if test $HAVE_ALSA = yes; then
6196 SAVE_CFLAGS
="$CFLAGS"
6197 SAVE_LDFLAGS
="$LDFLAGS"
6198 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6199 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6200 cat >conftest.
$ac_ext <<_ACEOF
6203 cat confdefs.h
>>conftest.
$ac_ext
6204 cat >>conftest.
$ac_ext <<_ACEOF
6205 /* end confdefs.h. */
6206 #include <asoundlib.h>
6210 snd_lib_error_set_handler (0);
6215 rm -f conftest.
$ac_objext
6216 if { (ac_try
="$ac_compile"
6218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_compile") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1 >conftest.err
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest.$ac_objext; then
6232 emacs_alsa_normal=yes
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 emacs_alsa_normal=no
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 if test "$emacs_alsa_normal" != yes; then
6242 cat >conftest.$ac_ext <<_ACEOF
6245 cat confdefs.h >>conftest.$ac_ext
6246 cat >>conftest.$ac_ext <<_ACEOF
6247 /* end confdefs.h. */
6248 #include <alsa/asoundlib.h>
6252 snd_lib_error_set_handler (0);
6257 rm -f conftest.$ac_objext
6258 if { (ac_try="$ac_compile"
6260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6261 *) ac_try_echo
=$ac_try;;
6263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264 (eval "$ac_compile") 2>conftest.er1
6266 grep -v '^ *+' conftest.er1
>conftest.err
6268 cat conftest.err
>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } && {
6271 test -z "$ac_c_werror_flag" ||
6272 test ! -s conftest.err
6273 } && test -s conftest.
$ac_objext; then
6274 emacs_alsa_subdir
=yes
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.
$ac_ext >&5
6279 emacs_alsa_subdir
=no
6282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6283 if test "$emacs_alsa_subdir" != yes; then
6284 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6285 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6286 { (exit 1); exit 1; }; }
6288 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6291 CFLAGS
="$SAVE_CFLAGS"
6292 LDFLAGS
="$SAVE_LDFLAGS"
6293 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6294 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6296 cat >>confdefs.h
<<\_ACEOF
6329 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6330 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6331 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6332 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6335 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6336 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6339 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6340 echo $ECHO_N "(cached) $ECHO_C" >&6
6342 ac_res
=`eval echo '${'$as_ac_Header'}'`
6343 { echo "$as_me:$LINENO: result: $ac_res" >&5
6344 echo "${ECHO_T}$ac_res" >&6; }
6346 # Is the header compilable?
6347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6349 cat >conftest.
$ac_ext <<_ACEOF
6352 cat confdefs.h
>>conftest.
$ac_ext
6353 cat >>conftest.
$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 $ac_includes_default
6356 #include <$ac_header>
6358 rm -f conftest.
$ac_objext
6359 if { (ac_try
="$ac_compile"
6361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6375 ac_header_compiler=yes
6377 echo "$as_me: failed program was:" >&5
6378 sed 's/^/| /' conftest.$ac_ext >&5
6380 ac_header_compiler=no
6383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6385 echo "${ECHO_T}$ac_header_compiler" >&6; }
6387 # Is the header present?
6388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 #include <$ac_header>
6398 if { (ac_try="$ac_cpp conftest.$ac_ext"
6400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6401 *) ac_try_echo
=$ac_try;;
6403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6406 grep -v '^ *+' conftest.er1
>conftest.err
6408 cat conftest.err
>&5
6409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410 (exit $ac_status); } >/dev
/null
&& {
6411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6412 test ! -s conftest.err
6414 ac_header_preproc
=yes
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.
$ac_ext >&5
6419 ac_header_preproc
=no
6422 rm -f conftest.err conftest.
$ac_ext
6423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6424 echo "${ECHO_T}$ac_header_preproc" >&6; }
6426 # So? What about this header?
6427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6433 ac_header_preproc
=yes
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6453 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6456 eval "$as_ac_Header=\$ac_header_preproc"
6458 ac_res
=`eval echo '${'$as_ac_Header'}'`
6459 { echo "$as_me:$LINENO: result: $ac_res" >&5
6460 echo "${ECHO_T}$ac_res" >&6; }
6463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6464 cat >>confdefs.h
<<_ACEOF
6465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6474 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6475 cat >conftest.
$ac_ext <<_ACEOF
6478 cat confdefs.h
>>conftest.
$ac_ext
6479 cat >>conftest.
$ac_ext <<_ACEOF
6480 /* end confdefs.h. */
6481 #include <sys/personality.h>
6485 personality (PER_LINUX32)
6490 rm -f conftest.
$ac_objext
6491 if { (ac_try
="$ac_compile"
6493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6497 (eval "$ac_compile") 2>conftest.er1
6499 grep -v '^ *+' conftest.er1 >conftest.err
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && {
6504 test -z "$ac_c_werror_flag" ||
6505 test ! -s conftest.err
6506 } && test -s conftest.$ac_objext; then
6507 emacs_cv_personality_linux32=yes
6509 echo "$as_me: failed program was:" >&5
6510 sed 's/^/| /' conftest.$ac_ext >&5
6512 emacs_cv_personality_linux32=no
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6517 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6519 if test $emacs_cv_personality_linux32 = yes; then
6521 cat >>confdefs.h <<\_ACEOF
6522 #define HAVE_PERSONALITY_LINUX32 1
6528 for ac_header in term.h
6530 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <$ac_header>
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6547 *) ac_try_echo
=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev
/null
&& {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6560 eval "$as_ac_Header=yes"
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 eval "$as_ac_Header=no"
6568 rm -f conftest.err conftest.
$ac_ext
6570 ac_res
=`eval echo '${'$as_ac_Header'}'`
6571 { echo "$as_me:$LINENO: result: $ac_res" >&5
6572 echo "${ECHO_T}$ac_res" >&6; }
6573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6574 cat >>confdefs.h
<<_ACEOF
6575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6582 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6583 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6584 if test "${ac_cv_header_stdc+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 cat >conftest.
$ac_ext <<_ACEOF
6590 cat confdefs.h
>>conftest.
$ac_ext
6591 cat >>conftest.
$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6606 rm -f conftest.
$ac_objext
6607 if { (ac_try
="$ac_compile"
6609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_objext; then
6623 ac_cv_header_stdc=yes
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_cv_header_stdc=no
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 if test $ac_cv_header_stdc = yes; then
6634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6635 cat >conftest.$ac_ext <<_ACEOF
6638 cat confdefs.h >>conftest.$ac_ext
6639 cat >>conftest.$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6645 $EGREP "memchr" >/dev/null 2>&1; then
6648 ac_cv_header_stdc=no
6654 if test $ac_cv_header_stdc = yes; then
6655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6656 cat >conftest.$ac_ext <<_ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h. */
6665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6666 $EGREP "free" >/dev/null 2>&1; then
6669 ac_cv_header_stdc=no
6675 if test $ac_cv_header_stdc = yes; then
6676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6677 if test "$cross_compiling" = yes; then
6680 cat >conftest.$ac_ext <<_ACEOF
6683 cat confdefs.h >>conftest.$ac_ext
6684 cat >>conftest.$ac_ext <<_ACEOF
6685 /* end confdefs.h. */
6688 #if ((' ' & 0x0FF) == 0x020)
6689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6692 # define ISLOWER(c) \
6693 (('a' <= (c) && (c) <= 'i') \
6694 || ('j' <= (c) && (c) <= 'r') \
6695 || ('s' <= (c) && (c) <= 'z'))
6696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6704 for (i = 0; i < 256; i++)
6705 if (XOR (islower (i), ISLOWER (i))
6706 || toupper (i) != TOUPPER (i))
6711 rm -f conftest$ac_exeext
6712 if { (ac_try="$ac_link"
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_link") 2>&5
6720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6721 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6722 { (case "(($ac_try" in
6723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6724 *) ac_try_echo=$ac_try;;
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727 (eval "$ac_try") 2>&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; }; then
6733 echo "$as_me: program exited with status $ac_status" >&5
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 ac_cv_header_stdc=no
6740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6746 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6747 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6748 if test $ac_cv_header_stdc = yes; then
6750 cat >>confdefs.h <<\_ACEOF
6751 #define STDC_HEADERS 1
6756 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6757 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6758 if test "${ac_cv_header_time+set}" = set; then
6759 echo $ECHO_N "(cached) $ECHO_C" >&6
6761 cat >conftest.$ac_ext <<_ACEOF
6764 cat confdefs.h >>conftest.$ac_ext
6765 cat >>conftest.$ac_ext <<_ACEOF
6766 /* end confdefs.h. */
6767 #include <sys/types.h>
6768 #include <sys/time.h>
6774 if ((struct tm *) 0)
6780 rm -f conftest.$ac_objext
6781 if { (ac_try="$ac_compile"
6783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6784 *) ac_try_echo
=$ac_try;;
6786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1
>conftest.err
6791 cat conftest.err
>&5
6792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.
$ac_objext; then
6797 ac_cv_header_time
=yes
6799 echo "$as_me: failed program was:" >&5
6800 sed 's/^/| /' conftest.
$ac_ext >&5
6802 ac_cv_header_time
=no
6805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6807 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6808 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6809 if test $ac_cv_header_time = yes; then
6811 cat >>confdefs.h
<<\_ACEOF
6812 #define TIME_WITH_SYS_TIME 1
6817 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6818 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6819 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 cat >conftest.
$ac_ext <<_ACEOF
6825 cat confdefs.h
>>conftest.
$ac_ext
6826 cat >>conftest.
$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6828 $ac_includes_default
6840 rm -f conftest.
$ac_objext
6841 if { (ac_try
="$ac_compile"
6843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6844 *) ac_try_echo=$ac_try;;
6846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6847 (eval "$ac_compile") 2>conftest.er1
6849 grep -v '^ *+' conftest.er1 >conftest.err
6851 cat conftest.err >&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } && {
6854 test -z "$ac_c_werror_flag" ||
6855 test ! -s conftest.err
6856 } && test -s conftest.$ac_objext; then
6857 ac_cv_have_decl_sys_siglist=yes
6859 echo "$as_me: failed program was:" >&5
6860 sed 's/^/| /' conftest.$ac_ext >&5
6862 ac_cv_have_decl_sys_siglist=no
6865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6868 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6869 if test $ac_cv_have_decl_sys_siglist = yes; then
6871 cat >>confdefs.h <<_ACEOF
6872 #define HAVE_DECL_SYS_SIGLIST 1
6877 cat >>confdefs.h <<_ACEOF
6878 #define HAVE_DECL_SYS_SIGLIST 0
6885 if test $ac_cv_have_decl_sys_siglist != yes; then
6886 # For Tru64, at least:
6887 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6888 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6889 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6898 $ac_includes_default
6902 #ifndef __sys_siglist
6903 (void) __sys_siglist;
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6914 *) ac_try_echo
=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6919 grep -v '^ *+' conftest.er1
>conftest.err
6921 cat conftest.err
>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.
$ac_objext; then
6927 ac_cv_have_decl___sys_siglist
=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6932 ac_cv_have_decl___sys_siglist
=no
6935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6938 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6939 if test $ac_cv_have_decl___sys_siglist = yes; then
6941 cat >>confdefs.h
<<_ACEOF
6942 #define HAVE_DECL___SYS_SIGLIST 1
6947 cat >>confdefs.h
<<_ACEOF
6948 #define HAVE_DECL___SYS_SIGLIST 0
6955 if test $ac_cv_have_decl___sys_siglist = yes; then
6957 cat >>confdefs.h
<<\_ACEOF
6958 #define sys_siglist __sys_siglist
6963 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6964 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6965 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.
$ac_ext <<_ACEOF
6971 cat confdefs.h
>>conftest.
$ac_ext
6972 cat >>conftest.
$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <sys/types.h>
6975 #include <sys/wait.h>
6977 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6980 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6988 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6993 rm -f conftest.
$ac_objext
6994 if { (ac_try
="$ac_compile"
6996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_compile") 2>conftest.er1
7002 grep -v '^ *+' conftest.er1 >conftest.err
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest.$ac_objext; then
7010 ac_cv_header_sys_wait_h=yes
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7015 ac_cv_header_sys_wait_h=no
7018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7021 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7022 if test $ac_cv_header_sys_wait_h = yes; then
7024 cat >>confdefs.h <<\_ACEOF
7025 #define HAVE_SYS_WAIT_H 1
7031 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7032 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7033 if test "${emacs_cv_struct_utimbuf+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 #ifdef TIME_WITH_SYS_TIME
7043 #include <sys/time.h>
7046 #ifdef HAVE_SYS_TIME_H
7047 #include <sys/time.h>
7058 static struct utimbuf x; x.actime = x.modtime;
7063 rm -f conftest.$ac_objext
7064 if { (ac_try="$ac_compile"
7066 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7067 *) ac_try_echo
=$ac_try;;
7069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7070 (eval "$ac_compile") 2>conftest.er1
7072 grep -v '^ *+' conftest.er1
>conftest.err
7074 cat conftest.err
>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } && {
7077 test -z "$ac_c_werror_flag" ||
7078 test ! -s conftest.err
7079 } && test -s conftest.
$ac_objext; then
7080 emacs_cv_struct_utimbuf
=yes
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.
$ac_ext >&5
7085 emacs_cv_struct_utimbuf
=no
7088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7090 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7091 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7092 if test $emacs_cv_struct_utimbuf = yes; then
7094 cat >>confdefs.h
<<\_ACEOF
7095 #define HAVE_STRUCT_UTIMBUF 1
7100 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7101 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7102 if test "${ac_cv_type_signal+set}" = set; then
7103 echo $ECHO_N "(cached) $ECHO_C" >&6
7105 cat >conftest.
$ac_ext <<_ACEOF
7108 cat confdefs.h
>>conftest.
$ac_ext
7109 cat >>conftest.
$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 #include <sys/types.h>
7117 return *(signal (0, 0)) (0) == 1;
7122 rm -f conftest.
$ac_objext
7123 if { (ac_try
="$ac_compile"
7125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7126 *) ac_try_echo=$ac_try;;
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129 (eval "$ac_compile") 2>conftest.er1
7131 grep -v '^ *+' conftest.er1 >conftest.err
7133 cat conftest.err >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && {
7136 test -z "$ac_c_werror_flag" ||
7137 test ! -s conftest.err
7138 } && test -s conftest.$ac_objext; then
7139 ac_cv_type_signal=int
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7144 ac_cv_type_signal=void
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7150 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7152 cat >>confdefs.h <<_ACEOF
7153 #define RETSIGTYPE $ac_cv_type_signal
7158 { echo "$as_me:$LINENO: checking for speed_t" >&5
7159 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7160 if test "${emacs_cv_speed_t+set}" = set; then
7161 echo $ECHO_N "(cached) $ECHO_C" >&6
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 #include <termios.h>
7178 rm -f conftest.$ac_objext
7179 if { (ac_try="$ac_compile"
7181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7182 *) ac_try_echo
=$ac_try;;
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185 (eval "$ac_compile") 2>conftest.er1
7187 grep -v '^ *+' conftest.er1
>conftest.err
7189 cat conftest.err
>&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } && {
7192 test -z "$ac_c_werror_flag" ||
7193 test ! -s conftest.err
7194 } && test -s conftest.
$ac_objext; then
7195 emacs_cv_speed_t
=yes
7197 echo "$as_me: failed program was:" >&5
7198 sed 's/^/| /' conftest.
$ac_ext >&5
7203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7205 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7206 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7207 if test $emacs_cv_speed_t = yes; then
7209 cat >>confdefs.h
<<\_ACEOF
7210 #define HAVE_SPEED_T 1
7215 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7216 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7217 if test "${emacs_cv_struct_timeval+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.
$ac_ext <<_ACEOF
7223 cat confdefs.h
>>conftest.
$ac_ext
7224 cat >>conftest.
$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #ifdef TIME_WITH_SYS_TIME
7227 #include <sys/time.h>
7230 #ifdef HAVE_SYS_TIME_H
7231 #include <sys/time.h>
7239 static struct timeval x; x.tv_sec = x.tv_usec;
7244 rm -f conftest.
$ac_objext
7245 if { (ac_try
="$ac_compile"
7247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7248 *) ac_try_echo=$ac_try;;
7250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7251 (eval "$ac_compile") 2>conftest.er1
7253 grep -v '^ *+' conftest.er1 >conftest.err
7255 cat conftest.err >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); } && {
7258 test -z "$ac_c_werror_flag" ||
7259 test ! -s conftest.err
7260 } && test -s conftest.$ac_objext; then
7261 emacs_cv_struct_timeval=yes
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7266 emacs_cv_struct_timeval=no
7269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7271 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7272 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7273 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7274 if test $emacs_cv_struct_timeval = yes; then
7276 cat >>confdefs.h <<\_ACEOF
7277 #define HAVE_TIMEVAL 1
7282 { echo "$as_me:$LINENO: checking for struct exception" >&5
7283 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7284 if test "${emacs_cv_struct_exception+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 cat >conftest.$ac_ext <<_ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7297 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7302 rm -f conftest.$ac_objext
7303 if { (ac_try="$ac_compile"
7305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7306 *) ac_try_echo
=$ac_try;;
7308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1
>conftest.err
7313 cat conftest.err
>&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.
$ac_objext; then
7319 emacs_cv_struct_exception
=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.
$ac_ext >&5
7324 emacs_cv_struct_exception
=no
7327 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7329 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7330 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7331 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7332 if test $emacs_cv_struct_exception != yes; then
7334 cat >>confdefs.h
<<\_ACEOF
7335 #define NO_MATHERR 1
7341 for ac_header
in sys
/socket.h
7343 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7347 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 ac_res
=`eval echo '${'$as_ac_Header'}'`
7351 { echo "$as_me:$LINENO: result: $ac_res" >&5
7352 echo "${ECHO_T}$ac_res" >&6; }
7354 # Is the header compilable?
7355 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7357 cat >conftest.
$ac_ext <<_ACEOF
7360 cat confdefs.h
>>conftest.
$ac_ext
7361 cat >>conftest.
$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7364 #include <$ac_header>
7366 rm -f conftest.
$ac_objext
7367 if { (ac_try
="$ac_compile"
7369 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1 >conftest.err
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 ac_header_compiler=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7388 ac_header_compiler=no
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7393 echo "${ECHO_T}$ac_header_compiler" >&6; }
7395 # Is the header present?
7396 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 #include <$ac_header>
7406 if { (ac_try="$ac_cpp conftest.$ac_ext"
7408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7409 *) ac_try_echo
=$ac_try;;
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7414 grep -v '^ *+' conftest.er1
>conftest.err
7416 cat conftest.err
>&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } >/dev
/null
&& {
7419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7422 ac_header_preproc
=yes
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.
$ac_ext >&5
7427 ac_header_preproc
=no
7430 rm -f conftest.err conftest.
$ac_ext
7431 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7432 echo "${ECHO_T}$ac_header_preproc" >&6; }
7434 # So? What about this header?
7435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7437 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7441 ac_header_preproc
=yes
7444 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7445 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7446 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7447 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7448 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7449 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7450 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7451 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7455 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7459 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7460 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7461 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7464 eval "$as_ac_Header=\$ac_header_preproc"
7466 ac_res
=`eval echo '${'$as_ac_Header'}'`
7467 { echo "$as_me:$LINENO: result: $ac_res" >&5
7468 echo "${ECHO_T}$ac_res" >&6; }
7471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7472 cat >>confdefs.h
<<_ACEOF
7473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7481 for ac_header
in net
/if.h
7483 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 cat >conftest.
$ac_ext <<_ACEOF
7492 cat confdefs.h
>>conftest.
$ac_ext
7493 cat >>conftest.
$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 $ac_includes_default
7496 #if HAVE_SYS_SOCKET_H
7497 #include <sys/socket.h>
7500 #include <$ac_header>
7502 rm -f conftest.
$ac_objext
7503 if { (ac_try
="$ac_compile"
7505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7506 *) ac_try_echo=$ac_try;;
7508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7509 (eval "$ac_compile") 2>conftest.er1
7511 grep -v '^ *+' conftest.er1 >conftest.err
7513 cat conftest.err >&5
7514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515 (exit $ac_status); } && {
7516 test -z "$ac_c_werror_flag" ||
7517 test ! -s conftest.err
7518 } && test -s conftest.$ac_objext; then
7519 eval "$as_ac_Header=yes"
7521 echo "$as_me: failed program was:" >&5
7522 sed 's/^/| /' conftest.$ac_ext >&5
7524 eval "$as_ac_Header=no"
7527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529 ac_res=`eval echo '${'$as_ac_Header'}'`
7530 { echo "$as_me:$LINENO: result: $ac_res" >&5
7531 echo "${ECHO_T}$ac_res" >&6; }
7532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7533 cat >>confdefs.h <<_ACEOF
7534 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7542 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7543 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7544 if test "${ac_cv_struct_tm+set}" = set; then
7545 echo $ECHO_N "(cached) $ECHO_C" >&6
7547 cat >conftest.$ac_ext <<_ACEOF
7550 cat confdefs.h >>conftest.$ac_ext
7551 cat >>conftest.$ac_ext <<_ACEOF
7552 /* end confdefs.h. */
7553 #include <sys/types.h>
7560 int *p = &tm.tm_sec;
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7570 *) ac_try_echo
=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1
>conftest.err
7577 cat conftest.err
>&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.
$ac_objext; then
7583 ac_cv_struct_tm
=time.h
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.
$ac_ext >&5
7588 ac_cv_struct_tm
=sys
/time.h
7591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7593 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7594 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7595 if test $ac_cv_struct_tm = sys
/time.h
; then
7597 cat >>confdefs.h
<<\_ACEOF
7598 #define TM_IN_SYS_TIME 1
7603 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7604 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7605 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7606 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 cat >conftest.
$ac_ext <<_ACEOF
7611 cat confdefs.h
>>conftest.
$ac_ext
7612 cat >>conftest.
$ac_ext <<_ACEOF
7613 /* end confdefs.h. */
7614 #include <sys/types.h>
7615 #include <$ac_cv_struct_tm>
7621 static struct tm ac_aggr;
7622 if (ac_aggr.tm_zone)
7628 rm -f conftest.
$ac_objext
7629 if { (ac_try
="$ac_compile"
7631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7632 *) ac_try_echo=$ac_try;;
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635 (eval "$ac_compile") 2>conftest.er1
7637 grep -v '^ *+' conftest.er1 >conftest.err
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } && {
7642 test -z "$ac_c_werror_flag" ||
7643 test ! -s conftest.err
7644 } && test -s conftest.$ac_objext; then
7645 ac_cv_member_struct_tm_tm_zone=yes
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 cat >conftest.$ac_ext <<_ACEOF
7653 cat confdefs.h >>conftest.$ac_ext
7654 cat >>conftest.$ac_ext <<_ACEOF
7655 /* end confdefs.h. */
7656 #include <sys/types.h>
7657 #include <$ac_cv_struct_tm>
7663 static struct tm ac_aggr;
7664 if (sizeof ac_aggr.tm_zone)
7670 rm -f conftest.$ac_objext
7671 if { (ac_try="$ac_compile"
7673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7674 *) ac_try_echo
=$ac_try;;
7676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7677 (eval "$ac_compile") 2>conftest.er1
7679 grep -v '^ *+' conftest.er1
>conftest.err
7681 cat conftest.err
>&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } && {
7684 test -z "$ac_c_werror_flag" ||
7685 test ! -s conftest.err
7686 } && test -s conftest.
$ac_objext; then
7687 ac_cv_member_struct_tm_tm_zone
=yes
7689 echo "$as_me: failed program was:" >&5
7690 sed 's/^/| /' conftest.
$ac_ext >&5
7692 ac_cv_member_struct_tm_tm_zone
=no
7695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7698 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7700 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7701 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7702 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7704 cat >>confdefs.h
<<_ACEOF
7705 #define HAVE_STRUCT_TM_TM_ZONE 1
7711 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7713 cat >>confdefs.h
<<\_ACEOF
7714 #define HAVE_TM_ZONE 1
7718 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7719 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7720 if test "${ac_cv_have_decl_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. */
7742 rm -f conftest.
$ac_objext
7743 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
7759 ac_cv_have_decl_tzname=yes
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7764 ac_cv_have_decl_tzname=no
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7770 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7771 if test $ac_cv_have_decl_tzname = yes; then
7773 cat >>confdefs.h <<_ACEOF
7774 #define HAVE_DECL_TZNAME 1
7779 cat >>confdefs.h <<_ACEOF
7780 #define HAVE_DECL_TZNAME 0
7787 { echo "$as_me:$LINENO: checking for tzname" >&5
7788 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7789 if test "${ac_cv_var_tzname+set}" = set; then
7790 echo $ECHO_N "(cached) $ECHO_C" >&6
7792 cat >conftest.$ac_ext <<_ACEOF
7795 cat confdefs.h >>conftest.$ac_ext
7796 cat >>conftest.$ac_ext <<_ACEOF
7797 /* end confdefs.h. */
7799 #if !HAVE_DECL_TZNAME
7800 extern char *tzname[];
7806 return tzname[0][0];
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (ac_try="$ac_link"
7814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7815 *) ac_try_echo
=$ac_try;;
7817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7818 (eval "$ac_link") 2>conftest.er1
7820 grep -v '^ *+' conftest.er1
>conftest.err
7822 cat conftest.err
>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } && {
7825 test -z "$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 } && test -s conftest
$ac_exeext &&
7828 $as_test_x conftest
$ac_exeext; then
7829 ac_cv_var_tzname
=yes
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.
$ac_ext >&5
7837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7838 conftest
$ac_exeext conftest.
$ac_ext
7840 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7841 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7842 if test $ac_cv_var_tzname = yes; then
7844 cat >>confdefs.h
<<\_ACEOF
7845 #define HAVE_TZNAME 1
7851 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7852 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7853 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.
$ac_ext <<_ACEOF
7859 cat confdefs.h
>>conftest.
$ac_ext
7860 cat >>conftest.
$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7867 static struct tm ac_aggr;
7868 if (ac_aggr.tm_gmtoff)
7874 rm -f conftest.
$ac_objext
7875 if { (ac_try
="$ac_compile"
7877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 ac_cv_member_struct_tm_tm_gmtoff=yes
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7907 static struct tm ac_aggr;
7908 if (sizeof ac_aggr.tm_gmtoff)
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_tm_tm_gmtoff
=yes
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.
$ac_ext >&5
7936 ac_cv_member_struct_tm_tm_gmtoff
=no
7939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7942 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7944 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7945 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7946 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7948 cat >>confdefs.h
<<\_ACEOF
7949 #define HAVE_TM_GMTOFF 1
7954 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7955 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7956 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7957 echo $ECHO_N "(cached) $ECHO_C" >&6
7959 cat >conftest.
$ac_ext <<_ACEOF
7962 cat confdefs.h
>>conftest.
$ac_ext
7963 cat >>conftest.
$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7965 $ac_includes_default
7966 #if HAVE_SYS_SOCKET_H
7967 #include <sys/socket.h>
7976 static struct ifreq ac_aggr;
7977 if (ac_aggr.ifr_flags)
7983 rm -f conftest.
$ac_objext
7984 if { (ac_try
="$ac_compile"
7986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8000 ac_cv_member_struct_ifreq_ifr_flags=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
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 (sizeof ac_aggr.ifr_flags)
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_flags
=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.
$ac_ext >&5
8051 ac_cv_member_struct_ifreq_ifr_flags
=no
8054 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8060 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8061 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8063 cat >>confdefs.h
<<_ACEOF
8064 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8069 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8070 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8071 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 cat >conftest.
$ac_ext <<_ACEOF
8077 cat confdefs.h
>>conftest.
$ac_ext
8078 cat >>conftest.
$ac_ext <<_ACEOF
8079 /* end confdefs.h. */
8080 $ac_includes_default
8081 #if HAVE_SYS_SOCKET_H
8082 #include <sys/socket.h>
8091 static struct ifreq ac_aggr;
8092 if (ac_aggr.ifr_hwaddr)
8098 rm -f conftest.
$ac_objext
8099 if { (ac_try
="$ac_compile"
8101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
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 (sizeof ac_aggr.ifr_hwaddr)
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_hwaddr
=yes
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.
$ac_ext >&5
8166 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8169 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8175 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8176 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8178 cat >>confdefs.h
<<_ACEOF
8179 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8184 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8185 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8186 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8187 echo $ECHO_N "(cached) $ECHO_C" >&6
8189 cat >conftest.
$ac_ext <<_ACEOF
8192 cat confdefs.h
>>conftest.
$ac_ext
8193 cat >>conftest.
$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 $ac_includes_default
8196 #if HAVE_SYS_SOCKET_H
8197 #include <sys/socket.h>
8206 static struct ifreq ac_aggr;
8207 if (ac_aggr.ifr_netmask)
8213 rm -f conftest.
$ac_objext
8214 if { (ac_try
="$ac_compile"
8216 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
8222 grep -v '^ *+' conftest.er1 >conftest.err
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } && {
8227 test -z "$ac_c_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
8230 ac_cv_member_struct_ifreq_ifr_netmask=yes
8232 echo "$as_me: failed program was:" >&5
8233 sed 's/^/| /' conftest.$ac_ext >&5
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 (sizeof ac_aggr.ifr_netmask)
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_netmask
=yes
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.
$ac_ext >&5
8281 ac_cv_member_struct_ifreq_ifr_netmask
=no
8284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8289 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8290 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8291 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8293 cat >>confdefs.h
<<_ACEOF
8294 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8299 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8300 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8301 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8304 cat >conftest.
$ac_ext <<_ACEOF
8307 cat confdefs.h
>>conftest.
$ac_ext
8308 cat >>conftest.
$ac_ext <<_ACEOF
8309 /* end confdefs.h. */
8310 $ac_includes_default
8311 #if HAVE_SYS_SOCKET_H
8312 #include <sys/socket.h>
8321 static struct ifreq ac_aggr;
8322 if (ac_aggr.ifr_broadaddr)
8328 rm -f conftest.
$ac_objext
8329 if { (ac_try
="$ac_compile"
8331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8332 *) ac_try_echo=$ac_try;;
8334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8335 (eval "$ac_compile") 2>conftest.er1
8337 grep -v '^ *+' conftest.er1 >conftest.err
8339 cat conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); } && {
8342 test -z "$ac_c_werror_flag" ||
8343 test ! -s conftest.err
8344 } && test -s conftest.$ac_objext; then
8345 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
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 (sizeof ac_aggr.ifr_broadaddr)
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_broadaddr
=yes
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.
$ac_ext >&5
8396 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8405 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8406 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8408 cat >>confdefs.h
<<_ACEOF
8409 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8414 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8415 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8416 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 cat >conftest.
$ac_ext <<_ACEOF
8422 cat confdefs.h
>>conftest.
$ac_ext
8423 cat >>conftest.
$ac_ext <<_ACEOF
8424 /* end confdefs.h. */
8425 $ac_includes_default
8426 #if HAVE_SYS_SOCKET_H
8427 #include <sys/socket.h>
8436 static struct ifreq ac_aggr;
8437 if (ac_aggr.ifr_addr)
8443 rm -f conftest.
$ac_objext
8444 if { (ac_try
="$ac_compile"
8446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8447 *) ac_try_echo=$ac_try;;
8449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8450 (eval "$ac_compile") 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest.$ac_objext; then
8460 ac_cv_member_struct_ifreq_ifr_addr=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 cat >conftest.$ac_ext <<_ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h. */
8471 $ac_includes_default
8472 #if HAVE_SYS_SOCKET_H
8473 #include <sys/socket.h>
8482 static struct ifreq ac_aggr;
8483 if (sizeof ac_aggr.ifr_addr)
8489 rm -f conftest.$ac_objext
8490 if { (ac_try="$ac_compile"
8492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8493 *) ac_try_echo
=$ac_try;;
8495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8496 (eval "$ac_compile") 2>conftest.er1
8498 grep -v '^ *+' conftest.er1
>conftest.err
8500 cat conftest.err
>&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } && {
8503 test -z "$ac_c_werror_flag" ||
8504 test ! -s conftest.err
8505 } && test -s conftest.
$ac_objext; then
8506 ac_cv_member_struct_ifreq_ifr_addr
=yes
8508 echo "$as_me: failed program was:" >&5
8509 sed 's/^/| /' conftest.
$ac_ext >&5
8511 ac_cv_member_struct_ifreq_ifr_addr
=no
8514 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8517 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8519 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8520 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8521 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8523 cat >>confdefs.h
<<_ACEOF
8524 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8532 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8533 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8534 if test "$ac_cv_prog_cc_c89" != no
; then
8535 { echo "$as_me:$LINENO: result: yes" >&5
8536 echo "${ECHO_T}yes" >&6; }
8538 cat >>confdefs.h
<<\_ACEOF
8539 #define PROTOTYPES 1
8543 cat >>confdefs.h
<<\_ACEOF
8544 #define __PROTOTYPES 1
8548 { echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6; }
8552 { echo "$as_me:$LINENO: checking for working volatile" >&5
8553 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8554 if test "${ac_cv_c_volatile+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 cat >conftest.
$ac_ext <<_ACEOF
8560 cat confdefs.h
>>conftest.
$ac_ext
8561 cat >>conftest.
$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8569 int * volatile y = (int *) 0;
8575 rm -f conftest.
$ac_objext
8576 if { (ac_try
="$ac_compile"
8578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_cv_c_volatile=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8602 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8603 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8604 if test $ac_cv_c_volatile = no; then
8606 cat >>confdefs.h <<\_ACEOF
8612 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8613 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8614 if test "${ac_cv_c_const+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8627 /* FIXME: Include the comments suggested by Paul. */
8629 /* Ultrix mips cc rejects this. */
8630 typedef int charset[2];
8632 /* SunOS 4.1.1 cc rejects this. */
8633 char const *const *pcpcc;
8635 /* NEC SVR4.0.2 mips cc rejects this. */
8636 struct point {int x, y;};
8637 static struct point const zero = {0,0};
8638 /* AIX XL C 1.02.0.0 rejects this.
8639 It does not let you subtract one const X* pointer from another in
8640 an arm of an if-expression whose if-part is not a constant
8642 const char *g = "string";
8643 pcpcc = &g + (g ? g-g : 0);
8644 /* HPUX 7.0 cc rejects these. */
8646 ppc = (char**) pcpcc;
8647 pcpcc = (char const *const *) ppc;
8648 { /* SCO 3.2v4 cc rejects this. */
8650 char const *s = 0 ? (char *) 0 : (char const *) 0;
8655 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8657 const int *foo = &x[0];
8660 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8661 typedef const int *iptr;
8665 { /* AIX XL C 1.02.0.0 rejects this saying
8666 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8667 struct s { int j; const int *ap[3]; };
8668 struct s *b; b->j = 5;
8670 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8674 return !cs[0] && !zero.x;
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8685 *) ac_try_echo
=$ac_try;;
8687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8690 grep -v '^ *+' conftest.er1
>conftest.err
8692 cat conftest.err
>&5
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.
$ac_objext; then
8700 echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.
$ac_ext >&5
8706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8708 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8709 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8710 if test $ac_cv_c_const = no
; then
8712 cat >>confdefs.h
<<\_ACEOF
8718 { echo "$as_me:$LINENO: checking for void * support" >&5
8719 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8720 if test "${emacs_cv_void_star+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 cat >conftest.
$ac_ext <<_ACEOF
8726 cat confdefs.h
>>conftest.
$ac_ext
8727 cat >>conftest.
$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8738 rm -f conftest.
$ac_objext
8739 if { (ac_try
="$ac_compile"
8741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.$ac_objext; then
8755 emacs_cv_void_star=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 emacs_cv_void_star=no
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8766 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8767 if test $emacs_cv_void_star = yes; then
8768 cat >>confdefs.h <<\_ACEOF
8769 #define POINTER_TYPE void
8773 cat >>confdefs.h <<\_ACEOF
8774 #define POINTER_TYPE char
8783 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8784 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8785 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8786 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 cat >conftest.make <<\_ACEOF
8792 @echo '@@@%%%=$(MAKE)=@@@%%%'
8794 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8795 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8797 eval ac_cv_prog_make_${ac_make}_set=yes;;
8799 eval ac_cv_prog_make_${ac_make}_set=no;;
8803 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8804 { echo "$as_me:$LINENO: result: yes" >&5
8805 echo "${ECHO_T}yes" >&6; }
8808 { echo "$as_me:$LINENO: result: no" >&5
8809 echo "${ECHO_T}no" >&6; }
8810 SET_MAKE="MAKE=${MAKE-make}"
8814 { echo "$as_me:$LINENO: checking for long file names" >&5
8815 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8816 if test "${ac_cv_sys_long_file_names+set}" = set; then
8817 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 ac_cv_sys_long_file_names=yes
8820 # Test for long file names in all the places we know might matter:
8821 # . the current directory, where building will happen
8822 # $prefix/lib where we will be installing things
8823 # $exec_prefix/lib likewise
8824 # $TMPDIR if set, where it might want to write temporary files
8825 # /tmp where it might want to write temporary files
8828 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8829 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8830 # in the usual case where exec_prefix is '${prefix}'.
8832 . | /* | ?:[\\/]*) ;; #(
8835 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8836 ac_xdir=$ac_dir/cf$$
8837 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8838 ac_tf1=$ac_xdir/conftest9012345
8839 ac_tf2=$ac_xdir/conftest9012346
8840 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8841 ac_cv_sys_long_file_names=no
8842 rm -f -r "$ac_xdir" 2>/dev/null
8843 test $ac_cv_sys_long_file_names = no && break
8846 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8847 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8848 if test $ac_cv_sys_long_file_names = yes; then
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_LONG_FILE_NAMES 1
8857 #### Choose a window system.
8859 { echo "$as_me:$LINENO: checking for X" >&5
8860 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8863 # Check whether --with-x was given.
8864 if test "${with_x+set}" = set; then
8868 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8869 if test "x$with_x" = xno; then
8870 # The user explicitly disabled X.
8873 case $x_includes,$x_libraries in #(
8874 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8875 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8876 { (exit 1); exit 1; }; };; #(
8877 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8880 # One or both of the vars are not set, and there is no cached value.
8881 ac_x_includes=no ac_x_libraries=no
8882 rm -f -r conftest.dir
8883 if mkdir conftest.dir; then
8885 cat >Imakefile <<'_ACEOF'
8887 @echo incroot='${INCROOT}'
8889 @echo usrlibdir='${USRLIBDIR}'
8891 @echo libdir='${LIBDIR}'
8893 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8894 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8895 for ac_var in incroot usrlibdir libdir; do
8896 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8898 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8899 for ac_extension in a so sl; do
8900 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8901 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8902 ac_im_usrlibdir=$ac_im_libdir; break
8905 # Screen out bogus values from the imake configuration. They are
8906 # bogus both because they are the default anyway, and because
8907 # using them would break gcc on systems where it needs fixed includes.
8908 case $ac_im_incroot in
8909 /usr/include) ac_x_includes= ;;
8910 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8912 case $ac_im_usrlibdir in
8914 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8918 rm -f -r conftest.dir
8921 # Standard set of common directories for X headers.
8922 # Check X11 before X11Rn because it is often a symlink to the current release.
8934 /usr/local/X11/include
8935 /usr/local/X11R6/include
8936 /usr/local/X11R5/include
8937 /usr/local/X11R4/include
8939 /usr/local/include/X11
8940 /usr/local/include/X11R6
8941 /usr/local/include/X11R5
8942 /usr/local/include/X11R4
8946 /usr/XFree86/include/X11
8950 /usr/unsupported/include
8952 /usr/local/x11r5/include
8953 /usr/lpp/Xamples/include
8955 /usr/openwin/include
8956 /usr/openwin/share/include'
8958 if test "$ac_x_includes" = no; then
8959 # Guess where to find include files, by looking for Xlib.h.
8960 # First, try using that file with no special directory specified.
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 #include <X11/Xlib.h>
8969 if { (ac_try="$ac_cpp conftest.$ac_ext"
8971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8972 *) ac_try_echo
=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1
>conftest.err
8979 cat conftest.err
>&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } >/dev
/null
&& {
8982 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8985 # We can compile using X headers with no special include directory.
8988 echo "$as_me: failed program was:" >&5
8989 sed 's/^/| /' conftest.
$ac_ext >&5
8991 for ac_dir
in $ac_x_header_dirs; do
8992 if test -r "$ac_dir/X11/Xlib.h"; then
8993 ac_x_includes
=$ac_dir
8999 rm -f conftest.err conftest.
$ac_ext
9000 fi # $ac_x_includes = no
9002 if test "$ac_x_libraries" = no
; then
9003 # Check for the libraries.
9004 # See if we find them without any special options.
9005 # Don't add to $LIBS permanently.
9008 cat >conftest.
$ac_ext <<_ACEOF
9011 cat confdefs.h
>>conftest.
$ac_ext
9012 cat >>conftest.
$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 #include <X11/Xlib.h>
9023 rm -f conftest.
$ac_objext conftest
$ac_exeext
9024 if { (ac_try
="$ac_link"
9026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9027 *) ac_try_echo=$ac_try;;
9029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9030 (eval "$ac_link") 2>conftest.er1
9032 grep -v '^ *+' conftest.er1 >conftest.err
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } && {
9037 test -z "$ac_c_werror_flag" ||
9038 test ! -s conftest.err
9039 } && test -s conftest$ac_exeext &&
9040 $as_test_x conftest$ac_exeext; then
9042 # We can link X programs with no special library path.
9045 echo "$as_me: failed program was:" >&5
9046 sed 's/^/| /' conftest.$ac_ext >&5
9049 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9051 # Don't even attempt the hair of trying to link an X program!
9052 for ac_extension in a so sl; do
9053 if test -r "$ac_dir/libX11.$ac_extension"; then
9054 ac_x_libraries=$ac_dir
9061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9062 conftest$ac_exeext conftest.$ac_ext
9063 fi # $ac_x_libraries = no
9065 case $ac_x_includes,$ac_x_libraries in #(
9067 # Didn't find X, or a directory has "'" in its name.
9068 ac_cv_have_x="have_x=no";; #(
9070 # Record where we found X for the cache.
9071 ac_cv_have_x="have_x=yes\
9072 ac_x_includes='$ac_x_includes'\
9073 ac_x_libraries='$ac_x_libraries'"
9079 eval "$ac_cv_have_x"
9082 if test "$have_x" != yes; then
9083 { echo "$as_me:$LINENO: result: $have_x" >&5
9084 echo "${ECHO_T}$have_x" >&6; }
9087 # If each of the values was on the command line, it overrides each guess.
9088 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9089 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9090 # Update the cache value to reflect the command line values.
9091 ac_cv_have_x="have_x=yes\
9092 ac_x_includes='$x_includes'\
9093 ac_x_libraries='$x_libraries'"
9094 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9095 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9098 if test "$no_x" = yes; then
9104 ## Workaround for bug in autoconf <= 2.62.
9105 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9106 ## No need to do anything special for these standard directories.
9107 ## This is an experiment, take it out if it causes problems.
9108 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9110 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9114 if test "${x_libraries}" != NONE; then
9115 if test -n "${x_libraries}"; then
9116 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9117 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9119 x_default_search_path=""
9120 x_search_path=${x_libraries}
9121 if test -z "${x_search_path}"; then
9122 x_search_path=/usr/lib
9124 for x_library in `echo ${x_search_path}: | \
9125 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9127 ${x_library}/X11/%L/%T/%N%C%S:\
9128 ${x_library}/X11/%l/%T/%N%C%S:\
9129 ${x_library}/X11/%T/%N%C%S:\
9130 ${x_library}/X11/%L/%T/%N%S:\
9131 ${x_library}/X11/%l/%T/%N%S:\
9132 ${x_library}/X11/%T/%N%S"
9133 if test x"${x_default_search_path}" = x; then
9134 x_default_search_path=${x_search_path}
9136 x_default_search_path="${x_search_path}:${x_default_search_path}"
9140 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9141 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9144 if test x"${x_includes}" = x; then
9145 bitmapdir=/usr/include/X11/bitmaps
9147 # accumulate include directories that have X11 bitmap subdirectories
9149 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9150 if test -d "${bmd}/X11/bitmaps"; then
9151 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9153 if test -d "${bmd}/bitmaps"; then
9154 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9157 if test ${bmd_acc} != "dummyval"; then
9158 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9163 if test "${with_carbon}" != no; then
9164 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9165 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9166 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9167 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9168 echo $ECHO_N "(cached) $ECHO_C" >&6
9170 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9171 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9173 # Is the header compilable?
9174 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9175 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9176 cat >conftest.$ac_ext <<_ACEOF
9179 cat confdefs.h >>conftest.$ac_ext
9180 cat >>conftest.$ac_ext <<_ACEOF
9181 /* end confdefs.h. */
9182 $ac_includes_default
9183 #include <Carbon/Carbon.h>
9185 rm -f conftest.$ac_objext
9186 if { (ac_try="$ac_compile"
9188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9189 *) ac_try_echo
=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1
>conftest.err
9196 cat conftest.err
>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest.
$ac_objext; then
9202 ac_header_compiler
=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.
$ac_ext >&5
9207 ac_header_compiler
=no
9210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9212 echo "${ECHO_T}$ac_header_compiler" >&6; }
9214 # Is the header present?
9215 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9216 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9217 cat >conftest.
$ac_ext <<_ACEOF
9220 cat confdefs.h
>>conftest.
$ac_ext
9221 cat >>conftest.
$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 #include <Carbon/Carbon.h>
9225 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9228 *) ac_try_echo=$ac_try;;
9230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9233 grep -v '^ *+' conftest.er1 >conftest.err
9235 cat conftest.err >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); } >/dev/null && {
9238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9239 test ! -s conftest.err
9241 ac_header_preproc=yes
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9246 ac_header_preproc=no
9249 rm -f conftest.err conftest.$ac_ext
9250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9251 echo "${ECHO_T}$ac_header_preproc" >&6; }
9253 # So? What about this header?
9254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9256 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9257 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9259 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9260 ac_header_preproc=yes
9263 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9264 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9265 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9266 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9267 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9268 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9269 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9270 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9271 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9272 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9274 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9278 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9279 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9280 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9285 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9286 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9289 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9295 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9296 if test "${with_carbon+set}" != set \
9297 && test "${carbon_appdir_x+set}" != set; then
9298 for var in with_x with_x_toolkit with_xim \
9299 with_xpm with_jpeg with_tiff with_gif with_png; do
9300 if eval test \"\${$var+set}\" = set; then
9307 if test "${HAVE_CARBON}" = yes; then
9311 case "${window_system}" in
9315 case "${with_x_toolkit}" in
9316 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9317 motif ) USE_X_TOOLKIT=MOTIF ;;
9319 USE_X_TOOLKIT=none ;;
9320 no ) USE_X_TOOLKIT=none ;;
9321 * ) USE_X_TOOLKIT=maybe ;;
9331 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9332 # Extract the first word of "X", so it can be a program name with args.
9333 set dummy X; ac_word=$2
9334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9336 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 if test -n "$HAVE_XSERVER"; then
9340 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9346 test -z "$as_dir" && as_dir=.
9347 for ac_exec_ext in '' $ac_executable_extensions; do
9348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9349 ac_cv_prog_HAVE_XSERVER="true"
9350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9357 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9360 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9361 if test -n "$HAVE_XSERVER"; then
9362 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9363 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9365 { echo "$as_me:$LINENO: result: no" >&5
9366 echo "${ECHO_T}no" >&6; }
9370 if test "$HAVE_XSERVER" = true ||
9371 test -n "$DISPLAY" ||
9372 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9373 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9374 were found. You should install the relevant development files for X
9375 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9376 sure you have development files for image handling, i.e.
9377 tiff, gif, jpeg, png and xpm.
9378 If you are sure you want Emacs compiled without X window support, pass
9381 echo "$as_me: error: You seem to be running X, but no X development libraries
9382 were found. You should install the relevant development files for X
9383 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9384 sure you have development files for image handling, i.e.
9385 tiff, gif, jpeg, png and xpm.
9386 If you are sure you want Emacs compiled without X window support, pass
9388 to configure." >&2;}
9389 { (exit 1); exit 1; }; }
9393 ### If we're using X11, we should use the X menu package.
9396 yes ) HAVE_MENUS=yes ;;
9399 ### Compute the unexec source name from the object name.
9400 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9402 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9403 # Assume not, until told otherwise.
9406 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9407 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9408 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 cat >conftest.$ac_ext <<_ACEOF
9414 cat confdefs.h >>conftest.$ac_ext
9415 cat >>conftest.$ac_ext <<_ACEOF
9416 /* end confdefs.h. */
9417 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9419 #define malloc_get_state innocuous_malloc_get_state
9421 /* System header to define __stub macros and hopefully few prototypes,
9422 which can conflict with char malloc_get_state (); below.
9423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9424 <limits.h> exists even on freestanding compilers. */
9427 # include <limits.h>
9429 # include <assert.h>
9432 #undef malloc_get_state
9434 /* Override any GCC internal prototype to avoid an error.
9435 Use char because int might match the return type of a GCC
9436 builtin and then its argument prototype would still apply. */
9440 char malloc_get_state ();
9441 /* The GNU C library defines this for functions which it implements
9442 to always fail with ENOSYS. Some functions are actually named
9443 something starting with __ and the normal name is an alias. */
9444 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9451 return malloc_get_state ();
9456 rm -f conftest.$ac_objext conftest$ac_exeext
9457 if { (ac_try="$ac_link"
9459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9460 *) ac_try_echo
=$ac_try;;
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463 (eval "$ac_link") 2>conftest.er1
9465 grep -v '^ *+' conftest.er1
>conftest.err
9467 cat conftest.err
>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } && {
9470 test -z "$ac_c_werror_flag" ||
9471 test ! -s conftest.err
9472 } && test -s conftest
$ac_exeext &&
9473 $as_test_x conftest
$ac_exeext; then
9474 ac_cv_func_malloc_get_state
=yes
9476 echo "$as_me: failed program was:" >&5
9477 sed 's/^/| /' conftest.
$ac_ext >&5
9479 ac_cv_func_malloc_get_state
=no
9482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9483 conftest
$ac_exeext conftest.
$ac_ext
9485 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9486 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9487 if test $ac_cv_func_malloc_get_state = yes; then
9493 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9494 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9495 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9496 echo $ECHO_N "(cached) $ECHO_C" >&6
9498 cat >conftest.
$ac_ext <<_ACEOF
9501 cat confdefs.h
>>conftest.
$ac_ext
9502 cat >>conftest.
$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9506 #define malloc_set_state innocuous_malloc_set_state
9508 /* System header to define __stub macros and hopefully few prototypes,
9509 which can conflict with char malloc_set_state (); below.
9510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9511 <limits.h> exists even on freestanding compilers. */
9514 # include <limits.h>
9516 # include <assert.h>
9519 #undef malloc_set_state
9521 /* Override any GCC internal prototype to avoid an error.
9522 Use char because int might match the return type of a GCC
9523 builtin and then its argument prototype would still apply. */
9527 char malloc_set_state ();
9528 /* The GNU C library defines this for functions which it implements
9529 to always fail with ENOSYS. Some functions are actually named
9530 something starting with __ and the normal name is an alias. */
9531 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9538 return malloc_set_state ();
9543 rm -f conftest.
$ac_objext conftest
$ac_exeext
9544 if { (ac_try
="$ac_link"
9546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9547 *) ac_try_echo=$ac_try;;
9549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9550 (eval "$ac_link") 2>conftest.er1
9552 grep -v '^ *+' conftest.er1 >conftest.err
9554 cat conftest.err >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } && {
9557 test -z "$ac_c_werror_flag" ||
9558 test ! -s conftest.err
9559 } && test -s conftest$ac_exeext &&
9560 $as_test_x conftest$ac_exeext; then
9561 ac_cv_func_malloc_set_state=yes
9563 echo "$as_me: failed program was:" >&5
9564 sed 's/^/| /' conftest.$ac_ext >&5
9566 ac_cv_func_malloc_set_state=no
9569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9570 conftest$ac_exeext conftest.$ac_ext
9572 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9573 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9574 if test $ac_cv_func_malloc_set_state = yes; then
9580 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9581 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9582 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9591 extern void (* __after_morecore_hook)();
9595 __after_morecore_hook = 0
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (ac_try="$ac_link"
9603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9604 *) ac_try_echo
=$ac_try;;
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607 (eval "$ac_link") 2>conftest.er1
9609 grep -v '^ *+' conftest.er1
>conftest.err
9611 cat conftest.err
>&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } && {
9614 test -z "$ac_c_werror_flag" ||
9615 test ! -s conftest.err
9616 } && test -s conftest
$ac_exeext &&
9617 $as_test_x conftest
$ac_exeext; then
9618 emacs_cv_var___after_morecore_hook
=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.
$ac_ext >&5
9623 emacs_cv_var___after_morecore_hook
=no
9626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9627 conftest
$ac_exeext conftest.
$ac_ext
9629 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9630 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9631 if test $emacs_cv_var___after_morecore_hook = no
; then
9634 if test "${system_malloc}" = "yes"; then
9637 (The GNU allocators don't work with this system configuration.)"
9639 if test "$doug_lea_malloc" = "yes" ; then
9640 if test "$GNU_MALLOC" = yes ; then
9642 (Using Doug Lea's new malloc from the GNU C Library.)"
9645 cat >>confdefs.h
<<\_ACEOF
9646 #define DOUG_LEA_MALLOC 1
9651 if test x
"${REL_ALLOC}" = x
; then
9652 REL_ALLOC
=${GNU_MALLOC}
9658 for ac_header
in stdlib.h unistd.h
9660 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9664 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 ac_res
=`eval echo '${'$as_ac_Header'}'`
9668 { echo "$as_me:$LINENO: result: $ac_res" >&5
9669 echo "${ECHO_T}$ac_res" >&6; }
9671 # Is the header compilable?
9672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9674 cat >conftest.
$ac_ext <<_ACEOF
9677 cat confdefs.h
>>conftest.
$ac_ext
9678 cat >>conftest.
$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9681 #include <$ac_header>
9683 rm -f conftest.
$ac_objext
9684 if { (ac_try
="$ac_compile"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_compile") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest.$ac_objext; then
9700 ac_header_compiler=yes
9702 echo "$as_me: failed program was:" >&5
9703 sed 's/^/| /' conftest.$ac_ext >&5
9705 ac_header_compiler=no
9708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9710 echo "${ECHO_T}$ac_header_compiler" >&6; }
9712 # Is the header present?
9713 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9715 cat >conftest.$ac_ext <<_ACEOF
9718 cat confdefs.h >>conftest.$ac_ext
9719 cat >>conftest.$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 #include <$ac_header>
9723 if { (ac_try="$ac_cpp conftest.$ac_ext"
9725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9726 *) ac_try_echo
=$ac_try;;
9728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9731 grep -v '^ *+' conftest.er1
>conftest.err
9733 cat conftest.err
>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } >/dev
/null
&& {
9736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9737 test ! -s conftest.err
9739 ac_header_preproc
=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.
$ac_ext >&5
9744 ac_header_preproc
=no
9747 rm -f conftest.err conftest.
$ac_ext
9748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9749 echo "${ECHO_T}$ac_header_preproc" >&6; }
9751 # So? What about this header?
9752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9754 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9756 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9758 ac_header_preproc
=yes
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9764 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9767 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9768 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 eval "$as_ac_Header=\$ac_header_preproc"
9783 ac_res
=`eval echo '${'$as_ac_Header'}'`
9784 { echo "$as_me:$LINENO: result: $ac_res" >&5
9785 echo "${ECHO_T}$ac_res" >&6; }
9788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h
<<_ACEOF
9790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9798 for ac_func
in getpagesize
9800 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9801 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9803 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 cat >conftest.
$ac_ext <<_ACEOF
9809 cat confdefs.h
>>conftest.
$ac_ext
9810 cat >>conftest.
$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814 #define $ac_func innocuous_$ac_func
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char $ac_func (); below.
9818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819 <limits.h> exists even on freestanding compilers. */
9822 # include <limits.h>
9824 # include <assert.h>
9829 /* Override any GCC internal prototype to avoid an error.
9830 Use char because int might match the return type of a GCC
9831 builtin and then its argument prototype would still apply. */
9836 /* The GNU C library defines this for functions which it implements
9837 to always fail with ENOSYS. Some functions are actually named
9838 something starting with __ and the normal name is an alias. */
9839 #if defined __stub_$ac_func || defined __stub___$ac_func
9851 rm -f conftest.
$ac_objext conftest
$ac_exeext
9852 if { (ac_try
="$ac_link"
9854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_link") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest$ac_exeext &&
9868 $as_test_x conftest$ac_exeext; then
9869 eval "$as_ac_var=yes"
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9874 eval "$as_ac_var=no"
9877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9878 conftest$ac_exeext conftest.$ac_ext
9880 ac_res=`eval echo '${'$as_ac_var'}'`
9881 { echo "$as_me:$LINENO: result: $ac_res" >&5
9882 echo "${ECHO_T}$ac_res" >&6; }
9883 if test `eval echo '${'$as_ac_var'}'` = yes; then
9884 cat >>confdefs.h <<_ACEOF
9885 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9891 { echo "$as_me:$LINENO: checking for working mmap" >&5
9892 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9893 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 if test "$cross_compiling" = yes; then
9897 ac_cv_func_mmap_fixed_mapped=no
9899 cat >conftest.$ac_ext <<_ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 $ac_includes_default
9906 /* malloc might have been renamed as rpl_malloc. */
9909 /* Thanks to Mike Haertel and Jim Avera for this test.
9910 Here is a matrix of mmap possibilities:
9911 mmap private not fixed
9912 mmap private fixed at somewhere currently unmapped
9913 mmap private fixed at somewhere already mapped
9914 mmap shared not fixed
9915 mmap shared fixed at somewhere currently unmapped
9916 mmap shared fixed at somewhere already mapped
9917 For private mappings, we should verify that changes cannot be read()
9918 back from the file, nor mmap's back from the file at a different
9919 address. (There have been systems where private was not correctly
9920 implemented like the infamous i386 svr4.0, and systems where the
9921 VM page cache was not coherent with the file system buffer cache
9922 like early versions of FreeBSD and possibly contemporary NetBSD.)
9923 For shared mappings, we should conversely verify that changes get
9924 propagated back to all the places they're supposed to be.
9926 Grep wants private fixed already mapped.
9927 The main things grep needs to know about mmap are:
9928 * does it exist and is it safe to write into the mmap'd area
9929 * how to use it (BSD variants) */
9932 #include <sys/mman.h>
9934 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9938 /* This mess was copied from the GNU getpagesize.h. */
9939 #ifndef HAVE_GETPAGESIZE
9940 /* Assume that all systems that can run configure have sys/param.h. */
9941 # ifndef HAVE_SYS_PARAM_H
9942 # define HAVE_SYS_PARAM_H 1
9945 # ifdef _SC_PAGESIZE
9946 # define getpagesize() sysconf(_SC_PAGESIZE)
9947 # else /* no _SC_PAGESIZE */
9948 # ifdef HAVE_SYS_PARAM_H
9949 # include <sys/param.h>
9950 # ifdef EXEC_PAGESIZE
9951 # define getpagesize() EXEC_PAGESIZE
9952 # else /* no EXEC_PAGESIZE */
9954 # define getpagesize() NBPG * CLSIZE
9957 # endif /* no CLSIZE */
9958 # else /* no NBPG */
9960 # define getpagesize() NBPC
9961 # else /* no NBPC */
9963 # define getpagesize() PAGESIZE
9964 # endif /* PAGESIZE */
9965 # endif /* no NBPC */
9966 # endif /* no NBPG */
9967 # endif /* no EXEC_PAGESIZE */
9968 # else /* no HAVE_SYS_PARAM_H */
9969 # define getpagesize() 8192 /* punt totally */
9970 # endif /* no HAVE_SYS_PARAM_H */
9971 # endif /* no _SC_PAGESIZE */
9973 #endif /* no HAVE_GETPAGESIZE */
9978 char *data, *data2, *data3;
9982 pagesize = getpagesize ();
9984 /* First, make a file with some known garbage in it. */
9985 data = (char *) malloc (pagesize);
9988 for (i = 0; i < pagesize; ++i)
9989 *(data + i) = rand ();
9991 fd = creat ("conftest.mmap", 0600);
9994 if (write (fd, data, pagesize) != pagesize)
9998 /* Next, try to mmap the file at a fixed address which already has
9999 something else allocated at it. If we can, also make sure that
10000 we see the same garbage. */
10001 fd = open ("conftest.mmap", O_RDWR);
10004 data2 = (char *) malloc (2 * pagesize);
10007 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10008 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10009 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10011 for (i = 0; i < pagesize; ++i)
10012 if (*(data + i) != *(data2 + i))
10015 /* Finally, make sure that changes to the mapped area do not
10016 percolate back to the file as seen by read(). (This is a bug on
10017 some variants of i386 svr4.0.) */
10018 for (i = 0; i < pagesize; ++i)
10019 *(data2 + i) = *(data2 + i) + 1;
10020 data3 = (char *) malloc (pagesize);
10023 if (read (fd, data3, pagesize) != pagesize)
10025 for (i = 0; i < pagesize; ++i)
10026 if (*(data + i) != *(data3 + i))
10032 rm -f conftest$ac_exeext
10033 if { (ac_try="$ac_link"
10034 case "(($ac_try" in
10035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10036 *) ac_try_echo
=$ac_try;;
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039 (eval "$ac_link") 2>&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10043 { (case "(($ac_try" in
10044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_try") 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; }; then
10052 ac_cv_func_mmap_fixed_mapped=yes
10054 echo "$as_me: program exited with status $ac_status" >&5
10055 echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ( exit $ac_status )
10059 ac_cv_func_mmap_fixed_mapped=no
10061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10066 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10067 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10068 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_MMAP 1
10075 rm -f conftest.mmap
10077 if test $use_mmap_for_buffers = yes; then
10081 LIBS="$libsrc_libs $LIBS"
10084 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10085 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-ldnet $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10098 /* Override any GCC internal prototype to avoid an error.
10099 Use char because int might match the return type of a GCC
10100 builtin and then its argument prototype would still apply. */
10108 return dnet_ntoa ();
10113 rm -f conftest.$ac_objext conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10117 *) ac_try_echo
=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1
>conftest.err
10124 cat conftest.err
>&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest
$ac_exeext &&
10130 $as_test_x conftest
$ac_exeext; then
10131 ac_cv_lib_dnet_dnet_ntoa
=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.
$ac_ext >&5
10136 ac_cv_lib_dnet_dnet_ntoa
=no
10139 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10140 conftest
$ac_exeext conftest.
$ac_ext
10141 LIBS
=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10144 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10145 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10146 cat >>confdefs.h
<<_ACEOF
10147 #define HAVE_LIBDNET 1
10150 LIBS
="-ldnet $LIBS"
10155 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10156 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10157 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 ac_check_lib_save_LIBS
=$LIBS
10161 LIBS
="-lXbsd $LIBS"
10162 cat >conftest.
$ac_ext <<_ACEOF
10165 cat confdefs.h
>>conftest.
$ac_ext
10166 cat >>conftest.
$ac_ext <<_ACEOF
10167 /* end confdefs.h. */
10178 rm -f conftest.
$ac_objext conftest
$ac_exeext
10179 if { (ac_try
="$ac_link"
10180 case "(($ac_try" in
10181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10182 *) ac_try_echo=$ac_try;;
10184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10185 (eval "$ac_link") 2>conftest.er1
10187 grep -v '^ *+' conftest.er1 >conftest.err
10189 cat conftest.err >&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext &&
10195 $as_test_x conftest$ac_exeext; then
10196 ac_cv_lib_Xbsd_main=yes
10198 echo "$as_me: failed program was:" >&5
10199 sed 's/^/| /' conftest.$ac_ext >&5
10201 ac_cv_lib_Xbsd_main=no
10204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10205 conftest$ac_exeext conftest.$ac_ext
10206 LIBS=$ac_check_lib_save_LIBS
10208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10209 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10210 if test $ac_cv_lib_Xbsd_main = yes; then
10211 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10216 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10217 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10218 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10221 ac_check_lib_save_LIBS=$LIBS
10222 LIBS="-lpthreads $LIBS"
10223 cat >conftest.$ac_ext <<_ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */
10230 /* Override any GCC internal prototype to avoid an error.
10231 Use char because int might match the return type of a GCC
10232 builtin and then its argument prototype would still apply. */
10240 return cma_open ();
10245 rm -f conftest.$ac_objext conftest$ac_exeext
10246 if { (ac_try="$ac_link"
10247 case "(($ac_try" in
10248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10249 *) ac_try_echo
=$ac_try;;
10251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10252 (eval "$ac_link") 2>conftest.er1
10254 grep -v '^ *+' conftest.er1
>conftest.err
10256 cat conftest.err
>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } && {
10259 test -z "$ac_c_werror_flag" ||
10260 test ! -s conftest.err
10261 } && test -s conftest
$ac_exeext &&
10262 $as_test_x conftest
$ac_exeext; then
10263 ac_cv_lib_pthreads_cma_open
=yes
10265 echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.
$ac_ext >&5
10268 ac_cv_lib_pthreads_cma_open
=no
10271 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10272 conftest
$ac_exeext conftest.
$ac_ext
10273 LIBS
=$ac_check_lib_save_LIBS
10275 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10276 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10277 if test $ac_cv_lib_pthreads_cma_open = yes; then
10278 cat >>confdefs.h
<<_ACEOF
10279 #define HAVE_LIBPTHREADS 1
10282 LIBS
="-lpthreads $LIBS"
10290 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10291 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10292 if test "${gdb_cv_bigtoc+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10298 *) gdb_cv_bigtoc
=-bbigtoc ;;
10301 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10302 cat >conftest.
$ac_ext <<_ACEOF
10305 cat confdefs.h
>>conftest.
$ac_ext
10306 cat >>conftest.
$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10317 rm -f conftest.
$ac_objext conftest
$ac_exeext
10318 if { (ac_try
="$ac_link"
10319 case "(($ac_try" in
10320 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10321 *) ac_try_echo=$ac_try;;
10323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10324 (eval "$ac_link") 2>conftest.er1
10326 grep -v '^ *+' conftest.er1 >conftest.err
10328 cat conftest.err >&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); } && {
10331 test -z "$ac_c_werror_flag" ||
10332 test ! -s conftest.err
10333 } && test -s conftest$ac_exeext &&
10334 $as_test_x conftest$ac_exeext; then
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10344 conftest$ac_exeext conftest.$ac_ext
10347 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10348 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10352 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10353 # used for the tests that follow. We set them back to REAL_CFLAGS and
10354 # REAL_CPPFLAGS later on.
10356 REAL_CPPFLAGS="$CPPFLAGS"
10358 if test "${HAVE_X11}" = "yes"; then
10359 DEFS="$C_SWITCH_X_SITE $DEFS"
10360 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10362 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10363 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10365 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10366 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10367 # but it's more convenient here to set LD_RUN_PATH
10368 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10369 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10370 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10374 if test "${opsys}" = "gnu-linux"; then
10375 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10376 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10377 cat >conftest.$ac_ext <<_ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10387 XOpenDisplay ("foo");
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10396 *) ac_try_echo
=$ac_try;;
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10401 grep -v '^ *+' conftest.er1
>conftest.err
10403 cat conftest.err
>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest
$ac_exeext &&
10409 $as_test_x conftest
$ac_exeext; then
10410 xlinux_first_failure
=no
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.
$ac_ext >&5
10415 xlinux_first_failure
=yes
10418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10419 conftest
$ac_exeext conftest.
$ac_ext
10420 if test "${xlinux_first_failure}" = "yes"; then
10421 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10422 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10423 OLD_CPPFLAGS
="$CPPFLAGS"
10425 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10426 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10427 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10428 LIBS
="$LIBS -b i486-linuxaout"
10429 cat >conftest.
$ac_ext <<_ACEOF
10432 cat confdefs.h
>>conftest.
$ac_ext
10433 cat >>conftest.
$ac_ext <<_ACEOF
10434 /* end confdefs.h. */
10439 XOpenDisplay ("foo");
10444 rm -f conftest.
$ac_objext conftest
$ac_exeext
10445 if { (ac_try
="$ac_link"
10446 case "(($ac_try" in
10447 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1 >conftest.err
10455 cat conftest.err >&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext &&
10461 $as_test_x conftest$ac_exeext; then
10462 xlinux_second_failure=no
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.$ac_ext >&5
10467 xlinux_second_failure=yes
10470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10471 conftest$ac_exeext conftest.$ac_ext
10472 if test "${xlinux_second_failure}" = "yes"; then
10473 # If we get the same failure with -b, there is no use adding -b.
10474 # So take it out. This plays safe.
10475 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10476 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10477 CPPFLAGS="$OLD_CPPFLAGS"
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10482 { echo "$as_me:$LINENO: result: yes" >&5
10483 echo "${ECHO_T}yes" >&6; }
10486 { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10491 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10492 # header files included from there.
10493 { echo "$as_me:$LINENO: checking for Xkb" >&5
10494 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10495 cat >conftest.$ac_ext <<_ACEOF
10498 cat confdefs.h >>conftest.$ac_ext
10499 cat >>conftest.$ac_ext <<_ACEOF
10500 /* end confdefs.h. */
10501 #include <X11/Xlib.h>
10502 #include <X11/XKBlib.h>
10506 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10511 rm -f conftest.$ac_objext conftest$ac_exeext
10512 if { (ac_try="$ac_link"
10513 case "(($ac_try" in
10514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10515 *) ac_try_echo
=$ac_try;;
10517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_link") 2>conftest.er1
10520 grep -v '^ *+' conftest.er1
>conftest.err
10522 cat conftest.err
>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_c_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest
$ac_exeext &&
10528 $as_test_x conftest
$ac_exeext; then
10531 echo "$as_me: failed program was:" >&5
10532 sed 's/^/| /' conftest.
$ac_ext >&5
10537 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10538 conftest
$ac_exeext conftest.
$ac_ext
10539 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10540 echo "${ECHO_T}$emacs_xkb" >&6; }
10541 if test $emacs_xkb = yes; then
10543 cat >>confdefs.h
<<\_ACEOF
10544 #define HAVE_XKBGETKEYBOARD 1
10553 for ac_func
in XrmSetDatabase XScreenResourceString \
10554 XScreenNumberOfScreen XSetWMProtocols
10556 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10557 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10558 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10559 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 cat >conftest.
$ac_ext <<_ACEOF
10565 cat confdefs.h
>>conftest.
$ac_ext
10566 cat >>conftest.
$ac_ext <<_ACEOF
10567 /* end confdefs.h. */
10568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10570 #define $ac_func innocuous_$ac_func
10572 /* System header to define __stub macros and hopefully few prototypes,
10573 which can conflict with char $ac_func (); below.
10574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10575 <limits.h> exists even on freestanding compilers. */
10578 # include <limits.h>
10580 # include <assert.h>
10585 /* Override any GCC internal prototype to avoid an error.
10586 Use char because int might match the return type of a GCC
10587 builtin and then its argument prototype would still apply. */
10592 /* The GNU C library defines this for functions which it implements
10593 to always fail with ENOSYS. Some functions are actually named
10594 something starting with __ and the normal name is an alias. */
10595 #if defined __stub_$ac_func || defined __stub___$ac_func
10602 return $ac_func ();
10607 rm -f conftest.
$ac_objext conftest
$ac_exeext
10608 if { (ac_try
="$ac_link"
10609 case "(($ac_try" in
10610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10616 grep -v '^ *+' conftest.er1 >conftest.err
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } && {
10621 test -z "$ac_c_werror_flag" ||
10622 test ! -s conftest.err
10623 } && test -s conftest$ac_exeext &&
10624 $as_test_x conftest$ac_exeext; then
10625 eval "$as_ac_var=yes"
10627 echo "$as_me: failed program was:" >&5
10628 sed 's/^/| /' conftest.$ac_ext >&5
10630 eval "$as_ac_var=no"
10633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10634 conftest$ac_exeext conftest.$ac_ext
10636 ac_res=`eval echo '${'$as_ac_var'}'`
10637 { echo "$as_me:$LINENO: result: $ac_res" >&5
10638 echo "${ECHO_T}$ac_res" >&6; }
10639 if test `eval echo '${'$as_ac_var'}'` = yes; then
10640 cat >>confdefs.h <<_ACEOF
10641 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10649 if test "${window_system}" = "x11"; then
10650 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10651 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10652 if test "${emacs_cv_x11_version_6+set}" = set; then
10653 echo $ECHO_N "(cached) $ECHO_C" >&6
10655 cat >conftest.$ac_ext <<_ACEOF
10658 cat confdefs.h >>conftest.$ac_ext
10659 cat >>conftest.$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 #include <X11/Xlib.h>
10665 #if XlibSpecificationRelease < 6
10673 rm -f conftest.$ac_objext conftest$ac_exeext
10674 if { (ac_try="$ac_link"
10675 case "(($ac_try" in
10676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10677 *) ac_try_echo
=$ac_try;;
10679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10680 (eval "$ac_link") 2>conftest.er1
10682 grep -v '^ *+' conftest.er1
>conftest.err
10684 cat conftest.err
>&5
10685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); } && {
10687 test -z "$ac_c_werror_flag" ||
10688 test ! -s conftest.err
10689 } && test -s conftest
$ac_exeext &&
10690 $as_test_x conftest
$ac_exeext; then
10691 emacs_cv_x11_version_6
=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.
$ac_ext >&5
10696 emacs_cv_x11_version_6
=no
10699 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10700 conftest
$ac_exeext conftest.
$ac_ext
10703 if test $emacs_cv_x11_version_6 = yes; then
10704 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10705 echo "${ECHO_T}6 or newer" >&6; }
10707 cat >>confdefs.h
<<\_ACEOF
10708 #define HAVE_X11R6 1
10712 { echo "$as_me:$LINENO: result: before 6" >&5
10713 echo "${ECHO_T}before 6" >&6; }
10718 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10720 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10721 if test "${with_rsvg}" != "no"; then
10722 RSVG_REQUIRED
=2.0.0
10723 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10728 # Extract the first word of "pkg-config", so it can be a program name with args.
10729 set dummy pkg-config
; ac_word
=$2
10730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10732 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10733 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 case $PKG_CONFIG in
10737 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10741 for as_dir
in $PATH
10744 test -z "$as_dir" && as_dir
=.
10745 for ac_exec_ext
in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10759 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10760 if test -n "$PKG_CONFIG"; then
10761 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10762 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10764 { echo "$as_me:$LINENO: result: no" >&5
10765 echo "${ECHO_T}no" >&6; }
10770 if test "$PKG_CONFIG" = "no" ; then
10773 PKG_CONFIG_MIN_VERSION
=0.9.0
10774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10775 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10776 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10778 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10779 { echo "$as_me:$LINENO: result: yes" >&5
10780 echo "${ECHO_T}yes" >&6; }
10783 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10784 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10785 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10786 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10787 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10789 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10790 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10791 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10792 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10793 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10795 { echo "$as_me:$LINENO: result: no" >&5
10796 echo "${ECHO_T}no" >&6; }
10799 ## If we have a custom action on failure, don't print errors, but
10800 ## do set a variable so people can do so.
10801 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10808 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10809 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10813 if test $succeeded = yes; then
10822 if test ".${RSVG_CFLAGS}" != "."; then
10825 cat >>confdefs.h
<<\_ACEOF
10826 #define HAVE_RSVG 1
10829 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10830 LIBS
="$RSVG_LIBS $LIBS"
10837 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10840 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10845 # Extract the first word of "pkg-config", so it can be a program name with args.
10846 set dummy pkg-config
; ac_word
=$2
10847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10849 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10850 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 case $PKG_CONFIG in
10854 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10858 for as_dir
in $PATH
10861 test -z "$as_dir" && as_dir
=.
10862 for ac_exec_ext
in '' $ac_executable_extensions; do
10863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10864 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10872 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10876 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10877 if test -n "$PKG_CONFIG"; then
10878 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10879 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10887 if test "$PKG_CONFIG" = "no" ; then
10890 PKG_CONFIG_MIN_VERSION
=0.9.0
10891 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10892 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10893 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10895 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10896 { echo "$as_me:$LINENO: result: yes" >&5
10897 echo "${ECHO_T}yes" >&6; }
10900 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10901 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10902 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10903 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10904 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10906 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10907 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10908 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10909 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10910 echo "${ECHO_T}$GTK_LIBS" >&6; }
10912 { echo "$as_me:$LINENO: result: no" >&5
10913 echo "${ECHO_T}no" >&6; }
10916 ## If we have a custom action on failure, don't print errors, but
10917 ## do set a variable so people can do so.
10918 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10925 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10926 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10930 if test $succeeded = yes; then
10936 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10937 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10938 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10939 { (exit 1); exit 1; }; }
10944 if test x
"$pkg_check_gtk" = xyes
; then
10948 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10949 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10950 LIBS
="$GTK_LIBS $LIBS"
10953 for ac_func
in gtk_main
10955 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10958 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10959 echo $ECHO_N "(cached) $ECHO_C" >&6
10961 cat >conftest.
$ac_ext <<_ACEOF
10964 cat confdefs.h
>>conftest.
$ac_ext
10965 cat >>conftest.
$ac_ext <<_ACEOF
10966 /* end confdefs.h. */
10967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10968 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10969 #define $ac_func innocuous_$ac_func
10971 /* System header to define __stub macros and hopefully few prototypes,
10972 which can conflict with char $ac_func (); below.
10973 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10974 <limits.h> exists even on freestanding compilers. */
10977 # include <limits.h>
10979 # include <assert.h>
10984 /* Override any GCC internal prototype to avoid an error.
10985 Use char because int might match the return type of a GCC
10986 builtin and then its argument prototype would still apply. */
10991 /* The GNU C library defines this for functions which it implements
10992 to always fail with ENOSYS. Some functions are actually named
10993 something starting with __ and the normal name is an alias. */
10994 #if defined __stub_$ac_func || defined __stub___$ac_func
11001 return $ac_func ();
11006 rm -f conftest.
$ac_objext conftest
$ac_exeext
11007 if { (ac_try
="$ac_link"
11008 case "(($ac_try" in
11009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11010 *) ac_try_echo=$ac_try;;
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013 (eval "$ac_link") 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } && {
11020 test -z "$ac_c_werror_flag" ||
11021 test ! -s conftest.err
11022 } && test -s conftest$ac_exeext &&
11023 $as_test_x conftest$ac_exeext; then
11024 eval "$as_ac_var=yes"
11026 echo "$as_me: failed program was:" >&5
11027 sed 's/^/| /' conftest.$ac_ext >&5
11029 eval "$as_ac_var=no"
11032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11033 conftest$ac_exeext conftest.$ac_ext
11035 ac_res=`eval echo '${'$as_ac_var'}'`
11036 { echo "$as_me:$LINENO: result: $ac_res" >&5
11037 echo "${ECHO_T}$ac_res" >&6; }
11038 if test `eval echo '${'$as_ac_var'}'` = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11046 if test "${GTK_COMPILES}" != "yes"; then
11047 if test "$USE_X_TOOLKIT" != "maybe"; then
11048 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11049 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11050 { (exit 1); exit 1; }; };
11055 cat >>confdefs.h <<\_ACEOF
11060 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11063 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11064 closing open displays. This is no problem if you just use
11065 one display, but if you use more than one and close one of them
11066 Emacs may crash." >&5
11067 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11068 closing open displays. This is no problem if you just use
11069 one display, but if you use more than one and close one of them
11070 Emacs may crash." >&2;}
11078 if test "${HAVE_GTK}" = "yes"; then
11080 if test "$with_toolkit_scroll_bars" != no; then
11081 with_toolkit_scroll_bars=yes
11084 HAVE_GTK_MULTIDISPLAY=no
11086 for ac_func in gdk_display_open
11088 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11092 echo $ECHO_N "(cached) $ECHO_C" >&6
11094 cat >conftest.$ac_ext <<_ACEOF
11097 cat confdefs.h >>conftest.$ac_ext
11098 cat >>conftest.$ac_ext <<_ACEOF
11099 /* end confdefs.h. */
11100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11102 #define $ac_func innocuous_$ac_func
11104 /* System header to define __stub macros and hopefully few prototypes,
11105 which can conflict with char $ac_func (); below.
11106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11107 <limits.h> exists even on freestanding compilers. */
11110 # include <limits.h>
11112 # include <assert.h>
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11124 /* The GNU C library defines this for functions which it implements
11125 to always fail with ENOSYS. Some functions are actually named
11126 something starting with __ and the normal name is an alias. */
11127 #if defined __stub_$ac_func || defined __stub___$ac_func
11134 return $ac_func ();
11139 rm -f conftest.$ac_objext conftest$ac_exeext
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11143 *) ac_try_echo
=$ac_try;;
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146 (eval "$ac_link") 2>conftest.er1
11148 grep -v '^ *+' conftest.er1
>conftest.err
11150 cat conftest.err
>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } && {
11153 test -z "$ac_c_werror_flag" ||
11154 test ! -s conftest.err
11155 } && test -s conftest
$ac_exeext &&
11156 $as_test_x conftest
$ac_exeext; then
11157 eval "$as_ac_var=yes"
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.
$ac_ext >&5
11162 eval "$as_ac_var=no"
11165 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11166 conftest
$ac_exeext conftest.
$ac_ext
11168 ac_res
=`eval echo '${'$as_ac_var'}'`
11169 { echo "$as_me:$LINENO: result: $ac_res" >&5
11170 echo "${ECHO_T}$ac_res" >&6; }
11171 if test `eval echo '${'$as_ac_var'}'` = yes; then
11172 cat >>confdefs.h
<<_ACEOF
11173 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11175 HAVE_GTK_MULTIDISPLAY
=yes
11179 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11181 cat >>confdefs.h
<<\_ACEOF
11182 #define HAVE_GTK_MULTIDISPLAY 1
11187 HAVE_GTK_FILE_SELECTION
=no
11189 for ac_func
in gtk_file_selection_new
11191 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11192 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11194 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11195 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 cat >conftest.
$ac_ext <<_ACEOF
11200 cat confdefs.h
>>conftest.
$ac_ext
11201 cat >>conftest.
$ac_ext <<_ACEOF
11202 /* end confdefs.h. */
11203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11204 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11205 #define $ac_func innocuous_$ac_func
11207 /* System header to define __stub macros and hopefully few prototypes,
11208 which can conflict with char $ac_func (); below.
11209 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11210 <limits.h> exists even on freestanding compilers. */
11213 # include <limits.h>
11215 # include <assert.h>
11220 /* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11227 /* The GNU C library defines this for functions which it implements
11228 to always fail with ENOSYS. Some functions are actually named
11229 something starting with __ and the normal name is an alias. */
11230 #if defined __stub_$ac_func || defined __stub___$ac_func
11237 return $ac_func ();
11242 rm -f conftest.
$ac_objext conftest
$ac_exeext
11243 if { (ac_try
="$ac_link"
11244 case "(($ac_try" in
11245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11246 *) ac_try_echo=$ac_try;;
11248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11249 (eval "$ac_link") 2>conftest.er1
11251 grep -v '^ *+' conftest.er1 >conftest.err
11253 cat conftest.err >&5
11254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255 (exit $ac_status); } && {
11256 test -z "$ac_c_werror_flag" ||
11257 test ! -s conftest.err
11258 } && test -s conftest$ac_exeext &&
11259 $as_test_x conftest$ac_exeext; then
11260 eval "$as_ac_var=yes"
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 eval "$as_ac_var=no"
11268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11269 conftest$ac_exeext conftest.$ac_ext
11271 ac_res=`eval echo '${'$as_ac_var'}'`
11272 { echo "$as_me:$LINENO: result: $ac_res" >&5
11273 echo "${ECHO_T}$ac_res" >&6; }
11274 if test `eval echo '${'$as_ac_var'}'` = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11278 HAVE_GTK_FILE_SELECTION=yes
11283 HAVE_GTK_FILE_CHOOSER=no
11285 for ac_func in gtk_file_chooser_dialog_new
11287 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define $ac_func innocuous_$ac_func
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11309 # include <limits.h>
11311 # include <assert.h>
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_$ac_func || defined __stub___$ac_func
11333 return $ac_func ();
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11342 *) ac_try_echo
=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_link") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest
$ac_exeext &&
11355 $as_test_x conftest
$ac_exeext; then
11356 eval "$as_ac_var=yes"
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11361 eval "$as_ac_var=no"
11364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11365 conftest
$ac_exeext conftest.
$ac_ext
11367 ac_res
=`eval echo '${'$as_ac_var'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h
<<_ACEOF
11372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 HAVE_GTK_FILE_CHOOSER
=yes
11379 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11380 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11382 cat >>confdefs.h
<<\_ACEOF
11383 #define HAVE_GTK_FILE_BOTH 1
11388 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11389 HAVE_GTK_AND_PTHREAD
=no
11391 for ac_header
in pthread.h
11393 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11394 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 ac_res
=`eval echo '${'$as_ac_Header'}'`
11401 { echo "$as_me:$LINENO: result: $ac_res" >&5
11402 echo "${ECHO_T}$ac_res" >&6; }
11404 # Is the header compilable?
11405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11407 cat >conftest.
$ac_ext <<_ACEOF
11410 cat confdefs.h
>>conftest.
$ac_ext
11411 cat >>conftest.
$ac_ext <<_ACEOF
11412 /* end confdefs.h. */
11413 $ac_includes_default
11414 #include <$ac_header>
11416 rm -f conftest.
$ac_objext
11417 if { (ac_try
="$ac_compile"
11418 case "(($ac_try" in
11419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_compile") 2>conftest.er1
11425 grep -v '^ *+' conftest.er1 >conftest.err
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } && {
11430 test -z "$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 } && test -s conftest.$ac_objext; then
11433 ac_header_compiler=yes
11435 echo "$as_me: failed program was:" >&5
11436 sed 's/^/| /' conftest.$ac_ext >&5
11438 ac_header_compiler=no
11441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11443 echo "${ECHO_T}$ac_header_compiler" >&6; }
11445 # Is the header present?
11446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11448 cat >conftest.$ac_ext <<_ACEOF
11451 cat confdefs.h >>conftest.$ac_ext
11452 cat >>conftest.$ac_ext <<_ACEOF
11453 /* end confdefs.h. */
11454 #include <$ac_header>
11456 if { (ac_try="$ac_cpp conftest.$ac_ext"
11457 case "(($ac_try" in
11458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11459 *) ac_try_echo
=$ac_try;;
11461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11464 grep -v '^ *+' conftest.er1
>conftest.err
11466 cat conftest.err
>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); } >/dev
/null
&& {
11469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11470 test ! -s conftest.err
11472 ac_header_preproc
=yes
11474 echo "$as_me: failed program was:" >&5
11475 sed 's/^/| /' conftest.
$ac_ext >&5
11477 ac_header_preproc
=no
11480 rm -f conftest.err conftest.
$ac_ext
11481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11482 echo "${ECHO_T}$ac_header_preproc" >&6; }
11484 # So? What about this header?
11485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11491 ac_header_preproc
=yes
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11511 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11512 echo $ECHO_N "(cached) $ECHO_C" >&6
11514 eval "$as_ac_Header=\$ac_header_preproc"
11516 ac_res
=`eval echo '${'$as_ac_Header'}'`
11517 { echo "$as_me:$LINENO: result: $ac_res" >&5
11518 echo "${ECHO_T}$ac_res" >&6; }
11521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11522 cat >>confdefs.h
<<_ACEOF
11523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11530 if test "$ac_cv_header_pthread_h"; then
11531 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11532 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11533 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 ac_check_lib_save_LIBS
=$LIBS
11537 LIBS
="-lpthread $LIBS"
11538 cat >conftest.
$ac_ext <<_ACEOF
11541 cat confdefs.h
>>conftest.
$ac_ext
11542 cat >>conftest.
$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11545 /* Override any GCC internal prototype to avoid an error.
11546 Use char because int might match the return type of a GCC
11547 builtin and then its argument prototype would still apply. */
11551 char pthread_self ();
11555 return pthread_self ();
11560 rm -f conftest.
$ac_objext conftest
$ac_exeext
11561 if { (ac_try
="$ac_link"
11562 case "(($ac_try" in
11563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11569 grep -v '^ *+' conftest.er1 >conftest.err
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_c_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest$ac_exeext &&
11577 $as_test_x conftest$ac_exeext; then
11578 ac_cv_lib_pthread_pthread_self=yes
11580 echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11583 ac_cv_lib_pthread_pthread_self=no
11586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587 conftest$ac_exeext conftest.$ac_ext
11588 LIBS=$ac_check_lib_save_LIBS
11590 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11591 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11592 if test $ac_cv_lib_pthread_pthread_self = yes; then
11593 HAVE_GTK_AND_PTHREAD=yes
11597 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11598 case "${canonical}" in
11600 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11603 cat >>confdefs.h <<\_ACEOF
11604 #define HAVE_GTK_AND_PTHREAD 1
11612 if test "${with_dbus}" = "yes"; then
11616 # Extract the first word of "pkg-config", so it can be a program name with args.
11617 set dummy pkg-config; ac_word=$2
11618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11623 case $PKG_CONFIG in
11625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11629 for as_dir in $PATH
11632 test -z "$as_dir" && as_dir=.
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11648 if test -n "$PKG_CONFIG"; then
11649 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11650 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11652 { echo "$as_me:$LINENO: result: no" >&5
11653 echo "${ECHO_T}no" >&6; }
11658 if test "$PKG_CONFIG" = "no" ; then
11661 PKG_CONFIG_MIN_VERSION=0.9.0
11662 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11663 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11664 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11666 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11667 { echo "$as_me:$LINENO: result: yes" >&5
11668 echo "${ECHO_T}yes" >&6; }
11671 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11672 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11673 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11674 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11675 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11677 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11678 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11679 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11680 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11681 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11683 { echo "$as_me:$LINENO: result: no" >&5
11684 echo "${ECHO_T}no" >&6; }
11687 ## If we have a custom action on failure, don't print errors, but
11688 ## do set a variable so people can do so.
11689 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11696 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11697 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11701 if test $succeeded = yes; then
11707 if test "$HAVE_DBUS" = yes; then
11709 cat >>confdefs.h <<\_ACEOF
11710 #define HAVE_DBUS 1
11717 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11718 if test "$with_xaw3d" != no; then
11719 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11720 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11721 if test "${emacs_cv_xaw3d+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 #include <X11/Intrinsic.h>
11732 #include <X11/Xaw3d/Simple.h>
11741 rm -f conftest.$ac_objext conftest$ac_exeext
11742 if { (ac_try="$ac_link"
11743 case "(($ac_try" in
11744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11745 *) ac_try_echo
=$ac_try;;
11747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
11750 grep -v '^ *+' conftest.er1
>conftest.err
11752 cat conftest.err
>&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } && {
11755 test -z "$ac_c_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest
$ac_exeext &&
11758 $as_test_x conftest
$ac_exeext; then
11761 echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.
$ac_ext >&5
11767 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11768 conftest
$ac_exeext conftest.
$ac_ext
11774 if test $emacs_cv_xaw3d = yes; then
11775 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11776 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11777 USE_X_TOOLKIT
=LUCID
11780 cat >>confdefs.h
<<\_ACEOF
11781 #define HAVE_XAW3D 1
11785 { echo "$as_me:$LINENO: result: no" >&5
11786 echo "${ECHO_T}no" >&6; }
11787 { echo "$as_me:$LINENO: checking for libXaw" >&5
11788 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11789 if test "${emacs_cv_xaw+set}" = set; then
11790 echo $ECHO_N "(cached) $ECHO_C" >&6
11792 cat >conftest.
$ac_ext <<_ACEOF
11795 cat confdefs.h
>>conftest.
$ac_ext
11796 cat >>conftest.
$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11799 #include <X11/Intrinsic.h>
11800 #include <X11/Xaw/Simple.h>
11809 rm -f conftest.
$ac_objext conftest
$ac_exeext
11810 if { (ac_try
="$ac_link"
11811 case "(($ac_try" in
11812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11813 *) ac_try_echo=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1 >conftest.err
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest$ac_exeext &&
11826 $as_test_x conftest$ac_exeext; then
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11836 conftest$ac_exeext conftest.$ac_ext
11839 if test $emacs_cv_xaw = yes; then
11840 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11841 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11842 USE_X_TOOLKIT=LUCID
11843 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11844 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11845 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11846 { (exit 1); exit 1; }; }
11848 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11849 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11855 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11857 if test "${USE_X_TOOLKIT}" != "none"; then
11858 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11859 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11860 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11861 echo $ECHO_N "(cached) $ECHO_C" >&6
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <X11/Intrinsic.h>
11873 #if XtSpecificationRelease < 6
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (ac_try="$ac_link"
11883 case "(($ac_try" in
11884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11885 *) ac_try_echo
=$ac_try;;
11887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11888 (eval "$ac_link") 2>conftest.er1
11890 grep -v '^ *+' conftest.er1
>conftest.err
11892 cat conftest.err
>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } && {
11895 test -z "$ac_c_werror_flag" ||
11896 test ! -s conftest.err
11897 } && test -s conftest
$ac_exeext &&
11898 $as_test_x conftest
$ac_exeext; then
11899 emacs_cv_x11_toolkit_version_6
=yes
11901 echo "$as_me: failed program was:" >&5
11902 sed 's/^/| /' conftest.
$ac_ext >&5
11904 emacs_cv_x11_toolkit_version_6
=no
11907 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11908 conftest
$ac_exeext conftest.
$ac_ext
11911 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11912 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11913 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11914 echo "${ECHO_T}6 or newer" >&6; }
11916 cat >>confdefs.h
<<\_ACEOF
11917 #define HAVE_X11XTR6 1
11921 { echo "$as_me:$LINENO: result: before 6" >&5
11922 echo "${ECHO_T}before 6" >&6; }
11926 if test x
$HAVE_X11XTR6 = xyes
; then
11927 LIBS
="-lXt -lSM -lICE $LIBS"
11932 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11933 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 ac_check_lib_save_LIBS
=$LIBS
11939 cat >conftest.
$ac_ext <<_ACEOF
11942 cat confdefs.h
>>conftest.
$ac_ext
11943 cat >>conftest.
$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11952 char XmuConvertStandardSelection ();
11956 return XmuConvertStandardSelection ();
11961 rm -f conftest.
$ac_objext conftest
$ac_exeext
11962 if { (ac_try
="$ac_link"
11963 case "(($ac_try" in
11964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext &&
11978 $as_test_x conftest$ac_exeext; then
11979 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11992 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11993 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11994 cat >>confdefs.h <<_ACEOF
11995 #define HAVE_LIBXMU 1
12002 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12005 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12006 if test "${HAVE_X11}" = "yes"; then
12007 if test "${USE_X_TOOLKIT}" != "none"; then
12009 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12010 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12011 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 ac_check_lib_save_LIBS=$LIBS
12015 LIBS="-lXext $LIBS"
12016 cat >conftest.$ac_ext <<_ACEOF
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12023 /* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12029 char XShapeQueryExtension ();
12033 return XShapeQueryExtension ();
12038 rm -f conftest.$ac_objext conftest$ac_exeext
12039 if { (ac_try="$ac_link"
12040 case "(($ac_try" in
12041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12042 *) ac_try_echo
=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_link") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest
$ac_exeext &&
12055 $as_test_x conftest
$ac_exeext; then
12056 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.
$ac_ext >&5
12061 ac_cv_lib_Xext_XShapeQueryExtension
=no
12064 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12065 conftest
$ac_exeext conftest.
$ac_ext
12066 LIBS
=$ac_check_lib_save_LIBS
12068 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12069 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12070 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12071 cat >>confdefs.h
<<_ACEOF
12072 #define HAVE_LIBXEXT 1
12075 LIBS
="-lXext $LIBS"
12082 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12083 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12084 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12085 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.
$ac_ext <<_ACEOF
12091 cat confdefs.h
>>conftest.
$ac_ext
12092 cat >>conftest.
$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12098 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12101 Motif version prior to 2.1.
12107 rm -f conftest.
$ac_objext
12108 if { (ac_try
="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12116 grep -v '^ *+' conftest.er1 >conftest.err
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.$ac_objext; then
12124 emacs_cv_motif_version_2_1=yes
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12129 emacs_cv_motif_version_2_1=no
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12135 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12136 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12137 if test $emacs_cv_motif_version_2_1 = yes; then
12140 cat >>confdefs.h <<\_ACEOF
12141 #define HAVE_MOTIF_2_1 1
12144 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12145 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12146 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 ac_check_lib_save_LIBS=$LIBS
12151 cat >conftest.$ac_ext <<_ACEOF
12154 cat confdefs.h >>conftest.$ac_ext
12155 cat >>conftest.$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12164 char XpCreateContext ();
12168 return XpCreateContext ();
12173 rm -f conftest.$ac_objext conftest$ac_exeext
12174 if { (ac_try="$ac_link"
12175 case "(($ac_try" in
12176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12177 *) ac_try_echo
=$ac_try;;
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_link") 2>conftest.er1
12182 grep -v '^ *+' conftest.er1
>conftest.err
12184 cat conftest.err
>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest
$ac_exeext &&
12190 $as_test_x conftest
$ac_exeext; then
12191 ac_cv_lib_Xp_XpCreateContext
=yes
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.
$ac_ext >&5
12196 ac_cv_lib_Xp_XpCreateContext
=no
12199 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12200 conftest
$ac_exeext conftest.
$ac_ext
12201 LIBS
=$ac_check_lib_save_LIBS
12203 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12204 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12205 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12209 if test ${HAVE_LIBXP} = yes; then
12211 cat >>confdefs.h
<<\_ACEOF
12212 #define HAVE_LIBXP 1
12217 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12218 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12219 if test "${emacs_cv_lesstif+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12222 # We put this in CFLAGS temporarily to precede other -I options
12223 # that might be in CFLAGS temporarily.
12224 # We put this in CPPFLAGS where it precedes the other -I options.
12225 OLD_CPPFLAGS
=$CPPFLAGS
12227 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12228 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12229 cat >conftest.
$ac_ext <<_ACEOF
12232 cat confdefs.h
>>conftest.
$ac_ext
12233 cat >>conftest.
$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12244 rm -f conftest.
$ac_objext
12245 if { (ac_try
="$ac_compile"
12246 case "(($ac_try" in
12247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_compile") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest.$ac_objext; then
12261 emacs_cv_lesstif=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 emacs_cv_lesstif=no
12269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12271 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12272 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12273 if test $emacs_cv_lesstif = yes; then
12274 # Make sure this -I option remains in CPPFLAGS after it is set
12275 # back to REAL_CPPFLAGS.
12276 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12277 # have those other -I options anyway. Ultimately, having this
12278 # directory ultimately in CPPFLAGS will be enough.
12279 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12280 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12283 CPPFLAGS=$OLD_CPPFLAGS
12290 USE_TOOLKIT_SCROLL_BARS=no
12291 if test "${with_toolkit_scroll_bars}" != "no"; then
12292 if test "${USE_X_TOOLKIT}" != "none"; then
12293 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12294 cat >>confdefs.h <<\_ACEOF
12295 #define USE_TOOLKIT_SCROLL_BARS 1
12299 USE_TOOLKIT_SCROLL_BARS=yes
12300 elif test "${HAVE_XAW3D}" = "yes"; then
12301 cat >>confdefs.h <<\_ACEOF
12302 #define USE_TOOLKIT_SCROLL_BARS 1
12305 USE_TOOLKIT_SCROLL_BARS=yes
12307 elif test "${HAVE_GTK}" = "yes"; then
12308 cat >>confdefs.h <<\_ACEOF
12309 #define USE_TOOLKIT_SCROLL_BARS 1
12312 USE_TOOLKIT_SCROLL_BARS=yes
12313 elif test "${HAVE_CARBON}" = "yes"; then
12314 cat >>confdefs.h <<\_ACEOF
12315 #define USE_TOOLKIT_SCROLL_BARS 1
12318 USE_TOOLKIT_SCROLL_BARS=yes
12322 cat >conftest.$ac_ext <<_ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12343 *) ac_try_echo
=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1
>conftest.err
12350 cat conftest.err
>&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_c_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest.
$ac_objext; then
12358 cat >>confdefs.h
<<\_ACEOF
12363 echo "$as_me: failed program was:" >&5
12364 sed 's/^/| /' conftest.
$ac_ext >&5
12369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12372 if test "${with_xim}" != "no"; then
12374 cat >>confdefs.h
<<\_ACEOF
12381 if test "${HAVE_XIM}" != "no"; then
12382 late_CFLAGS
=$CFLAGS
12383 if test "$GCC" = yes; then
12384 CFLAGS
="$CFLAGS --pedantic-errors"
12386 cat >conftest.
$ac_ext <<_ACEOF
12389 cat confdefs.h
>>conftest.
$ac_ext
12390 cat >>conftest.
$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 #include <X11/Xlib.h>
12394 #include <X11/Xresource.h>
12403 XPointer *client_data;
12405 /* If we're not using GCC, it's probably not XFree86, and this is
12406 probably right, but we can't use something like --pedantic-errors. */
12407 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12408 char*, XIMProc, XPointer*);
12410 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12416 rm -f conftest.
$ac_objext
12417 if { (ac_try
="$ac_compile"
12418 case "(($ac_try" in
12419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423 (eval "$ac_compile") 2>conftest.er1
12425 grep -v '^ *+' conftest.er1 >conftest.err
12427 cat conftest.err >&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); } && {
12430 test -z "$ac_c_werror_flag" ||
12431 test ! -s conftest.err
12432 } && test -s conftest.$ac_objext; then
12433 emacs_cv_arg6_star=yes
12435 echo "$as_me: failed program was:" >&5
12436 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 if test "$emacs_cv_arg6_star" = yes; then
12444 cat >>confdefs.h <<\_ACEOF
12445 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12449 cat >>confdefs.h <<\_ACEOF
12450 #define XRegisterIMInstantiateCallback_arg6 XPointer
12454 CFLAGS=$late_CFLAGS
12457 ### Start of font-backend section.
12459 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12461 if test "x${with_freetype}" = "xno"; then
12464 if test "x${with_xft}" != "xno"; then
12469 # Extract the first word of "pkg-config", so it can be a program name with args.
12470 set dummy pkg-config
; ac_word
=$2
12471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12473 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 case $PKG_CONFIG in
12478 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12482 for as_dir
in $PATH
12485 test -z "$as_dir" && as_dir
=.
12486 for ac_exec_ext
in '' $ac_executable_extensions; do
12487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12488 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12496 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12500 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12501 if test -n "$PKG_CONFIG"; then
12502 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12503 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12505 { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12511 if test "$PKG_CONFIG" = "no" ; then
12514 PKG_CONFIG_MIN_VERSION
=0.9.0
12515 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12516 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12517 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12519 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12520 { echo "$as_me:$LINENO: result: yes" >&5
12521 echo "${ECHO_T}yes" >&6; }
12524 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12525 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12526 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12527 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12528 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12530 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12531 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12532 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12533 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12534 echo "${ECHO_T}$XFT_LIBS" >&6; }
12536 { echo "$as_me:$LINENO: result: no" >&5
12537 echo "${ECHO_T}no" >&6; }
12540 ## If we have a custom action on failure, don't print errors, but
12541 ## do set a variable so people can do so.
12542 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12554 if test $succeeded = yes; then
12560 if test "$HAVE_XFT" != no
; then
12561 OLD_CPPFLAGS
="$CPPFLAGS"
12562 OLD_CFLAGS
="$CFLAGS"
12564 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12565 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12566 LIBS
="$XFT_LIBS $LIBS"
12567 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12568 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12569 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12570 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12573 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12574 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12576 # Is the header compilable?
12577 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12578 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12579 cat >conftest.
$ac_ext <<_ACEOF
12582 cat confdefs.h
>>conftest.
$ac_ext
12583 cat >>conftest.
$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12585 $ac_includes_default
12586 #include <X11/Xft/Xft.h>
12588 rm -f conftest.
$ac_objext
12589 if { (ac_try
="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12605 ac_header_compiler=yes
12607 echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12610 ac_header_compiler=no
12613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12615 echo "${ECHO_T}$ac_header_compiler" >&6; }
12617 # Is the header present?
12618 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12619 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12620 cat >conftest.$ac_ext <<_ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h. */
12626 #include <X11/Xft/Xft.h>
12628 if { (ac_try="$ac_cpp conftest.$ac_ext"
12629 case "(($ac_try" in
12630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12631 *) ac_try_echo
=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1
>conftest.err
12638 cat conftest.err
>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } >/dev
/null
&& {
12641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12642 test ! -s conftest.err
12644 ac_header_preproc
=yes
12646 echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.
$ac_ext >&5
12649 ac_header_preproc
=no
12652 rm -f conftest.err conftest.
$ac_ext
12653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12654 echo "${ECHO_T}$ac_header_preproc" >&6; }
12656 # So? What about this header?
12657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12659 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12660 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12662 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12663 ac_header_preproc
=yes
12666 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12667 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12668 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12669 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12670 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12671 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12676 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12677 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12681 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12682 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12683 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12684 echo $ECHO_N "(cached) $ECHO_C" >&6
12686 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12688 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12689 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12692 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12693 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12694 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12695 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12696 echo $ECHO_N "(cached) $ECHO_C" >&6
12698 ac_check_lib_save_LIBS
=$LIBS
12699 LIBS
="-lXft $XFT_LIBS $LIBS"
12700 cat >conftest.
$ac_ext <<_ACEOF
12703 cat confdefs.h
>>conftest.
$ac_ext
12704 cat >>conftest.
$ac_ext <<_ACEOF
12705 /* end confdefs.h. */
12707 /* Override any GCC internal prototype to avoid an error.
12708 Use char because int might match the return type of a GCC
12709 builtin and then its argument prototype would still apply. */
12713 char XftFontOpen ();
12717 return XftFontOpen ();
12722 rm -f conftest.
$ac_objext conftest
$ac_exeext
12723 if { (ac_try
="$ac_link"
12724 case "(($ac_try" in
12725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1 >conftest.err
12733 cat conftest.err >&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && {
12736 test -z "$ac_c_werror_flag" ||
12737 test ! -s conftest.err
12738 } && test -s conftest$ac_exeext &&
12739 $as_test_x conftest$ac_exeext; then
12740 ac_cv_lib_Xft_XftFontOpen=yes
12742 echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12745 ac_cv_lib_Xft_XftFontOpen=no
12748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12749 conftest$ac_exeext conftest.$ac_ext
12750 LIBS=$ac_check_lib_save_LIBS
12752 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12753 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12754 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12762 if test "${HAVE_XFT}" = "yes"; then
12764 cat >>confdefs.h <<\_ACEOF
12769 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12771 CPPFLAGS="$OLD_CPPFLAGS"
12772 CFLAGS="$OLD_CFLAGS"
12774 fi # "${HAVE_XFT}" = "yes"
12775 fi # "$HAVE_XFT" != no
12776 fi # "x${with_xft}" != "xno"
12778 if test "$HAVE_XFT" != "yes"; then
12784 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12785 if test "${HAVE_XFT}" = "yes"; then
12787 elif test "x${with_freetype}" != "xno"; then
12792 # Extract the first word of "pkg-config", so it can be a program name with args.
12793 set dummy pkg-config; ac_word=$2
12794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 case $PKG_CONFIG in
12801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12824 if test -n "$PKG_CONFIG"; then
12825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12828 { echo "$as_me:$LINENO: result: no" >&5
12829 echo "${ECHO_T}no" >&6; }
12834 if test "$PKG_CONFIG" = "no" ; then
12837 PKG_CONFIG_MIN_VERSION=0.9.0
12838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12839 { echo "$as_me:$LINENO: checking for freetype2" >&5
12840 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12842 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12843 { echo "$as_me:$LINENO: result: yes" >&5
12844 echo "${ECHO_T}yes" >&6; }
12847 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12848 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12849 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12850 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12851 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12853 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12854 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12855 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12856 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12857 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12863 ## If we have a custom action on failure, don't print errors
, but
12864 ## do set a variable so people can do so.
12865 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12877 if test $succeeded = yes; then
12883 if test "${HAVE_FREETYPE}" = "yes"; then
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config
; ac_word
=$2
12889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 case $PKG_CONFIG in
12896 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12900 for as_dir
in $PATH
12903 test -z "$as_dir" && as_dir
=.
12904 for ac_exec_ext
in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12918 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12929 if test "$PKG_CONFIG" = "no" ; then
12932 PKG_CONFIG_MIN_VERSION
=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12935 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12942 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12943 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12944 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12946 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12949 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12950 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12952 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12954 { echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6; }
12956 FONTCONFIG_CFLAGS
=""
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12972 if test $succeeded = yes; then
12978 if test "${HAVE_FC}" = "no"; then
12985 if test "${HAVE_FREETYPE}" = "yes"; then
12987 cat >>confdefs.h
<<\_ACEOF
12988 #define HAVE_FREETYPE 1
12991 if test "${with_libotf}" != "no"; then
12995 # Extract the first word of "pkg-config", so it can be a program name with args.
12996 set dummy pkg-config
; ac_word
=$2
12997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13000 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 case $PKG_CONFIG in
13004 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13008 for as_dir
in $PATH
13011 test -z "$as_dir" && as_dir
=.
13012 for ac_exec_ext
in '' $ac_executable_extensions; do
13013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13014 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13026 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13027 if test -n "$PKG_CONFIG"; then
13028 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13029 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13037 if test "$PKG_CONFIG" = "no" ; then
13040 PKG_CONFIG_MIN_VERSION
=0.9.0
13041 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13042 { echo "$as_me:$LINENO: checking for libotf" >&5
13043 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13045 if $PKG_CONFIG --exists "libotf" 2>&5; then
13046 { echo "$as_me:$LINENO: result: yes" >&5
13047 echo "${ECHO_T}yes" >&6; }
13050 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13051 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13052 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13053 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13054 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13056 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13057 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13058 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13059 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13060 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13062 { echo "$as_me:$LINENO: result: no" >&5
13063 echo "${ECHO_T}no" >&6; }
13066 ## If we have a custom action on failure, don't print errors, but
13067 ## do set a variable so people can do so.
13068 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13075 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13076 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13080 if test $succeeded = yes; then
13086 if test "$HAVE_LIBOTF" = "yes"; then
13088 cat >>confdefs.h
<<\_ACEOF
13089 #define HAVE_LIBOTF 1
13097 if test "${with_m17n_flt}" != "no"; then
13101 # Extract the first word of "pkg-config", so it can be a program name with args.
13102 set dummy pkg-config
; ac_word
=$2
13103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13105 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 case $PKG_CONFIG in
13110 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13114 for as_dir
in $PATH
13117 test -z "$as_dir" && as_dir
=.
13118 for ac_exec_ext
in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13128 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13132 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13133 if test -n "$PKG_CONFIG"; then
13134 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13135 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13137 { echo "$as_me:$LINENO: result: no" >&5
13138 echo "${ECHO_T}no" >&6; }
13143 if test "$PKG_CONFIG" = "no" ; then
13146 PKG_CONFIG_MIN_VERSION
=0.9.0
13147 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13148 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13149 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13151 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13152 { echo "$as_me:$LINENO: result: yes" >&5
13153 echo "${ECHO_T}yes" >&6; }
13156 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13157 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13158 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13159 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13160 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13162 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13163 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13164 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13165 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13166 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13168 { echo "$as_me:$LINENO: result: no" >&5
13169 echo "${ECHO_T}no" >&6; }
13172 ## If we have a custom action on failure, don't print errors, but
13173 ## do set a variable so people can do so.
13174 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13181 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13182 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13186 if test $succeeded = yes; then
13192 if test "$HAVE_M17N_FLT" = "yes"; then
13194 cat >>confdefs.h
<<\_ACEOF
13195 #define HAVE_M17N_FLT 1
13210 ### End of font-backend section.
13212 ### Use -lXpm if available, unless `--with-xpm=no'.
13214 if test "${HAVE_X11}" = "yes"; then
13215 if test "${with_xpm}" != "no"; then
13216 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13217 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13218 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13219 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13220 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13223 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13225 # Is the header compilable?
13226 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13227 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13228 cat >conftest.
$ac_ext <<_ACEOF
13231 cat confdefs.h
>>conftest.
$ac_ext
13232 cat >>conftest.
$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 $ac_includes_default
13235 #include <X11/xpm.h>
13237 rm -f conftest.
$ac_objext
13238 if { (ac_try
="$ac_compile"
13239 case "(($ac_try" in
13240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_compile") 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && {
13251 test -z "$ac_c_werror_flag" ||
13252 test ! -s conftest.err
13253 } && test -s conftest.$ac_objext; then
13254 ac_header_compiler=yes
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_header_compiler=no
13262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13264 echo "${ECHO_T}$ac_header_compiler" >&6; }
13266 # Is the header present?
13267 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13268 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13269 cat >conftest.$ac_ext <<_ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13275 #include <X11/xpm.h>
13277 if { (ac_try="$ac_cpp conftest.$ac_ext"
13278 case "(($ac_try" in
13279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13280 *) ac_try_echo
=$ac_try;;
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13285 grep -v '^ *+' conftest.er1
>conftest.err
13287 cat conftest.err
>&5
13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289 (exit $ac_status); } >/dev
/null
&& {
13290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13291 test ! -s conftest.err
13293 ac_header_preproc
=yes
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.
$ac_ext >&5
13298 ac_header_preproc
=no
13301 rm -f conftest.err conftest.
$ac_ext
13302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13303 echo "${ECHO_T}$ac_header_preproc" >&6; }
13305 # So? What about this header?
13306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13308 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13309 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13310 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13311 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13312 ac_header_preproc
=yes
13315 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13316 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13323 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13324 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13326 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13330 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13331 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13332 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13337 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13338 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13341 if test $ac_cv_header_X11_xpm_h = yes; then
13342 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13343 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13344 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 ac_check_lib_save_LIBS
=$LIBS
13348 LIBS
="-lXpm -lX11 $LIBS"
13349 cat >conftest.
$ac_ext <<_ACEOF
13352 cat confdefs.h
>>conftest.
$ac_ext
13353 cat >>conftest.
$ac_ext <<_ACEOF
13354 /* end confdefs.h. */
13356 /* Override any GCC internal prototype to avoid an error.
13357 Use char because int might match the return type of a GCC
13358 builtin and then its argument prototype would still apply. */
13362 char XpmReadFileToPixmap ();
13366 return XpmReadFileToPixmap ();
13371 rm -f conftest.
$ac_objext conftest
$ac_exeext
13372 if { (ac_try
="$ac_link"
13373 case "(($ac_try" in
13374 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_link") 2>conftest.er1
13380 grep -v '^ *+' conftest.er1 >conftest.err
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest$ac_exeext &&
13388 $as_test_x conftest$ac_exeext; then
13389 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS
13401 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13402 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13403 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13410 if test "${HAVE_XPM}" = "yes"; then
13411 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13412 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 #include "X11/xpm.h"
13420 #ifndef XpmReturnAllocPixels
13421 no_return_alloc_pixels
13425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13426 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13434 if test "${HAVE_XPM}" = "yes"; then
13435 { echo "$as_me:$LINENO: result: yes" >&5
13436 echo "${ECHO_T}yes" >&6; }
13438 { echo "$as_me:$LINENO: result: no" >&5
13439 echo "${ECHO_T}no" >&6; }
13444 if test "${HAVE_XPM}" = "yes"; then
13446 cat >>confdefs.h <<\_ACEOF
13453 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13455 if test "${HAVE_X11}" = "yes"; then
13456 if test "${with_jpeg}" != "no"; then
13457 if test "${ac_cv_header_jerror_h+set}" = set; then
13458 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13459 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13460 if test "${ac_cv_header_jerror_h+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13464 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13466 # Is the header compilable?
13467 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13468 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13476 #include <jerror.h>
13478 rm -f conftest.$ac_objext
13479 if { (ac_try="$ac_compile"
13480 case "(($ac_try" in
13481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13482 *) ac_try_echo=$ac_try;;
13484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13485 (eval "$ac_compile") 2>conftest.er1
13487 grep -v '^
*+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } && {
13492 test -z "$ac_c_werror_flag" ||
13493 test ! -s conftest.err
13494 } && test -s conftest.$ac_objext; then
13495 ac_header_compiler=yes
13497 echo "$as_me: failed program was:" >&5
13498 sed 's
/^
/|
/' conftest.$ac_ext >&5
13500 ac_header_compiler=no
13503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13505 echo "${ECHO_T}$ac_header_compiler" >&6; }
13507 # Is the header present?
13508 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13509 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13510 cat >conftest.$ac_ext <<_ACEOF
13513 cat confdefs.h >>conftest.$ac_ext
13514 cat >>conftest.$ac_ext <<_ACEOF
13515 /* end confdefs.h. */
13516 #include <jerror.h>
13518 if { (ac_try="$ac_cpp conftest.$ac_ext"
13519 case "(($ac_try" in
13520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13526 grep -v '^
*+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } >/dev/null && {
13531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13534 ac_header_preproc=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's
/^
/|
/' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13542 rm -f conftest.err conftest.$ac_ext
13543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13544 echo "${ECHO_T}$ac_header_preproc" >&6; }
13546 # So? What about this header?
13547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13549 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13550 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13552 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13553 ac_header_preproc=yes
13556 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13557 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13559 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13561 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13563 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13564 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13565 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13567 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13571 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13572 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13573 if test "${ac_cv_header_jerror_h+set}" = set; then
13574 echo $ECHO_N "(cached) $ECHO_C" >&6
13576 ac_cv_header_jerror_h=$ac_header_preproc
13578 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13579 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13582 if test $ac_cv_header_jerror_h = yes; then
13583 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13584 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ljpeg $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13603 char jpeg_destroy_compress ();
13607 return jpeg_destroy_compress ();
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13621 grep -v '^
*+' conftest.er1 >conftest.err
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext &&
13629 $as_test_x conftest$ac_exeext; then
13630 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13632 echo "$as_me: failed program was:" >&5
13633 sed 's
/^
/|
/' conftest.$ac_ext >&5
13635 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13642 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13643 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13644 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13654 if test "${HAVE_JPEG}" = "yes"; then
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_JPEG 1
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13665 #include <jpeglib.h>
13666 version=JPEG_LIB_VERSION
13669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13670 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13671 cat >>confdefs.h <<\_ACEOF
13672 #define HAVE_JPEG 1
13676 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13677 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13685 ### Use -lpng if available, unless `--with-png=no'.
13687 if test "${HAVE_X11}" = "yes"; then
13688 if test "${with_png}" != "no"; then
13689 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13690 # in /usr/include/libpng.
13693 for ac_header
in png.h libpng
/png.h
13695 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13699 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_res
=`eval echo '${'$as_ac_Header'}'`
13703 { echo "$as_me:$LINENO: result: $ac_res" >&5
13704 echo "${ECHO_T}$ac_res" >&6; }
13706 # Is the header compilable?
13707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13709 cat >conftest.
$ac_ext <<_ACEOF
13712 cat confdefs.h
>>conftest.
$ac_ext
13713 cat >>conftest.
$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 #include <$ac_header>
13718 rm -f conftest.
$ac_objext
13719 if { (ac_try
="$ac_compile"
13720 case "(($ac_try" in
13721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_compile") 2>conftest.er1
13727 grep -v '^ *+' conftest.er1 >conftest.err
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest.$ac_objext; then
13735 ac_header_compiler=yes
13737 echo "$as_me: failed program was:" >&5
13738 sed 's/^/| /' conftest.$ac_ext >&5
13740 ac_header_compiler=no
13743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13745 echo "${ECHO_T}$ac_header_compiler" >&6; }
13747 # Is the header present?
13748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13750 cat >conftest.$ac_ext <<_ACEOF
13753 cat confdefs.h >>conftest.$ac_ext
13754 cat >>conftest.$ac_ext <<_ACEOF
13755 /* end confdefs.h. */
13756 #include <$ac_header>
13758 if { (ac_try="$ac_cpp conftest.$ac_ext"
13759 case "(($ac_try" in
13760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13761 *) ac_try_echo
=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1
>conftest.err
13768 cat conftest.err
>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } >/dev
/null
&& {
13771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13774 ac_header_preproc
=yes
13776 echo "$as_me: failed program was:" >&5
13777 sed 's/^/| /' conftest.
$ac_ext >&5
13779 ac_header_preproc
=no
13782 rm -f conftest.err conftest.
$ac_ext
13783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13784 echo "${ECHO_T}$ac_header_preproc" >&6; }
13786 # So? What about this header?
13787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13793 ac_header_preproc
=yes
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13799 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13803 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13813 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 eval "$as_ac_Header=\$ac_header_preproc"
13818 ac_res
=`eval echo '${'$as_ac_Header'}'`
13819 { echo "$as_me:$LINENO: result: $ac_res" >&5
13820 echo "${ECHO_T}$ac_res" >&6; }
13823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13824 cat >>confdefs.h
<<_ACEOF
13825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13832 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13833 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13834 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13835 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 ac_check_lib_save_LIBS
=$LIBS
13839 LIBS
="-lpng -lz -lm $LIBS"
13840 cat >conftest.
$ac_ext <<_ACEOF
13843 cat confdefs.h
>>conftest.
$ac_ext
13844 cat >>conftest.
$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13847 /* Override any GCC internal prototype to avoid an error.
13848 Use char because int might match the return type of a GCC
13849 builtin and then its argument prototype would still apply. */
13853 char png_get_channels ();
13857 return png_get_channels ();
13862 rm -f conftest.
$ac_objext conftest
$ac_exeext
13863 if { (ac_try
="$ac_link"
13864 case "(($ac_try" in
13865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13871 grep -v '^ *+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && {
13876 test -z "$ac_c_werror_flag" ||
13877 test ! -s conftest.err
13878 } && test -s conftest$ac_exeext &&
13879 $as_test_x conftest$ac_exeext; then
13880 ac_cv_lib_png_png_get_channels=yes
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ac_cv_lib_png_png_get_channels=no
13888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13893 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13894 if test $ac_cv_lib_png_png_get_channels = yes; then
13901 if test "${HAVE_PNG}" = "yes"; then
13903 cat >>confdefs.h <<\_ACEOF
13910 ### Use -ltiff if available, unless `--with-tiff=no
'.
13912 if test "${HAVE_X11}" = "yes"; then
13913 if test "${with_tiff}" != "no"; then
13914 if test "${ac_cv_header_tiffio_h+set}" = set; then
13915 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13916 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13917 if test "${ac_cv_header_tiffio_h+set}" = set; then
13918 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13921 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13923 # Is the header compilable?
13924 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13925 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13926 cat >conftest.$ac_ext <<_ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 #include <tiffio.h>
13935 rm -f conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13942 (eval "$ac_compile") 2>conftest.er1
13944 grep -v '^
*+' conftest.er1 >conftest.err
13946 cat conftest.err >&5
13947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13948 (exit $ac_status); } && {
13949 test -z "$ac_c_werror_flag" ||
13950 test ! -s conftest.err
13951 } && test -s conftest.$ac_objext; then
13952 ac_header_compiler=yes
13954 echo "$as_me: failed program was:" >&5
13955 sed 's
/^
/|
/' conftest.$ac_ext >&5
13957 ac_header_compiler=no
13960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6; }
13964 # Is the header present?
13965 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13966 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13967 cat >conftest.$ac_ext <<_ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h. */
13973 #include <tiffio.h>
13975 if { (ac_try="$ac_cpp conftest.$ac_ext"
13976 case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13983 grep -v '^
*+' conftest.er1 >conftest.err
13985 cat conftest.err >&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } >/dev/null && {
13988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13989 test ! -s conftest.err
13991 ac_header_preproc=yes
13993 echo "$as_me: failed program was:" >&5
13994 sed 's
/^
/|
/' conftest.$ac_ext >&5
13996 ac_header_preproc=no
13999 rm -f conftest.err conftest.$ac_ext
14000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14001 echo "${ECHO_T}$ac_header_preproc" >&6; }
14003 # So? What about this header?
14004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14006 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14007 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14008 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14009 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14010 ac_header_preproc=yes
14013 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14014 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14016 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14018 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14020 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14021 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14022 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14023 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14024 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14028 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14029 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14030 if test "${ac_cv_header_tiffio_h+set}" = set; then
14031 echo $ECHO_N "(cached) $ECHO_C" >&6
14033 ac_cv_header_tiffio_h=$ac_header_preproc
14035 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14036 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14039 if test $ac_cv_header_tiffio_h = yes; then
14041 # At least one tiff package requires the jpeg library.
14042 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14043 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14044 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14045 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_check_lib_save_LIBS=$LIBS
14049 LIBS="-ltiff $tifflibs $LIBS"
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14057 /* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply. */
14063 char TIFFGetVersion ();
14067 return TIFFGetVersion ();
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (ac_try="$ac_link"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_link") 2>conftest.er1
14081 grep -v '^
*+' conftest.er1 >conftest.err
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest$ac_exeext &&
14089 $as_test_x conftest$ac_exeext; then
14090 ac_cv_lib_tiff_TIFFGetVersion=yes
14092 echo "$as_me: failed program was:" >&5
14093 sed 's
/^
/|
/' conftest.$ac_ext >&5
14095 ac_cv_lib_tiff_TIFFGetVersion=no
14098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14099 conftest$ac_exeext conftest.$ac_ext
14100 LIBS=$ac_check_lib_save_LIBS
14102 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14103 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14104 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14113 if test "${HAVE_TIFF}" = "yes"; then
14115 cat >>confdefs.h <<\_ACEOF
14116 #define HAVE_TIFF 1
14122 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14124 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14125 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14126 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14127 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14128 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14132 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14134 # Is the header compilable?
14135 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14136 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14137 cat >conftest.
$ac_ext <<_ACEOF
14140 cat confdefs.h
>>conftest.
$ac_ext
14141 cat >>conftest.
$ac_ext <<_ACEOF
14142 /* end confdefs.h. */
14143 $ac_includes_default
14144 #include <gif_lib.h>
14146 rm -f conftest.
$ac_objext
14147 if { (ac_try
="$ac_compile"
14148 case "(($ac_try" in
14149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14150 *) ac_try_echo=$ac_try;;
14152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14153 (eval "$ac_compile") 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } && {
14160 test -z "$ac_c_werror_flag" ||
14161 test ! -s conftest.err
14162 } && test -s conftest.$ac_objext; then
14163 ac_header_compiler=yes
14165 echo "$as_me: failed program was:" >&5
14166 sed 's/^/| /' conftest.$ac_ext >&5
14168 ac_header_compiler=no
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14173 echo "${ECHO_T}$ac_header_compiler" >&6; }
14175 # Is the header present?
14176 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14177 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14184 #include <gif_lib.h>
14186 if { (ac_try="$ac_cpp conftest.$ac_ext"
14187 case "(($ac_try" in
14188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14189 *) ac_try_echo
=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14194 grep -v '^ *+' conftest.er1
>conftest.err
14196 cat conftest.err
>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } >/dev
/null
&& {
14199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14202 ac_header_preproc
=yes
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.
$ac_ext >&5
14207 ac_header_preproc
=no
14210 rm -f conftest.err conftest.
$ac_ext
14211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14212 echo "${ECHO_T}$ac_header_preproc" >&6; }
14214 # So? What about this header?
14215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14217 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14218 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14219 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14220 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14221 ac_header_preproc
=yes
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14225 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14227 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14229 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14231 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14233 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14234 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14235 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14239 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14240 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14241 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 ac_cv_header_gif_lib_h
=$ac_header_preproc
14246 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14247 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14250 if test $ac_cv_header_gif_lib_h = yes; then
14251 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14252 # Earlier versions can crash Emacs.
14253 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14254 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14255 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14256 echo $ECHO_N "(cached) $ECHO_C" >&6
14258 ac_check_lib_save_LIBS
=$LIBS
14260 cat >conftest.
$ac_ext <<_ACEOF
14263 cat confdefs.h
>>conftest.
$ac_ext
14264 cat >>conftest.
$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14267 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */
14273 char EGifPutExtensionLast ();
14277 return EGifPutExtensionLast ();
14282 rm -f conftest.
$ac_objext conftest
$ac_exeext
14283 if { (ac_try
="$ac_link"
14284 case "(($ac_try" in
14285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14289 (eval "$ac_link") 2>conftest.er1
14291 grep -v '^ *+' conftest.er1 >conftest.err
14293 cat conftest.err >&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } && {
14296 test -z "$ac_c_werror_flag" ||
14297 test ! -s conftest.err
14298 } && test -s conftest$ac_exeext &&
14299 $as_test_x conftest$ac_exeext; then
14300 ac_cv_lib_gif_EGifPutExtensionLast=yes
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14305 ac_cv_lib_gif_EGifPutExtensionLast=no
14308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14309 conftest$ac_exeext conftest.$ac_ext
14310 LIBS=$ac_check_lib_save_LIBS
14312 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14313 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14314 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14324 if test "$HAVE_GIF" = yes; then
14325 ac_gif_lib_name="-lgif"
14328 # If gif_lib.h but no libgif, try libungif.
14329 if test x"$try_libungif" = xyes; then
14330 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14331 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14332 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14333 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 ac_check_lib_save_LIBS=$LIBS
14336 LIBS="-lungif $LIBS"
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 /* Override any GCC internal prototype to avoid an error.
14345 Use char because int might match the return type of a GCC
14346 builtin and then its argument prototype would still apply. */
14350 char EGifPutExtensionLast ();
14354 return EGifPutExtensionLast ();
14359 rm -f conftest.$ac_objext conftest$ac_exeext
14360 if { (ac_try="$ac_link"
14361 case "(($ac_try" in
14362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14363 *) ac_try_echo
=$ac_try;;
14365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14366 (eval "$ac_link") 2>conftest.er1
14368 grep -v '^ *+' conftest.er1
>conftest.err
14370 cat conftest.err
>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } && {
14373 test -z "$ac_c_werror_flag" ||
14374 test ! -s conftest.err
14375 } && test -s conftest
$ac_exeext &&
14376 $as_test_x conftest
$ac_exeext; then
14377 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14379 echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.
$ac_ext >&5
14382 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14385 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14386 conftest
$ac_exeext conftest.
$ac_ext
14387 LIBS
=$ac_check_lib_save_LIBS
14389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14390 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14391 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14396 if test "$HAVE_GIF" = yes; then
14398 cat >>confdefs.h
<<\_ACEOF
14399 #define LIBGIF -lungif
14402 ac_gif_lib_name
="-lungif"
14406 if test "${HAVE_GIF}" = "yes"; then
14408 cat >>confdefs.h
<<\_ACEOF
14415 if test "${HAVE_X11}" = "yes"; then
14418 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14419 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14420 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14421 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14422 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14423 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14424 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14425 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14426 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14427 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14429 if test "X${MISSING}" != X
; then
14430 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14432 Maybe some development libraries/packages are missing?
14433 If you don't want to link with them give
14435 as options to configure" >&5
14436 echo "$as_me: error: The following required libraries were not found:
14438 Maybe some development libraries/packages are missing?
14439 If you don't want to link with them give
14441 as options to configure" >&2;}
14442 { (exit 1); exit 1; }; }
14446 ### Use -lgpm if available, unless `--with-gpm=no'.
14448 if test "${with_gpm}" != "no"; then
14449 if test "${ac_cv_header_gpm_h+set}" = set; then
14450 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14451 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14452 if test "${ac_cv_header_gpm_h+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14456 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14458 # Is the header compilable?
14459 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14460 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14461 cat >conftest.
$ac_ext <<_ACEOF
14464 cat confdefs.h
>>conftest.
$ac_ext
14465 cat >>conftest.
$ac_ext <<_ACEOF
14466 /* end confdefs.h. */
14467 $ac_includes_default
14470 rm -f conftest.
$ac_objext
14471 if { (ac_try
="$ac_compile"
14472 case "(($ac_try" in
14473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_compile") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest.$ac_objext; then
14487 ac_header_compiler=yes
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_header_compiler=no
14495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14497 echo "${ECHO_T}$ac_header_compiler" >&6; }
14499 # Is the header present?
14500 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14501 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14510 if { (ac_try="$ac_cpp conftest.$ac_ext"
14511 case "(($ac_try" in
14512 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14513 *) ac_try_echo
=$ac_try;;
14515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1
>conftest.err
14520 cat conftest.err
>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } >/dev
/null
&& {
14523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14526 ac_header_preproc
=yes
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.
$ac_ext >&5
14531 ac_header_preproc
=no
14534 rm -f conftest.err conftest.
$ac_ext
14535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14536 echo "${ECHO_T}$ac_header_preproc" >&6; }
14538 # So? What about this header?
14539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14541 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14542 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14543 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14544 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14545 ac_header_preproc
=yes
14548 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14549 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14551 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14553 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14555 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14557 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14559 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14563 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14564 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14565 if test "${ac_cv_header_gpm_h+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 ac_cv_header_gpm_h
=$ac_header_preproc
14570 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14571 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14574 if test $ac_cv_header_gpm_h = yes; then
14575 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14576 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14577 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 ac_check_lib_save_LIBS
=$LIBS
14582 cat >conftest.
$ac_ext <<_ACEOF
14585 cat confdefs.h
>>conftest.
$ac_ext
14586 cat >>conftest.
$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14589 /* Override any GCC internal prototype to avoid an error.
14590 Use char because int might match the return type of a GCC
14591 builtin and then its argument prototype would still apply. */
14599 return Gpm_Open ();
14604 rm -f conftest.
$ac_objext conftest
$ac_exeext
14605 if { (ac_try
="$ac_link"
14606 case "(($ac_try" in
14607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1 >conftest.err
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } && {
14618 test -z "$ac_c_werror_flag" ||
14619 test ! -s conftest.err
14620 } && test -s conftest$ac_exeext &&
14621 $as_test_x conftest$ac_exeext; then
14622 ac_cv_lib_gpm_Gpm_Open=yes
14624 echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14627 ac_cv_lib_gpm_Gpm_Open=no
14630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14631 conftest$ac_exeext conftest.$ac_ext
14632 LIBS=$ac_check_lib_save_LIBS
14634 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14635 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14636 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14645 if test "${HAVE_GPM}" = "yes"; then
14647 cat >>confdefs.h <<\_ACEOF
14653 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14654 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14655 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14656 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14660 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14662 # Is the header compilable?
14663 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14664 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14665 cat >conftest.$ac_ext <<_ACEOF
14668 cat confdefs.h >>conftest.$ac_ext
14669 cat >>conftest.$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14671 $ac_includes_default
14672 #include <malloc/malloc.h>
14674 rm -f conftest.$ac_objext
14675 if { (ac_try="$ac_compile"
14676 case "(($ac_try" in
14677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14678 *) ac_try_echo
=$ac_try;;
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_compile") 2>conftest.er1
14683 grep -v '^ *+' conftest.er1
>conftest.err
14685 cat conftest.err
>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && {
14688 test -z "$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14690 } && test -s conftest.
$ac_objext; then
14691 ac_header_compiler
=yes
14693 echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.
$ac_ext >&5
14696 ac_header_compiler
=no
14699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14701 echo "${ECHO_T}$ac_header_compiler" >&6; }
14703 # Is the header present?
14704 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14705 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14706 cat >conftest.
$ac_ext <<_ACEOF
14709 cat confdefs.h
>>conftest.
$ac_ext
14710 cat >>conftest.
$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 #include <malloc/malloc.h>
14714 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14715 case "(($ac_try" in
14716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14717 *) ac_try_echo=$ac_try;;
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14722 grep -v '^ *+' conftest.er1 >conftest.err
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } >/dev/null && {
14727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14728 test ! -s conftest.err
14730 ac_header_preproc=yes
14732 echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14735 ac_header_preproc=no
14738 rm -f conftest.err conftest.$ac_ext
14739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14740 echo "${ECHO_T}$ac_header_preproc" >&6; }
14742 # So? What about this header?
14743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14745 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14746 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14748 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14749 ac_header_preproc=yes
14752 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14753 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14755 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14756 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14757 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14759 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14761 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14763 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14767 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14768 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14769 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14770 echo $ECHO_N "(cached) $ECHO_C" >&6
14772 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14774 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14775 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14778 if test $ac_cv_header_malloc_malloc_h = yes; then
14780 cat >>confdefs.h <<\_ACEOF
14781 #define HAVE_MALLOC_MALLOC_H 1
14788 ### Use Mac OS X Carbon API to implement GUI.
14789 if test "${HAVE_CARBON}" = "yes"; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_CARBON 1
14796 for ac_header in AvailabilityMacros.h
14798 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
14799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14803 echo $ECHO_N "(cached) $ECHO_C" >&6
14805 ac_res=`eval echo '${'$as_ac_Header'}'`
14806 { echo "$as_me:$LINENO: result: $ac_res" >&5
14807 echo "${ECHO_T}$ac_res" >&6; }
14809 # Is the header compilable?
14810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14812 cat >conftest.$ac_ext <<_ACEOF
14815 cat confdefs.h >>conftest.$ac_ext
14816 cat >>conftest.$ac_ext <<_ACEOF
14817 /* end confdefs.h. */
14818 $ac_includes_default
14819 #include <$ac_header>
14821 rm -f conftest.$ac_objext
14822 if { (ac_try="$ac_compile"
14823 case "(($ac_try" in
14824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14825 *) ac_try_echo
=$ac_try;;
14827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_compile") 2>conftest.er1
14830 grep -v '^ *+' conftest.er1
>conftest.err
14832 cat conftest.err
>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest.
$ac_objext; then
14838 ac_header_compiler
=yes
14840 echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.
$ac_ext >&5
14843 ac_header_compiler
=no
14846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6; }
14850 # Is the header present?
14851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14853 cat >conftest.
$ac_ext <<_ACEOF
14856 cat confdefs.h
>>conftest.
$ac_ext
14857 cat >>conftest.
$ac_ext <<_ACEOF
14858 /* end confdefs.h. */
14859 #include <$ac_header>
14861 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14862 case "(($ac_try" in
14863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } >/dev/null && {
14874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14877 ac_header_preproc=yes
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_header_preproc=no
14885 rm -f conftest.err conftest.$ac_ext
14886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14887 echo "${ECHO_T}$ac_header_preproc" >&6; }
14889 # So? What about this header?
14890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14896 ac_header_preproc=yes
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 eval "$as_ac_Header=\$ac_header_preproc"
14921 ac_res=`eval echo '${'$as_ac_Header'}'`
14922 { echo "$as_me:$LINENO: result: $ac_res" >&5
14923 echo "${ECHO_T}$ac_res" >&6; }
14926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14927 cat >>confdefs.h <<_ACEOF
14928 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
14935 ## Specify the install directory
14937 if test "${carbon_appdir_x}" != ""; then
14938 case ${carbon_appdir_x} in
14939 y | ye | yes) carbon_appdir=/Applications ;;
14940 * ) carbon_appdir=${carbon_appdir_x} ;;
14943 # We also have mouse menus.
14947 ### Use session management (-lSM -lICE) if available
14949 if test "${HAVE_X11}" = "yes"; then
14950 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14951 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14952 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14953 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14954 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14957 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14959 # Is the header compilable?
14960 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14961 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 $ac_includes_default
14969 #include <X11/SM/SMlib.h>
14971 rm -f conftest.$ac_objext
14972 if { (ac_try="$ac_compile"
14973 case "(($ac_try" in
14974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14975 *) ac_try_echo
=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_compile") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1
>conftest.err
14982 cat conftest.err
>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } && {
14985 test -z "$ac_c_werror_flag" ||
14986 test ! -s conftest.err
14987 } && test -s conftest.
$ac_objext; then
14988 ac_header_compiler
=yes
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.
$ac_ext >&5
14993 ac_header_compiler
=no
14996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14998 echo "${ECHO_T}$ac_header_compiler" >&6; }
15000 # Is the header present?
15001 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15002 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15003 cat >conftest.
$ac_ext <<_ACEOF
15006 cat confdefs.h
>>conftest.
$ac_ext
15007 cat >>conftest.
$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #include <X11/SM/SMlib.h>
15011 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15012 case "(($ac_try" in
15013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15014 *) ac_try_echo=$ac_try;;
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15019 grep -v '^ *+' conftest.er1 >conftest.err
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); } >/dev/null && {
15024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15025 test ! -s conftest.err
15027 ac_header_preproc=yes
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15032 ac_header_preproc=no
15035 rm -f conftest.err conftest.$ac_ext
15036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15037 echo "${ECHO_T}$ac_header_preproc" >&6; }
15039 # So? What about this header?
15040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15042 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15043 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15044 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15045 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15046 ac_header_preproc=yes
15049 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15050 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15052 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15054 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15056 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15058 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15060 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15064 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15065 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15066 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15071 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15072 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15075 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15076 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15077 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15078 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lSM -lICE $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15090 /* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15096 char SmcOpenConnection ();
15100 return SmcOpenConnection ();
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15109 *) ac_try_echo
=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15114 grep -v '^ *+' conftest.er1
>conftest.err
15116 cat conftest.err
>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } && {
15119 test -z "$ac_c_werror_flag" ||
15120 test ! -s conftest.err
15121 } && test -s conftest
$ac_exeext &&
15122 $as_test_x conftest
$ac_exeext; then
15123 ac_cv_lib_SM_SmcOpenConnection
=yes
15125 echo "$as_me: failed program was:" >&5
15126 sed 's/^/| /' conftest.
$ac_ext >&5
15128 ac_cv_lib_SM_SmcOpenConnection
=no
15131 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15132 conftest
$ac_exeext conftest.
$ac_ext
15133 LIBS
=$ac_check_lib_save_LIBS
15135 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15136 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15137 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15145 if test "${HAVE_X_SM}" = "yes"; then
15147 cat >>confdefs.h
<<\_ACEOF
15148 #define HAVE_X_SM 1
15153 *) LIBS
="-lSM -lICE $LIBS" ;;
15158 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15159 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15160 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15161 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 cat >conftest.
$ac_ext <<_ACEOF
15167 cat confdefs.h
>>conftest.
$ac_ext
15168 cat >>conftest.
$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15179 rm -f conftest.
$ac_objext conftest
$ac_exeext
15180 if { (ac_try
="$ac_link"
15181 case "(($ac_try" in
15182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15183 *) ac_try_echo=$ac_try;;
15185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15186 (eval "$ac_link") 2>conftest.er1
15188 grep -v '^ *+' conftest.er1 >conftest.err
15190 cat conftest.err >&5
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); } && {
15193 test -z "$ac_c_werror_flag" ||
15194 test ! -s conftest.err
15195 } && test -s conftest$ac_exeext &&
15196 $as_test_x conftest$ac_exeext; then
15197 emacs_cv_netdb_declares_h_errno=yes
15199 echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15202 emacs_cv_netdb_declares_h_errno=no
15205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15206 conftest$ac_exeext conftest.$ac_ext
15208 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15209 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15210 if test $emacs_cv_netdb_declares_h_errno = yes; then
15212 cat >>confdefs.h <<\_ACEOF
15213 #define HAVE_H_ERRNO 1
15218 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15219 # for constant arguments. Useless!
15220 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15221 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15222 if test "${ac_cv_working_alloca_h+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 cat >conftest.$ac_ext <<_ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h. */
15231 #include <alloca.h>
15235 char *p = (char *) alloca (2 * sizeof (int));
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (ac_try="$ac_link"
15243 case "(($ac_try" in
15244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15245 *) ac_try_echo
=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_link") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1
>conftest.err
15252 cat conftest.err
>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } && {
15255 test -z "$ac_c_werror_flag" ||
15256 test ! -s conftest.err
15257 } && test -s conftest
$ac_exeext &&
15258 $as_test_x conftest
$ac_exeext; then
15259 ac_cv_working_alloca_h
=yes
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.
$ac_ext >&5
15264 ac_cv_working_alloca_h
=no
15267 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15268 conftest
$ac_exeext conftest.
$ac_ext
15270 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15271 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15272 if test $ac_cv_working_alloca_h = yes; then
15274 cat >>confdefs.h
<<\_ACEOF
15275 #define HAVE_ALLOCA_H 1
15280 { echo "$as_me:$LINENO: checking for alloca" >&5
15281 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15282 if test "${ac_cv_func_alloca_works+set}" = set; then
15283 echo $ECHO_N "(cached) $ECHO_C" >&6
15285 cat >conftest.
$ac_ext <<_ACEOF
15288 cat confdefs.h
>>conftest.
$ac_ext
15289 cat >>conftest.
$ac_ext <<_ACEOF
15290 /* end confdefs.h. */
15292 # define alloca __builtin_alloca
15295 # include <malloc.h>
15296 # define alloca _alloca
15298 # ifdef HAVE_ALLOCA_H
15299 # include <alloca.h>
15304 # ifndef alloca /* predefined by HP cc +Olibcalls */
15315 char *p = (char *) alloca (1);
15321 rm -f conftest.
$ac_objext conftest
$ac_exeext
15322 if { (ac_try
="$ac_link"
15323 case "(($ac_try" in
15324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_link") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest$ac_exeext &&
15338 $as_test_x conftest$ac_exeext; then
15339 ac_cv_func_alloca_works=yes
15341 echo "$as_me: failed program was:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 ac_cv_func_alloca_works=no
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15350 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15351 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15353 if test $ac_cv_func_alloca_works = yes; then
15355 cat >>confdefs.h <<\_ACEOF
15356 #define HAVE_ALLOCA 1
15360 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15361 # that cause trouble. Some versions do not even contain alloca or
15362 # contain a buggy version. If you still want to use their alloca,
15363 # use ar to extract alloca.o from them instead of compiling alloca.c.
15365 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15367 cat >>confdefs.h <<\_ACEOF
15372 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15373 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15374 if test "${ac_cv_os_cray+set}" = set; then
15375 echo $ECHO_N "(cached
) $ECHO_C" >&6
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 #if defined CRAY && ! defined CRAY2
15390 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15391 $EGREP "webecray
" >/dev/null 2>&1; then
15399 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15400 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15401 if test $ac_cv_os_cray = yes; then
15402 for ac_func in _getb67 GETB67 getb67; do
15403 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15404 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15405 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15406 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15407 echo $ECHO_N "(cached
) $ECHO_C" >&6
15409 cat >conftest.$ac_ext <<_ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15417 #define $ac_func innocuous_$ac_func
15419 /* System header to define __stub macros and hopefully few prototypes,
15420 which can conflict with char $ac_func (); below.
15421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15422 <limits.h> exists even on freestanding compilers. */
15425 # include <limits.h>
15427 # include <assert.h>
15432 /* Override any GCC internal prototype to avoid an error.
15433 Use char because int might match the return type of a GCC
15434 builtin and then its argument prototype would still apply. */
15439 /* The GNU C library defines this for functions which it implements
15440 to always fail with ENOSYS. Some functions are actually named
15441 something starting with __ and the normal name is an alias. */
15442 #if defined __stub_$ac_func || defined __stub___$ac_func
15449 return $ac_func ();
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (ac_try="$ac_link"
15456 case "(($ac_try" in
15457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15458 *) ac_try_echo=$ac_try;;
15460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15461 (eval "$ac_link") 2>conftest.er1
15463 grep -v '^ *+' conftest.er1 >conftest.err
15465 cat conftest.err >&5
15466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15467 (exit $ac_status); } && {
15468 test -z "$ac_c_werror_flag" ||
15469 test ! -s conftest.err
15470 } && test -s conftest$ac_exeext &&
15471 $as_test_x conftest$ac_exeext; then
15472 eval "$as_ac_var=yes"
15474 echo "$as_me: failed program was
:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 eval "$as_ac_var=no
"
15480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15481 conftest$ac_exeext conftest.$ac_ext
15483 ac_res=`eval echo '${'$as_ac_var'}'`
15484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15485 echo "${ECHO_T}$ac_res" >&6; }
15486 if test `eval echo '${'$as_ac_var'}'` = yes; then
15488 cat >>confdefs.h <<_ACEOF
15489 #define CRAY_STACKSEG_END $ac_func
15498 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15499 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15500 if test "${ac_cv_c_stack_direction+set}" = set; then
15501 echo $ECHO_N "(cached
) $ECHO_C" >&6
15503 if test "$cross_compiling" = yes; then
15504 ac_cv_c_stack_direction=0
15506 cat >conftest.$ac_ext <<_ACEOF
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 $ac_includes_default
15514 find_stack_direction ()
15516 static char *addr = 0;
15521 return find_stack_direction ();
15524 return (&dummy > addr) ? 1 : -1;
15530 return find_stack_direction () < 0;
15533 rm -f conftest$ac_exeext
15534 if { (ac_try="$ac_link"
15535 case "(($ac_try" in
15536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15537 *) ac_try_echo=$ac_try;;
15539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15540 (eval "$ac_link") 2>&5
15542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15544 { (case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15549 (eval "$ac_try") 2>&5
15551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 ac_cv_c_stack_direction=1
15555 echo "$as_me: program exited with status
$ac_status" >&5
15556 echo "$as_me: failed program was
:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15559 ( exit $ac_status )
15560 ac_cv_c_stack_direction=-1
15562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15567 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15568 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15570 cat >>confdefs.h <<_ACEOF
15571 #define STACK_DIRECTION $ac_cv_c_stack_direction
15578 if test x"$ac_cv_func_alloca_works" != xyes; then
15579 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15580 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15581 { (exit 1); exit 1; }; }
15584 # fmod, logb, and frexp are found in -lm on most systems.
15585 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15587 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15588 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15589 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15590 echo $ECHO_N "(cached
) $ECHO_C" >&6
15592 ac_check_lib_save_LIBS=$LIBS
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15601 /* Override any GCC internal prototype to avoid an error.
15602 Use char because int might match the return type of a GCC
15603 builtin and then its argument prototype would still apply. */
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (ac_try="$ac_link"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest$ac_exeext &&
15633 $as_test_x conftest$ac_exeext; then
15634 ac_cv_lib_m_sqrt=yes
15636 echo "$as_me: failed program was
:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 ac_cv_lib_m_sqrt=no
15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext conftest.$ac_ext
15644 LIBS=$ac_check_lib_save_LIBS
15646 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15647 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15648 if test $ac_cv_lib_m_sqrt = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define HAVE_LIBM 1
15658 # Check for mail-locking functions in a "mail" library. Probably this should
15659 # have the same check as for liblockfile below.
15661 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15662 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15663 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15664 echo $ECHO_N "(cached
) $ECHO_C" >&6
15666 ac_check_lib_save_LIBS=$LIBS
15667 LIBS="-lmail $LIBS"
15668 cat >conftest.$ac_ext <<_ACEOF
15671 cat confdefs.h >>conftest.$ac_ext
15672 cat >>conftest.$ac_ext <<_ACEOF
15673 /* end confdefs.h. */
15675 /* Override any GCC internal prototype to avoid an error.
15676 Use char because int might match the return type of a GCC
15677 builtin and then its argument prototype would still apply. */
15685 return maillock ();
15690 rm -f conftest.$ac_objext conftest$ac_exeext
15691 if { (ac_try="$ac_link"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_link") 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15703 (exit $ac_status); } && {
15704 test -z "$ac_c_werror_flag" ||
15705 test ! -s conftest.err
15706 } && test -s conftest$ac_exeext &&
15707 $as_test_x conftest$ac_exeext; then
15708 ac_cv_lib_mail_maillock=yes
15710 echo "$as_me: failed program was
:" >&5
15711 sed 's/^/| /' conftest.$ac_ext >&5
15713 ac_cv_lib_mail_maillock=no
15716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LIBS=$ac_check_lib_save_LIBS
15720 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15721 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15722 if test $ac_cv_lib_mail_maillock = yes; then
15723 cat >>confdefs.h <<_ACEOF
15724 #define HAVE_LIBMAIL 1
15727 LIBS="-lmail $LIBS"
15732 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15733 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15734 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15735 echo $ECHO_N "(cached
) $ECHO_C" >&6
15737 ac_check_lib_save_LIBS=$LIBS
15738 LIBS="-llockfile $LIBS"
15739 cat >conftest.$ac_ext <<_ACEOF
15742 cat confdefs.h >>conftest.$ac_ext
15743 cat >>conftest.$ac_ext <<_ACEOF
15744 /* end confdefs.h. */
15746 /* Override any GCC internal prototype to avoid an error.
15747 Use char because int might match the return type of a GCC
15748 builtin and then its argument prototype would still apply. */
15756 return maillock ();
15761 rm -f conftest.$ac_objext conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>conftest.er1
15770 grep -v '^ *+' conftest.er1 >conftest.err
15772 cat conftest.err >&5
15773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15774 (exit $ac_status); } && {
15775 test -z "$ac_c_werror_flag" ||
15776 test ! -s conftest.err
15777 } && test -s conftest$ac_exeext &&
15778 $as_test_x conftest$ac_exeext; then
15779 ac_cv_lib_lockfile_maillock=yes
15781 echo "$as_me: failed program was
:" >&5
15782 sed 's/^/| /' conftest.$ac_ext >&5
15784 ac_cv_lib_lockfile_maillock=no
15787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15788 conftest$ac_exeext conftest.$ac_ext
15789 LIBS=$ac_check_lib_save_LIBS
15791 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15792 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15793 if test $ac_cv_lib_lockfile_maillock = yes; then
15794 cat >>confdefs.h <<_ACEOF
15795 #define HAVE_LIBLOCKFILE 1
15798 LIBS="-llockfile $LIBS"
15802 # If we have the shared liblockfile, assume we must use it for mail
15803 # locking (e.g. Debian). If we couldn't link against liblockfile
15804 # (no liblockfile.a installed), ensure that we don't need to.
15805 if test "$ac_cv_lib_lockfile_maillock" = no; then
15806 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15807 set dummy liblockfile.so; ac_word=$2
15808 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15809 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15810 if test "${ac_cv_prog_liblockfile+set}" = set; then
15811 echo $ECHO_N "(cached
) $ECHO_C" >&6
15813 if test -n "$liblockfile"; then
15814 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15817 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15818 for as_dir in $as_dummy
15821 test -z "$as_dir" && as_dir=.
15822 for ac_exec_ext in '' $ac_executable_extensions; do
15823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15824 ac_cv_prog_liblockfile="yes"
15825 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15832 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15835 liblockfile=$ac_cv_prog_liblockfile
15836 if test -n "$liblockfile"; then
15837 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15838 echo "${ECHO_T}$liblockfile" >&6; }
15840 { echo "$as_me:$LINENO: result
: no
" >&5
15841 echo "${ECHO_T}no
" >&6; }
15845 if test $ac_cv_prog_liblockfile = yes; then
15846 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15847 This probably means that movemail could lose mail.
15848 There may be a \`development' package to
install containing liblockfile.
" >&5
15849 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15850 This probably means that movemail could lose mail.
15851 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15852 { (exit 1); exit 1; }; }
15857 for ac_func in touchlock
15859 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15860 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15861 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15862 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15863 echo $ECHO_N "(cached
) $ECHO_C" >&6
15865 cat >conftest.$ac_ext <<_ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h. */
15871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15873 #define $ac_func innocuous_$ac_func
15875 /* System header to define __stub macros and hopefully few prototypes,
15876 which can conflict with char $ac_func (); below.
15877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878 <limits.h> exists even on freestanding compilers. */
15881 # include <limits.h>
15883 # include <assert.h>
15888 /* Override any GCC internal prototype to avoid an error.
15889 Use char because int might match the return type of a GCC
15890 builtin and then its argument prototype would still apply. */
15895 /* The GNU C library defines this for functions which it implements
15896 to always fail with ENOSYS. Some functions are actually named
15897 something starting with __ and the normal name is an alias. */
15898 #if defined __stub_$ac_func || defined __stub___$ac_func
15905 return $ac_func ();
15910 rm -f conftest.$ac_objext conftest$ac_exeext
15911 if { (ac_try="$ac_link"
15912 case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_link") 2>conftest.er1
15919 grep -v '^ *+' conftest.er1 >conftest.err
15921 cat conftest.err >&5
15922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15923 (exit $ac_status); } && {
15924 test -z "$ac_c_werror_flag" ||
15925 test ! -s conftest.err
15926 } && test -s conftest$ac_exeext &&
15927 $as_test_x conftest$ac_exeext; then
15928 eval "$as_ac_var=yes"
15930 echo "$as_me: failed program was
:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 eval "$as_ac_var=no
"
15936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15937 conftest$ac_exeext conftest.$ac_ext
15939 ac_res=`eval echo '${'$as_ac_var'}'`
15940 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15942 if test `eval echo '${'$as_ac_var'}'` = yes; then
15943 cat >>confdefs.h <<_ACEOF
15944 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15951 for ac_header in maillock.h
15953 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15954 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15955 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15956 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15958 echo $ECHO_N "(cached
) $ECHO_C" >&6
15960 ac_res=`eval echo '${'$as_ac_Header'}'`
15961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15962 echo "${ECHO_T}$ac_res" >&6; }
15964 # Is the header compilable?
15965 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15966 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15973 $ac_includes_default
15974 #include <$ac_header>
15976 rm -f conftest.$ac_objext
15977 if { (ac_try="$ac_compile"
15978 case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_compile") 2>conftest.er1
15985 grep -v '^ *+' conftest.er1 >conftest.err
15987 cat conftest.err >&5
15988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15989 (exit $ac_status); } && {
15990 test -z "$ac_c_werror_flag" ||
15991 test ! -s conftest.err
15992 } && test -s conftest.$ac_objext; then
15993 ac_header_compiler=yes
15995 echo "$as_me: failed program was
:" >&5
15996 sed 's/^/| /' conftest.$ac_ext >&5
15998 ac_header_compiler=no
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16003 echo "${ECHO_T}$ac_header_compiler" >&6; }
16005 # Is the header present?
16006 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16007 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 #include <$ac_header>
16016 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16017 case "(($ac_try" in
16018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019 *) ac_try_echo=$ac_try;;
16021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16022 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16024 grep -v '^ *+' conftest.er1 >conftest.err
16026 cat conftest.err >&5
16027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16028 (exit $ac_status); } >/dev/null && {
16029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16030 test ! -s conftest.err
16032 ac_header_preproc=yes
16034 echo "$as_me: failed program was
:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_header_preproc=no
16040 rm -f conftest.err conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16042 echo "${ECHO_T}$ac_header_preproc" >&6; }
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16047 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16048 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16049 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16051 ac_header_preproc=yes
16054 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16055 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16056 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16057 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16058 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16059 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16060 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16061 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16062 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16063 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16064 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16065 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16069 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16070 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16071 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16072 echo $ECHO_N "(cached
) $ECHO_C" >&6
16074 eval "$as_ac_Header=\
$ac_header_preproc"
16076 ac_res=`eval echo '${'$as_ac_Header'}'`
16077 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16078 echo "${ECHO_T}$ac_res" >&6; }
16081 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16082 cat >>confdefs.h <<_ACEOF
16083 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16161 for ac_func in gethostname getdomainname dup2 \
16162 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16163 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16164 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16165 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16166 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16167 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16168 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16169 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16170 cfmakeraw cfsetspeed
16172 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16173 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16174 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16175 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16176 echo $ECHO_N "(cached
) $ECHO_C" >&6
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16186 #define $ac_func innocuous_$ac_func
16188 /* System header to define __stub macros and hopefully few prototypes,
16189 which can conflict with char $ac_func (); below.
16190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16191 <limits.h> exists even on freestanding compilers. */
16194 # include <limits.h>
16196 # include <assert.h>
16201 /* Override any GCC internal prototype to avoid an error.
16202 Use char because int might match the return type of a GCC
16203 builtin and then its argument prototype would still apply. */
16208 /* The GNU C library defines this for functions which it implements
16209 to always fail with ENOSYS. Some functions are actually named
16210 something starting with __ and the normal name is an alias. */
16211 #if defined __stub_$ac_func || defined __stub___$ac_func
16218 return $ac_func ();
16223 rm -f conftest.$ac_objext conftest$ac_exeext
16224 if { (ac_try="$ac_link"
16225 case "(($ac_try" in
16226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16227 *) ac_try_echo=$ac_try;;
16229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16230 (eval "$ac_link") 2>conftest.er1
16232 grep -v '^ *+' conftest.er1 >conftest.err
16234 cat conftest.err >&5
16235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16236 (exit $ac_status); } && {
16237 test -z "$ac_c_werror_flag" ||
16238 test ! -s conftest.err
16239 } && test -s conftest$ac_exeext &&
16240 $as_test_x conftest$ac_exeext; then
16241 eval "$as_ac_var=yes"
16243 echo "$as_me: failed program was
:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 eval "$as_ac_var=no
"
16249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16250 conftest$ac_exeext conftest.$ac_ext
16252 ac_res=`eval echo '${'$as_ac_var'}'`
16253 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16254 echo "${ECHO_T}$ac_res" >&6; }
16255 if test `eval echo '${'$as_ac_var'}'` = yes; then
16256 cat >>confdefs.h <<_ACEOF
16257 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16265 for ac_header in sys/un.h
16267 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16268 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16270 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached
) $ECHO_C" >&6
16274 ac_res=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16278 # Is the header compilable?
16279 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16280 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 #include <$ac_header>
16290 rm -f conftest.$ac_objext
16291 if { (ac_try="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16299 grep -v '^ *+' conftest.er1 >conftest.err
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16303 (exit $ac_status); } && {
16304 test -z "$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16306 } && test -s conftest.$ac_objext; then
16307 ac_header_compiler=yes
16309 echo "$as_me: failed program was
:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_header_compiler=no
16315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16317 echo "${ECHO_T}$ac_header_compiler" >&6; }
16319 # Is the header present?
16320 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16321 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16322 cat >conftest.$ac_ext <<_ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16328 #include <$ac_header>
16330 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16331 case "(($ac_try" in
16332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16333 *) ac_try_echo=$ac_try;;
16335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16336 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16338 grep -v '^ *+' conftest.er1 >conftest.err
16340 cat conftest.err >&5
16341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16342 (exit $ac_status); } >/dev/null && {
16343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16344 test ! -s conftest.err
16346 ac_header_preproc=yes
16348 echo "$as_me: failed program was
:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_header_preproc=no
16354 rm -f conftest.err conftest.$ac_ext
16355 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16356 echo "${ECHO_T}$ac_header_preproc" >&6; }
16358 # So? What about this header?
16359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16361 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16362 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16363 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16365 ac_header_preproc=yes
16368 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16369 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16370 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16371 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16372 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16373 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16374 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16375 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16376 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16378 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16379 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16383 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16384 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached
) $ECHO_C" >&6
16388 eval "$as_ac_Header=\
$ac_header_preproc"
16390 ac_res=`eval echo '${'$as_ac_Header'}'`
16391 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16392 echo "${ECHO_T}$ac_res" >&6; }
16395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16396 cat >>confdefs.h <<_ACEOF
16397 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16409 for ac_header in $ac_header_list
16411 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16413 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16414 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16415 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16416 echo $ECHO_N "(cached
) $ECHO_C" >&6
16418 ac_res=`eval echo '${'$as_ac_Header'}'`
16419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16420 echo "${ECHO_T}$ac_res" >&6; }
16422 # Is the header compilable?
16423 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16424 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16431 $ac_includes_default
16432 #include <$ac_header>
16434 rm -f conftest.$ac_objext
16435 if { (ac_try="$ac_compile"
16436 case "(($ac_try" in
16437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16438 *) ac_try_echo=$ac_try;;
16440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16441 (eval "$ac_compile") 2>conftest.er1
16443 grep -v '^ *+' conftest.er1 >conftest.err
16445 cat conftest.err >&5
16446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16447 (exit $ac_status); } && {
16448 test -z "$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16450 } && test -s conftest.$ac_objext; then
16451 ac_header_compiler=yes
16453 echo "$as_me: failed program was
:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_header_compiler=no
16459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16461 echo "${ECHO_T}$ac_header_compiler" >&6; }
16463 # Is the header present?
16464 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16465 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16466 cat >conftest.$ac_ext <<_ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 #include <$ac_header>
16474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16486 (exit $ac_status); } >/dev/null && {
16487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16490 ac_header_preproc=yes
16492 echo "$as_me: failed program was
:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_header_preproc=no
16498 rm -f conftest.err conftest.$ac_ext
16499 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16500 echo "${ECHO_T}$ac_header_preproc" >&6; }
16502 # So? What about this header?
16503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16505 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16506 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16507 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16509 ac_header_preproc=yes
16512 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16513 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16514 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16515 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16516 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16517 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16518 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16519 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16520 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16522 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16523 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16530 echo $ECHO_N "(cached
) $ECHO_C" >&6
16532 eval "$as_ac_Header=\
$ac_header_preproc"
16534 ac_res=`eval echo '${'$as_ac_Header'}'`
16535 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16536 echo "${ECHO_T}$ac_res" >&6; }
16539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16540 cat >>confdefs.h <<_ACEOF
16541 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16556 for ac_func in $ac_func_list
16558 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16559 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16560 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16561 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16562 echo $ECHO_N "(cached
) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572 #define $ac_func innocuous_$ac_func
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16580 # include <limits.h>
16582 # include <assert.h>
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined __stub_$ac_func || defined __stub___$ac_func
16604 return $ac_func ();
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16615 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16616 (eval "$ac_link") 2>conftest.er1
16618 grep -v '^ *+' conftest.er1 >conftest.err
16620 cat conftest.err >&5
16621 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16622 (exit $ac_status); } && {
16623 test -z "$ac_c_werror_flag" ||
16624 test ! -s conftest.err
16625 } && test -s conftest$ac_exeext &&
16626 $as_test_x conftest$ac_exeext; then
16627 eval "$as_ac_var=yes"
16629 echo "$as_me: failed program was
:" >&5
16630 sed 's/^/| /' conftest.$ac_ext >&5
16632 eval "$as_ac_var=no
"
16635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16636 conftest$ac_exeext conftest.$ac_ext
16638 ac_res=`eval echo '${'$as_ac_var'}'`
16639 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16640 echo "${ECHO_T}$ac_res" >&6; }
16641 if test `eval echo '${'$as_ac_var'}'` = yes; then
16642 cat >>confdefs.h <<_ACEOF
16643 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16665 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16666 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16667 if test "${ac_cv_func_working_mktime+set}" = set; then
16668 echo $ECHO_N "(cached
) $ECHO_C" >&6
16670 if test "$cross_compiling" = yes; then
16671 ac_cv_func_working_mktime=no
16673 cat >conftest.$ac_ext <<_ACEOF
16676 cat confdefs.h >>conftest.$ac_ext
16677 cat >>conftest.$ac_ext <<_ACEOF
16678 /* end confdefs.h. */
16679 /* Test program from Paul Eggert and Tony Leneis. */
16680 #ifdef TIME_WITH_SYS_TIME
16681 # include <sys/time.h>
16684 # ifdef HAVE_SYS_TIME_H
16685 # include <sys/time.h>
16691 #include <limits.h>
16692 #include <stdlib.h>
16694 #ifdef HAVE_UNISTD_H
16695 # include <unistd.h>
16699 # define alarm(X) /* empty */
16702 /* Work around redefinition to rpl_putenv by other config tests. */
16705 static time_t time_t_max;
16706 static time_t time_t_min;
16708 /* Values we'll use to set the TZ environment variable. */
16709 static char *tz_strings[] = {
16710 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16711 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16713 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16715 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16716 Based on a problem report from Andreas Jaeger. */
16718 spring_forward_gap ()
16720 /* glibc (up to about 1998-10-07) failed this test. */
16723 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16724 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16725 on systems that don't support the Olson extension, or don't have the
16726 full zoneinfo tables installed. */
16727 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16736 return mktime (&tm) != (time_t) -1;
16744 return ! (lt = localtime (&now)) || mktime (lt) == now;
16751 return (mktime_test1 (now)
16752 && mktime_test1 ((time_t) (time_t_max - now))
16753 && mktime_test1 ((time_t) (time_t_min + now)));
16759 /* Based on code from Ariel Faigon. */
16769 return tm.tm_mon == 2 && tm.tm_mday == 31;
16778 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16779 now = mktime (&tm);
16780 if (now != (time_t) -1)
16782 struct tm *lt = localtime (&now);
16784 && lt->tm_year == tm.tm_year
16785 && lt->tm_mon == tm.tm_mon
16786 && lt->tm_mday == tm.tm_mday
16787 && lt->tm_hour == tm.tm_hour
16788 && lt->tm_min == tm.tm_min
16789 && lt->tm_sec == tm.tm_sec
16790 && lt->tm_yday == tm.tm_yday
16791 && lt->tm_wday == tm.tm_wday
16792 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16793 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16802 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16803 ignoring leap seconds. */
16804 unsigned long int answer = 2527315200UL;
16808 tm.tm_year = 2050 - 1900;
16811 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16814 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16815 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16816 on systems that don't support the Olson extension, or don't have the
16817 full zoneinfo tables installed. */
16818 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16822 /* Check that the result is either a failure, or close enough
16823 to the correct answer that we can assume the discrepancy is
16824 due to leap seconds. */
16825 return (t == (time_t) -1
16826 || (0 < t && answer - 120 <= t && t <= answer + 120));
16835 /* This test makes some buggy mktime implementations loop.
16836 Give up after 60 seconds; a mktime slower than that
16837 isn't worth using anyway. */
16842 t = (time_t_max << 1) + 1;
16843 if (t <= time_t_max)
16847 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16849 delta = time_t_max / 997; /* a suitable prime number */
16850 for (i = 0; i < N_STRINGS; i++)
16853 putenv (tz_strings[i]);
16855 for (t = 0; t <= time_t_max - delta; t += delta)
16856 if (! mktime_test (t))
16858 if (! (mktime_test ((time_t) 1)
16859 && mktime_test ((time_t) (60 * 60))
16860 && mktime_test ((time_t) (60 * 60 * 24))))
16863 for (j = 1; ; j <<= 1)
16864 if (! bigtime_test (j))
16866 else if (INT_MAX / 2 < j)
16868 if (! bigtime_test (INT_MAX))
16871 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16874 rm -f conftest$ac_exeext
16875 if { (ac_try="$ac_link"
16876 case "(($ac_try" in
16877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16878 *) ac_try_echo=$ac_try;;
16880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16881 (eval "$ac_link") 2>&5
16883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16893 (exit $ac_status); }; }; then
16894 ac_cv_func_working_mktime=yes
16896 echo "$as_me: program exited with status
$ac_status" >&5
16897 echo "$as_me: failed program was
:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ( exit $ac_status )
16901 ac_cv_func_working_mktime=no
16903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16909 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16910 if test $ac_cv_func_working_mktime = no; then
16911 case " $LIBOBJS " in
16912 *" mktime.
$ac_objext "* ) ;;
16913 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16919 if test "$ac_cv_func_working_mktime" = no; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define BROKEN_MKTIME 1
16927 ac_have_func=no # yes means we've found a way to get the load average.
16929 # Make sure getloadavg.c is where it belongs, at configure-time.
16930 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16931 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16932 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16933 { (exit 1); exit 1; }; }
16937 # Check for getloadavg, but be sure not to touch the cache variable.
16938 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16939 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16940 if test "${ac_cv_func_getloadavg+set}" = set; then
16941 echo $ECHO_N "(cached
) $ECHO_C" >&6
16943 cat >conftest.$ac_ext <<_ACEOF
16946 cat confdefs.h >>conftest.$ac_ext
16947 cat >>conftest.$ac_ext <<_ACEOF
16948 /* end confdefs.h. */
16949 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16951 #define getloadavg innocuous_getloadavg
16953 /* System header to define __stub macros and hopefully few prototypes,
16954 which can conflict with char getloadavg (); below.
16955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16956 <limits.h> exists even on freestanding compilers. */
16959 # include <limits.h>
16961 # include <assert.h>
16966 /* Override any GCC internal prototype to avoid an error.
16967 Use char because int might match the return type of a GCC
16968 builtin and then its argument prototype would still apply. */
16972 char getloadavg ();
16973 /* The GNU C library defines this for functions which it implements
16974 to always fail with ENOSYS. Some functions are actually named
16975 something starting with __ and the normal name is an alias. */
16976 #if defined __stub_getloadavg || defined __stub___getloadavg
16983 return getloadavg ();
16988 rm -f conftest.$ac_objext conftest$ac_exeext
16989 if { (ac_try="$ac_link"
16990 case "(($ac_try" in
16991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16992 *) ac_try_echo=$ac_try;;
16994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16995 (eval "$ac_link") 2>conftest.er1
16997 grep -v '^ *+' conftest.er1 >conftest.err
16999 cat conftest.err >&5
17000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17001 (exit $ac_status); } && {
17002 test -z "$ac_c_werror_flag" ||
17003 test ! -s conftest.err
17004 } && test -s conftest$ac_exeext &&
17005 $as_test_x conftest$ac_exeext; then
17006 ac_cv_func_getloadavg=yes
17008 echo "$as_me: failed program was
:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17011 ac_cv_func_getloadavg=no
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17017 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17018 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17019 if test $ac_cv_func_getloadavg = yes; then
17024 ) && ac_have_func=yes
17026 # On HPUX9, an unprivileged user can get load averages through this function.
17028 for ac_func in pstat_getdynamic
17030 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17031 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17032 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17033 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17034 echo $ECHO_N "(cached
) $ECHO_C" >&6
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044 #define $ac_func innocuous_$ac_func
17046 /* System header to define __stub macros and hopefully few prototypes,
17047 which can conflict with char $ac_func (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
17052 # include <limits.h>
17054 # include <assert.h>
17059 /* Override any GCC internal prototype to avoid an error.
17060 Use char because int might match the return type of a GCC
17061 builtin and then its argument prototype would still apply. */
17066 /* The GNU C library defines this for functions which it implements
17067 to always fail with ENOSYS. Some functions are actually named
17068 something starting with __ and the normal name is an alias. */
17069 #if defined __stub_$ac_func || defined __stub___$ac_func
17076 return $ac_func ();
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085 *) ac_try_echo=$ac_try;;
17087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17088 (eval "$ac_link") 2>conftest.er1
17090 grep -v '^ *+' conftest.er1 >conftest.err
17092 cat conftest.err >&5
17093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17094 (exit $ac_status); } && {
17095 test -z "$ac_c_werror_flag" ||
17096 test ! -s conftest.err
17097 } && test -s conftest$ac_exeext &&
17098 $as_test_x conftest$ac_exeext; then
17099 eval "$as_ac_var=yes"
17101 echo "$as_me: failed program was
:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 eval "$as_ac_var=no
"
17107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17108 conftest$ac_exeext conftest.$ac_ext
17110 ac_res=`eval echo '${'$as_ac_var'}'`
17111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17112 echo "${ECHO_T}$ac_res" >&6; }
17113 if test `eval echo '${'$as_ac_var'}'` = yes; then
17114 cat >>confdefs.h <<_ACEOF
17115 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17122 # Solaris has libkstat which does not require root.
17124 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17125 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17126 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17127 echo $ECHO_N "(cached
) $ECHO_C" >&6
17129 ac_check_lib_save_LIBS=$LIBS
17130 LIBS="-lkstat $LIBS"
17131 cat >conftest.$ac_ext <<_ACEOF
17134 cat confdefs.h >>conftest.$ac_ext
17135 cat >>conftest.$ac_ext <<_ACEOF
17136 /* end confdefs.h. */
17138 /* Override any GCC internal prototype to avoid an error.
17139 Use char because int might match the return type of a GCC
17140 builtin and then its argument prototype would still apply. */
17144 char kstat_open ();
17148 return kstat_open ();
17153 rm -f conftest.$ac_objext conftest$ac_exeext
17154 if { (ac_try="$ac_link"
17155 case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_link") 2>conftest.er1
17162 grep -v '^ *+' conftest.er1 >conftest.err
17164 cat conftest.err >&5
17165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17166 (exit $ac_status); } && {
17167 test -z "$ac_c_werror_flag" ||
17168 test ! -s conftest.err
17169 } && test -s conftest$ac_exeext &&
17170 $as_test_x conftest$ac_exeext; then
17171 ac_cv_lib_kstat_kstat_open=yes
17173 echo "$as_me: failed program was
:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17176 ac_cv_lib_kstat_kstat_open=no
17179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17180 conftest$ac_exeext conftest.$ac_ext
17181 LIBS=$ac_check_lib_save_LIBS
17183 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17184 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17185 if test $ac_cv_lib_kstat_kstat_open = yes; then
17186 cat >>confdefs.h <<_ACEOF
17187 #define HAVE_LIBKSTAT 1
17190 LIBS="-lkstat $LIBS"
17194 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17196 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17197 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17198 # to get the right answer into the cache.
17199 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17200 if test $ac_have_func = no; then
17201 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17202 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17203 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17204 echo $ECHO_N "(cached
) $ECHO_C" >&6
17206 ac_check_lib_save_LIBS=$LIBS
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17225 return elf_begin ();
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_elf_elf_begin=yes
17250 echo "$as_me: failed program was
:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_lib_elf_elf_begin=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17261 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17262 if test $ac_cv_lib_elf_elf_begin = yes; then
17267 if test $ac_have_func = no; then
17268 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17269 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17270 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17271 echo $ECHO_N "(cached
) $ECHO_C" >&6
17273 ac_check_lib_save_LIBS=$LIBS
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17292 return kvm_open ();
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_kvm_kvm_open=yes
17317 echo "$as_me: failed program was
:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ac_cv_lib_kvm_kvm_open=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17327 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17328 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17329 if test $ac_cv_lib_kvm_kvm_open = yes; then
17333 # Check for the 4.4BSD definition of getloadavg.
17334 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17335 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17336 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17337 echo $ECHO_N "(cached
) $ECHO_C" >&6
17339 ac_check_lib_save_LIBS=$LIBS
17340 LIBS="-lutil $LIBS"
17341 cat >conftest.$ac_ext <<_ACEOF
17344 cat confdefs.h >>conftest.$ac_ext
17345 cat >>conftest.$ac_ext <<_ACEOF
17346 /* end confdefs.h. */
17348 /* Override any GCC internal prototype to avoid an error.
17349 Use char because int might match the return type of a GCC
17350 builtin and then its argument prototype would still apply. */
17354 char getloadavg ();
17358 return getloadavg ();
17363 rm -f conftest.$ac_objext conftest$ac_exeext
17364 if { (ac_try="$ac_link"
17365 case "(($ac_try" in
17366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17367 *) ac_try_echo=$ac_try;;
17369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17370 (eval "$ac_link") 2>conftest.er1
17372 grep -v '^ *+' conftest.er1 >conftest.err
17374 cat conftest.err >&5
17375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17376 (exit $ac_status); } && {
17377 test -z "$ac_c_werror_flag" ||
17378 test ! -s conftest.err
17379 } && test -s conftest$ac_exeext &&
17380 $as_test_x conftest$ac_exeext; then
17381 ac_cv_lib_util_getloadavg=yes
17383 echo "$as_me: failed program was
:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 ac_cv_lib_util_getloadavg=no
17389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17390 conftest$ac_exeext conftest.$ac_ext
17391 LIBS=$ac_check_lib_save_LIBS
17393 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17394 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17395 if test $ac_cv_lib_util_getloadavg = yes; then
17396 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17401 if test $ac_have_func = no; then
17402 # There is a commonly available library for RS/6000 AIX.
17403 # Since it is not a standard part of AIX, it might be installed locally.
17404 ac_getloadavg_LIBS=$LIBS
17405 LIBS="-L/usr
/local
/lib
$LIBS"
17406 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17407 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17408 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17409 echo $ECHO_N "(cached
) $ECHO_C" >&6
17411 ac_check_lib_save_LIBS=$LIBS
17412 LIBS="-lgetloadavg $LIBS"
17413 cat >conftest.$ac_ext <<_ACEOF
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17420 /* Override any GCC internal prototype to avoid an error.
17421 Use char because int might match the return type of a GCC
17422 builtin and then its argument prototype would still apply. */
17426 char getloadavg ();
17430 return getloadavg ();
17435 rm -f conftest.$ac_objext conftest$ac_exeext
17436 if { (ac_try="$ac_link"
17437 case "(($ac_try" in
17438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17439 *) ac_try_echo=$ac_try;;
17441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17442 (eval "$ac_link") 2>conftest.er1
17444 grep -v '^ *+' conftest.er1 >conftest.err
17446 cat conftest.err >&5
17447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest$ac_exeext &&
17452 $as_test_x conftest$ac_exeext; then
17453 ac_cv_lib_getloadavg_getloadavg=yes
17455 echo "$as_me: failed program was
:" >&5
17456 sed 's/^/| /' conftest.$ac_ext >&5
17458 ac_cv_lib_getloadavg_getloadavg=no
17461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17462 conftest$ac_exeext conftest.$ac_ext
17463 LIBS=$ac_check_lib_save_LIBS
17465 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17466 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17467 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17468 LIBS="-lgetloadavg $LIBS"
17470 LIBS=$ac_getloadavg_LIBS
17475 # Make sure it is really in the library, if we think we found it,
17476 # otherwise set up the replacement function.
17478 for ac_func in getloadavg
17480 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17481 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17482 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17483 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17484 echo $ECHO_N "(cached
) $ECHO_C" >&6
17486 cat >conftest.$ac_ext <<_ACEOF
17489 cat confdefs.h >>conftest.$ac_ext
17490 cat >>conftest.$ac_ext <<_ACEOF
17491 /* end confdefs.h. */
17492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17494 #define $ac_func innocuous_$ac_func
17496 /* System header to define __stub macros and hopefully few prototypes,
17497 which can conflict with char $ac_func (); below.
17498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 <limits.h> exists even on freestanding compilers. */
17502 # include <limits.h>
17504 # include <assert.h>
17509 /* Override any GCC internal prototype to avoid an error.
17510 Use char because int might match the return type of a GCC
17511 builtin and then its argument prototype would still apply. */
17516 /* The GNU C library defines this for functions which it implements
17517 to always fail with ENOSYS. Some functions are actually named
17518 something starting with __ and the normal name is an alias. */
17519 #if defined __stub_$ac_func || defined __stub___$ac_func
17526 return $ac_func ();
17531 rm -f conftest.$ac_objext conftest$ac_exeext
17532 if { (ac_try="$ac_link"
17533 case "(($ac_try" in
17534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17535 *) ac_try_echo=$ac_try;;
17537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17538 (eval "$ac_link") 2>conftest.er1
17540 grep -v '^ *+' conftest.er1 >conftest.err
17542 cat conftest.err >&5
17543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17544 (exit $ac_status); } && {
17545 test -z "$ac_c_werror_flag" ||
17546 test ! -s conftest.err
17547 } && test -s conftest$ac_exeext &&
17548 $as_test_x conftest$ac_exeext; then
17549 eval "$as_ac_var=yes"
17551 echo "$as_me: failed program was
:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 eval "$as_ac_var=no
"
17557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17558 conftest$ac_exeext conftest.$ac_ext
17560 ac_res=`eval echo '${'$as_ac_var'}'`
17561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17562 echo "${ECHO_T}$ac_res" >&6; }
17563 if test `eval echo '${'$as_ac_var'}'` = yes; then
17564 cat >>confdefs.h <<_ACEOF
17565 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17569 case " $LIBOBJS " in
17570 *" getloadavg.
$ac_objext "* ) ;;
17571 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17576 cat >>confdefs.h <<\_ACEOF
17577 #define C_GETLOADAVG 1
17580 # Figure out what our getloadavg.c needs.
17582 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17583 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17584 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17585 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17586 echo $ECHO_N "(cached
) $ECHO_C" >&6
17588 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17589 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17591 # Is the header compilable?
17592 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17593 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17594 cat >conftest.$ac_ext <<_ACEOF
17597 cat confdefs.h >>conftest.$ac_ext
17598 cat >>conftest.$ac_ext <<_ACEOF
17599 /* end confdefs.h. */
17600 $ac_includes_default
17601 #include <sys/dg_sys_info.h>
17603 rm -f conftest.$ac_objext
17604 if { (ac_try="$ac_compile"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_compile") 2>conftest.er1
17612 grep -v '^ *+' conftest.er1 >conftest.err
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17616 (exit $ac_status); } && {
17617 test -z "$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17619 } && test -s conftest.$ac_objext; then
17620 ac_header_compiler=yes
17622 echo "$as_me: failed program was
:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_header_compiler=no
17628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17629 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17630 echo "${ECHO_T}$ac_header_compiler" >&6; }
17632 # Is the header present?
17633 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17634 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17635 cat >conftest.$ac_ext <<_ACEOF
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 #include <sys/dg_sys_info.h>
17643 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17655 (exit $ac_status); } >/dev/null && {
17656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17659 ac_header_preproc=yes
17661 echo "$as_me: failed program was
:" >&5
17662 sed 's/^/| /' conftest.$ac_ext >&5
17664 ac_header_preproc=no
17667 rm -f conftest.err conftest.$ac_ext
17668 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17669 echo "${ECHO_T}$ac_header_preproc" >&6; }
17671 # So? What about this header?
17672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17674 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17675 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17676 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17677 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17678 ac_header_preproc=yes
17681 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17682 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17683 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17684 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17685 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17686 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17687 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17688 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17689 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17690 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17691 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17692 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17696 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17697 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17698 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17699 echo $ECHO_N "(cached
) $ECHO_C" >&6
17701 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17703 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17704 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17707 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17710 cat >>confdefs.h <<\_ACEOF
17715 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17716 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17717 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17718 echo $ECHO_N "(cached
) $ECHO_C" >&6
17720 ac_check_lib_save_LIBS=$LIBS
17722 cat >conftest.$ac_ext <<_ACEOF
17725 cat confdefs.h >>conftest.$ac_ext
17726 cat >>conftest.$ac_ext <<_ACEOF
17727 /* end confdefs.h. */
17729 /* Override any GCC internal prototype to avoid an error.
17730 Use char because int might match the return type of a GCC
17731 builtin and then its argument prototype would still apply. */
17735 char dg_sys_info ();
17739 return dg_sys_info ();
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17757 (exit $ac_status); } && {
17758 test -z "$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17760 } && test -s conftest$ac_exeext &&
17761 $as_test_x conftest$ac_exeext; then
17762 ac_cv_lib_dgc_dg_sys_info=yes
17764 echo "$as_me: failed program was
:" >&5
17765 sed 's/^/| /' conftest.$ac_ext >&5
17767 ac_cv_lib_dgc_dg_sys_info=no
17770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771 conftest$ac_exeext conftest.$ac_ext
17772 LIBS=$ac_check_lib_save_LIBS
17774 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17775 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17776 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define HAVE_LIBDGC 1
17789 if test "${ac_cv_header_locale_h+set}" = set; then
17790 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17791 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17792 if test "${ac_cv_header_locale_h+set}" = set; then
17793 echo $ECHO_N "(cached
) $ECHO_C" >&6
17795 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17796 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17798 # Is the header compilable?
17799 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17800 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 $ac_includes_default
17808 #include <locale.h>
17810 rm -f conftest.$ac_objext
17811 if { (ac_try="$ac_compile"
17812 case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_compile") 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17823 (exit $ac_status); } && {
17824 test -z "$ac_c_werror_flag" ||
17825 test ! -s conftest.err
17826 } && test -s conftest.$ac_objext; then
17827 ac_header_compiler=yes
17829 echo "$as_me: failed program was
:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17832 ac_header_compiler=no
17835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17837 echo "${ECHO_T}$ac_header_compiler" >&6; }
17839 # Is the header present?
17840 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17841 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17842 cat >conftest.$ac_ext <<_ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h. */
17848 #include <locale.h>
17850 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17851 case "(($ac_try" in
17852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17853 *) ac_try_echo=$ac_try;;
17855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17856 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17862 (exit $ac_status); } >/dev/null && {
17863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17864 test ! -s conftest.err
17866 ac_header_preproc=yes
17868 echo "$as_me: failed program was
:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17871 ac_header_preproc=no
17874 rm -f conftest.err conftest.$ac_ext
17875 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17876 echo "${ECHO_T}$ac_header_preproc" >&6; }
17878 # So? What about this header?
17879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17881 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17882 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17883 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17884 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17885 ac_header_preproc=yes
17888 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17889 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17890 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17891 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17892 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17893 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17894 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17895 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17896 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17897 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17898 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17899 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17903 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17904 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17905 if test "${ac_cv_header_locale_h+set}" = set; then
17906 echo $ECHO_N "(cached
) $ECHO_C" >&6
17908 ac_cv_header_locale_h=$ac_header_preproc
17910 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17911 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17917 for ac_func in setlocale
17919 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17920 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17921 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17922 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17923 echo $ECHO_N "(cached
) $ECHO_C" >&6
17925 cat >conftest.$ac_ext <<_ACEOF
17928 cat confdefs.h >>conftest.$ac_ext
17929 cat >>conftest.$ac_ext <<_ACEOF
17930 /* end confdefs.h. */
17931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17933 #define $ac_func innocuous_$ac_func
17935 /* System header to define __stub macros and hopefully few prototypes,
17936 which can conflict with char $ac_func (); below.
17937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17938 <limits.h> exists even on freestanding compilers. */
17941 # include <limits.h>
17943 # include <assert.h>
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17955 /* The GNU C library defines this for functions which it implements
17956 to always fail with ENOSYS. Some functions are actually named
17957 something starting with __ and the normal name is an alias. */
17958 #if defined __stub_$ac_func || defined __stub___$ac_func
17965 return $ac_func ();
17970 rm -f conftest.$ac_objext conftest$ac_exeext
17971 if { (ac_try="$ac_link"
17972 case "(($ac_try" in
17973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17974 *) ac_try_echo=$ac_try;;
17976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17977 (eval "$ac_link") 2>conftest.er1
17979 grep -v '^ *+' conftest.er1 >conftest.err
17981 cat conftest.err >&5
17982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17983 (exit $ac_status); } && {
17984 test -z "$ac_c_werror_flag" ||
17985 test ! -s conftest.err
17986 } && test -s conftest$ac_exeext &&
17987 $as_test_x conftest$ac_exeext; then
17988 eval "$as_ac_var=yes"
17990 echo "$as_me: failed program was
:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17993 eval "$as_ac_var=no
"
17996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17997 conftest$ac_exeext conftest.$ac_ext
17999 ac_res=`eval echo '${'$as_ac_var'}'`
18000 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18001 echo "${ECHO_T}$ac_res" >&6; }
18002 if test `eval echo '${'$as_ac_var'}'` = yes; then
18003 cat >>confdefs.h <<_ACEOF
18004 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18011 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18012 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18013 # Irix 4.0.5F has the header but not the library.
18014 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18017 cat >>confdefs.h <<\_ACEOF
18023 if test $ac_have_func = no; then
18024 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18025 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18026 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18027 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18028 echo $ECHO_N "(cached
) $ECHO_C" >&6
18030 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18031 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18033 # Is the header compilable?
18034 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18035 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18036 cat >conftest.$ac_ext <<_ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h. */
18042 $ac_includes_default
18043 #include <inq_stats/cpustats.h>
18045 rm -f conftest.$ac_objext
18046 if { (ac_try="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18058 (exit $ac_status); } && {
18059 test -z "$ac_c_werror_flag" ||
18060 test ! -s conftest.err
18061 } && test -s conftest.$ac_objext; then
18062 ac_header_compiler=yes
18064 echo "$as_me: failed program was
:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18067 ac_header_compiler=no
18070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18071 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18072 echo "${ECHO_T}$ac_header_compiler" >&6; }
18074 # Is the header present?
18075 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18076 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18077 cat >conftest.$ac_ext <<_ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h. */
18083 #include <inq_stats/cpustats.h>
18085 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18086 case "(($ac_try" in
18087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18088 *) ac_try_echo=$ac_try;;
18090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18091 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18093 grep -v '^ *+' conftest.er1 >conftest.err
18095 cat conftest.err >&5
18096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18097 (exit $ac_status); } >/dev/null && {
18098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18099 test ! -s conftest.err
18101 ac_header_preproc=yes
18103 echo "$as_me: failed program was
:" >&5
18104 sed 's/^/| /' conftest.$ac_ext >&5
18106 ac_header_preproc=no
18109 rm -f conftest.err conftest.$ac_ext
18110 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18111 echo "${ECHO_T}$ac_header_preproc" >&6; }
18113 # So? What about this header?
18114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18116 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18117 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18118 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18119 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18120 ac_header_preproc=yes
18123 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18124 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18125 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18126 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18127 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18128 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18129 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18130 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18131 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18132 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18133 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18134 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18138 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18139 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18140 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18141 echo $ECHO_N "(cached
) $ECHO_C" >&6
18143 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18145 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18146 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18149 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18152 cat >>confdefs.h <<\_ACEOF
18157 cat >>confdefs.h <<\_ACEOF
18166 if test $ac_have_func = no; then
18167 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18168 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18169 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18170 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18171 echo $ECHO_N "(cached
) $ECHO_C" >&6
18173 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18174 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18176 # Is the header compilable?
18177 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18178 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 $ac_includes_default
18186 #include <sys/cpustats.h>
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_compile") 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18201 (exit $ac_status); } && {
18202 test -z "$ac_c_werror_flag" ||
18203 test ! -s conftest.err
18204 } && test -s conftest.$ac_objext; then
18205 ac_header_compiler=yes
18207 echo "$as_me: failed program was
:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 ac_header_compiler=no
18213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18214 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18215 echo "${ECHO_T}$ac_header_compiler" >&6; }
18217 # Is the header present?
18218 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18219 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18220 cat >conftest.$ac_ext <<_ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h. */
18226 #include <sys/cpustats.h>
18228 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18229 case "(($ac_try" in
18230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18231 *) ac_try_echo=$ac_try;;
18233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18234 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18236 grep -v '^ *+' conftest.er1 >conftest.err
18238 cat conftest.err >&5
18239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18240 (exit $ac_status); } >/dev/null && {
18241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18242 test ! -s conftest.err
18244 ac_header_preproc=yes
18246 echo "$as_me: failed program was
:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18249 ac_header_preproc=no
18252 rm -f conftest.err conftest.$ac_ext
18253 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18254 echo "${ECHO_T}$ac_header_preproc" >&6; }
18256 # So? What about this header?
18257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18259 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18260 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18261 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18262 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18263 ac_header_preproc=yes
18266 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18267 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18268 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18269 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18270 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18271 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18272 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18273 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18274 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18275 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18276 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18277 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18281 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18282 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18283 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18284 echo $ECHO_N "(cached
) $ECHO_C" >&6
18286 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18288 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18289 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18292 if test $ac_cv_header_sys_cpustats_h = yes; then
18293 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18302 if test $ac_have_func = no; then
18304 for ac_header in mach/mach.h
18306 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18308 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18309 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18311 echo $ECHO_N "(cached
) $ECHO_C" >&6
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18317 # Is the header compilable?
18318 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18319 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 $ac_includes_default
18327 #include <$ac_header>
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.$ac_objext; then
18346 ac_header_compiler=yes
18348 echo "$as_me: failed program was
:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_compiler=no
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18356 echo "${ECHO_T}$ac_header_compiler" >&6; }
18358 # Is the header present?
18359 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18360 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <$ac_header>
18369 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18381 (exit $ac_status); } >/dev/null && {
18382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18385 ac_header_preproc=yes
18387 echo "$as_me: failed program was
:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_preproc=no
18393 rm -f conftest.err conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18395 echo "${ECHO_T}$ac_header_preproc" >&6; }
18397 # So? What about this header?
18398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18400 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18401 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18402 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18404 ac_header_preproc=yes
18407 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18408 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18409 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18410 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18411 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18412 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18413 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18414 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18415 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18417 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18418 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18422 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18423 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18425 echo $ECHO_N "(cached
) $ECHO_C" >&6
18427 eval "$as_ac_Header=\
$ac_header_preproc"
18429 ac_res=`eval echo '${'$as_ac_Header'}'`
18430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18446 for ac_header in nlist.h
18448 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18450 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18451 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18453 echo $ECHO_N "(cached
) $ECHO_C" >&6
18455 ac_res=`eval echo '${'$as_ac_Header'}'`
18456 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18457 echo "${ECHO_T}$ac_res" >&6; }
18459 # Is the header compilable?
18460 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18461 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18462 cat >conftest.$ac_ext <<_ACEOF
18465 cat confdefs.h >>conftest.$ac_ext
18466 cat >>conftest.$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 $ac_includes_default
18469 #include <$ac_header>
18471 rm -f conftest.$ac_objext
18472 if { (ac_try="$ac_compile"
18473 case "(($ac_try" in
18474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18475 *) ac_try_echo=$ac_try;;
18477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18478 (eval "$ac_compile") 2>conftest.er1
18480 grep -v '^ *+' conftest.er1 >conftest.err
18482 cat conftest.err >&5
18483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18484 (exit $ac_status); } && {
18485 test -z "$ac_c_werror_flag" ||
18486 test ! -s conftest.err
18487 } && test -s conftest.$ac_objext; then
18488 ac_header_compiler=yes
18490 echo "$as_me: failed program was
:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_header_compiler=no
18496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18497 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18498 echo "${ECHO_T}$ac_header_compiler" >&6; }
18500 # Is the header present?
18501 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18502 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <$ac_header>
18511 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18512 case "(($ac_try" in
18513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18514 *) ac_try_echo=$ac_try;;
18516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18517 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18519 grep -v '^ *+' conftest.er1 >conftest.err
18521 cat conftest.err >&5
18522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18523 (exit $ac_status); } >/dev/null && {
18524 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18525 test ! -s conftest.err
18527 ac_header_preproc=yes
18529 echo "$as_me: failed program was
:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_header_preproc=no
18535 rm -f conftest.err conftest.$ac_ext
18536 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18537 echo "${ECHO_T}$ac_header_preproc" >&6; }
18539 # So? What about this header?
18540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18542 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18543 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18544 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18545 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18546 ac_header_preproc=yes
18549 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18550 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18551 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18552 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18553 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18554 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18555 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18556 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18557 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18559 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18560 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18564 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18565 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18567 echo $ECHO_N "(cached
) $ECHO_C" >&6
18569 eval "$as_ac_Header=\
$ac_header_preproc"
18571 ac_res=`eval echo '${'$as_ac_Header'}'`
18572 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18573 echo "${ECHO_T}$ac_res" >&6; }
18576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18577 cat >>confdefs.h <<_ACEOF
18578 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18580 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18581 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18582 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18583 echo $ECHO_N "(cached
) $ECHO_C" >&6
18585 cat >conftest.$ac_ext <<_ACEOF
18588 cat confdefs.h >>conftest.$ac_ext
18589 cat >>conftest.$ac_ext <<_ACEOF
18590 /* end confdefs.h. */
18596 static struct nlist ac_aggr;
18597 if (ac_aggr.n_un.n_name)
18603 rm -f conftest.$ac_objext
18604 if { (ac_try="$ac_compile"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_compile") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest.$ac_objext; then
18620 ac_cv_member_struct_nlist_n_un_n_name=yes
18622 echo "$as_me: failed program was
:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18625 cat >conftest.$ac_ext <<_ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h. */
18636 static struct nlist ac_aggr;
18637 if (sizeof ac_aggr.n_un.n_name)
18643 rm -f conftest.$ac_objext
18644 if { (ac_try="$ac_compile"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_compile") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest.$ac_objext; then
18660 ac_cv_member_struct_nlist_n_un_n_name=yes
18662 echo "$as_me: failed program was
:" >&5
18663 sed 's/^/| /' conftest.$ac_ext >&5
18665 ac_cv_member_struct_nlist_n_un_n_name=no
18668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18673 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18674 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18675 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18677 cat >>confdefs.h <<_ACEOF
18678 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18682 cat >>confdefs.h <<\_ACEOF
18683 #define NLIST_NAME_UNION 1
18697 # Some definitions of getloadavg require that the program be installed setgid.
18698 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18699 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18700 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18701 echo $ECHO_N "(cached
) $ECHO_C" >&6
18703 cat >conftest.$ac_ext <<_ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h. */
18709 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18710 #ifdef LDAV_PRIVILEGED
18711 Yowza Am I SETGID yet
18714 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18715 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18716 ac_cv_func_getloadavg_setgid=yes
18718 ac_cv_func_getloadavg_setgid=no
18723 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18724 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18725 if test $ac_cv_func_getloadavg_setgid = yes; then
18728 cat >>confdefs.h <<\_ACEOF
18729 #define GETLOADAVG_PRIVILEGED 1
18736 if test $ac_cv_func_getloadavg_setgid = yes; then
18737 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18738 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18739 if test "${ac_cv_group_kmem+set}" = set; then
18740 echo $ECHO_N "(cached
) $ECHO_C" >&6
18742 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18743 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18744 # If we got an error (system does not support symlinks), try without -L.
18745 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18746 ac_cv_group_kmem=`echo $ac_ls_output \
18747 | sed -ne 's/[ ][ ]*/ /g;
18748 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18752 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18753 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18754 KMEM_GROUP=$ac_cv_group_kmem
18756 if test "x
$ac_save_LIBS" = x; then
18757 GETLOADAVG_LIBS=$LIBS
18759 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18765 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18766 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18767 if test "${ac_cv_sys_largefile_source+set}" = set; then
18768 echo $ECHO_N "(cached
) $ECHO_C" >&6
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #include <sys/types.h> /* for off_t */
18782 int (*fp) (FILE *, off_t, int) = fseeko;
18783 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18788 rm -f conftest.$ac_objext conftest$ac_exeext
18789 if { (ac_try="$ac_link"
18790 case "(($ac_try" in
18791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18792 *) ac_try_echo=$ac_try;;
18794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18795 (eval "$ac_link") 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18801 (exit $ac_status); } && {
18802 test -z "$ac_c_werror_flag" ||
18803 test ! -s conftest.err
18804 } && test -s conftest$ac_exeext &&
18805 $as_test_x conftest$ac_exeext; then
18806 ac_cv_sys_largefile_source=no; break
18808 echo "$as_me: failed program was
:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18815 conftest$ac_exeext conftest.$ac_ext
18816 cat >conftest.$ac_ext <<_ACEOF
18819 cat confdefs.h >>conftest.$ac_ext
18820 cat >>conftest.$ac_ext <<_ACEOF
18821 /* end confdefs.h. */
18822 #define _LARGEFILE_SOURCE 1
18823 #include <sys/types.h> /* for off_t */
18828 int (*fp) (FILE *, off_t, int) = fseeko;
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_sys_largefile_source=1; break
18854 echo "$as_me: failed program was
:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 ac_cv_sys_largefile_source=unknown
18866 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18867 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18868 case $ac_cv_sys_largefile_source in #(
18871 cat >>confdefs.h <<_ACEOF
18872 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18878 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18879 # in glibc 2.1.3, but that breaks too many other things.
18880 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18881 if test $ac_cv_sys_largefile_source != unknown; then
18883 cat >>confdefs.h <<\_ACEOF
18884 #define HAVE_FSEEKO 1
18890 # Configure getopt.
18891 # getopt.m4 serial 10
18893 # The getopt module assume you want GNU getopt, with getopt_long etc,
18894 # rather than vanilla POSIX getopt. This means your your code should
18895 # always include <getopt.h> for the getopt prototypes.
18907 # Prerequisites of lib/getopt*.
18914 for ac_header in getopt.h
18916 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18917 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18918 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18919 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18920 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached
) $ECHO_C" >&6
18923 ac_res=`eval echo '${'$as_ac_Header'}'`
18924 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18925 echo "${ECHO_T}$ac_res" >&6; }
18927 # Is the header compilable?
18928 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18929 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18930 cat >conftest.$ac_ext <<_ACEOF
18933 cat confdefs.h >>conftest.$ac_ext
18934 cat >>conftest.$ac_ext <<_ACEOF
18935 /* end confdefs.h. */
18936 $ac_includes_default
18937 #include <$ac_header>
18939 rm -f conftest.$ac_objext
18940 if { (ac_try="$ac_compile"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_compile") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18952 (exit $ac_status); } && {
18953 test -z "$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18955 } && test -s conftest.$ac_objext; then
18956 ac_header_compiler=yes
18958 echo "$as_me: failed program was
:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_compiler=no
18964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18966 echo "${ECHO_T}$ac_header_compiler" >&6; }
18968 # Is the header present?
18969 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18970 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18971 cat >conftest.$ac_ext <<_ACEOF
18974 cat confdefs.h >>conftest.$ac_ext
18975 cat >>conftest.$ac_ext <<_ACEOF
18976 /* end confdefs.h. */
18977 #include <$ac_header>
18979 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18991 (exit $ac_status); } >/dev/null && {
18992 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18993 test ! -s conftest.err
18995 ac_header_preproc=yes
18997 echo "$as_me: failed program was
:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_header_preproc=no
19003 rm -f conftest.err conftest.$ac_ext
19004 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19005 echo "${ECHO_T}$ac_header_preproc" >&6; }
19007 # So? What about this header?
19008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19011 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19012 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19014 ac_header_preproc=yes
19017 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19018 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19019 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19020 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19021 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19022 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19023 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19024 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19025 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19027 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19028 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19032 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19033 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19034 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19035 echo $ECHO_N "(cached
) $ECHO_C" >&6
19037 eval "$as_ac_Header=\
$ac_header_preproc"
19039 ac_res=`eval echo '${'$as_ac_Header'}'`
19040 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19041 echo "${ECHO_T}$ac_res" >&6; }
19044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19045 cat >>confdefs.h <<_ACEOF
19046 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19055 if test -z "$GETOPT_H"; then
19057 for ac_func in getopt_long_only
19059 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19060 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19061 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19062 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19063 echo $ECHO_N "(cached
) $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19073 #define $ac_func innocuous_$ac_func
19075 /* System header to define __stub macros and hopefully few prototypes,
19076 which can conflict with char $ac_func (); below.
19077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19078 <limits.h> exists even on freestanding compilers. */
19081 # include <limits.h>
19083 # include <assert.h>
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19095 /* The GNU C library defines this for functions which it implements
19096 to always fail with ENOSYS. Some functions are actually named
19097 something starting with __ and the normal name is an alias. */
19098 #if defined __stub_$ac_func || defined __stub___$ac_func
19105 return $ac_func ();
19110 rm -f conftest.$ac_objext conftest$ac_exeext
19111 if { (ac_try="$ac_link"
19112 case "(($ac_try" in
19113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19114 *) ac_try_echo=$ac_try;;
19116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19117 (eval "$ac_link") 2>conftest.er1
19119 grep -v '^ *+' conftest.er1 >conftest.err
19121 cat conftest.err >&5
19122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19123 (exit $ac_status); } && {
19124 test -z "$ac_c_werror_flag" ||
19125 test ! -s conftest.err
19126 } && test -s conftest$ac_exeext &&
19127 $as_test_x conftest$ac_exeext; then
19128 eval "$as_ac_var=yes"
19130 echo "$as_me: failed program was
:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 eval "$as_ac_var=no
"
19136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19137 conftest$ac_exeext conftest.$ac_ext
19139 ac_res=`eval echo '${'$as_ac_var'}'`
19140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19141 echo "${ECHO_T}$ac_res" >&6; }
19142 if test `eval echo '${'$as_ac_var'}'` = yes; then
19143 cat >>confdefs.h <<_ACEOF
19144 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19154 if test -z "$GETOPT_H"; then
19155 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19156 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19157 if test "${ac_cv_have_decl_optreset+set}" = set; then
19158 echo $ECHO_N "(cached
) $ECHO_C" >&6
19160 cat >conftest.$ac_ext <<_ACEOF
19163 cat confdefs.h >>conftest.$ac_ext
19164 cat >>conftest.$ac_ext <<_ACEOF
19165 /* end confdefs.h. */
19166 #include <getopt.h>
19179 rm -f conftest.$ac_objext
19180 if { (ac_try="$ac_compile"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_compile") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19192 (exit $ac_status); } && {
19193 test -z "$ac_c_werror_flag" ||
19194 test ! -s conftest.err
19195 } && test -s conftest.$ac_objext; then
19196 ac_cv_have_decl_optreset=yes
19198 echo "$as_me: failed program was
:" >&5
19199 sed 's/^/| /' conftest.$ac_ext >&5
19201 ac_cv_have_decl_optreset=no
19204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19207 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19208 if test $ac_cv_have_decl_optreset = yes; then
19214 if test -z "$GETOPT_H"; then
19215 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19216 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19217 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19218 echo $ECHO_N "(cached
) $ECHO_C" >&6
19220 if test "$cross_compiling" = yes; then
19221 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19222 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19223 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19224 echo $ECHO_N "(cached
) $ECHO_C" >&6
19226 cat >conftest.$ac_ext <<_ACEOF
19229 cat confdefs.h >>conftest.$ac_ext
19230 cat >>conftest.$ac_ext <<_ACEOF
19231 /* end confdefs.h. */
19232 #include <getopt.h>
19237 #ifndef getopt_clip
19238 (void) getopt_clip;
19245 rm -f conftest.$ac_objext
19246 if { (ac_try="$ac_compile"
19247 case "(($ac_try" in
19248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19249 *) ac_try_echo=$ac_try;;
19251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19252 (eval "$ac_compile") 2>conftest.er1
19254 grep -v '^ *+' conftest.er1 >conftest.err
19256 cat conftest.err >&5
19257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19258 (exit $ac_status); } && {
19259 test -z "$ac_c_werror_flag" ||
19260 test ! -s conftest.err
19261 } && test -s conftest.$ac_objext; then
19262 ac_cv_have_decl_getopt_clip=yes
19264 echo "$as_me: failed program was
:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 ac_cv_have_decl_getopt_clip=no
19270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19272 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19273 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19274 if test $ac_cv_have_decl_getopt_clip = yes; then
19275 gl_cv_func_gnu_getopt=no
19277 gl_cv_func_gnu_getopt=yes
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 #include <getopt.h>
19293 myargv[0] = "conftest
";
19296 return getopt (2, myargv, "+a
") != '?';
19302 rm -f conftest$ac_exeext
19303 if { (ac_try="$ac_link"
19304 case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_link") 2>&5
19311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19312 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19313 { (case "(($ac_try" in
19314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19315 *) ac_try_echo=$ac_try;;
19317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19318 (eval "$ac_try") 2>&5
19320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19321 (exit $ac_status); }; }; then
19322 gl_cv_func_gnu_getopt=yes
19324 echo "$as_me: program exited with status
$ac_status" >&5
19325 echo "$as_me: failed program was
:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ( exit $ac_status )
19329 gl_cv_func_gnu_getopt=no
19331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19336 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19337 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19338 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19345 if test -n "$GETOPT_H"; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define __GETOPT_PREFIX rpl_
19357 GETOPTOBJS='getopt.o getopt1.o'
19364 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19365 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19366 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19367 echo $ECHO_N "(cached
) $ECHO_C" >&6
19369 # Use it with a single arg.
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19376 $ac_includes_default
19385 rm -f conftest.$ac_objext
19386 if { (ac_try="$ac_compile"
19387 case "(($ac_try" in
19388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19389 *) ac_try_echo=$ac_try;;
19391 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19392 (eval "$ac_compile") 2>conftest.er1
19394 grep -v '^ *+' conftest.er1 >conftest.err
19396 cat conftest.err >&5
19397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19398 (exit $ac_status); } && {
19399 test -z "$ac_c_werror_flag" ||
19400 test ! -s conftest.err
19401 } && test -s conftest.$ac_objext; then
19402 ac_cv_func_getpgrp_void=no
19404 echo "$as_me: failed program was
:" >&5
19405 sed 's/^/| /' conftest.$ac_ext >&5
19407 ac_cv_func_getpgrp_void=yes
19410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19414 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19415 if test $ac_cv_func_getpgrp_void = yes; then
19417 cat >>confdefs.h <<\_ACEOF
19418 #define GETPGRP_VOID 1
19425 for ac_func in strftime
19427 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19428 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19429 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19430 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19431 echo $ECHO_N "(cached
) $ECHO_C" >&6
19433 cat >conftest.$ac_ext <<_ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19441 #define $ac_func innocuous_$ac_func
19443 /* System header to define __stub macros and hopefully few prototypes,
19444 which can conflict with char $ac_func (); below.
19445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19446 <limits.h> exists even on freestanding compilers. */
19449 # include <limits.h>
19451 # include <assert.h>
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19463 /* The GNU C library defines this for functions which it implements
19464 to always fail with ENOSYS. Some functions are actually named
19465 something starting with __ and the normal name is an alias. */
19466 #if defined __stub_$ac_func || defined __stub___$ac_func
19473 return $ac_func ();
19478 rm -f conftest.$ac_objext conftest$ac_exeext
19479 if { (ac_try="$ac_link"
19480 case "(($ac_try" in
19481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19482 *) ac_try_echo=$ac_try;;
19484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19485 (eval "$ac_link") 2>conftest.er1
19487 grep -v '^ *+' conftest.er1 >conftest.err
19489 cat conftest.err >&5
19490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19491 (exit $ac_status); } && {
19492 test -z "$ac_c_werror_flag" ||
19493 test ! -s conftest.err
19494 } && test -s conftest$ac_exeext &&
19495 $as_test_x conftest$ac_exeext; then
19496 eval "$as_ac_var=yes"
19498 echo "$as_me: failed program was
:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 eval "$as_ac_var=no
"
19504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19505 conftest$ac_exeext conftest.$ac_ext
19507 ac_res=`eval echo '${'$as_ac_var'}'`
19508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19509 echo "${ECHO_T}$ac_res" >&6; }
19510 if test `eval echo '${'$as_ac_var'}'` = yes; then
19511 cat >>confdefs.h <<_ACEOF
19512 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19516 # strftime is in -lintl on SCO UNIX.
19517 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19518 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19519 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19520 echo $ECHO_N "(cached
) $ECHO_C" >&6
19522 ac_check_lib_save_LIBS=$LIBS
19523 LIBS="-lintl $LIBS"
19524 cat >conftest.$ac_ext <<_ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h. */
19531 /* Override any GCC internal prototype to avoid an error.
19532 Use char because int might match the return type of a GCC
19533 builtin and then its argument prototype would still apply. */
19541 return strftime ();
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19555 grep -v '^ *+' conftest.er1 >conftest.err
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 ac_cv_lib_intl_strftime=yes
19566 echo "$as_me: failed program was
:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ac_cv_lib_intl_strftime=no
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19574 LIBS=$ac_check_lib_save_LIBS
19576 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19577 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19578 if test $ac_cv_lib_intl_strftime = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define HAVE_STRFTIME 1
19583 LIBS="-lintl $LIBS"
19592 for ac_func in grantpt
19594 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19595 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19596 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19597 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19598 echo $ECHO_N "(cached
) $ECHO_C" >&6
19600 cat >conftest.$ac_ext <<_ACEOF
19603 cat confdefs.h >>conftest.$ac_ext
19604 cat >>conftest.$ac_ext <<_ACEOF
19605 /* end confdefs.h. */
19606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19608 #define $ac_func innocuous_$ac_func
19610 /* System header to define __stub macros and hopefully few prototypes,
19611 which can conflict with char $ac_func (); below.
19612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19613 <limits.h> exists even on freestanding compilers. */
19616 # include <limits.h>
19618 # include <assert.h>
19623 /* Override any GCC internal prototype to avoid an error.
19624 Use char because int might match the return type of a GCC
19625 builtin and then its argument prototype would still apply. */
19630 /* The GNU C library defines this for functions which it implements
19631 to always fail with ENOSYS. Some functions are actually named
19632 something starting with __ and the normal name is an alias. */
19633 #if defined __stub_$ac_func || defined __stub___$ac_func
19640 return $ac_func ();
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 eval "$as_ac_var=yes"
19665 echo "$as_me: failed program was
:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 eval "$as_ac_var=no
"
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19674 ac_res=`eval echo '${'$as_ac_var'}'`
19675 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19676 echo "${ECHO_T}$ac_res" >&6; }
19677 if test `eval echo '${'$as_ac_var'}'` = yes; then
19678 cat >>confdefs.h <<_ACEOF
19679 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19686 # PTY-related GNU extensions.
19688 for ac_func in getpt
19690 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19691 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19692 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19693 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19694 echo $ECHO_N "(cached
) $ECHO_C" >&6
19696 cat >conftest.$ac_ext <<_ACEOF
19699 cat confdefs.h >>conftest.$ac_ext
19700 cat >>conftest.$ac_ext <<_ACEOF
19701 /* end confdefs.h. */
19702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19704 #define $ac_func innocuous_$ac_func
19706 /* System header to define __stub macros and hopefully few prototypes,
19707 which can conflict with char $ac_func (); below.
19708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19709 <limits.h> exists even on freestanding compilers. */
19712 # include <limits.h>
19714 # include <assert.h>
19719 /* Override any GCC internal prototype to avoid an error.
19720 Use char because int might match the return type of a GCC
19721 builtin and then its argument prototype would still apply. */
19726 /* The GNU C library defines this for functions which it implements
19727 to always fail with ENOSYS. Some functions are actually named
19728 something starting with __ and the normal name is an alias. */
19729 #if defined __stub_$ac_func || defined __stub___$ac_func
19736 return $ac_func ();
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 eval "$as_ac_var=yes"
19761 echo "$as_me: failed program was
:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 eval "$as_ac_var=no
"
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19770 ac_res=`eval echo '${'$as_ac_var'}'`
19771 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19772 echo "${ECHO_T}$ac_res" >&6; }
19773 if test `eval echo '${'$as_ac_var'}'` = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19782 # Check this now, so that we will NOT find the above functions in ncurses.
19783 # That is because we have not set up to link ncurses in lib-src.
19784 # It's better to believe a function is not available
19785 # than to expect to find it in ncurses.
19787 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19788 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19789 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19790 echo $ECHO_N "(cached
) $ECHO_C" >&6
19792 ac_check_lib_save_LIBS=$LIBS
19793 LIBS="-lncurses $LIBS"
19794 cat >conftest.$ac_ext <<_ACEOF
19797 cat confdefs.h >>conftest.$ac_ext
19798 cat >>conftest.$ac_ext <<_ACEOF
19799 /* end confdefs.h. */
19801 /* Override any GCC internal prototype to avoid an error.
19802 Use char because int might match the return type of a GCC
19803 builtin and then its argument prototype would still apply. */
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_lib_ncurses_tparm=yes
19836 echo "$as_me: failed program was
:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_lib_ncurses_tparm=no
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19844 LIBS=$ac_check_lib_save_LIBS
19846 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19847 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19848 if test $ac_cv_lib_ncurses_tparm = yes; then
19849 cat >>confdefs.h <<_ACEOF
19850 #define HAVE_LIBNCURSES 1
19853 LIBS="-lncurses $LIBS"
19858 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19861 cat >conftest.$ac_ext <<_ACEOF
19864 cat confdefs.h >>conftest.$ac_ext
19865 cat >>conftest.$ac_ext <<_ACEOF
19866 /* end confdefs.h. */
19867 #include <netinet/in.h>
19868 #include <arpa/nameser.h>
19869 #include <resolv.h>
19878 rm -f conftest.$ac_objext conftest$ac_exeext
19879 if { (ac_try="$ac_link"
19880 case "(($ac_try" in
19881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19882 *) ac_try_echo=$ac_try;;
19884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19885 (eval "$ac_link") 2>conftest.er1
19887 grep -v '^ *+' conftest.er1 >conftest.err
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19891 (exit $ac_status); } && {
19892 test -z "$ac_c_werror_flag" ||
19893 test ! -s conftest.err
19894 } && test -s conftest$ac_exeext &&
19895 $as_test_x conftest$ac_exeext; then
19898 echo "$as_me: failed program was
:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19905 conftest$ac_exeext conftest.$ac_ext
19906 if test "$have_res_init" = no; then
19908 LIBS="$LIBS -lresolv"
19909 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19910 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 #include <netinet/in.h>
19918 #include <arpa/nameser.h>
19919 #include <resolv.h>
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (ac_try="$ac_link"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_link") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest$ac_exeext &&
19945 $as_test_x conftest$ac_exeext; then
19948 echo "$as_me: failed program was
:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19955 conftest$ac_exeext conftest.$ac_ext
19956 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19957 echo "${ECHO_T}$have_res_init" >&6; }
19958 if test "$have_res_init" = yes ; then
19964 if test "$have_res_init" = yes; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_RES_INIT 1
19972 # Do we need the Hesiod library to provide the support routines?
19973 if test "$with_hesiod" = yes ; then
19974 # Don't set $LIBS here -- see comments above.
19975 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19976 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19977 if test "${ac_cv_func_res_send+set}" = set; then
19978 echo $ECHO_N "(cached
) $ECHO_C" >&6
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19988 #define res_send innocuous_res_send
19990 /* System header to define __stub macros and hopefully few prototypes,
19991 which can conflict with char res_send (); below.
19992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19993 <limits.h> exists even on freestanding compilers. */
19996 # include <limits.h>
19998 # include <assert.h>
20003 /* Override any GCC internal prototype to avoid an error.
20004 Use char because int might match the return type of a GCC
20005 builtin and then its argument prototype would still apply. */
20010 /* The GNU C library defines this for functions which it implements
20011 to always fail with ENOSYS. Some functions are actually named
20012 something starting with __ and the normal name is an alias. */
20013 #if defined __stub_res_send || defined __stub___res_send
20020 return res_send ();
20025 rm -f conftest.$ac_objext conftest$ac_exeext
20026 if { (ac_try="$ac_link"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_link") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20038 (exit $ac_status); } && {
20039 test -z "$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20041 } && test -s conftest$ac_exeext &&
20042 $as_test_x conftest$ac_exeext; then
20043 ac_cv_func_res_send=yes
20045 echo "$as_me: failed program was
:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 ac_cv_func_res_send=no
20051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20052 conftest$ac_exeext conftest.$ac_ext
20054 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20055 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20056 if test $ac_cv_func_res_send = yes; then
20059 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20060 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20061 if test "${ac_cv_func___res_send+set}" = set; then
20062 echo $ECHO_N "(cached
) $ECHO_C" >&6
20064 cat >conftest.$ac_ext <<_ACEOF
20067 cat confdefs.h >>conftest.$ac_ext
20068 cat >>conftest.$ac_ext <<_ACEOF
20069 /* end confdefs.h. */
20070 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20072 #define __res_send innocuous___res_send
20074 /* System header to define __stub macros and hopefully few prototypes,
20075 which can conflict with char __res_send (); below.
20076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20077 <limits.h> exists even on freestanding compilers. */
20080 # include <limits.h>
20082 # include <assert.h>
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20093 char __res_send ();
20094 /* The GNU C library defines this for functions which it implements
20095 to always fail with ENOSYS. Some functions are actually named
20096 something starting with __ and the normal name is an alias. */
20097 #if defined __stub___res_send || defined __stub_____res_send
20104 return __res_send ();
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20118 grep -v '^ *+' conftest.er1 >conftest.err
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_func___res_send=yes
20129 echo "$as_me: failed program was
:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_cv_func___res_send=no
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20138 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20139 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20140 if test $ac_cv_func___res_send = yes; then
20143 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20144 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20145 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20146 echo $ECHO_N "(cached
) $ECHO_C" >&6
20148 ac_check_lib_save_LIBS=$LIBS
20149 LIBS="-lresolv $LIBS"
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20157 /* Override any GCC internal prototype to avoid an error.
20158 Use char because int might match the return type of a GCC
20159 builtin and then its argument prototype would still apply. */
20167 return res_send ();
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20181 grep -v '^ *+' conftest.er1 >conftest.err
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20185 (exit $ac_status); } && {
20186 test -z "$ac_c_werror_flag" ||
20187 test ! -s conftest.err
20188 } && test -s conftest$ac_exeext &&
20189 $as_test_x conftest$ac_exeext; then
20190 ac_cv_lib_resolv_res_send=yes
20192 echo "$as_me: failed program was
:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_cv_lib_resolv_res_send=no
20198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20199 conftest$ac_exeext conftest.$ac_ext
20200 LIBS=$ac_check_lib_save_LIBS
20202 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20203 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20204 if test $ac_cv_lib_resolv_res_send = yes; then
20207 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20208 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20209 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20210 echo $ECHO_N "(cached
) $ECHO_C" >&6
20212 ac_check_lib_save_LIBS=$LIBS
20213 LIBS="-lresolv $LIBS"
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20221 /* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
20227 char __res_send ();
20231 return __res_send ();
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>conftest.er1
20245 grep -v '^ *+' conftest.er1 >conftest.err
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest$ac_exeext &&
20253 $as_test_x conftest$ac_exeext; then
20254 ac_cv_lib_resolv___res_send=yes
20256 echo "$as_me: failed program was
:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_lib_resolv___res_send=no
20262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20267 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20268 if test $ac_cv_lib_resolv___res_send = yes; then
20278 if test "$resolv" = yes ; then
20283 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20284 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20285 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20286 echo $ECHO_N "(cached
) $ECHO_C" >&6
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20294 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20296 #define hes_getmailhost innocuous_hes_getmailhost
20298 /* System header to define __stub macros and hopefully few prototypes,
20299 which can conflict with char hes_getmailhost (); below.
20300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20301 <limits.h> exists even on freestanding compilers. */
20304 # include <limits.h>
20306 # include <assert.h>
20309 #undef hes_getmailhost
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20317 char hes_getmailhost ();
20318 /* The GNU C library defines this for functions which it implements
20319 to always fail with ENOSYS. Some functions are actually named
20320 something starting with __ and the normal name is an alias. */
20321 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20328 return hes_getmailhost ();
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_func_hes_getmailhost=yes
20353 echo "$as_me: failed program was
:" >&5
20354 sed 's/^/| /' conftest.$ac_ext >&5
20356 ac_cv_func_hes_getmailhost=no
20359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20360 conftest$ac_exeext conftest.$ac_ext
20362 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20363 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20364 if test $ac_cv_func_hes_getmailhost = yes; then
20367 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20368 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20369 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20370 echo $ECHO_N "(cached
) $ECHO_C" >&6
20372 ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-lhesiod $RESOLVLIB $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h. */
20381 /* Override any GCC internal prototype to avoid an error.
20382 Use char because int might match the return type of a GCC
20383 builtin and then its argument prototype would still apply. */
20387 char hes_getmailhost ();
20391 return hes_getmailhost ();
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_link") 2>conftest.er1
20405 grep -v '^ *+' conftest.er1 >conftest.err
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest$ac_exeext &&
20413 $as_test_x conftest$ac_exeext; then
20414 ac_cv_lib_hesiod_hes_getmailhost=yes
20416 echo "$as_me: failed program was
:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20419 ac_cv_lib_hesiod_hes_getmailhost=no
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423 conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20426 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20427 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20428 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20430 cat >>confdefs.h <<\_ACEOF
20431 #define HAVE_LIBHESIOD 1
20442 # Do we need libresolv (due to res_init or Hesiod)?
20443 if test "$resolv" = yes ; then
20445 cat >>confdefs.h <<\_ACEOF
20446 #define HAVE_LIBRESOLV 1
20451 # These tell us which Kerberos-related libraries to use.
20452 if test "${with_kerberos+set}" = set; then
20454 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20455 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20456 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20457 echo $ECHO_N "(cached
) $ECHO_C" >&6
20459 ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-lcom_err $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>conftest.er1
20492 grep -v '^ *+' conftest.er1 >conftest.err
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest$ac_exeext &&
20500 $as_test_x conftest$ac_exeext; then
20501 ac_cv_lib_com_err_com_err=yes
20503 echo "$as_me: failed program was
:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_com_err_com_err=no
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20514 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20515 if test $ac_cv_lib_com_err_com_err = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBCOM_ERR 1
20520 LIBS="-lcom_err $LIBS"
20525 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20526 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20527 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20528 echo $ECHO_N "(cached
) $ECHO_C" >&6
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lk5crypto $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20545 char mit_des_cbc_encrypt ();
20549 return mit_des_cbc_encrypt ();
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest$ac_exeext &&
20571 $as_test_x conftest$ac_exeext; then
20572 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20574 echo "$as_me: failed program was
:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20584 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20585 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20586 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBK5CRYPTO 1
20591 LIBS="-lk5crypto $LIBS"
20596 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20597 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20598 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20599 echo $ECHO_N "(cached
) $ECHO_C" >&6
20601 ac_check_lib_save_LIBS=$LIBS
20602 LIBS="-lcrypto $LIBS"
20603 cat >conftest.$ac_ext <<_ACEOF
20606 cat confdefs.h >>conftest.$ac_ext
20607 cat >>conftest.$ac_ext <<_ACEOF
20608 /* end confdefs.h. */
20610 /* Override any GCC internal prototype to avoid an error.
20611 Use char because int might match the return type of a GCC
20612 builtin and then its argument prototype would still apply. */
20616 char mit_des_cbc_encrypt ();
20620 return mit_des_cbc_encrypt ();
20625 rm -f conftest.$ac_objext conftest$ac_exeext
20626 if { (ac_try="$ac_link"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_link") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest$ac_exeext &&
20642 $as_test_x conftest$ac_exeext; then
20643 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20645 echo "$as_me: failed program was
:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20652 conftest$ac_exeext conftest.$ac_ext
20653 LIBS=$ac_check_lib_save_LIBS
20655 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20656 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20657 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_LIBCRYPTO 1
20662 LIBS="-lcrypto $LIBS"
20667 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20668 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20669 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20670 echo $ECHO_N "(cached
) $ECHO_C" >&6
20672 ac_check_lib_save_LIBS=$LIBS
20673 LIBS="-lkrb5 $LIBS"
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20687 char krb5_init_context ();
20691 return krb5_init_context ();
20696 rm -f conftest.$ac_objext conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1 >conftest.err
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest$ac_exeext &&
20713 $as_test_x conftest$ac_exeext; then
20714 ac_cv_lib_krb5_krb5_init_context=yes
20716 echo "$as_me: failed program was
:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_cv_lib_krb5_krb5_init_context=no
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20727 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20728 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_LIBKRB5 1
20733 LIBS="-lkrb5 $LIBS"
20737 if test "${with_kerberos5+set}" != set; then
20739 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20740 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20741 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20742 echo $ECHO_N "(cached
) $ECHO_C" >&6
20744 ac_check_lib_save_LIBS=$LIBS
20745 LIBS="-ldes425 $LIBS"
20746 cat >conftest.$ac_ext <<_ACEOF
20749 cat confdefs.h >>conftest.$ac_ext
20750 cat >>conftest.$ac_ext <<_ACEOF
20751 /* end confdefs.h. */
20753 /* Override any GCC internal prototype to avoid an error.
20754 Use char because int might match the return type of a GCC
20755 builtin and then its argument prototype would still apply. */
20759 char des_cbc_encrypt ();
20763 return des_cbc_encrypt ();
20768 rm -f conftest.$ac_objext conftest$ac_exeext
20769 if { (ac_try="$ac_link"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_link") 2>conftest.er1
20777 grep -v '^ *+' conftest.er1 >conftest.err
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest$ac_exeext &&
20785 $as_test_x conftest$ac_exeext; then
20786 ac_cv_lib_des425_des_cbc_encrypt=yes
20788 echo "$as_me: failed program was
:" >&5
20789 sed 's/^/| /' conftest.$ac_ext >&5
20791 ac_cv_lib_des425_des_cbc_encrypt=no
20794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20795 conftest$ac_exeext conftest.$ac_ext
20796 LIBS=$ac_check_lib_save_LIBS
20798 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20799 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20800 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20801 cat >>confdefs.h <<_ACEOF
20802 #define HAVE_LIBDES425 1
20805 LIBS="-ldes425 $LIBS"
20809 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20810 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20811 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20812 echo $ECHO_N "(cached
) $ECHO_C" >&6
20814 ac_check_lib_save_LIBS=$LIBS
20816 cat >conftest.$ac_ext <<_ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h. */
20823 /* Override any GCC internal prototype to avoid an error.
20824 Use char because int might match the return type of a GCC
20825 builtin and then its argument prototype would still apply. */
20829 char des_cbc_encrypt ();
20833 return des_cbc_encrypt ();
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20845 (eval "$ac_link") 2>conftest.er1
20847 grep -v '^ *+' conftest.er1 >conftest.err
20849 cat conftest.err >&5
20850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20851 (exit $ac_status); } && {
20852 test -z "$ac_c_werror_flag" ||
20853 test ! -s conftest.err
20854 } && test -s conftest$ac_exeext &&
20855 $as_test_x conftest$ac_exeext; then
20856 ac_cv_lib_des_des_cbc_encrypt=yes
20858 echo "$as_me: failed program was
:" >&5
20859 sed 's/^/| /' conftest.$ac_ext >&5
20861 ac_cv_lib_des_des_cbc_encrypt=no
20864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20865 conftest$ac_exeext conftest.$ac_ext
20866 LIBS=$ac_check_lib_save_LIBS
20868 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20869 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20870 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define HAVE_LIBDES 1
20882 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20883 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20884 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20885 echo $ECHO_N "(cached
) $ECHO_C" >&6
20887 ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lkrb4 $LIBS"
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20902 char krb_get_cred ();
20906 return krb_get_cred ();
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (ac_try="$ac_link"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_link") 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext &&
20928 $as_test_x conftest$ac_exeext; then
20929 ac_cv_lib_krb4_krb_get_cred=yes
20931 echo "$as_me: failed program was
:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_cv_lib_krb4_krb_get_cred=no
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20941 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20942 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20943 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define HAVE_LIBKRB4 1
20948 LIBS="-lkrb4 $LIBS"
20952 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20953 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20954 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20955 echo $ECHO_N "(cached
) $ECHO_C" >&6
20957 ac_check_lib_save_LIBS=$LIBS
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20966 /* Override any GCC internal prototype to avoid an error.
20967 Use char because int might match the return type of a GCC
20968 builtin and then its argument prototype would still apply. */
20972 char krb_get_cred ();
20976 return krb_get_cred ();
20981 rm -f conftest.$ac_objext conftest$ac_exeext
20982 if { (ac_try="$ac_link"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_link") 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest$ac_exeext &&
20998 $as_test_x conftest$ac_exeext; then
20999 ac_cv_lib_krb_krb_get_cred=yes
21001 echo "$as_me: failed program was
:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_cv_lib_krb_krb_get_cred=no
21007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21008 conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21011 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21012 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21013 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define HAVE_LIBKRB 1
21026 if test "${with_kerberos5+set}" = set; then
21028 for ac_header in krb5.h
21030 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21032 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21033 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21034 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21035 echo $ECHO_N "(cached
) $ECHO_C" >&6
21037 ac_res=`eval echo '${'$as_ac_Header'}'`
21038 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21039 echo "${ECHO_T}$ac_res" >&6; }
21041 # Is the header compilable?
21042 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21043 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21044 cat >conftest.$ac_ext <<_ACEOF
21047 cat confdefs.h >>conftest.$ac_ext
21048 cat >>conftest.$ac_ext <<_ACEOF
21049 /* end confdefs.h. */
21050 $ac_includes_default
21051 #include <$ac_header>
21053 rm -f conftest.$ac_objext
21054 if { (ac_try="$ac_compile"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_compile") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest.$ac_objext; then
21070 ac_header_compiler=yes
21072 echo "$as_me: failed program was
:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_compiler=no
21078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21080 echo "${ECHO_T}$ac_header_compiler" >&6; }
21082 # Is the header present?
21083 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21084 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 #include <$ac_header>
21093 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21094 case "(($ac_try" in
21095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21096 *) ac_try_echo=$ac_try;;
21098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21099 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21101 grep -v '^ *+' conftest.er1 >conftest.err
21103 cat conftest.err >&5
21104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21105 (exit $ac_status); } >/dev/null && {
21106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21109 ac_header_preproc=yes
21111 echo "$as_me: failed program was
:" >&5
21112 sed 's/^/| /' conftest.$ac_ext >&5
21114 ac_header_preproc=no
21117 rm -f conftest.err conftest.$ac_ext
21118 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21119 echo "${ECHO_T}$ac_header_preproc" >&6; }
21121 # So? What about this header?
21122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21125 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21126 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21128 ac_header_preproc=yes
21131 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21132 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21133 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21134 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21136 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21138 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21141 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21142 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21146 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21147 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21148 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21149 echo $ECHO_N "(cached
) $ECHO_C" >&6
21151 eval "$as_ac_Header=\
$ac_header_preproc"
21153 ac_res=`eval echo '${'$as_ac_Header'}'`
21154 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21155 echo "${ECHO_T}$ac_res" >&6; }
21158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21169 for ac_header in des.h
21171 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21173 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21174 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached
) $ECHO_C" >&6
21178 ac_res=`eval echo '${'$as_ac_Header'}'`
21179 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21180 echo "${ECHO_T}$ac_res" >&6; }
21182 # Is the header compilable?
21183 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21184 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21185 cat >conftest.$ac_ext <<_ACEOF
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 $ac_includes_default
21192 #include <$ac_header>
21194 rm -f conftest.$ac_objext
21195 if { (ac_try="$ac_compile"
21196 case "(($ac_try" in
21197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21198 *) ac_try_echo=$ac_try;;
21200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21201 (eval "$ac_compile") 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21207 (exit $ac_status); } && {
21208 test -z "$ac_c_werror_flag" ||
21209 test ! -s conftest.err
21210 } && test -s conftest.$ac_objext; then
21211 ac_header_compiler=yes
21213 echo "$as_me: failed program was
:" >&5
21214 sed 's/^/| /' conftest.$ac_ext >&5
21216 ac_header_compiler=no
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21221 echo "${ECHO_T}$ac_header_compiler" >&6; }
21223 # Is the header present?
21224 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21225 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 #include <$ac_header>
21234 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21242 grep -v '^ *+' conftest.er1 >conftest.err
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21246 (exit $ac_status); } >/dev/null && {
21247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21250 ac_header_preproc=yes
21252 echo "$as_me: failed program was
:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21255 ac_header_preproc=no
21258 rm -f conftest.err conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21260 echo "${ECHO_T}$ac_header_preproc" >&6; }
21262 # So? What about this header?
21263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21265 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21266 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21267 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21268 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21269 ac_header_preproc=yes
21272 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21273 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21274 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21275 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21276 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21277 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21278 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21279 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21280 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21281 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21282 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21283 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21287 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21288 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached
) $ECHO_C" >&6
21292 eval "$as_ac_Header=\
$ac_header_preproc"
21294 ac_res=`eval echo '${'$as_ac_Header'}'`
21295 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21296 echo "${ECHO_T}$ac_res" >&6; }
21299 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21300 cat >>confdefs.h <<_ACEOF
21301 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21306 for ac_header in kerberosIV/des.h
21308 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21309 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached
) $ECHO_C" >&6
21315 ac_res=`eval echo '${'$as_ac_Header'}'`
21316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21317 echo "${ECHO_T}$ac_res" >&6; }
21319 # Is the header compilable?
21320 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21321 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21322 cat >conftest.$ac_ext <<_ACEOF
21325 cat confdefs.h >>conftest.$ac_ext
21326 cat >>conftest.$ac_ext <<_ACEOF
21327 /* end confdefs.h. */
21328 $ac_includes_default
21329 #include <$ac_header>
21331 rm -f conftest.$ac_objext
21332 if { (ac_try="$ac_compile"
21333 case "(($ac_try" in
21334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335 *) ac_try_echo=$ac_try;;
21337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21338 (eval "$ac_compile") 2>conftest.er1
21340 grep -v '^ *+' conftest.er1 >conftest.err
21342 cat conftest.err >&5
21343 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21344 (exit $ac_status); } && {
21345 test -z "$ac_c_werror_flag" ||
21346 test ! -s conftest.err
21347 } && test -s conftest.$ac_objext; then
21348 ac_header_compiler=yes
21350 echo "$as_me: failed program was
:" >&5
21351 sed 's/^/| /' conftest.$ac_ext >&5
21353 ac_header_compiler=no
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21358 echo "${ECHO_T}$ac_header_compiler" >&6; }
21360 # Is the header present?
21361 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21362 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 #include <$ac_header>
21371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21372 case "(($ac_try" in
21373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374 *) ac_try_echo=$ac_try;;
21376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21379 grep -v '^ *+' conftest.er1 >conftest.err
21381 cat conftest.err >&5
21382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21383 (exit $ac_status); } >/dev/null && {
21384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21385 test ! -s conftest.err
21387 ac_header_preproc=yes
21389 echo "$as_me: failed program was
:" >&5
21390 sed 's/^/| /' conftest.$ac_ext >&5
21392 ac_header_preproc=no
21395 rm -f conftest.err conftest.$ac_ext
21396 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21397 echo "${ECHO_T}$ac_header_preproc" >&6; }
21399 # So? What about this header?
21400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21402 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21403 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21404 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21405 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21406 ac_header_preproc=yes
21409 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21410 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21411 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21412 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21413 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21414 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21415 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21416 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21417 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21418 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21419 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21420 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached
) $ECHO_C" >&6
21429 eval "$as_ac_Header=\
$ac_header_preproc"
21431 ac_res=`eval echo '${'$as_ac_Header'}'`
21432 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21433 echo "${ECHO_T}$ac_res" >&6; }
21436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21437 cat >>confdefs.h <<_ACEOF
21438 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21443 for ac_header in kerberos/des.h
21445 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21446 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21447 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21448 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21449 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21450 echo $ECHO_N "(cached
) $ECHO_C" >&6
21452 ac_res=`eval echo '${'$as_ac_Header'}'`
21453 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21454 echo "${ECHO_T}$ac_res" >&6; }
21456 # Is the header compilable?
21457 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21458 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21459 cat >conftest.$ac_ext <<_ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h. */
21465 $ac_includes_default
21466 #include <$ac_header>
21468 rm -f conftest.$ac_objext
21469 if { (ac_try="$ac_compile"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_compile") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21481 (exit $ac_status); } && {
21482 test -z "$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21484 } && test -s conftest.$ac_objext; then
21485 ac_header_compiler=yes
21487 echo "$as_me: failed program was
:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_compiler=no
21493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21495 echo "${ECHO_T}$ac_header_compiler" >&6; }
21497 # Is the header present?
21498 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21499 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21500 cat >conftest.$ac_ext <<_ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h. */
21506 #include <$ac_header>
21508 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21520 (exit $ac_status); } >/dev/null && {
21521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21524 ac_header_preproc=yes
21526 echo "$as_me: failed program was
:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_header_preproc=no
21532 rm -f conftest.err conftest.$ac_ext
21533 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21534 echo "${ECHO_T}$ac_header_preproc" >&6; }
21536 # So? What about this header?
21537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21539 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21540 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21541 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21543 ac_header_preproc=yes
21546 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21547 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21548 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21549 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21550 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21551 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21552 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21553 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21554 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21556 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21557 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21561 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21562 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21563 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21564 echo $ECHO_N "(cached
) $ECHO_C" >&6
21566 eval "$as_ac_Header=\
$ac_header_preproc"
21568 ac_res=`eval echo '${'$as_ac_Header'}'`
21569 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21570 echo "${ECHO_T}$ac_res" >&6; }
21573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21574 cat >>confdefs.h <<_ACEOF
21575 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21591 for ac_header in krb.h
21593 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21595 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21596 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21598 echo $ECHO_N "(cached
) $ECHO_C" >&6
21600 ac_res=`eval echo '${'$as_ac_Header'}'`
21601 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21602 echo "${ECHO_T}$ac_res" >&6; }
21604 # Is the header compilable?
21605 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21606 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21607 cat >conftest.$ac_ext <<_ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */
21613 $ac_includes_default
21614 #include <$ac_header>
21616 rm -f conftest.$ac_objext
21617 if { (ac_try="$ac_compile"
21618 case "(($ac_try" in
21619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21620 *) ac_try_echo=$ac_try;;
21622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21623 (eval "$ac_compile") 2>conftest.er1
21625 grep -v '^ *+' conftest.er1 >conftest.err
21627 cat conftest.err >&5
21628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21629 (exit $ac_status); } && {
21630 test -z "$ac_c_werror_flag" ||
21631 test ! -s conftest.err
21632 } && test -s conftest.$ac_objext; then
21633 ac_header_compiler=yes
21635 echo "$as_me: failed program was
:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_header_compiler=no
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21642 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21643 echo "${ECHO_T}$ac_header_compiler" >&6; }
21645 # Is the header present?
21646 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21647 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21648 cat >conftest.$ac_ext <<_ACEOF
21651 cat confdefs.h >>conftest.$ac_ext
21652 cat >>conftest.$ac_ext <<_ACEOF
21653 /* end confdefs.h. */
21654 #include <$ac_header>
21656 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21657 case "(($ac_try" in
21658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21659 *) ac_try_echo=$ac_try;;
21661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21662 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21664 grep -v '^ *+' conftest.er1 >conftest.err
21666 cat conftest.err >&5
21667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21668 (exit $ac_status); } >/dev/null && {
21669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21670 test ! -s conftest.err
21672 ac_header_preproc=yes
21674 echo "$as_me: failed program was
:" >&5
21675 sed 's/^/| /' conftest.$ac_ext >&5
21677 ac_header_preproc=no
21680 rm -f conftest.err conftest.$ac_ext
21681 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21682 echo "${ECHO_T}$ac_header_preproc" >&6; }
21684 # So? What about this header?
21685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21687 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21688 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21689 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21690 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21691 ac_header_preproc=yes
21694 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21695 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21696 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21697 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21698 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21699 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21701 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21702 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21703 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21704 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21705 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21709 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21710 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21712 echo $ECHO_N "(cached
) $ECHO_C" >&6
21714 eval "$as_ac_Header=\
$ac_header_preproc"
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21721 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21728 for ac_header in kerberosIV/krb.h
21730 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21731 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21732 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21733 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21734 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21735 echo $ECHO_N "(cached
) $ECHO_C" >&6
21737 ac_res=`eval echo '${'$as_ac_Header'}'`
21738 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21739 echo "${ECHO_T}$ac_res" >&6; }
21741 # Is the header compilable?
21742 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21743 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21744 cat >conftest.$ac_ext <<_ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750 $ac_includes_default
21751 #include <$ac_header>
21753 rm -f conftest.$ac_objext
21754 if { (ac_try="$ac_compile"
21755 case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_compile") 2>conftest.er1
21762 grep -v '^ *+' conftest.er1 >conftest.err
21764 cat conftest.err >&5
21765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21766 (exit $ac_status); } && {
21767 test -z "$ac_c_werror_flag" ||
21768 test ! -s conftest.err
21769 } && test -s conftest.$ac_objext; then
21770 ac_header_compiler=yes
21772 echo "$as_me: failed program was
:" >&5
21773 sed 's/^/| /' conftest.$ac_ext >&5
21775 ac_header_compiler=no
21778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21779 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21780 echo "${ECHO_T}$ac_header_compiler" >&6; }
21782 # Is the header present?
21783 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21784 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21785 cat >conftest.$ac_ext <<_ACEOF
21788 cat confdefs.h >>conftest.$ac_ext
21789 cat >>conftest.$ac_ext <<_ACEOF
21790 /* end confdefs.h. */
21791 #include <$ac_header>
21793 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21794 case "(($ac_try" in
21795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21796 *) ac_try_echo=$ac_try;;
21798 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21799 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21801 grep -v '^ *+' conftest.er1 >conftest.err
21803 cat conftest.err >&5
21804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21805 (exit $ac_status); } >/dev/null && {
21806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21807 test ! -s conftest.err
21809 ac_header_preproc=yes
21811 echo "$as_me: failed program was
:" >&5
21812 sed 's/^/| /' conftest.$ac_ext >&5
21814 ac_header_preproc=no
21817 rm -f conftest.err conftest.$ac_ext
21818 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21819 echo "${ECHO_T}$ac_header_preproc" >&6; }
21821 # So? What about this header?
21822 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21824 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21825 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21826 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21827 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21828 ac_header_preproc=yes
21831 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21832 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21833 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21834 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21835 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21836 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21837 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21838 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21839 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21840 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21841 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21842 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21846 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21847 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21848 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21849 echo $ECHO_N "(cached
) $ECHO_C" >&6
21851 eval "$as_ac_Header=\
$ac_header_preproc"
21853 ac_res=`eval echo '${'$as_ac_Header'}'`
21854 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21855 echo "${ECHO_T}$ac_res" >&6; }
21858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21859 cat >>confdefs.h <<_ACEOF
21860 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21865 for ac_header in kerberos/krb.h
21867 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21869 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21870 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21872 echo $ECHO_N "(cached
) $ECHO_C" >&6
21874 ac_res=`eval echo '${'$as_ac_Header'}'`
21875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21878 # Is the header compilable?
21879 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21880 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #include <$ac_header>
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_compile") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest.$ac_objext; then
21907 ac_header_compiler=yes
21909 echo "$as_me: failed program was
:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_compiler=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21917 echo "${ECHO_T}$ac_header_compiler" >&6; }
21919 # Is the header present?
21920 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21921 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <$ac_header>
21930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21942 (exit $ac_status); } >/dev/null && {
21943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21946 ac_header_preproc=yes
21948 echo "$as_me: failed program was
:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_preproc=no
21954 rm -f conftest.err conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21961 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21962 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21965 ac_header_preproc=yes
21968 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21969 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21970 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21971 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21972 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21973 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21974 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21975 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21978 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21979 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21986 echo $ECHO_N "(cached
) $ECHO_C" >&6
21988 eval "$as_ac_Header=\
$ac_header_preproc"
21990 ac_res=`eval echo '${'$as_ac_Header'}'`
21991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22014 for ac_header in com_err.h
22016 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22018 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22019 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22020 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22021 echo $ECHO_N "(cached
) $ECHO_C" >&6
22023 ac_res=`eval echo '${'$as_ac_Header'}'`
22024 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22025 echo "${ECHO_T}$ac_res" >&6; }
22027 # Is the header compilable?
22028 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22029 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22036 $ac_includes_default
22037 #include <$ac_header>
22039 rm -f conftest.$ac_objext
22040 if { (ac_try="$ac_compile"
22041 case "(($ac_try" in
22042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22043 *) ac_try_echo=$ac_try;;
22045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22046 (eval "$ac_compile") 2>conftest.er1
22048 grep -v '^ *+' conftest.er1 >conftest.err
22050 cat conftest.err >&5
22051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest.$ac_objext; then
22056 ac_header_compiler=yes
22058 echo "$as_me: failed program was
:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22061 ac_header_compiler=no
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22066 echo "${ECHO_T}$ac_header_compiler" >&6; }
22068 # Is the header present?
22069 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22070 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22071 cat >conftest.$ac_ext <<_ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 #include <$ac_header>
22079 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22091 (exit $ac_status); } >/dev/null && {
22092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22095 ac_header_preproc=yes
22097 echo "$as_me: failed program was
:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_header_preproc=no
22103 rm -f conftest.err conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22105 echo "${ECHO_T}$ac_header_preproc" >&6; }
22107 # So? What about this header?
22108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22110 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22111 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22112 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22114 ac_header_preproc=yes
22117 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22118 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22119 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22120 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22121 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22122 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22123 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22124 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22127 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22128 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22132 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22133 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22134 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22135 echo $ECHO_N "(cached
) $ECHO_C" >&6
22137 eval "$as_ac_Header=\
$ac_header_preproc"
22139 ac_res=`eval echo '${'$as_ac_Header'}'`
22140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22141 echo "${ECHO_T}$ac_res" >&6; }
22144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22145 cat >>confdefs.h <<_ACEOF
22146 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22155 # Solaris requires -lintl if you want strerror (which calls dgettext)
22156 # to return localized messages.
22158 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22159 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22160 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22161 echo $ECHO_N "(cached
) $ECHO_C" >&6
22163 ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lintl $LIBS"
22165 cat >conftest.$ac_ext <<_ACEOF
22168 cat confdefs.h >>conftest.$ac_ext
22169 cat >>conftest.$ac_ext <<_ACEOF
22170 /* end confdefs.h. */
22172 /* Override any GCC internal prototype to avoid an error.
22173 Use char because int might match the return type of a GCC
22174 builtin and then its argument prototype would still apply. */
22182 return dgettext ();
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 ac_cv_lib_intl_dgettext=yes
22207 echo "$as_me: failed program was
:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 ac_cv_lib_intl_dgettext=no
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22215 LIBS=$ac_check_lib_save_LIBS
22217 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22218 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22219 if test $ac_cv_lib_intl_dgettext = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define HAVE_LIBINTL 1
22224 LIBS="-lintl $LIBS"
22229 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22230 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22231 if test "${emacs_cv_localtime_cache+set}" = set; then
22232 echo $ECHO_N "(cached
) $ECHO_C" >&6
22234 if test x$ac_cv_func_tzset = xyes; then
22235 if test "$cross_compiling" = yes; then
22236 # If we have tzset, assume the worst when cross-compiling.
22237 emacs_cv_localtime_cache=yes
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22246 extern char **environ;
22250 for (to = from = environ; (*to = *from); from++)
22251 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22254 char TZ_GMT0[] = "TZ
=GMT0
";
22255 char TZ_PST8[] = "TZ
=PST8
";
22258 time_t now = time ((time_t *) 0);
22259 int hour_GMT0, hour_unset;
22260 if (putenv (TZ_GMT0) != 0)
22262 hour_GMT0 = localtime (&now)->tm_hour;
22264 hour_unset = localtime (&now)->tm_hour;
22265 if (putenv (TZ_PST8) != 0)
22267 if (localtime (&now)->tm_hour == hour_GMT0)
22270 if (localtime (&now)->tm_hour != hour_unset)
22275 rm -f conftest$ac_exeext
22276 if { (ac_try="$ac_link"
22277 case "(($ac_try" in
22278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22279 *) ac_try_echo=$ac_try;;
22281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22282 (eval "$ac_link") 2>&5
22284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22286 { (case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_try") 2>&5
22293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22294 (exit $ac_status); }; }; then
22295 emacs_cv_localtime_cache=no
22297 echo "$as_me: program exited with status
$ac_status" >&5
22298 echo "$as_me: failed program was
:" >&5
22299 sed 's/^/| /' conftest.$ac_ext >&5
22301 ( exit $ac_status )
22302 emacs_cv_localtime_cache=yes
22304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22309 # If we lack tzset, report that localtime does not cache TZ,
22310 # since we can't invalidate the cache if we don't have tzset.
22311 emacs_cv_localtime_cache=no
22314 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22315 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22316 if test $emacs_cv_localtime_cache = yes; then
22318 cat >>confdefs.h <<\_ACEOF
22319 #define LOCALTIME_CACHE 1
22324 if test "x
$HAVE_TIMEVAL" = xyes; then
22326 for ac_func in gettimeofday
22328 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22329 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22330 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22331 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22332 echo $ECHO_N "(cached
) $ECHO_C" >&6
22334 cat >conftest.$ac_ext <<_ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22342 #define $ac_func innocuous_$ac_func
22344 /* System header to define __stub macros and hopefully few prototypes,
22345 which can conflict with char $ac_func (); below.
22346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22347 <limits.h> exists even on freestanding compilers. */
22350 # include <limits.h>
22352 # include <assert.h>
22357 /* Override any GCC internal prototype to avoid an error.
22358 Use char because int might match the return type of a GCC
22359 builtin and then its argument prototype would still apply. */
22364 /* The GNU C library defines this for functions which it implements
22365 to always fail with ENOSYS. Some functions are actually named
22366 something starting with __ and the normal name is an alias. */
22367 #if defined __stub_$ac_func || defined __stub___$ac_func
22374 return $ac_func ();
22379 rm -f conftest.$ac_objext conftest$ac_exeext
22380 if { (ac_try="$ac_link"
22381 case "(($ac_try" in
22382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22383 *) ac_try_echo=$ac_try;;
22385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22386 (eval "$ac_link") 2>conftest.er1
22388 grep -v '^ *+' conftest.er1 >conftest.err
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22392 (exit $ac_status); } && {
22393 test -z "$ac_c_werror_flag" ||
22394 test ! -s conftest.err
22395 } && test -s conftest$ac_exeext &&
22396 $as_test_x conftest$ac_exeext; then
22397 eval "$as_ac_var=yes"
22399 echo "$as_me: failed program was
:" >&5
22400 sed 's/^/| /' conftest.$ac_ext >&5
22402 eval "$as_ac_var=no
"
22405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22406 conftest$ac_exeext conftest.$ac_ext
22408 ac_res=`eval echo '${'$as_ac_var'}'`
22409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22410 echo "${ECHO_T}$ac_res" >&6; }
22411 if test `eval echo '${'$as_ac_var'}'` = yes; then
22412 cat >>confdefs.h <<_ACEOF
22413 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22419 if test $ac_cv_func_gettimeofday = yes; then
22420 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22421 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22422 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22423 echo $ECHO_N "(cached
) $ECHO_C" >&6
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22432 #ifdef TIME_WITH_SYS_TIME
22433 #include <sys/time.h>
22436 #ifdef HAVE_SYS_TIME_H
22437 #include <sys/time.h>
22445 struct timeval time;
22446 gettimeofday (&time, 0);
22451 rm -f conftest.$ac_objext
22452 if { (ac_try="$ac_compile"
22453 case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_compile") 2>conftest.er1
22460 grep -v '^ *+' conftest.er1 >conftest.err
22462 cat conftest.err >&5
22463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22464 (exit $ac_status); } && {
22465 test -z "$ac_c_werror_flag" ||
22466 test ! -s conftest.err
22467 } && test -s conftest.$ac_objext; then
22468 emacs_cv_gettimeofday_two_arguments=yes
22470 echo "$as_me: failed program was
:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22473 emacs_cv_gettimeofday_two_arguments=no
22476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22479 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22480 if test $emacs_cv_gettimeofday_two_arguments = no; then
22482 cat >>confdefs.h <<\_ACEOF
22483 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22491 { echo "$as_me:$LINENO: checking
for socket
" >&5
22492 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22493 if test "${ac_cv_func_socket+set}" = set; then
22494 echo $ECHO_N "(cached
) $ECHO_C" >&6
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22504 #define socket innocuous_socket
22506 /* System header to define __stub macros and hopefully few prototypes,
22507 which can conflict with char socket (); below.
22508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22509 <limits.h> exists even on freestanding compilers. */
22512 # include <limits.h>
22514 # include <assert.h>
22519 /* Override any GCC internal prototype to avoid an error.
22520 Use char because int might match the return type of a GCC
22521 builtin and then its argument prototype would still apply. */
22526 /* The GNU C library defines this for functions which it implements
22527 to always fail with ENOSYS. Some functions are actually named
22528 something starting with __ and the normal name is an alias. */
22529 #if defined __stub_socket || defined __stub___socket
22541 rm -f conftest.$ac_objext conftest$ac_exeext
22542 if { (ac_try="$ac_link"
22543 case "(($ac_try" in
22544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545 *) ac_try_echo=$ac_try;;
22547 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22548 (eval "$ac_link") 2>conftest.er1
22550 grep -v '^ *+' conftest.er1 >conftest.err
22552 cat conftest.err >&5
22553 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22554 (exit $ac_status); } && {
22555 test -z "$ac_c_werror_flag" ||
22556 test ! -s conftest.err
22557 } && test -s conftest$ac_exeext &&
22558 $as_test_x conftest$ac_exeext; then
22559 ac_cv_func_socket=yes
22561 echo "$as_me: failed program was
:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_cv_func_socket=no
22567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22568 conftest$ac_exeext conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22571 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22572 if test $ac_cv_func_socket = yes; then
22578 if test $ok_so_far = yes; then
22579 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22580 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22581 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22582 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22583 echo $ECHO_N "(cached
) $ECHO_C" >&6
22585 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22586 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22588 # Is the header compilable?
22589 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22590 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 $ac_includes_default
22598 #include <netinet/in.h>
22600 rm -f conftest.$ac_objext
22601 if { (ac_try="$ac_compile"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_compile") 2>conftest.er1
22609 grep -v '^ *+' conftest.er1 >conftest.err
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest.$ac_objext; then
22617 ac_header_compiler=yes
22619 echo "$as_me: failed program was
:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22622 ac_header_compiler=no
22625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22626 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22627 echo "${ECHO_T}$ac_header_compiler" >&6; }
22629 # Is the header present?
22630 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22631 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22632 cat >conftest.$ac_ext <<_ACEOF
22635 cat confdefs.h >>conftest.$ac_ext
22636 cat >>conftest.$ac_ext <<_ACEOF
22637 /* end confdefs.h. */
22638 #include <netinet/in.h>
22640 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22648 grep -v '^ *+' conftest.er1 >conftest.err
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22652 (exit $ac_status); } >/dev/null && {
22653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22656 ac_header_preproc=yes
22658 echo "$as_me: failed program was
:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_header_preproc=no
22664 rm -f conftest.err conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22666 echo "${ECHO_T}$ac_header_preproc" >&6; }
22668 # So? What about this header?
22669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22671 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22672 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22673 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22674 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22675 ac_header_preproc=yes
22678 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22679 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22680 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22681 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22682 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22683 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22684 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22685 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22686 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22687 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22688 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22689 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22693 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22694 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22695 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22696 echo $ECHO_N "(cached
) $ECHO_C" >&6
22698 ac_cv_header_netinet_in_h=$ac_header_preproc
22700 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22701 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22704 if test $ac_cv_header_netinet_in_h = yes; then
22712 if test $ok_so_far = yes; then
22713 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22714 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22715 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22716 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22717 echo $ECHO_N "(cached
) $ECHO_C" >&6
22719 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22720 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22722 # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22724 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #include <arpa/inet.h>
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest.$ac_objext; then
22751 ac_header_compiler=yes
22753 echo "$as_me: failed program was
:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_header_compiler=no
22759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22761 echo "${ECHO_T}$ac_header_compiler" >&6; }
22763 # Is the header present?
22764 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22765 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <arpa/inet.h>
22774 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22786 (exit $ac_status); } >/dev/null && {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22790 ac_header_preproc=yes
22792 echo "$as_me: failed program was
:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_preproc=no
22798 rm -f conftest.err conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22800 echo "${ECHO_T}$ac_header_preproc" >&6; }
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22805 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22806 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22807 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22808 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22809 ac_header_preproc=yes
22812 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22813 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22814 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22815 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22816 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22817 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22818 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22819 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22820 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22821 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22822 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22823 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22827 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22828 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22829 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22830 echo $ECHO_N "(cached
) $ECHO_C" >&6
22832 ac_cv_header_arpa_inet_h=$ac_header_preproc
22834 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22835 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22838 if test $ac_cv_header_arpa_inet_h = yes; then
22846 if test $ok_so_far = yes; then
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_INET_SOCKETS 1
22855 for ac_header in sys/ioctl.h
22857 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22859 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22860 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22861 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22862 echo $ECHO_N "(cached
) $ECHO_C" >&6
22864 ac_res=`eval echo '${'$as_ac_Header'}'`
22865 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22866 echo "${ECHO_T}$ac_res" >&6; }
22868 # Is the header compilable?
22869 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22870 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22871 cat >conftest.$ac_ext <<_ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 $ac_includes_default
22878 #include <$ac_header>
22880 rm -f conftest.$ac_objext
22881 if { (ac_try="$ac_compile"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_compile") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22893 (exit $ac_status); } && {
22894 test -z "$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22896 } && test -s conftest.$ac_objext; then
22897 ac_header_compiler=yes
22899 echo "$as_me: failed program was
:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_header_compiler=no
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22907 echo "${ECHO_T}$ac_header_compiler" >&6; }
22909 # Is the header present?
22910 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22911 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22912 cat >conftest.$ac_ext <<_ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 #include <$ac_header>
22920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22932 (exit $ac_status); } >/dev/null && {
22933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22936 ac_header_preproc=yes
22938 echo "$as_me: failed program was
:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 ac_header_preproc=no
22944 rm -f conftest.err conftest.$ac_ext
22945 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22946 echo "${ECHO_T}$ac_header_preproc" >&6; }
22948 # So? What about this header?
22949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22951 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22952 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22953 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22955 ac_header_preproc=yes
22958 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22959 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22960 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22961 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22962 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22963 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22964 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22965 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22966 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22968 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22969 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22973 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22974 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22976 echo $ECHO_N "(cached
) $ECHO_C" >&6
22978 eval "$as_ac_Header=\
$ac_header_preproc"
22980 ac_res=`eval echo '${'$as_ac_Header'}'`
22981 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22982 echo "${ECHO_T}$ac_res" >&6; }
22985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22986 cat >>confdefs.h <<_ACEOF
22987 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22995 if test -f /usr/lpp/X11/bin/smt.exp; then
22997 cat >>confdefs.h <<\_ACEOF
22998 #define HAVE_AIX_SMT_EXP 1
23003 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23004 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23005 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23006 { echo "$as_me:$LINENO: result
: yes" >&5
23007 echo "${ECHO_T}yes" >&6; }
23009 cat >>confdefs.h <<\_ACEOF
23010 #define HAVE_DEV_PTMX 1
23014 { echo "$as_me:$LINENO: result
: no
" >&5
23015 echo "${ECHO_T}no
" >&6; }
23018 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23019 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23020 if test "${ac_cv_type_pid_t+set}" = set; then
23021 echo $ECHO_N "(cached
) $ECHO_C" >&6
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 typedef pid_t ac__type_new_;
23034 if ((ac__type_new_ *) 0)
23036 if (sizeof (ac__type_new_))
23042 rm -f conftest.$ac_objext
23043 if { (ac_try="$ac_compile"
23044 case "(($ac_try" in
23045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23046 *) ac_try_echo=$ac_try;;
23048 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23049 (eval "$ac_compile") 2>conftest.er1
23051 grep -v '^ *+' conftest.er1 >conftest.err
23053 cat conftest.err >&5
23054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23055 (exit $ac_status); } && {
23056 test -z "$ac_c_werror_flag" ||
23057 test ! -s conftest.err
23058 } && test -s conftest.$ac_objext; then
23059 ac_cv_type_pid_t=yes
23061 echo "$as_me: failed program was
:" >&5
23062 sed 's/^/| /' conftest.$ac_ext >&5
23064 ac_cv_type_pid_t=no
23067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23069 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23070 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23071 if test $ac_cv_type_pid_t = yes; then
23075 cat >>confdefs.h <<_ACEOF
23082 for ac_header in vfork.h
23084 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23085 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23086 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23087 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23088 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23089 echo $ECHO_N "(cached
) $ECHO_C" >&6
23091 ac_res=`eval echo '${'$as_ac_Header'}'`
23092 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23093 echo "${ECHO_T}$ac_res" >&6; }
23095 # Is the header compilable?
23096 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23097 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23098 cat >conftest.$ac_ext <<_ACEOF
23101 cat confdefs.h >>conftest.$ac_ext
23102 cat >>conftest.$ac_ext <<_ACEOF
23103 /* end confdefs.h. */
23104 $ac_includes_default
23105 #include <$ac_header>
23107 rm -f conftest.$ac_objext
23108 if { (ac_try="$ac_compile"
23109 case "(($ac_try" in
23110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23111 *) ac_try_echo=$ac_try;;
23113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23116 grep -v '^ *+' conftest.er1 >conftest.err
23118 cat conftest.err >&5
23119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_header_compiler=yes
23126 echo "$as_me: failed program was
:" >&5
23127 sed 's/^/| /' conftest.$ac_ext >&5
23129 ac_header_compiler=no
23132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23134 echo "${ECHO_T}$ac_header_compiler" >&6; }
23136 # Is the header present?
23137 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23138 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23139 cat >conftest.$ac_ext <<_ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h. */
23145 #include <$ac_header>
23147 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23148 case "(($ac_try" in
23149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150 *) ac_try_echo=$ac_try;;
23152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23153 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23155 grep -v '^ *+' conftest.er1 >conftest.err
23157 cat conftest.err >&5
23158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23159 (exit $ac_status); } >/dev/null && {
23160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23161 test ! -s conftest.err
23163 ac_header_preproc=yes
23165 echo "$as_me: failed program was
:" >&5
23166 sed 's/^/| /' conftest.$ac_ext >&5
23168 ac_header_preproc=no
23171 rm -f conftest.err conftest.$ac_ext
23172 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23173 echo "${ECHO_T}$ac_header_preproc" >&6; }
23175 # So? What about this header?
23176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23178 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23179 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23180 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23182 ac_header_preproc=yes
23185 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23186 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23187 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23188 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23189 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23190 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23191 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23192 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23193 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23195 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23196 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23200 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23201 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23202 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23203 echo $ECHO_N "(cached
) $ECHO_C" >&6
23205 eval "$as_ac_Header=\
$ac_header_preproc"
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23213 cat >>confdefs.h <<_ACEOF
23214 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23223 for ac_func in fork vfork
23225 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23226 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23227 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23228 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23229 echo $ECHO_N "(cached
) $ECHO_C" >&6
23231 cat >conftest.$ac_ext <<_ACEOF
23234 cat confdefs.h >>conftest.$ac_ext
23235 cat >>conftest.$ac_ext <<_ACEOF
23236 /* end confdefs.h. */
23237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23239 #define $ac_func innocuous_$ac_func
23241 /* System header to define __stub macros and hopefully few prototypes,
23242 which can conflict with char $ac_func (); below.
23243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23244 <limits.h> exists even on freestanding compilers. */
23247 # include <limits.h>
23249 # include <assert.h>
23254 /* Override any GCC internal prototype to avoid an error.
23255 Use char because int might match the return type of a GCC
23256 builtin and then its argument prototype would still apply. */
23261 /* The GNU C library defines this for functions which it implements
23262 to always fail with ENOSYS. Some functions are actually named
23263 something starting with __ and the normal name is an alias. */
23264 #if defined __stub_$ac_func || defined __stub___$ac_func
23271 return $ac_func ();
23276 rm -f conftest.$ac_objext conftest$ac_exeext
23277 if { (ac_try="$ac_link"
23278 case "(($ac_try" in
23279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23280 *) ac_try_echo=$ac_try;;
23282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23283 (eval "$ac_link") 2>conftest.er1
23285 grep -v '^ *+' conftest.er1 >conftest.err
23287 cat conftest.err >&5
23288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23289 (exit $ac_status); } && {
23290 test -z "$ac_c_werror_flag" ||
23291 test ! -s conftest.err
23292 } && test -s conftest$ac_exeext &&
23293 $as_test_x conftest$ac_exeext; then
23294 eval "$as_ac_var=yes"
23296 echo "$as_me: failed program was
:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 eval "$as_ac_var=no
"
23302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23303 conftest$ac_exeext conftest.$ac_ext
23305 ac_res=`eval echo '${'$as_ac_var'}'`
23306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23307 echo "${ECHO_T}$ac_res" >&6; }
23308 if test `eval echo '${'$as_ac_var'}'` = yes; then
23309 cat >>confdefs.h <<_ACEOF
23310 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23316 if test "x
$ac_cv_func_fork" = xyes; then
23317 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23318 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23319 if test "${ac_cv_func_fork_works+set}" = set; then
23320 echo $ECHO_N "(cached
) $ECHO_C" >&6
23322 if test "$cross_compiling" = yes; then
23323 ac_cv_func_fork_works=cross
23325 cat >conftest.$ac_ext <<_ACEOF
23328 cat confdefs.h >>conftest.$ac_ext
23329 cat >>conftest.$ac_ext <<_ACEOF
23330 /* end confdefs.h. */
23331 $ac_includes_default
23336 /* By Ruediger Kuhlmann. */
23337 return fork () < 0;
23343 rm -f conftest$ac_exeext
23344 if { (ac_try="$ac_link"
23345 case "(($ac_try" in
23346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23347 *) ac_try_echo=$ac_try;;
23349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23350 (eval "$ac_link") 2>&5
23352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23354 { (case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_try") 2>&5
23361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23362 (exit $ac_status); }; }; then
23363 ac_cv_func_fork_works=yes
23365 echo "$as_me: program exited with status
$ac_status" >&5
23366 echo "$as_me: failed program was
:" >&5
23367 sed 's/^/| /' conftest.$ac_ext >&5
23369 ( exit $ac_status )
23370 ac_cv_func_fork_works=no
23372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23377 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23378 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23381 ac_cv_func_fork_works=$ac_cv_func_fork
23383 if test "x
$ac_cv_func_fork_works" = xcross; then
23385 *-*-amigaos* | *-*-msdosdjgpp*)
23386 # Override, as these systems have only a dummy fork() stub
23387 ac_cv_func_fork_works=no
23390 ac_cv_func_fork_works=yes
23393 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23394 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23396 ac_cv_func_vfork_works=$ac_cv_func_vfork
23397 if test "x
$ac_cv_func_vfork" = xyes; then
23398 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23399 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23400 if test "${ac_cv_func_vfork_works+set}" = set; then
23401 echo $ECHO_N "(cached
) $ECHO_C" >&6
23403 if test "$cross_compiling" = yes; then
23404 ac_cv_func_vfork_works=cross
23406 cat >conftest.$ac_ext <<_ACEOF
23409 cat confdefs.h >>conftest.$ac_ext
23410 cat >>conftest.$ac_ext <<_ACEOF
23411 /* end confdefs.h. */
23412 /* Thanks to Paul Eggert for this test. */
23413 $ac_includes_default
23414 #include <sys/wait.h>
23415 #ifdef HAVE_VFORK_H
23416 # include <vfork.h>
23418 /* On some sparc systems, changes by the child to local and incoming
23419 argument registers are propagated back to the parent. The compiler
23420 is told about this with #include <vfork.h>, but some compilers
23421 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23422 static variable whose address is put into a register that is
23423 clobbered by the vfork. */
23426 sparc_address_test (int arg)
23428 sparc_address_test (arg) int arg;
23431 static pid_t child;
23449 pid_t parent = getpid ();
23452 sparc_address_test (0);
23457 /* Here is another test for sparc vfork register problems. This
23458 test uses lots of local variables, at least as many local
23459 variables as main has allocated so far including compiler
23460 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23461 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23462 reuse the register of parent for one of the local variables,
23463 since it will think that parent can't possibly be used any more
23464 in this routine. Assigning to the local variable will thus
23465 munge parent in the parent process. */
23467 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23468 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23469 /* Convince the compiler that p..p7 are live; otherwise, it might
23470 use the same hardware register for all 8 local variables. */
23471 if (p != p1 || p != p2 || p != p3 || p != p4
23472 || p != p5 || p != p6 || p != p7)
23475 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23476 from child file descriptors. If the child closes a descriptor
23477 before it execs or exits, this munges the parent's descriptor
23478 as well. Test for this by closing stdout in the child. */
23479 _exit(close(fileno(stdout)) != 0);
23484 while (wait(&status) != child)
23487 /* Was there some problem with vforking? */
23490 /* Did the child fail? (This shouldn't happen.) */
23493 /* Did the vfork/compiler bug occur? */
23494 || parent != getpid()
23496 /* Did the file descriptor bug occur? */
23497 || fstat(fileno(stdout), &st) != 0
23502 rm -f conftest$ac_exeext
23503 if { (ac_try="$ac_link"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_link") 2>&5
23511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_func_vfork_works=yes
23524 echo "$as_me: program exited with status
$ac_status" >&5
23525 echo "$as_me: failed program was
:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ( exit $ac_status )
23529 ac_cv_func_vfork_works=no
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23537 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23540 if test "x
$ac_cv_func_fork_works" = xcross; then
23541 ac_cv_func_vfork_works=$ac_cv_func_vfork
23542 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23543 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23546 if test "x
$ac_cv_func_vfork_works" = xyes; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_WORKING_VFORK 1
23554 cat >>confdefs.h <<\_ACEOF
23559 if test "x
$ac_cv_func_fork_works" = xyes; then
23561 cat >>confdefs.h <<\_ACEOF
23562 #define HAVE_WORKING_FORK 1
23568 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23569 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23570 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23571 echo $ECHO_N "(cached
) $ECHO_C" >&6
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 #include <langinfo.h>
23583 char* cs = nl_langinfo(CODESET);
23588 rm -f conftest.$ac_objext conftest$ac_exeext
23589 if { (ac_try="$ac_link"
23590 case "(($ac_try" in
23591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592 *) ac_try_echo=$ac_try;;
23594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23595 (eval "$ac_link") 2>conftest.er1
23597 grep -v '^ *+' conftest.er1 >conftest.err
23599 cat conftest.err >&5
23600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23601 (exit $ac_status); } && {
23602 test -z "$ac_c_werror_flag" ||
23603 test ! -s conftest.err
23604 } && test -s conftest$ac_exeext &&
23605 $as_test_x conftest$ac_exeext; then
23606 emacs_cv_langinfo_codeset=yes
23608 echo "$as_me: failed program was
:" >&5
23609 sed 's/^/| /' conftest.$ac_ext >&5
23611 emacs_cv_langinfo_codeset=no
23614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23615 conftest$ac_exeext conftest.$ac_ext
23618 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23619 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23620 if test $emacs_cv_langinfo_codeset = yes; then
23622 cat >>confdefs.h <<\_ACEOF
23623 #define HAVE_LANGINFO_CODESET 1
23628 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23629 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23630 if test "${ac_cv_type_size_t+set}" = set; then
23631 echo $ECHO_N "(cached
) $ECHO_C" >&6
23633 cat >conftest.$ac_ext <<_ACEOF
23636 cat confdefs.h >>conftest.$ac_ext
23637 cat >>conftest.$ac_ext <<_ACEOF
23638 /* end confdefs.h. */
23639 $ac_includes_default
23640 typedef size_t ac__type_new_;
23644 if ((ac__type_new_ *) 0)
23646 if (sizeof (ac__type_new_))
23652 rm -f conftest.$ac_objext
23653 if { (ac_try="$ac_compile"
23654 case "(($ac_try" in
23655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656 *) ac_try_echo=$ac_try;;
23658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23659 (eval "$ac_compile") 2>conftest.er1
23661 grep -v '^ *+' conftest.er1 >conftest.err
23663 cat conftest.err >&5
23664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23665 (exit $ac_status); } && {
23666 test -z "$ac_c_werror_flag" ||
23667 test ! -s conftest.err
23668 } && test -s conftest.$ac_objext; then
23669 ac_cv_type_size_t=yes
23671 echo "$as_me: failed program was
:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23674 ac_cv_type_size_t=no
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23679 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23680 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23681 if test $ac_cv_type_size_t = yes; then
23683 cat >>confdefs.h <<_ACEOF
23684 #define HAVE_SIZE_T 1
23691 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23692 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23693 if test "${ac_cv_type_mbstate_t+set}" = set; then
23694 echo $ECHO_N "(cached
) $ECHO_C" >&6
23696 cat >conftest.$ac_ext <<_ACEOF
23699 cat confdefs.h >>conftest.$ac_ext
23700 cat >>conftest.$ac_ext <<_ACEOF
23701 /* end confdefs.h. */
23702 $ac_includes_default
23703 # include <wchar.h>
23707 mbstate_t x; return sizeof x;
23712 rm -f conftest.$ac_objext
23713 if { (ac_try="$ac_compile"
23714 case "(($ac_try" in
23715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23716 *) ac_try_echo=$ac_try;;
23718 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23719 (eval "$ac_compile") 2>conftest.er1
23721 grep -v '^ *+' conftest.er1 >conftest.err
23723 cat conftest.err >&5
23724 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23725 (exit $ac_status); } && {
23726 test -z "$ac_c_werror_flag" ||
23727 test ! -s conftest.err
23728 } && test -s conftest.$ac_objext; then
23729 ac_cv_type_mbstate_t=yes
23731 echo "$as_me: failed program was
:" >&5
23732 sed 's/^/| /' conftest.$ac_ext >&5
23734 ac_cv_type_mbstate_t=no
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23740 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23741 if test $ac_cv_type_mbstate_t = yes; then
23743 cat >>confdefs.h <<\_ACEOF
23744 #define HAVE_MBSTATE_T 1
23749 cat >>confdefs.h <<\_ACEOF
23750 #define mbstate_t int
23755 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23756 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23757 if test "${emacs_cv_c_restrict+set}" = set; then
23758 echo $ECHO_N "(cached
) $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h. */
23766 void fred (int *restrict x);
23775 rm -f conftest.$ac_objext
23776 if { (ac_try="$ac_compile"
23777 case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23782 (eval "$ac_compile") 2>conftest.er1
23784 grep -v '^ *+' conftest.er1 >conftest.err
23786 cat conftest.err >&5
23787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23788 (exit $ac_status); } && {
23789 test -z "$ac_c_werror_flag" ||
23790 test ! -s conftest.err
23791 } && test -s conftest.$ac_objext; then
23792 emacs_cv_c_restrict=yes
23794 echo "$as_me: failed program was
:" >&5
23795 sed 's/^/| /' conftest.$ac_ext >&5
23797 cat >conftest.$ac_ext <<_ACEOF
23800 cat confdefs.h >>conftest.$ac_ext
23801 cat >>conftest.$ac_ext <<_ACEOF
23802 /* end confdefs.h. */
23803 void fred (int *__restrict x);
23812 rm -f conftest.$ac_objext
23813 if { (ac_try="$ac_compile"
23814 case "(($ac_try" in
23815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23816 *) ac_try_echo=$ac_try;;
23818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23819 (eval "$ac_compile") 2>conftest.er1
23821 grep -v '^ *+' conftest.er1 >conftest.err
23823 cat conftest.err >&5
23824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23825 (exit $ac_status); } && {
23826 test -z "$ac_c_werror_flag" ||
23827 test ! -s conftest.err
23828 } && test -s conftest.$ac_objext; then
23829 emacs_cv_c_restrict=__restrict
23831 echo "$as_me: failed program was
:" >&5
23832 sed 's/^/| /' conftest.$ac_ext >&5
23834 emacs_cv_c_restrict=no
23837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23842 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23843 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23844 case "$emacs_cv_c_restrict" in
23845 yes) emacs_restrict=restrict;;
23846 no) emacs_restrict="";;
23847 *) emacs_restrict="$emacs_cv_c_restrict";;
23849 if test "$emacs_restrict" != __restrict; then
23851 cat >>confdefs.h <<_ACEOF
23852 #define __restrict $emacs_restrict
23857 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23858 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23859 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23860 echo $ECHO_N "(cached
) $ECHO_C" >&6
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 void fred (int x[__restrict]);
23877 rm -f conftest.$ac_objext
23878 if { (ac_try="$ac_compile"
23879 case "(($ac_try" in
23880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23881 *) ac_try_echo=$ac_try;;
23883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23884 (eval "$ac_compile") 2>conftest.er1
23886 grep -v '^ *+' conftest.er1 >conftest.err
23888 cat conftest.err >&5
23889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23890 (exit $ac_status); } && {
23891 test -z "$ac_c_werror_flag" ||
23892 test ! -s conftest.err
23893 } && test -s conftest.$ac_objext; then
23894 emacs_cv_c_restrict_arr=yes
23896 echo "$as_me: failed program was
:" >&5
23897 sed 's/^/| /' conftest.$ac_ext >&5
23899 emacs_cv_c_restrict_arr=no
23902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23904 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23905 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23906 if test "$emacs_cv_c_restrict_arr" = yes; then
23908 cat >>confdefs.h <<\_ACEOF
23909 #define __restrict_arr __restrict
23916 # Set up the CFLAGS for real compilation, so we can substitute it.
23917 CFLAGS="$REAL_CFLAGS"
23918 CPPFLAGS="$REAL_CPPFLAGS"
23920 #### Find out which version of Emacs this is.
23921 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23922 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23923 if test x"${version}" = x; then
23924 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23925 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23926 { (exit 1); exit 1; }; }
23929 ### Specify what sort of things we'll be editing into Makefile and config.h.
23930 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23966 cat >>confdefs.h <<_ACEOF
23967 #define EMACS_CONFIGURATION "${canonical}"
23971 cat >>confdefs.h <<_ACEOF
23972 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23976 cat >>confdefs.h <<_ACEOF
23977 #define config_machfile "${machfile}"
23981 cat >>confdefs.h <<_ACEOF
23982 #define config_opsysfile "${opsysfile}"
23986 cat >>confdefs.h <<_ACEOF
23987 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23991 cat >>confdefs.h <<_ACEOF
23992 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23996 cat >>confdefs.h <<_ACEOF
23997 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24001 cat >>confdefs.h <<_ACEOF
24002 #define UNEXEC_SRC ${UNEXEC_SRC}
24006 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define HAVE_X_WINDOWS 1
24013 if test "${USE_X_TOOLKIT}" != "none
" ; then
24015 cat >>confdefs.h <<\_ACEOF
24016 #define USE_X_TOOLKIT 1
24019 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24021 cat >>confdefs.h <<\_ACEOF
24022 #define USE_LUCID 1
24025 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24027 cat >>confdefs.h <<\_ACEOF
24028 #define USE_MOTIF 1
24033 if test "${HAVE_X11}" = "yes" ; then
24035 cat >>confdefs.h <<\_ACEOF
24040 if test "${HAVE_MENUS}" = "yes" ; then
24042 cat >>confdefs.h <<\_ACEOF
24043 #define HAVE_MENUS 1
24047 if test "${GNU_MALLOC}" = "yes" ; then
24049 cat >>confdefs.h <<\_ACEOF
24050 #define GNU_MALLOC 1
24054 if test "${REL_ALLOC}" = "yes" ; then
24056 cat >>confdefs.h <<\_ACEOF
24057 #define REL_ALLOC 1
24067 #### Report on what we decided to do.
24068 #### Report GTK as a toolkit, even if it doesn't use Xt.
24069 #### It makes printing result more understandable as using GTK sets
24070 #### toolkit_scroll_bars to yes by default.
24071 if test "${HAVE_GTK}" = "yes"; then
24076 Configured
for \
`${canonical}'.
24078 Where should the build process find the source code? ${srcdir}
24079 What operating system and machine description files should Emacs use?
24080 \`${opsysfile}' and \`${machfile}'
24081 What compiler should emacs be built with?
${CC} ${CFLAGS}
24082 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24083 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24084 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24085 What window system should Emacs use?
${window_system}
24086 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24088 if test -n "${x_includes}"; then
24089 echo " Where
do we
find X Windows header files?
${x_includes}"
24091 echo " Where
do we
find X Windows header files? Standard
dirs"
24093 if test -n "${x_libraries}"; then
24094 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24096 echo " Where
do we
find X Windows libraries? Standard
dirs"
24099 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24100 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24101 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24102 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24103 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24104 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24105 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24106 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24107 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24109 if test "${USE_FONT_BACKEND}" = "yes"; then
24110 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24111 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24112 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24113 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24115 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24118 if test $USE_XASSERTS = yes; then
24119 echo " Compiling with asserts turned on.
"
24120 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24125 if test "$USE_X_TOOLKIT" = GTK; then
24126 case "$canonical" in
24128 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24129 will probably get a crash on startup. If this happens
, please use another
24130 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24136 if test "$HAVE_CARBON" = "yes"; then
24138 echo "Warning
: The Mac Carbon port is currently unsupported and has
24139 known problems. It is not recommended
for use by non-developers.
24140 Read the emacs-devel archives
for more information.
"
24144 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24145 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24150 # Remove any trailing slashes in these variables.
24151 test "${prefix}" != NONE &&
24152 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24153 test "${exec_prefix}" != NONE &&
24154 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24156 # Now get this: Some word that is part of the ${srcdir} directory name
24157 # or the ${configuration} value might, just might, happen to be an
24158 # identifier like `sun4' or `i386' or something, and be predefined by
24159 # the C preprocessor to some helpful value like 1, or maybe the empty
24160 # string. Needless to say consequent macro substitutions are less
24161 # than conducive to the makefile finding the correct directory.
24162 cpp_undefs="`echo $srcdir $configuration $canonical |
24163 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24164 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24166 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24167 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24168 ## from Makefile.c can correctly provide the arg `-traditional' to the
24171 cat >conftest.$ac_ext <<_ACEOF
24174 cat confdefs.h >>conftest.$ac_ext
24175 cat >>conftest.$ac_ext <<_ACEOF
24176 /* end confdefs.h. */
24179 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24180 $EGREP "yes..
yes" >/dev/null 2>&1; then
24181 CPP_NEED_TRADITIONAL=no
24183 CPP_NEED_TRADITIONAL=yes
24188 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
"
24190 ac_config_commands="$ac_config_commands default
"
24192 cat >confcache <<\_ACEOF
24193 # This file is a shell script that caches the results of configure
24194 # tests run on this system so they can be shared between configure
24195 # scripts and configure runs, see configure's option --config-cache.
24196 # It is not useful on other systems. If it contains results you don't
24197 # want to keep, you may remove or edit it.
24199 # config.status only pays attention to the cache file if you give it
24200 # the --recheck option to rerun configure.
24202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24204 # following values.
24208 # The following way of writing the cache mishandles newlines in values,
24209 # but we know of no workaround that is simple, portable, and efficient.
24210 # So, we kill variables containing newlines.
24211 # Ultrix sh set writes to stderr and can't be redirected directly,
24212 # and sets the high bit in the cache file unless we assign to the vars.
24214 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24215 eval ac_val=\$$ac_var
24219 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24220 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24223 _ | IFS | as_nl) ;; #(
24224 *) $as_unset $ac_var ;;
24230 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24231 *${as_nl}ac_space=\ *)
24232 # `set' does not quote correctly, so add quotes (double-quote
24233 # substitution turns \\\\ into \\, and sed turns \\ into \).
24236 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24239 # `set' quotes correctly as required by POSIX, so do not add quotes.
24240 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24253 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24254 if test -w "$cache_file"; then
24255 test "x
$cache_file" != "x
/dev
/null
" &&
24256 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24257 echo "$as_me: updating cache
$cache_file" >&6;}
24258 cat confcache >$cache_file
24260 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24261 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24266 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24267 # Let make expand exec_prefix.
24268 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24270 DEFS=-DHAVE_CONFIG_H
24274 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24275 # 1. Remove the extension, and $U if already installed.
24276 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24277 ac_i=`echo "$ac_i" | sed "$ac_script"`
24278 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24279 # will be set to the directory where LIBOBJS objects are built.
24280 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24281 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24283 LIBOBJS=$ac_libobjs
24285 LTLIBOBJS=$ac_ltlibobjs
24289 : ${CONFIG_STATUS=./config.status}
24290 ac_clean_files_save=$ac_clean_files
24291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24292 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24293 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24294 cat >$CONFIG_STATUS <<_ACEOF
24296 # Generated by $as_me.
24297 # Run this file to recreate the current configuration.
24298 # Compiler output produced by configure, useful for debugging
24299 # configure, is in config.log if it exists.
24302 ac_cs_recheck=false
24304 SHELL=\${CONFIG_SHELL-$SHELL}
24307 cat >>$CONFIG_STATUS <<\_ACEOF
24308 ## --------------------- ##
24309 ## M4sh Initialization. ##
24310 ## --------------------- ##
24312 # Be more Bourne compatible
24313 DUALCASE=1; export DUALCASE # for MKS sh
24314 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24317 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24318 # is contrary to our usage. Disable this feature.
24319 alias -g '${1+"$@"}'='"$@
"'
24320 setopt NO_GLOB_SUBST
24322 case `(set -o) 2>/dev/null` in
24323 *posix*) set -o posix ;;
24332 # Avoid depending upon Character Ranges.
24333 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24334 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24335 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24336 as_cr_digits='0123456789'
24337 as_cr_alnum=$as_cr_Letters$as_cr_digits
24339 # The user is always right.
24340 if test "${PATH_SEPARATOR+set}" != set; then
24341 echo "#! /bin/sh" >conf$$.sh
24342 echo "exit 0" >>conf$$.sh
24344 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24352 # Support unset when possible.
24353 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24361 # We need space, tab and new line, in precisely that order. Quoting is
24362 # there to prevent editors from complaining about space-tab.
24363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24364 # splitting by setting IFS to empty value.)
24369 # Find who we are. Look in the path if we contain no directory separator.
24371 *[\\/]* ) as_myself
=$0 ;;
24372 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24373 for as_dir
in $PATH
24376 test -z "$as_dir" && as_dir
=.
24377 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24383 # We did not find ourselves, most probably we were run as `sh COMMAND'
24384 # in which case we are not to be found in the path.
24385 if test "x$as_myself" = x
; then
24388 if test ! -f "$as_myself"; then
24389 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24390 { (exit 1); exit 1; }
24393 # Work around bugs in pre-3.0 UWIN ksh.
24394 for as_var
in ENV MAIL MAILPATH
24395 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24403 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24404 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24405 LC_TELEPHONE LC_TIME
24407 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24408 eval $as_var=C
; export $as_var
24410 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24414 # Required to use basename.
24415 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24416 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24422 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24423 as_basename
=basename
24429 # Name of the executable.
24430 as_me
=`$as_basename -- "$0" ||
24431 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24432 X"$0" : 'X\(//\)$' \| \
24433 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24435 sed '/^.*\/\([^/][^/]*\)\/*$/{
24454 as_lineno_1
=$LINENO
24455 as_lineno_2
=$LINENO
24456 test "x$as_lineno_1" != "x$as_lineno_2" &&
24457 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24459 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24460 # uniformly replaced by the line number. The first 'sed' inserts a
24461 # line-number line after each line using $LINENO; the second 'sed'
24462 # does the real work. The second script uses 'N' to pair each
24463 # line-number line with the line containing $LINENO, and appends
24464 # trailing '-' during substitution so that $LINENO is not a special
24465 # case at line end.
24466 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24467 # scripts with optimization help from Paolo Bonzini. Blame Lee
24468 # E. McMahon (1931-1989) for sed's syntax. :-)
24480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24483 ' >$as_me.lineno
&&
24484 chmod +x
"$as_me.lineno" ||
24485 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24486 { (exit 1); exit 1; }; }
24488 # Don't try to exec as it changes $[0], causing all sort of problems
24489 # (the dirname of $[0] is not the place where we might find the
24490 # original and so on. Autoconf is especially sensitive to this).
24491 .
"./$as_me.lineno"
24492 # Exit status is that of the last command.
24497 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24503 ECHO_C
= ECHO_N
= ECHO_T
=
24504 case `echo -n x` in
24506 case `echo 'x\c'` in
24507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24514 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24515 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24521 rm -f conf$$ conf$$.exe conf$$.
file
24522 if test -d conf$$.dir
; then
24523 rm -f conf$$.dir
/conf$$.
file
24529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24531 # ... but there are two gotchas:
24532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24534 # In both cases, we have to default to `cp -p'.
24535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24542 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24543 rmdir conf$$.dir
2>/dev
/null
24545 if mkdir
-p .
2>/dev
/null
; then
24548 test -d .
/-p && rmdir .
/-p
24552 if test -x / >/dev
/null
2>&1; then
24553 as_test_x
='test -x'
24555 if ls -dL / >/dev
/null
2>&1; then
24562 if test -d "$1"; then
24568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24569 ???[sx]*):;;*)false;;esac;fi
24573 as_executable_p
=$as_test_x
24575 # Sed expression to map a string onto a valid CPP name.
24576 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24578 # Sed expression to map a string onto a valid variable name.
24579 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24584 # Save the log message, to keep $[0] and so on meaningful, and to
24585 # report actual input values of CONFIG_FILES etc. instead of their
24586 # values after options handling.
24588 This file was extended by emacs $as_me 23.0.60, which was
24589 generated by GNU Autoconf 2.61. Invocation command line was
24591 CONFIG_FILES = $CONFIG_FILES
24592 CONFIG_HEADERS = $CONFIG_HEADERS
24593 CONFIG_LINKS = $CONFIG_LINKS
24594 CONFIG_COMMANDS = $CONFIG_COMMANDS
24597 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24602 cat >>$CONFIG_STATUS <<_ACEOF
24603 # Files that config.status was made for.
24604 config_files="$ac_config_files"
24605 config_headers="$ac_config_headers"
24606 config_commands="$ac_config_commands"
24610 cat >>$CONFIG_STATUS <<\_ACEOF
24612 \`$as_me' instantiates files from templates according to the
24613 current configuration.
24615 Usage: $0 [OPTIONS] [FILE]...
24617 -h, --help print this help, then exit
24618 -V, --version print version number and configuration settings, then exit
24619 -q, --quiet do not print progress messages
24620 -d, --debug don't remove temporary files
24621 --recheck update $as_me by reconfiguring in the same conditions
24622 --file=FILE[:TEMPLATE]
24623 instantiate the configuration file FILE
24624 --header=FILE[:TEMPLATE]
24625 instantiate the configuration header FILE
24627 Configuration files:
24630 Configuration headers:
24633 Configuration commands:
24636 Report bugs to <bug-autoconf@gnu.org>."
24639 cat >>$CONFIG_STATUS <<_ACEOF
24641 emacs config.status 23.0.60
24642 configured by $0, generated by GNU Autoconf 2.61,
24643 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24645 Copyright (C) 2006 Free Software Foundation, Inc.
24646 This config.status script is free software; the Free Software Foundation
24647 gives unlimited permission to copy, distribute and modify it."
24654 cat >>$CONFIG_STATUS <<\_ACEOF
24655 # If no file are specified by the user, then we need to provide default
24656 # value. By we need to know if files were specified by the user.
24662 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24663 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24674 # Handling of the options.
24675 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24677 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24678 echo "$ac_cs_version"; exit ;;
24679 --debug |
--debu |
--deb |
--de |
--d |
-d )
24681 --file |
--fil |
--fi |
--f )
24683 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24684 ac_need_defaults
=false
;;
24685 --header |
--heade |
--head |
--hea )
24687 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24688 ac_need_defaults
=false
;;
24690 # Conflict between --help and --header
24691 { echo "$as_me: error: ambiguous option: $1
24692 Try \`$0 --help' for more information." >&2
24693 { (exit 1); exit 1; }; };;
24694 --help |
--hel |
-h )
24695 echo "$ac_cs_usage"; exit ;;
24696 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24697 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24700 # This is an error.
24701 -*) { echo "$as_me: error: unrecognized option: $1
24702 Try \`$0 --help' for more information." >&2
24703 { (exit 1); exit 1; }; } ;;
24705 *) ac_config_targets
="$ac_config_targets $1"
24706 ac_need_defaults
=false
;;
24712 ac_configure_extra_args
=
24714 if $ac_cs_silent; then
24716 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24720 cat >>$CONFIG_STATUS <<_ACEOF
24721 if \$ac_cs_recheck; then
24722 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24723 CONFIG_SHELL=$SHELL
24724 export CONFIG_SHELL
24725 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24729 cat >>$CONFIG_STATUS <<\_ACEOF
24733 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24734 ## Running $as_me. ##
24740 cat >>$CONFIG_STATUS <<_ACEOF
24744 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24748 cat >>$CONFIG_STATUS <<\_ACEOF
24750 # Handling of arguments.
24751 for ac_config_target
in $ac_config_targets
24753 case $ac_config_target in
24754 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24755 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24756 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24757 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24758 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24759 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24760 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24761 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24762 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24763 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24764 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24765 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24766 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24768 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24769 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24770 { (exit 1); exit 1; }; };;
24775 # If the user did not use the arguments to specify the items to instantiate,
24776 # then the envvar interface is used. Set only those that are not.
24777 # We use the long form for the default assignment because of an extremely
24778 # bizarre bug on SunOS 4.1.3.
24779 if $ac_need_defaults; then
24780 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24781 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24782 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24785 # Have a temporary directory for convenience. Make it in the build tree
24786 # simply because there is no reason against having it here, and in addition,
24787 # creating and moving files from /tmp can sometimes cause problems.
24788 # Hook for its removal unless debugging.
24789 # Note that there is a small window in which the directory will not be cleaned:
24790 # after its creation but before its name has been assigned to `$tmp'.
24794 trap 'exit_status=$?
24795 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24797 trap '{ (exit 1); exit 1; }' 1 2 13 15
24799 # Create a (secure) tmp directory for tmp files.
24802 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24803 test -n "$tmp" && test -d "$tmp"
24806 tmp
=.
/conf$$
-$RANDOM
24807 (umask 077 && mkdir
"$tmp")
24810 echo "$me: cannot create a temporary directory in ." >&2
24811 { (exit 1); exit 1; }
24815 # Set up the sed scripts for CONFIG_FILES section.
24818 # No need to generate the scripts if there are no CONFIG_FILES.
24819 # This happens for instance when ./config.status config.h
24820 if test -n "$CONFIG_FILES"; then
24827 for ac_last_try
in false false false false false
:; do
24828 cat >conf$
$subs.
sed <<_ACEOF
24829 SHELL!$SHELL$ac_delim
24830 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24831 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24832 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24833 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24834 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24835 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24836 exec_prefix!$exec_prefix$ac_delim
24837 prefix!$prefix$ac_delim
24838 program_transform_name!$program_transform_name$ac_delim
24839 bindir!$bindir$ac_delim
24840 sbindir!$sbindir$ac_delim
24841 libexecdir!$libexecdir$ac_delim
24842 datarootdir!$datarootdir$ac_delim
24843 datadir!$datadir$ac_delim
24844 sysconfdir!$sysconfdir$ac_delim
24845 sharedstatedir!$sharedstatedir$ac_delim
24846 localstatedir!$localstatedir$ac_delim
24847 includedir!$includedir$ac_delim
24848 oldincludedir!$oldincludedir$ac_delim
24849 docdir!$docdir$ac_delim
24850 infodir!$infodir$ac_delim
24851 htmldir!$htmldir$ac_delim
24852 dvidir!$dvidir$ac_delim
24853 pdfdir!$pdfdir$ac_delim
24854 psdir!$psdir$ac_delim
24855 libdir!$libdir$ac_delim
24856 localedir!$localedir$ac_delim
24857 mandir!$mandir$ac_delim
24858 DEFS!$DEFS$ac_delim
24859 ECHO_C!$ECHO_C$ac_delim
24860 ECHO_N!$ECHO_N$ac_delim
24861 ECHO_T!$ECHO_T$ac_delim
24862 LIBS!$LIBS$ac_delim
24863 build_alias!$build_alias$ac_delim
24864 host_alias!$host_alias$ac_delim
24865 target_alias!$target_alias$ac_delim
24866 MAINT!$MAINT$ac_delim
24867 build!$build$ac_delim
24868 build_cpu!$build_cpu$ac_delim
24869 build_vendor!$build_vendor$ac_delim
24870 build_os!$build_os$ac_delim
24871 host!$host$ac_delim
24872 host_cpu!$host_cpu$ac_delim
24873 host_vendor!$host_vendor$ac_delim
24874 host_os!$host_os$ac_delim
24876 CFLAGS!$CFLAGS$ac_delim
24877 LDFLAGS!$LDFLAGS$ac_delim
24878 CPPFLAGS!$CPPFLAGS$ac_delim
24879 ac_ct_CC!$ac_ct_CC$ac_delim
24880 EXEEXT!$EXEEXT$ac_delim
24881 OBJEXT!$OBJEXT$ac_delim
24883 GREP!$GREP$ac_delim
24884 EGREP!$EGREP$ac_delim
24885 LN_S!$LN_S$ac_delim
24886 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24887 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24888 INSTALL_DATA!$INSTALL_DATA$ac_delim
24889 RANLIB!$RANLIB$ac_delim
24890 INSTALL_INFO!$INSTALL_INFO$ac_delim
24891 GZIP_PROG!$GZIP_PROG$ac_delim
24892 MAKEINFO!$MAKEINFO$ac_delim
24893 LIBSOUND!$LIBSOUND$ac_delim
24894 PKG_CONFIG!$PKG_CONFIG$ac_delim
24895 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24896 ALSA_LIBS!$ALSA_LIBS$ac_delim
24897 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24898 SET_MAKE!$SET_MAKE$ac_delim
24899 XMKMF!$XMKMF$ac_delim
24900 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24901 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24902 RSVG_LIBS!$RSVG_LIBS$ac_delim
24903 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24904 GTK_LIBS!$GTK_LIBS$ac_delim
24905 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24906 DBUS_LIBS!$DBUS_LIBS$ac_delim
24907 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24908 XFT_LIBS!$XFT_LIBS$ac_delim
24909 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24910 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24911 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24912 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24913 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24914 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24915 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24916 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24917 ALLOCA!$ALLOCA$ac_delim
24918 liblockfile!$liblockfile$ac_delim
24919 LIBOBJS!$LIBOBJS$ac_delim
24920 NEED_SETGID!$NEED_SETGID$ac_delim
24921 KMEM_GROUP!$KMEM_GROUP$ac_delim
24922 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24923 GETOPT_H!$GETOPT_H$ac_delim
24924 GETOPTOBJS!$GETOPTOBJS$ac_delim
24925 version!$version$ac_delim
24928 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24930 elif $ac_last_try; then
24931 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24932 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24933 { (exit 1); exit 1; }; }
24935 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24939 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24940 if test -n "$ac_eof"; then
24941 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24942 ac_eof
=`expr $ac_eof + 1`
24945 cat >>$CONFIG_STATUS <<_ACEOF
24946 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24947 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24950 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24951 s/^/s,@/; s/!/@,|#_!!_#|/
24954 s/'"$ac_delim"'$/,g/; t
24956 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24957 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24958 rm -f conf$
$subs.
sed
24959 cat >>$CONFIG_STATUS <<_ACEOF
24965 for ac_last_try
in false false false false false
:; do
24966 cat >conf$
$subs.
sed <<_ACEOF
24967 configuration!$configuration$ac_delim
24968 canonical!$canonical$ac_delim
24969 srcdir!$srcdir$ac_delim
24970 lispdir!$lispdir$ac_delim
24971 locallisppath!$locallisppath$ac_delim
24972 lisppath!$lisppath$ac_delim
24973 x_default_search_path!$x_default_search_path$ac_delim
24974 etcdir!$etcdir$ac_delim
24975 archlibdir!$archlibdir$ac_delim
24976 bitmapdir!$bitmapdir$ac_delim
24977 gamedir!$gamedir$ac_delim
24978 gameuser!$gameuser$ac_delim
24979 c_switch_system!$c_switch_system$ac_delim
24980 c_switch_machine!$c_switch_machine$ac_delim
24981 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24982 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24983 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24984 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24985 machfile!$machfile$ac_delim
24986 opsysfile!$opsysfile$ac_delim
24987 carbon_appdir!$carbon_appdir$ac_delim
24988 LTLIBOBJS!$LTLIBOBJS$ac_delim
24991 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24993 elif $ac_last_try; then
24994 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24995 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24996 { (exit 1); exit 1; }; }
24998 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25002 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25003 if test -n "$ac_eof"; then
25004 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25005 ac_eof
=`expr $ac_eof + 1`
25008 cat >>$CONFIG_STATUS <<_ACEOF
25009 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25013 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25014 s/^/s,@/; s/!/@,|#_!!_#|/
25017 s/'"$ac_delim"'$/,g/; t
25019 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25020 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25021 rm -f conf$
$subs.
sed
25022 cat >>$CONFIG_STATUS <<_ACEOF
25029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25031 # trailing colons and then remove the whole line if VPATH becomes empty
25032 # (actually we leave an empty line to preserve line numbers).
25033 if test "x$srcdir" = x.
; then
25034 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25035 s/:*\$(srcdir):*/:/
25036 s/:*\${srcdir}:*/:/
25038 s/^\([^=]*=[ ]*\):*/\1/
25044 cat >>$CONFIG_STATUS <<\_ACEOF
25045 fi # test -n "$CONFIG_FILES"
25048 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25051 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25053 case $ac_mode$ac_tag in
25055 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25056 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25057 { (exit 1); exit 1; }; };;
25058 :[FH
]-) ac_tag
=-:-;;
25059 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25076 -) ac_f
="$tmp/stdin";;
25077 *) # Look for the file first in the build tree, then in the source tree
25078 # (if the path is not absolute). The absolute path cannot be DOS-style,
25079 # because $ac_f cannot contain `:'.
25083 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25085 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25086 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25087 { (exit 1); exit 1; }; };;
25089 ac_file_inputs
="$ac_file_inputs $ac_f"
25092 # Let's still pretend it is `configure' which instantiates (i.e., don't
25093 # use $as_me), people would be surprised to read:
25094 # /* config.h. Generated by config.status. */
25095 configure_input
="Generated from "`IFS=:
25096 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25097 if test x
"$ac_file" != x-
; then
25098 configure_input
="$ac_file. $configure_input"
25099 { echo "$as_me:$LINENO: creating $ac_file" >&5
25100 echo "$as_me: creating $ac_file" >&6;}
25104 *:-:* |
*:-) cat >"$tmp/stdin";;
25109 ac_dir
=`$as_dirname -- "$ac_file" ||
25110 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25111 X"$ac_file" : 'X\(//\)[^/]' \| \
25112 X"$ac_file" : 'X\(//\)$' \| \
25113 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25119 /^X\(\/\/\)[^/].*/{
25134 -*) as_dir
=.
/$as_dir;;
25136 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25140 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25141 *) as_qdir
=$as_dir;;
25143 as_dirs
="'$as_qdir' $as_dirs"
25144 as_dir
=`$as_dirname -- "$as_dir" ||
25145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146 X"$as_dir" : 'X\(//\)[^/]' \| \
25147 X"$as_dir" : 'X\(//\)$' \| \
25148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25154 /^X\(\/\/\)[^/].*/{
25167 test -d "$as_dir" && break
25169 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25170 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25171 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25172 { (exit 1); exit 1; }; }; }
25176 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25178 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25179 # A ".." for each directory in $ac_dir_suffix.
25180 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25181 case $ac_top_builddir_sub in
25182 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25183 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25186 ac_abs_top_builddir
=$ac_pwd
25187 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25188 # for backward compatibility:
25189 ac_top_builddir
=$ac_top_build_prefix
25192 .
) # We are building in place.
25194 ac_top_srcdir
=$ac_top_builddir_sub
25195 ac_abs_top_srcdir
=$ac_pwd ;;
25196 [\\/]* | ?
:[\\/]* ) # Absolute name.
25197 ac_srcdir
=$srcdir$ac_dir_suffix;
25198 ac_top_srcdir
=$srcdir
25199 ac_abs_top_srcdir
=$srcdir ;;
25200 *) # Relative name.
25201 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25202 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25203 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25205 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25215 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25216 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25220 cat >>$CONFIG_STATUS <<\_ACEOF
25221 # If the template does not know about datarootdir, expand it.
25222 # FIXME: This hack should be removed a few years after 2.60.
25223 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25225 case `sed -n '/datarootdir/ {
25234 ' $ac_file_inputs` in
25235 *datarootdir
*) ac_datarootdir_seen
=yes;;
25236 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25237 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25238 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25240 cat >>$CONFIG_STATUS <<_ACEOF
25241 ac_datarootdir_hack='
25242 s&@datadir@&$datadir&g
25243 s&@docdir@&$docdir&g
25244 s&@infodir@&$infodir&g
25245 s&@localedir@&$localedir&g
25246 s&@mandir@&$mandir&g
25247 s&\\\${datarootdir}&$datarootdir&g' ;;
25251 # Neutralize VPATH when `$srcdir' = `.'.
25252 # Shell code in configure.ac might set extrasub.
25253 # FIXME: do we really want to maintain this feature?
25254 cat >>$CONFIG_STATUS <<_ACEOF
25258 cat >>$CONFIG_STATUS <<\_ACEOF
25260 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25261 s
&@configure_input@
&$configure_input&;t t
25262 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25263 s
&@srcdir@
&$ac_srcdir&;t t
25264 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25265 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25266 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25267 s
&@builddir@
&$ac_builddir&;t t
25268 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25269 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25270 s
&@INSTALL@
&$ac_INSTALL&;t t
25271 $ac_datarootdir_hack
25272 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25274 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25275 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25277 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25278 which seems to be undefined. Please make sure it is defined." >&5
25279 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25280 which seems to be undefined. Please make sure it is defined." >&2;}
25284 -) cat "$tmp/out"; rm -f "$tmp/out";;
25285 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25294 # Transform confdefs.h into a sed script `conftest.defines', that
25295 # substitutes the proper values into config.h.in to produce config.h.
25296 rm -f conftest.defines conftest.
tail
25297 # First, append a space to every undef/define line, to ease matching.
25298 echo 's/$/ /' >conftest.defines
25299 # Then, protect against being on the right side of a sed subst, or in
25300 # an unquoted here document, in config.status. If some macros were
25301 # called several times there might be several #defines for the same
25302 # symbol, which is useless. But do not sort them, since the last
25303 # AC_DEFINE must be honored.
25304 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25305 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25306 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25307 # PARAMS is the parameter list in the macro definition--in most cases, it's
25308 # just an empty string.
25309 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25310 ac_dB
='\\)[ (].*,\\1define\\2'
25318 s/^[ ]*#[ ]*define[ ][ ]*//
25323 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25324 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25325 ' >>conftest.defines
25327 # Remove the space that was appended to ease matching.
25328 # Then replace #undef with comments. This is necessary, for
25329 # example, in the case of _POSIX_SOURCE, which is predefined and required
25330 # on some systems where configure will not decide to define it.
25331 # (The regexp can be short, since the line contains either #define or #undef.)
25333 s,^[ #]*u.*,/* & */,' >>conftest.defines
25335 # Break up conftest.defines:
25336 ac_max_sed_lines
=50
25338 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25339 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25340 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25342 ac_in
='$ac_file_inputs'
25343 ac_out
='"$tmp/out1"'
25344 ac_nxt
='"$tmp/out2"'
25348 # Write a here document:
25349 cat >>$CONFIG_STATUS <<_ACEOF
25350 # First, check the format of the line:
25351 cat >"\$tmp/defines.sed" <<\\CEOF
25352 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25353 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25357 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25359 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25360 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25361 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25362 grep . conftest.
tail >/dev
/null ||
break
25363 rm -f conftest.defines
25364 mv conftest.
tail conftest.defines
25366 rm -f conftest.defines conftest.
tail
25368 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25369 cat >>$CONFIG_STATUS <<\_ACEOF
25370 if test x
"$ac_file" != x-
; then
25371 echo "/* $configure_input */" >"$tmp/config.h"
25372 cat "$ac_result" >>"$tmp/config.h"
25373 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25374 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25375 echo "$as_me: $ac_file is unchanged" >&6;}
25378 mv "$tmp/config.h" $ac_file
25381 echo "/* $configure_input */"
25387 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25388 echo "$as_me: executing $ac_file commands" >&6;}
25393 case $ac_file$ac_mode in
25396 ### Make the necessary directories, if they don't exist.
25397 for dir
in etc lisp
; do
25398 test -d ${dir} || mkdir
${dir}
25401 # Build src/Makefile from ${srcdir}/src/Makefile.c
25402 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25403 # This must be done after src/config.h is built, since we rely on that file.
25405 echo creating src
/epaths.h
25406 ${MAKE-make} epaths-force
25408 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25409 # `..' to `. .' unless invoked with -traditional
25411 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25412 CPPFLAGS
="$CPPFLAGS -traditional"
25415 echo creating lib-src
/Makefile
25417 rm -f junk.c junk1.c junk2.c
25418 sed -e '/start of cpp stuff/q' \
25419 < Makefile.c
> junk1.c
25420 sed -e '1,/start of cpp stuff/d'\
25421 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25422 < Makefile.c
> junk.c
25423 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25424 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25425 cat junk1.c junk2.c
> Makefile.new
25426 rm -f junk.c junk1.c junk2.c
25427 chmod 444 Makefile.new
25428 mv -f Makefile.new Makefile
25431 echo creating src
/Makefile
25433 rm -f junk.c junk1.c junk2.c
25434 sed -e '/start of cpp stuff/q' \
25435 < Makefile.c
> junk1.c
25436 sed -e '1,/start of cpp stuff/d'\
25437 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25438 < Makefile.c
> junk.c
25439 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25440 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25441 cat junk1.c junk2.c
> Makefile.new
25442 rm -f junk.c junk1.c junk2.c
25443 chmod 444 Makefile.new
25444 mv -f Makefile.new Makefile
25447 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25448 echo creating src
/.gdbinit
25449 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25452 # This is how we know whether to re-run configure in certain cases.
25453 touch src
/config.stamp
25461 { (exit 0); exit 0; }
25463 chmod +x
$CONFIG_STATUS
25464 ac_clean_files
=$ac_clean_files_save
25467 # configure is writing to config.log, and then calls config.status.
25468 # config.status does its own redirection, appending to config.log.
25469 # Unfortunately, on DOS this fails, as config.log is still kept open
25470 # by configure, so config.status won't be able to write to it; its
25471 # output is simply discarded. So we exec the FD to /dev/null,
25472 # effectively closing config.log, so it can be properly (re)opened and
25473 # appended to by config.status. When coming back to configure, we
25474 # need to make the FD available again.
25475 if test "$no_create" != yes; then
25477 ac_config_status_args
=
25478 test "$silent" = yes &&
25479 ac_config_status_args
="$ac_config_status_args --quiet"
25481 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25483 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25484 # would make configure fail if this is the last instruction.
25485 $ac_cs_success ||
{ (exit 1); exit 1; }