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
743 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
825 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
828 -build |
--build |
--buil |
--bui |
--bu)
829 ac_prev
=build_alias
;;
830 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
831 build_alias
=$ac_optarg ;;
833 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
834 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
835 ac_prev
=cache_file
;;
836 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
837 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
838 cache_file
=$ac_optarg ;;
841 cache_file
=config.cache
;;
843 -datadir |
--datadir |
--datadi |
--datad)
845 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
846 datadir
=$ac_optarg ;;
848 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
849 |
--dataroo |
--dataro |
--datar)
850 ac_prev
=datarootdir
;;
851 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
852 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
853 datarootdir
=$ac_optarg ;;
855 -disable-* |
--disable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=no
;;
864 -docdir |
--docdir |
--docdi |
--doc |
--do)
866 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
869 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
871 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
874 -enable-* |
--enable-*)
875 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_
$ac_feature=\
$ac_optarg ;;
883 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
884 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
885 |
--exec |
--exe |
--ex)
886 ac_prev
=exec_prefix
;;
887 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
888 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
889 |
--exec=* |
--exe=* |
--ex=*)
890 exec_prefix
=$ac_optarg ;;
892 -gas |
--gas |
--ga |
--g)
893 # Obsolete; use --with-gas.
896 -help |
--help |
--hel |
--he |
-h)
898 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
899 ac_init_help
=recursive
;;
900 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
901 ac_init_help
=short
;;
903 -host |
--host |
--hos |
--ho)
904 ac_prev
=host_alias
;;
905 -host=* |
--host=* |
--hos=* |
--ho=*)
906 host_alias
=$ac_optarg ;;
908 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
910 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
912 htmldir
=$ac_optarg ;;
914 -includedir |
--includedir |
--includedi |
--included |
--include \
915 |
--includ |
--inclu |
--incl |
--inc)
916 ac_prev
=includedir
;;
917 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
918 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
919 includedir
=$ac_optarg ;;
921 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
923 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
924 infodir
=$ac_optarg ;;
926 -libdir |
--libdir |
--libdi |
--libd)
928 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
931 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
932 |
--libexe |
--libex |
--libe)
933 ac_prev
=libexecdir
;;
934 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
935 |
--libexe=* |
--libex=* |
--libe=*)
936 libexecdir
=$ac_optarg ;;
938 -localedir |
--localedir |
--localedi |
--localed |
--locale)
940 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
941 localedir
=$ac_optarg ;;
943 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
944 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
945 ac_prev
=localstatedir
;;
946 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
947 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
948 localstatedir
=$ac_optarg ;;
950 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
952 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
956 # Obsolete; use --without-fp.
959 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
960 |
--no-cr |
--no-c |
-n)
963 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
964 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
967 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
968 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
969 |
--oldin |
--oldi |
--old |
--ol |
--o)
970 ac_prev
=oldincludedir
;;
971 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
972 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
973 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
974 oldincludedir
=$ac_optarg ;;
976 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
978 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
981 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
982 |
--program-pre |
--program-pr |
--program-p)
983 ac_prev
=program_prefix
;;
984 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
985 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
986 program_prefix
=$ac_optarg ;;
988 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
989 |
--program-suf |
--program-su |
--program-s)
990 ac_prev
=program_suffix
;;
991 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
992 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
993 program_suffix
=$ac_optarg ;;
995 -program-transform-name |
--program-transform-name \
996 |
--program-transform-nam |
--program-transform-na \
997 |
--program-transform-n |
--program-transform- \
998 |
--program-transform |
--program-transfor \
999 |
--program-transfo |
--program-transf \
1000 |
--program-trans |
--program-tran \
1001 |
--progr-tra |
--program-tr |
--program-t)
1002 ac_prev
=program_transform_name
;;
1003 -program-transform-name=* |
--program-transform-name=* \
1004 |
--program-transform-nam=* |
--program-transform-na=* \
1005 |
--program-transform-n=* |
--program-transform-=* \
1006 |
--program-transform=* |
--program-transfor=* \
1007 |
--program-transfo=* |
--program-transf=* \
1008 |
--program-trans=* |
--program-tran=* \
1009 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1010 program_transform_name
=$ac_optarg ;;
1012 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1014 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1015 pdfdir
=$ac_optarg ;;
1017 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1019 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1023 |
-silent |
--silent |
--silen |
--sile |
--sil)
1026 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1028 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1030 sbindir
=$ac_optarg ;;
1032 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1033 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1034 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1036 ac_prev
=sharedstatedir
;;
1037 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1038 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1039 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1041 sharedstatedir
=$ac_optarg ;;
1043 -site |
--site |
--sit)
1045 -site=* |
--site=* |
--sit=*)
1048 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1050 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1051 srcdir
=$ac_optarg ;;
1053 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1054 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1055 ac_prev
=sysconfdir
;;
1056 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1057 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1058 sysconfdir
=$ac_optarg ;;
1060 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1061 ac_prev
=target_alias
;;
1062 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1063 target_alias
=$ac_optarg ;;
1065 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1068 -version |
--version |
--versio |
--versi |
--vers |
-V)
1069 ac_init_version
=: ;;
1072 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_
$ac_package=\
$ac_optarg ;;
1080 -without-* |
--without-*)
1081 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_
$ac_package=no
;;
1090 # Obsolete; use --with-x.
1093 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1094 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1095 ac_prev
=x_includes
;;
1096 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1097 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1098 x_includes
=$ac_optarg ;;
1100 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1101 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1102 ac_prev
=x_libraries
;;
1103 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1104 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1105 x_libraries
=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1113 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\
$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1146 [\\/$
]* | ?
:[\\/]* ) continue;;
1147 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target
=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x
; then
1162 if test "x$build_alias" = x
; then
1163 cross_compiling
=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1174 test "$silent" = yes && exec 6>/dev
/null
1177 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di
=`ls -di .` &&
1179 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted
=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir
=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1219 ac_srcdir_defaulted
=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1239 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 for ac_var
in $ac_precious_vars; do
1242 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1244 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1318 --x-includes=DIR X include files are
in DIR
1319 --x-libraries=DIR X library files are
in DIR
1322 --build=BUILD configure
for building on BUILD
[guessed
]
1323 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1337 --disable-ns-self-contained disable self contained build under NS
1338 --enable-asserts compile code with asserts enabled
1339 --enable-maintainer-mode
1340 enable make rules and dependencies not useful
(and
1341 sometimes confusing
) to the casual installer
1342 --enable-locallisppath=PATH
1343 directories Emacs should search
for lisp files
1344 specific to this site
1345 --disable-largefile omit support
for large files
1348 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1349 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1350 --without-pop don
't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --without-sync-input Process async input synchronously
1356 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1358 --without-xpm don
't compile with XPM image support
1359 --without-jpeg don't compile with JPEG image support
1360 --without-tiff don
't compile with TIFF image support
1361 --without-gif don't compile with GIF image support
1362 --without-png don
't compile with PNG image support
1363 --without-rsvg don't compile with SVG image support
1364 --without-freetype don
't use Freetype for local font support
1365 --without-xft don't use XFT
for anti aliased fonts
1366 --without-libotf don
't use libotf for OpenType font support
1367 --without-m17n-flt don't use m17n-flt
for text shaping
1368 --without-toolkit-scroll-bars
1369 don
't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don
't use X11 XIM
1372 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1373 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1375 --without-dbus don
't compile with D-Bus support
1376 --without-makeinfo don't require makeinfo
for building manuals
1378 --with-pkg-config-prog=PATH
1379 Path to pkg-config
for finding GTK and librsvg
1380 --with-x use the X Window System
1382 Some influential environment variables
:
1383 CC C compiler
command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1386 nonstandard directory
<lib dir
>
1387 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1388 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1389 you have headers
in a nonstandard directory
<include dir
>
1391 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1393 Use these variables to override the choices made by
`configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1423 .) # We are building in place.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1456 emacs configure 23.0.60
1457 generated by GNU Autoconf 2.61
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1470 It was created by emacs $as_me 23.0.60, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1483 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1484 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1485 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1486 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1487 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1490 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1492 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1493 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1494 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1496 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1498 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_must_keep_next=false
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1542 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 -* ) ac_must_keep_next=true ;;
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1587 # The following way of writing the cache mishandles newlines in values,
1589 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1590 eval ac_val=\$$ac_var
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1604 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1628 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 echo "$ac_var='\''$ac_val'\''"
1634 if test -n "$ac_subst_files"; then
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1645 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 echo "$ac_var='\''$ac_val'\''"
1652 if test -s confdefs.h; then
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1743 ac_header_list="$ac_header_list sys/time.h"
1744 ac_header_list="$ac_header_list unistd.h"
1745 ac_func_list="$ac_func_list alarm"
1746 # Check that the precious variables saved in the cache have kept the same
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1757 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1761 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1768 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1769 echo "$as_me: former value
: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1771 echo "$as_me: current value
: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1789 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1790 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s
,x
,x
', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1844 lispdir='${datadir}/emacs
/${version}/lisp
'
1845 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1846 '${datadir}/emacs
/site-lisp
'
1847 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1848 etcdir='${datadir}/emacs
/${version}/etc
'
1849 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1850 docdir='${datadir}/emacs
/${version}/etc
'
1851 gamedir='${localstatedir}/games
/emacs
'
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1865 if test "$with_pop" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define MAIL_USE_POP 1
1874 # Check whether --with-kerberos was given.
1875 if test "${with_kerberos+set}" = set; then
1876 withval=$with_kerberos;
1881 if test "$with_kerberos" != no; then
1882 cat >>confdefs.h <<\_ACEOF
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5;
1897 if test "${with_kerberos5}" != no; then
1898 if test "${with_kerberos}" = no; then
1900 cat >>confdefs.h <<\_ACEOF
1906 cat >>confdefs.h <<\_ACEOF
1913 # Check whether --with-hesiod was given.
1914 if test "${with_hesiod+set}" = set; then
1915 withval=$with_hesiod;
1920 if test "$with_hesiod" != no; then
1922 cat >>confdefs.h <<\_ACEOF
1929 # Check whether --with-sound was given.
1930 if test "${with_sound+set}" = set; then
1931 withval=$with_sound;
1938 # Check whether --with-sync-input was given.
1939 if test "${with_sync_input+set}" = set; then
1940 withval=$with_sync_input;
1945 if test "$with_sync_input" = yes; then
1947 cat >>confdefs.h <<\_ACEOF
1948 #define SYNC_INPUT 1
1954 # Check whether --with-x-toolkit was given.
1955 if test "${with_x_toolkit+set}" = set; then
1956 withval=$with_x_toolkit; case "${withval}" in
1957 y | ye | yes ) val=gtk ;;
1959 l | lu | luc | luci | lucid ) val=lucid ;;
1960 a | at | ath | athe | athen | athena ) val=athena ;;
1961 m | mo | mot | moti | motif ) val=motif ;;
1962 g | gt | gtk ) val=gtk ;;
1964 { { echo "$as_me:$LINENO: 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.
" >&5
1967 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1969 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1970 { (exit 1); exit 1; }; }
1979 # Check whether --with-xpm was given.
1980 if test "${with_xpm+set}" = set; then
1987 # Check whether --with-jpeg was given.
1988 if test "${with_jpeg+set}" = set; then
1995 # Check whether --with-tiff was given.
1996 if test "${with_tiff+set}" = set; then
2003 # Check whether --with-gif was given.
2004 if test "${with_gif+set}" = set; then
2011 # Check whether --with-png was given.
2012 if test "${with_png+set}" = set; then
2019 # Check whether --with-rsvg was given.
2020 if test "${with_rsvg+set}" = set; then
2028 # Check whether --with-freetype was given.
2029 if test "${with_freetype+set}" = set; then
2030 withval=$with_freetype;
2036 # Check whether --with-xft was given.
2037 if test "${with_xft+set}" = set; then
2044 # Check whether --with-libotf was given.
2045 if test "${with_libotf+set}" = set; then
2046 withval=$with_libotf;
2052 # Check whether --with-m17n-flt was given.
2053 if test "${with_m17n_flt+set}" = set; then
2054 withval=$with_m17n_flt;
2061 # Check whether --with-toolkit-scroll-bars was given.
2062 if test "${with_toolkit_scroll_bars+set}" = set; then
2063 withval=$with_toolkit_scroll_bars;
2065 with_toolkit_scroll_bars=yes
2069 # Check whether --with-xaw3d was given.
2070 if test "${with_xaw3d+set}" = set; then
2071 withval=$with_xaw3d;
2077 # Check whether --with-xim was given.
2078 if test "${with_xim+set}" = set; then
2085 # Check whether --with-ns was given.
2086 if test "${with_ns+set}" = set; then
2094 # Check whether --with-gpm was given.
2095 if test "${with_gpm+set}" = set; then
2102 # Check whether --with-dbus was given.
2103 if test "${with_dbus+set}" = set; then
2110 ## For the times when you want to build Emacs but don't have
2111 ## a suitable makeinfo, and can live without the manuals.
2113 # Check whether --with-makeinfo was given.
2114 if test "${with_makeinfo+set}" = set; then
2115 withval
=$with_makeinfo;
2122 # Check whether --with-gtk was given.
2123 if test "${with_gtk+set}" = set; then
2124 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&5
2126 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&2;}
2128 { (exit 1); exit 1; }; }
2133 # Check whether --with-gcc was given.
2134 if test "${with_gcc+set}" = set; then
2135 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&5
2137 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&2;}
2139 { (exit 1); exit 1; }; }
2144 # Check whether --with-pkg-config-prog was given.
2145 if test "${with_pkg_config_prog+set}" = set; then
2146 withval
=$with_pkg_config_prog;
2149 if test "X${with_pkg_config_prog}" != X
; then
2150 if test "${with_pkg_config_prog}" != yes; then
2151 PKG_CONFIG
="${with_pkg_config_prog}"
2155 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2156 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2157 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=yes
2159 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2163 # Check whether --enable-ns-self-contained was given.
2164 if test "${enable_ns_self_contained+set}" = set; then
2165 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=no
2167 EN_NS_SELF_CONTAINED
=yes
2171 # Check whether --enable-asserts was given.
2172 if test "${enable_asserts+set}" = set; then
2173 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2179 # Check whether --enable-maintainer-mode was given.
2180 if test "${enable_maintainer_mode+set}" = set; then
2181 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2183 USE_MAINTAINER_MODE
=no
2186 if test $USE_MAINTAINER_MODE = yes; then
2193 # Check whether --enable-locallisppath was given.
2194 if test "${enable_locallisppath+set}" = set; then
2195 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2197 elif test "${enableval}" != "yes"; then
2198 locallisppath
=${enableval}
2203 #### Make srcdir absolute, if it isn't already. It's important to
2204 #### avoid running the path through pwd unnecessarily, since pwd can
2205 #### give you automounter prefixes, which can go away. We do all this
2206 #### so Emacs can find its files when run uninstalled.
2207 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2212 ## We may be able to use the $PWD environment variable to make this
2213 ## absolute. But sometimes PWD is inaccurate.
2214 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2215 ## but that tested only for a well-formed and valid PWD,
2216 ## it did not object when PWD was well-formed and valid but just wrong.
2217 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2221 srcdir
="`(cd ${srcdir}; pwd)`"
2224 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2227 #### Check if the source directory already has a configured system in it.
2228 if test `pwd` != `(cd ${srcdir} && pwd)` \
2229 && test -f "${srcdir}/src/config.h" ; then
2230 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2231 as a build directory right now; it has been configured in its own
2232 right. To configure in another directory as well, you MUST
2233 use GNU make. If you do not have GNU make, then you must
2234 now do \`make distclean' in ${srcdir},
2235 and then run $0 again." >&5
2236 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&2;}
2244 #### Given the configuration name, set machfile and opsysfile to the
2245 #### names of the m/*.h and s/*.h files we should use.
2247 ### Canonicalize the configuration name.
2250 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2253 ac_install_sh
="$ac_aux_dir/install-sh -c"
2255 elif test -f "$ac_dir/install.sh"; then
2257 ac_install_sh
="$ac_aux_dir/install.sh -c"
2259 elif test -f "$ac_dir/shtool"; then
2261 ac_install_sh
="$ac_aux_dir/shtool install -c"
2265 if test -z "$ac_aux_dir"; then
2266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2267 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2268 { (exit 1); exit 1; }; }
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: checking build system type" >&5
2287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 ac_build_alias
=$build_alias
2292 test "x$ac_build_alias" = x
&&
2293 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x
&&
2295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 echo "${ECHO_T}$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2313 ac_save_IFS
=$IFS; IFS
='-'
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2323 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2326 { echo "$as_me:$LINENO: checking host system type" >&5
2327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test "x$host_alias" = x
; then
2332 ac_cv_host
=$ac_cv_build
2334 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6; }
2345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2350 ac_save_IFS
=$IFS; IFS
='-'
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2360 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 configuration
=${host_alias-${build_alias-$host}}
2368 ### If you add support for a new configuration, add code to this
2369 ### switch statement to recognize your configuration name and select
2370 ### the appropriate operating system and machine description files.
2372 ### You would hope that you could choose an m/*.h file pretty much
2373 ### based on the machine portion of the configuration name, and an s-
2374 ### file based on the operating system portion. However, it turns out
2375 ### that each m/*.h file is pretty manufacturer-specific - for
2376 ### example mips.h is MIPS
2377 ### So we basically have to have a special case for each
2378 ### configuration name.
2380 ### As far as handling version numbers on operating systems is
2381 ### concerned, make sure things will fail in a fixable way. If
2382 ### /etc/MACHINES doesn't say anything about version numbers, be
2383 ### prepared to handle anything reasonably. If version numbers
2384 ### matter, be sure /etc/MACHINES says something about it.
2386 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2387 ### "System V Release 4"; he writes, "The old convention encouraged
2388 ### confusion between `system' and `release' levels'."
2390 machine
='' opsys
='' unported
=no
2391 case "${canonical}" in
2396 case "${canonical}" in
2397 alpha
*-*-freebsd*) machine
=alpha
;;
2398 arm
*-*-freebsd*) machine
=arm
;;
2399 ia64-
*-freebsd*) machine
=ia64
;;
2400 sparc-
*-freebsd*) machine
=sparc
;;
2401 sparc64-
*-freebsd*) machine
=sparc
;;
2402 powerpc-
*-freebsd*) machine
=macppc
;;
2403 i
[3456]86-*-freebsd*) machine
=intel386
;;
2404 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2408 ## FreeBSD kernel + glibc based userland
2411 case "${canonical}" in
2412 alpha
*-*-kfreebsd*) machine
=alpha
;;
2413 ia64-
*-kfreebsd*) machine
=ia64
;;
2414 sparc-
*-kfreebsd*) machine
=sparc
;;
2415 sparc64-
*-kfreebsd*) machine
=sparc
;;
2416 powerpc-
*-kfreebsd*) machine
=macppc
;;
2417 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2418 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2425 if test -f /usr
/lib
/crti.o
; then
2427 cat >>confdefs.h
<<\_ACEOF
2433 case "${canonical}" in
2434 alpha
*-*-netbsd*) machine
=alpha
;;
2435 i
[3456]86-*-netbsd*) machine
=intel386
;;
2436 powerpc-
*-netbsd*) machine
=macppc
;;
2437 sparc
*-*-netbsd*) machine
=sparc
;;
2438 vax-
*-netbsd*) machine
=vax
;;
2439 arm-
*-netbsd*) machine
=arm
;;
2440 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2441 hppa-
*-netbsd*) machine
=hp800
;;
2448 case "${canonical}" in
2449 alpha
*-*-openbsd*) machine
=alpha
;;
2450 arm-
*-openbsd*) machine
=arm
;;
2451 i386-
*-openbsd*) machine
=intel386
;;
2452 powerpc-
*-openbsd*) machine
=macppc
;;
2453 sparc
*-*-openbsd*) machine
=sparc
;;
2454 vax-
*-openbsd*) machine
=vax
;;
2455 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2462 case "${canonical}" in
2463 i
[3456]86-*-lynxos*) machine
=intel386
;;
2464 powerpc-
*-lynxos*) machine
=powerpc
;;
2468 alpha
*-*-linux-gnu* )
2469 machine
=alpha opsys
=gnu-linux
2473 machine
=arm opsys
=gnu-linux
2476 ## Apple Darwin / Mac OS X
2478 case "${canonical}" in
2479 i
[3456]86-* ) machine
=intel386
;;
2480 powerpc-
* ) machine
=macppc
;;
2484 # Define CPP as follows to make autoconf work correctly.
2485 CPP
="${CC-cc} -E -no-cpp-precomp"
2486 # Use fink packages if available.
2487 if test -d /sw
/include
&& test -d /sw
/lib
; then
2488 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2489 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2490 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2494 ## HP 9000 series 700 and 800, running HP/UX
2495 hppa
*-hp-hpux10.2
* )
2496 machine
=hp800 opsys
=hpux10-20
2498 hppa
*-hp-hpux1[1-9]* )
2499 machine
=hp800 opsys
=hpux11
2500 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2503 hppa
*-*-linux-gnu* )
2504 machine
=hp800 opsys
=gnu-linux
2509 machine
=ibms390 opsys
=gnu-linux
2511 s390x-
*-linux-gnu* )
2512 machine
=ibms390x opsys
=gnu-linux
2514 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2515 machine
=ibmrs6000 opsys
=aix4-2
2517 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2518 machine
=ibmrs6000 opsys
=aix4-2
2520 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2521 machine
=ibmrs6000 opsys
=aix4-2
2523 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2524 machine
=ibmrs6000 opsys
=aix4-2
2527 ## Macintosh PowerPC
2528 powerpc
*-*-linux-gnu* )
2529 machine
=macppc opsys
=gnu-linux
2532 ## Silicon Graphics machines
2535 machine
=iris4d opsys
=irix6-5
2536 # Without defining _LANGUAGE_C, things get masked out in the headers
2537 # so that, for instance, grepping for `free' in stdlib.h fails and
2538 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2539 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2540 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2544 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2545 machine
=sparc opsys
=gnu-linux
2549 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2550 | rs6000-
*-solaris2*)
2551 case "${canonical}" in
2552 i
[3456]86-*-* ) machine
=intel386
;;
2553 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2554 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2555 sparc
* ) machine
=sparc
;;
2558 case "${canonical}" in
2559 *-sunos5.3
* |
*-solaris2.3
* )
2561 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2563 *-sunos5.4
* |
*-solaris2.4
* )
2565 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2568 *-sunos5.5
* |
*-solaris2.5
* )
2570 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2573 *-sunos5.6
* |
*-solaris2.6
* )
2575 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2578 *-sunos5* |
*-solaris* )
2580 emacs_check_sunpro_c
=yes
2581 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2584 ## Watch out for a compiler that we know will not work.
2585 case "${canonical}" in
2586 *-solaris* |
*-sunos5* )
2587 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2588 ## /usr/ucb/cc doesn't work;
2589 ## we should find some other compiler that does work.
2600 case "${canonical}" in
2601 *-vms* ) opsys
=vms
;;
2608 machine
=ia64 opsys
=gnu-linux
2611 ## Intel 386 machines where we don't care about the manufacturer
2614 case "${canonical}" in
2615 *-cygwin ) opsys
=cygwin
;;
2616 *-darwin* ) opsys
=darwin
2617 CPP
="${CC-cc} -E -no-cpp-precomp"
2619 *-linux-gnu* ) opsys
=gnu-linux
;;
2620 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2621 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2622 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2623 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2627 ## m68k Linux-based GNU system
2629 machine
=m68k opsys
=gnu-linux
2632 ## Mips Linux-based GNU system
2633 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2634 machine
=mips opsys
=gnu-linux
2637 ## AMD x86-64 Linux-based GNU system
2638 x86_64-
*-linux-gnu* )
2639 machine
=amdx86-64 opsys
=gnu-linux
2642 ## Tensilica Xtensa Linux-based GNU system
2643 xtensa
*-*-linux-gnu* )
2644 machine
=xtensa opsys
=gnu-linux
2652 ### If the code above didn't choose an operating system, just choose
2653 ### an operating system based on the configuration name. You really
2654 ### only want to use this when you have no idea what the right
2655 ### operating system is; if you know what operating systems a machine
2656 ### runs, it's cleaner to make it explicit in the case statement
2658 if test x
"${opsys}" = x
; then
2659 case "${canonical}" in
2660 *-gnu* ) opsys
=gnu
;;
2661 *-sysv4.2uw
* ) opsys
=unixware
;;
2662 *-sysv5uw* ) opsys
=unixware
;;
2663 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2664 *-sysv4.1
* |
*-sysvr4.1
* )
2665 NON_GNU_CPP
=/usr
/lib
/cpp
2667 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2668 if [ x
$NON_GNU_CPP = x
]; then
2669 if [ -f /usr
/ccs
/lib
/cpp
]; then
2670 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2672 NON_GNU_CPP
=/lib
/cpp
2676 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2685 if test $unported = yes; then
2686 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2687 Check \`etc/MACHINES' for recognized configuration names." >&5
2688 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2690 { (exit 1); exit 1; }; }
2693 machfile
="m/${machine}.h"
2694 opsysfile
="s/${opsys}.h"
2697 #### Choose a compiler.
2698 test -n "$CC" && cc_specified
=yes
2700 # Save the value of CFLAGS that the user specified.
2701 SPECIFIED_CFLAGS
="$CFLAGS"
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC
="$CC" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc
; ac_word
=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC
="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x
; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned
=yes ;;
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC
="$CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected
=yes
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy
$ac_cv_prog_CC
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2885 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog
in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC
="$CC" # Let the user override the test.
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 for ac_exec_ext
in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog
in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC
="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2989 if test "x$ac_ct_CC" = x
; then
2992 case $cross_compiling:$ac_tool_warned in
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned
=yes ;;
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler
=`set X $ac_compile; echo $2`
3018 { (ac_try
="$ac_compiler --version >&5"
3020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try
="$ac_compiler -V >&5"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3082 for ac_file in $ac_files
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 if { (ac_try="$ac_link_default"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3106 for ac_file
in $ac_files ''
3108 test -f "$ac_file" ||
continue
3110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3113 # We found the default executable, but exeext='' is most
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3131 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.
$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext
=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try
='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 if test "$cross_compiling" = maybe; then
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details.
" >&5
3177 echo "$as_me: error
: cannot run C compiled programs.
3178 If you meant to cross compile
, use \
`--host'.
3179 See \`config.log
' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3212 for ac_file
in conftest.exe conftest conftest.
*; do
3213 test -f "$ac_file" ||
continue
3215 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3216 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest
$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.
$ac_ext
3234 EXEEXT
=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.
$ac_ext <<_ACEOF
3244 cat confdefs.h
>>conftest.
$ac_ext
3245 cat >>conftest.
$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try
="$ac_compile"
3259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log
' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details.
" >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached
) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 echo "$as_me: failed program was
:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3350 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached
) $ECHO_C" >&6
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3392 echo "$as_me: failed program was
:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3430 echo "$as_me: failed program was
:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3469 echo "$as_me: failed program was
:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3495 if test "$GCC" = yes; then
3501 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3502 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached
) $ECHO_C" >&6
3506 ac_cv_prog_cc_c89=no
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3532 s = g (p, va_arg (v,int));
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3588 echo "$as_me: failed program was
:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3597 rm -f conftest.$ac_ext
3602 case "x
$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result
: none needed
" >&5
3605 echo "${ECHO_T}none needed
" >&6; } ;;
3607 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3608 echo "${ECHO_T}unsupported
" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3628 ## If not using gcc, and on Solaris, and no CPP specified, see if
3629 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3630 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3631 test x"$CPP" = x; then
3632 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3633 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3635 if test "${emacs_cv_sunpro_c+set}" = set; then
3636 echo $ECHO_N "(cached
) $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest$ac_exeext &&
3673 $as_test_x conftest$ac_exeext; then
3674 emacs_cv_sunpro_c=yes
3676 echo "$as_me: failed program was
:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 emacs_cv_sunpro_c=no
3682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 conftest$ac_exeext conftest.$ac_ext
3686 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3687 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3689 if test x"$emacs_cv_sunpro_c" = xyes; then
3690 NON_GNU_CPP="$CC -E -Xs"
3694 #### Some systems specify a CPP to use unless we are using GCC.
3695 #### Now that we know whether we are using GCC, we can decide whether
3696 #### to use that one.
3697 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3702 #### Some systems specify a CC to use unless we are using GCC.
3703 #### Now that we know whether we are using GCC, we can decide whether
3704 #### to use that one.
3705 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3706 test x$cc_specified != xyes
3711 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3713 CC="$CC $GCC_TEST_OPTIONS"
3716 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3718 CC="$CC $NON_GCC_TEST_OPTIONS"
3722 cat >>confdefs.h <<\_ACEOF
3723 #define _GNU_SOURCE 1
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached
) $ECHO_C" >&6
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error
" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 # include <limits.h>
3763 # include <assert.h>
3767 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3785 echo "$as_me: failed program was
:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3804 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3820 # Broken: success on invalid input.
3823 echo "$as_me: failed program was
:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Passes both tests.
3831 rm -f conftest.err conftest.$ac_ext
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3848 { echo "$as_me:$LINENO: result
: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error
" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3866 # include <limits.h>
3868 # include <assert.h>
3872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3890 echo "$as_me: failed program was
:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3925 # Broken: success on invalid input.
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3936 rm -f conftest.err conftest.$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3944 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3945 See \
`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log
' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3954 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and
test for each of PROGNAME-LIST
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_prog
in grep ggrep
; do
3977 for ac_exec_ext
in '' $ac_executable_extensions; do
3978 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3995 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3996 ac_count
=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP
="$ac_path_GREP"
4000 ac_path_GREP_max
=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4009 $ac_path_GREP_found && break 3
4019 GREP
="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP
=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP
="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4043 then ac_cv_path_EGREP
="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy
egrep; ac_prog_name
=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found
=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_prog
in egrep; do
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4078 ac_count
=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP
="$ac_path_EGREP"
4082 ac_path_EGREP_max
=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP
="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP
=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP
="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for AIX" >&5
4122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "yes" >/dev
/null
2>&1; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 cat >>confdefs.h
<<\_ACEOF
4139 #define _ALL_SOURCE 1
4143 { echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6; }
4149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4173 rm -f conftest.
$ac_objext
4174 if { (ac_try
="$ac_compile"
4176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 ac_cv_header_stdc=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_header_stdc=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4215 ac_cv_header_stdc=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4236 ac_cv_header_stdc=no
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4278 rm -f conftest$ac_exeext
4279 if { (ac_try="$ac_link"
4281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4282 *) ac_try_echo
=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_link") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4289 { (case "(($ac_try" in
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 cat >>confdefs.h <<\_ACEOF
4318 #define STDC_HEADERS 1
4323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334 inttypes.h stdint.h unistd.h
4336 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4350 #include <$ac_header>
4352 rm -f conftest.$ac_objext
4353 if { (ac_try="$ac_compile"
4355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4356 *) ac_try_echo
=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.
$ac_objext; then
4369 eval "$as_ac_Header=yes"
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.
$ac_ext >&5
4374 eval "$as_ac_Header=no"
4377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4379 ac_res
=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381 echo "${ECHO_T}$ac_res" >&6; }
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h
<<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392 if test "${ac_cv_header_minix_config_h+set}" = set; then
4393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4395 if test "${ac_cv_header_minix_config_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4401 # Is the header compilable?
4402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <minix/config.h>
4413 rm -f conftest.
$ac_objext
4414 if { (ac_try
="$ac_compile"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_header_compiler=yes
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_header_compiler=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6; }
4442 # Is the header present?
4443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <minix/config.h>
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4456 *) ac_try_echo
=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev
/null
&& {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4469 ac_header_preproc
=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.
$ac_ext >&5
4474 ac_header_preproc
=no
4477 rm -f conftest.err conftest.
$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6; }
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc
=yes
4491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4508 if test "${ac_cv_header_minix_config_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 ac_cv_header_minix_config_h
=$ac_header_preproc
4513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4517 if test $ac_cv_header_minix_config_h = yes; then
4524 if test "$MINIX" = yes; then
4526 cat >>confdefs.h
<<\_ACEOF
4527 #define _POSIX_SOURCE 1
4531 cat >>confdefs.h
<<\_ACEOF
4532 #define _POSIX_1_SOURCE 2
4536 cat >>confdefs.h
<<\_ACEOF
4552 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4553 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 # define __EXTENSIONS__ 1
4565 $ac_includes_default
4574 rm -f conftest.
$ac_objext
4575 if { (ac_try
="$ac_compile"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_cv_safe_to_define___extensions__=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_safe_to_define___extensions__=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4602 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4603 test $ac_cv_safe_to_define___extensions__ = yes &&
4604 cat >>confdefs.h <<\_ACEOF
4605 #define __EXTENSIONS__ 1
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4642 *) ac_try_echo
=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.
$ac_objext; then
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.
$ac_ext >&5
4663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS
="$SAVE_CFLAGS"
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 ac_cpp
='$CPP $CPPFLAGS'
4688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # Double quotes because CPP needs to be expanded
4702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 for ac_c_preproc_warn_flag
in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4766 *) ac_try_echo
=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1
>conftest.err
4773 cat conftest.err
>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev
/null
&& {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 # Passes both tests.
4790 rm -f conftest.err conftest.
$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.
$ac_ext
4795 if $ac_preproc_ok; then
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4810 for ac_c_preproc_warn_flag
in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4871 *) ac_try_echo
=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1
>conftest.err
4878 cat conftest.err
>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev
/null
&& {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4884 # Broken: success on invalid input.
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 # Passes both tests.
4895 rm -f conftest.err conftest.
$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4911 ac_cpp
='$CPP $CPPFLAGS'
4912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir
=.
4940 # Account for people who put trailing slashes in PATH elements.
4942 .
/ | .
// |
/cC
/* | \
4943 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4944 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4950 for ac_prog
in ginstall scoinst
install; do
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4962 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL
=$ac_cv_path_install
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL
=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x
; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 RANLIB
=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB
=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib
; ac_word
=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir
=.
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x
; then
5077 case $cross_compiling:$ac_tool_warned in
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo
; ac_word
=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5289 MAKEINFO
=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5292 echo "${ECHO_T}$MAKEINFO" >&6; }
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 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
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a CVS checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from CVS, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a CVS checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5316 elif ! test -e $srcdir/info
/emacs
; then
5317 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " >&5
5321 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5325 { (exit 1); exit 1; }; }
5330 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5332 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5335 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5337 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5341 late_LDFLAGS
=$LDFLAGS
5342 if test "$GCC" = yes; then
5343 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5345 LDFLAGS
="$LDFLAGS -znocombreloc"
5348 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5349 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 rm -f conftest.
$ac_objext conftest
$ac_exeext
5354 if { (ac_try
="$ac_link"
5356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 LDFLAGS=$late_LDFLAGS
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5385 #### Extract some information from the operating system and machine files.
5387 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&5
5390 echo "$as_me: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&6;}
5394 ### First figure out CFLAGS (which we use for running the compiler here)
5395 ### and REAL_CFLAGS (which we use for real compilation).
5396 ### The two are the same except on a few systems, where they are made
5397 ### different to work around various lossages. For example,
5398 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5399 ### as implying static linking.
5401 ### If the CFLAGS env var is specified, we use that value
5402 ### instead of the default.
5404 ### It's not important that this name contain the PID; you can't run
5405 ### two configures in the same directory and have anything work
5407 tempcname="conftest.c"
5410 #include "'${srcdir}'/src/'${opsysfile}'"
5411 #include "'${srcdir}'/src/'${machfile}'"
5412 #ifndef LIBS_MACHINE
5413 #define LIBS_MACHINE
5418 #ifndef C_SWITCH_SYSTEM
5419 #define C_SWITCH_SYSTEM
5421 #ifndef C_SWITCH_MACHINE
5422 #define C_SWITCH_MACHINE
5424 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5425 configure___ c_switch_system=C_SWITCH_SYSTEM
5426 configure___ c_switch_machine=C_SWITCH_MACHINE
5429 #define LIB_X11_LIB -lX11
5432 #ifndef LIBX11_SYSTEM
5433 #define LIBX11_SYSTEM
5435 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5438 configure___ unexec=UNEXEC
5440 configure___ unexec=unexec.o
5443 #ifdef SYSTEM_MALLOC
5444 configure___ system_malloc=yes
5446 configure___ system_malloc=no
5449 #ifdef USE_MMAP_FOR_BUFFERS
5450 configure___ use_mmap_for_buffers=yes
5452 configure___ use_mmap_for_buffers=no
5455 #ifndef C_DEBUG_SWITCH
5456 #define C_DEBUG_SWITCH -g
5459 #ifndef C_OPTIMIZE_SWITCH
5461 #define C_OPTIMIZE_SWITCH -O2
5463 #define C_OPTIMIZE_SWITCH -O
5467 #ifndef C_WARNINGS_SWITCH
5468 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5471 #ifndef LD_SWITCH_MACHINE
5472 #define LD_SWITCH_MACHINE
5475 #ifndef LD_SWITCH_SYSTEM
5476 #define LD_SWITCH_SYSTEM
5479 #ifndef LD_SWITCH_X_SITE_AUX
5480 #define LD_SWITCH_X_SITE_AUX
5483 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5484 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5486 #ifdef THIS_IS_CONFIGURE
5488 /* Get the CFLAGS for tests in configure. */
5490 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5492 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5495 #else /* not THIS_IS_CONFIGURE */
5497 /* Get the CFLAGS for real compilation. */
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5504 #endif /* not THIS_IS_CONFIGURE */
5507 # The value of CPP is a quoted variable reference, so we need to do this
5508 # to get its actual value...
5509 CPP=`eval "echo $CPP"`
5510 eval `${CPP} -Isrc ${tempcname} \
5511 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 if test "x$SPECIFIED_CFLAGS" = x; then
5513 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5514 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5516 REAL_CFLAGS="$CFLAGS"
5520 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5522 ### Make sure subsequent tests use flags consistent with the build flags.
5524 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5525 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5527 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5532 # Check whether --enable-largefile was given.
5533 if test "${enable_largefile+set}" = set; then
5534 enableval=$enable_largefile;
5537 if test "$enable_largefile" != no; then
5539 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5540 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_cv_sys_largefile_CC=no
5545 if test "$GCC" != yes; then
5548 # IRIX 6.2 and later do not support large files by default,
5549 # so use the C compiler's -n32 option if that helps.
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5577 *) ac_try_echo
=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1
>conftest.err
5584 cat conftest.err
>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.
$ac_objext; then
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5598 rm -f core conftest.err conftest.
$ac_objext
5600 rm -f conftest.
$ac_objext
5601 if { (ac_try
="$ac_compile"
5603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_largefile_CC=' -n32'; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f core conftest.err conftest.$ac_objext
5629 rm -f conftest.$ac_ext
5632 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5634 if test "$ac_cv_sys_largefile_CC" != no; then
5635 CC=$CC$ac_cv_sys_largefile_CC
5638 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5671 *) ac_try_echo
=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.
$ac_objext; then
5684 ac_cv_sys_file_offset_bits
=no
; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5717 rm -f conftest.
$ac_objext
5718 if { (ac_try
="$ac_compile"
5720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_sys_file_offset_bits=64; break
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_cv_sys_file_offset_bits=unknown
5747 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5748 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5749 case $ac_cv_sys_file_offset_bits in #(
5752 cat >>confdefs.h <<_ACEOF
5753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5758 if test $ac_cv_sys_file_offset_bits = unknown; then
5759 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5760 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5761 if test "${ac_cv_sys_large_files+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5792 *) ac_try_echo
=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.
$ac_objext; then
5805 ac_cv_sys_large_files
=no
; break
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #define _LARGE_FILES 1
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5838 rm -f conftest.
$ac_objext
5839 if { (ac_try
="$ac_compile"
5841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_cv_sys_large_files=1; break
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5868 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5869 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5884 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5885 ### be located in either /usr/lib64 or /usr/lib.
5886 case "${canonical}" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5888 if test -d /usr/lib64; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIB64_DIR 1
5900 if test "${with_sound}" != "no"; then
5901 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_res=`eval echo '${'$as_ac_Header'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5918 # Is the header compilable?
5919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 #include <$ac_header>
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5934 *) ac_try_echo
=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1
>conftest.err
5941 cat conftest.err
>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.
$ac_objext; then
5947 ac_header_compiler
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_header_compiler
=no
5955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6; }
5959 # Is the header present?
5960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null && {
5983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5986 ac_header_preproc=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_header_preproc=no
5994 rm -f conftest.err conftest.$ac_ext
5995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6; }
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005 ac_header_preproc=yes
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 eval "$as_ac_Header=\$ac_header_preproc"
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6044 # Emulation library used on NetBSD.
6045 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6046 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6047 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lossaudio $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6069 return _oss_ioctl ();
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (ac_try="$ac_link"
6077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6078 *) ac_try_echo
=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_link") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest
$ac_exeext &&
6091 $as_test_x conftest
$ac_exeext; then
6092 ac_cv_lib_ossaudio__oss_ioctl
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_lib_ossaudio__oss_ioctl
=no
6100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6101 conftest
$ac_exeext conftest.
$ac_ext
6102 LIBS
=$ac_check_lib_save_LIBS
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6106 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6115 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6119 # Extract the first word of "pkg-config", so it can be a program name with args.
6120 set dummy pkg-config
; ac_word
=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir
=.
6136 for ac_exec_ext
in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6150 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6151 if test -n "$PKG_CONFIG"; then
6152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6161 if test "$PKG_CONFIG" = "no" ; then
6164 PKG_CONFIG_MIN_VERSION
=0.9.0
6165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6166 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6167 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6169 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6170 { echo "$as_me:$LINENO: result: yes" >&5
6171 echo "${ECHO_T}yes" >&6; }
6174 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6175 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6176 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6177 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6178 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6180 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6181 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6182 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6184 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 ## If we have a custom action on failure, don't print errors, but
6191 ## do set a variable so people can do so.
6192 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6204 if test $succeeded = yes; then
6210 if test $HAVE_ALSA = yes; then
6211 SAVE_CFLAGS
="$CFLAGS"
6212 SAVE_LDFLAGS
="$LDFLAGS"
6213 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6214 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <asoundlib.h>
6225 snd_lib_error_set_handler (0);
6230 rm -f conftest.
$ac_objext
6231 if { (ac_try
="$ac_compile"
6233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 emacs_alsa_normal=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 emacs_alsa_normal=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "$emacs_alsa_normal" != yes; then
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6267 snd_lib_error_set_handler (0);
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6276 *) ac_try_echo
=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.
$ac_objext; then
6289 emacs_alsa_subdir
=yes
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.
$ac_ext >&5
6294 emacs_alsa_subdir
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 if test "$emacs_alsa_subdir" != yes; then
6299 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6300 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6301 { (exit 1); exit 1; }; }
6303 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6306 CFLAGS
="$SAVE_CFLAGS"
6307 LDFLAGS
="$SAVE_LDFLAGS"
6308 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6309 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6311 cat >>confdefs.h
<<\_ACEOF
6344 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6345 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6346 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6347 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_res
=`eval echo '${'$as_ac_Header'}'`
6358 { echo "$as_me:$LINENO: result: $ac_res" >&5
6359 echo "${ECHO_T}$ac_res" >&6; }
6361 # Is the header compilable?
6362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6373 rm -f conftest.
$ac_objext
6374 if { (ac_try
="$ac_compile"
6376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_header_compiler=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6400 echo "${ECHO_T}$ac_header_compiler" >&6; }
6402 # Is the header present?
6403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <$ac_header>
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6416 *) ac_try_echo
=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev
/null
&& {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6429 ac_header_preproc
=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 ac_header_preproc
=no
6437 rm -f conftest.err conftest.
$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6; }
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc
=yes
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 eval "$as_ac_Header=\$ac_header_preproc"
6473 ac_res
=`eval echo '${'$as_ac_Header'}'`
6474 { echo "$as_me:$LINENO: result: $ac_res" >&5
6475 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h
<<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6488 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6489 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6490 cat >conftest.
$ac_ext <<_ACEOF
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/personality.h>
6500 personality (PER_LINUX32)
6505 rm -f conftest.
$ac_objext
6506 if { (ac_try
="$ac_compile"
6508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_cv_personality_linux32=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 emacs_cv_personality_linux32=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6532 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6534 if test $emacs_cv_personality_linux32 = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_PERSONALITY_LINUX32 1
6543 for ac_header in term.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <$ac_header>
6559 if { (ac_try="$ac_cpp conftest.$ac_ext"
6561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6562 *) ac_try_echo
=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6567 grep -v '^ *+' conftest.er1
>conftest.err
6569 cat conftest.err
>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev
/null
&& {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6575 eval "$as_ac_Header=yes"
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 eval "$as_ac_Header=no"
6583 rm -f conftest.err conftest.
$ac_ext
6585 ac_res
=`eval echo '${'$as_ac_Header'}'`
6586 { echo "$as_me:$LINENO: result: $ac_res" >&5
6587 echo "${ECHO_T}$ac_res" >&6; }
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h
<<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6621 rm -f conftest.
$ac_objext
6622 if { (ac_try
="$ac_compile"
6624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 ac_cv_header_stdc=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test $ac_cv_header_stdc = yes; then
6649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then
6663 ac_cv_header_stdc=no
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "free" >/dev/null 2>&1; then
6684 ac_cv_header_stdc=no
6690 if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692 if test "$cross_compiling" = yes; then
6695 cat >conftest.$ac_ext <<_ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6703 #if ((' ' & 0x0FF) == 0x020)
6704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6707 # define ISLOWER(c) \
6708 (('a' <= (c) && (c) <= 'i') \
6709 || ('j' <= (c) && (c) <= 'r') \
6710 || ('s' <= (c) && (c) <= 'z'))
6711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6719 for (i = 0; i < 256; i++)
6720 if (XOR (islower (i), ISLOWER (i))
6721 || toupper (i) != TOUPPER (i))
6726 rm -f conftest$ac_exeext
6727 if { (ac_try="$ac_link"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_link") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6737 { (case "(($ac_try" in
6738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_try") 2>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_cv_header_stdc=no
6755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6763 if test $ac_cv_header_stdc = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STDC_HEADERS 1
6771 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_time+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/time.h>
6789 if ((struct tm *) 0)
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6799 *) ac_try_echo
=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.
$ac_objext; then
6812 ac_cv_header_time
=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6817 ac_cv_header_time
=no
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6823 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6824 if test $ac_cv_header_time = yes; then
6826 cat >>confdefs.h
<<\_ACEOF
6827 #define TIME_WITH_SYS_TIME 1
6832 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6855 rm -f conftest.
$ac_objext
6856 if { (ac_try
="$ac_compile"
6858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl_sys_siglist=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_have_decl_sys_siglist=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6884 if test $ac_cv_have_decl_sys_siglist = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_SYS_SIGLIST 1
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 0
6900 if test $ac_cv_have_decl_sys_siglist != yes; then
6901 # For Tru64, at least:
6902 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6903 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6904 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6917 #ifndef __sys_siglist
6918 (void) __sys_siglist;
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6929 *) ac_try_echo
=$ac_try;;
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6934 grep -v '^ *+' conftest.er1
>conftest.err
6936 cat conftest.err
>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.
$ac_objext; then
6942 ac_cv_have_decl___sys_siglist
=yes
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.
$ac_ext >&5
6947 ac_cv_have_decl___sys_siglist
=no
6950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6953 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6954 if test $ac_cv_have_decl___sys_siglist = yes; then
6956 cat >>confdefs.h
<<_ACEOF
6957 #define HAVE_DECL___SYS_SIGLIST 1
6962 cat >>confdefs.h
<<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 0
6970 if test $ac_cv_have_decl___sys_siglist = yes; then
6972 cat >>confdefs.h
<<\_ACEOF
6973 #define sys_siglist __sys_siglist
6978 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/wait.h>
6992 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7008 rm -f conftest.
$ac_objext
7009 if { (ac_try
="$ac_compile"
7011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_sys_wait_h=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_header_sys_wait_h=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7037 if test $ac_cv_header_sys_wait_h = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_SYS_WAIT_H 1
7046 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7047 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7048 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #ifdef TIME_WITH_SYS_TIME
7058 #include <sys/time.h>
7061 #ifdef HAVE_SYS_TIME_H
7062 #include <sys/time.h>
7073 static struct utimbuf x; x.actime = x.modtime;
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7082 *) ac_try_echo
=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.
$ac_objext; then
7095 emacs_cv_struct_utimbuf
=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 emacs_cv_struct_utimbuf
=no
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7106 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7107 if test $emacs_cv_struct_utimbuf = yes; then
7109 cat >>confdefs.h
<<\_ACEOF
7110 #define HAVE_STRUCT_UTIMBUF 1
7115 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7116 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_signal+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7132 return *(signal (0, 0)) (0) == 1;
7137 rm -f conftest.
$ac_objext
7138 if { (ac_try
="$ac_compile"
7140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_type_signal=int
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_type_signal=void
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7165 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7167 cat >>confdefs.h <<_ACEOF
7168 #define RETSIGTYPE $ac_cv_type_signal
7173 { echo "$as_me:$LINENO: checking for speed_t" >&5
7174 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7175 if test "${emacs_cv_speed_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <termios.h>
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 emacs_cv_speed_t
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7221 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7222 if test $emacs_cv_speed_t = yes; then
7224 cat >>confdefs.h
<<\_ACEOF
7225 #define HAVE_SPEED_T 1
7230 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7231 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7232 if test "${emacs_cv_struct_timeval+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #ifdef TIME_WITH_SYS_TIME
7242 #include <sys/time.h>
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7254 static struct timeval x; x.tv_sec = x.tv_usec;
7259 rm -f conftest.
$ac_objext
7260 if { (ac_try
="$ac_compile"
7262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_timeval=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 emacs_cv_struct_timeval=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7288 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7289 if test $emacs_cv_struct_timeval = yes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_TIMEVAL 1
7297 { echo "$as_me:$LINENO: checking for struct exception" >&5
7298 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7299 if test "${emacs_cv_struct_exception+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7312 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7321 *) ac_try_echo
=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 emacs_cv_struct_exception
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7339 emacs_cv_struct_exception
=no
7342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7345 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7346 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7347 if test $emacs_cv_struct_exception != yes; then
7349 cat >>confdefs.h
<<\_ACEOF
7350 #define NO_MATHERR 1
7356 for ac_header
in sys
/socket.h
7358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_res
=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7381 rm -f conftest.
$ac_objext
7382 if { (ac_try
="$ac_compile"
7384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7424 *) ac_try_echo
=$ac_try;;
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev
/null
&& {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7437 ac_header_preproc
=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 ac_header_preproc
=no
7445 rm -f conftest.err conftest.
$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc
=yes
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 eval "$as_ac_Header=\$ac_header_preproc"
7481 ac_res
=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h
<<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 for ac_header
in net
/if.h
7498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7515 #include <$ac_header>
7517 rm -f conftest.
$ac_objext
7518 if { (ac_try
="$ac_compile"
7520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 eval "$as_ac_Header=yes"
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 eval "$as_ac_Header=no"
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7557 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7559 if test "${ac_cv_struct_tm+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7575 int *p = &tm.tm_sec;
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7585 *) ac_try_echo
=$ac_try;;
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1
>conftest.err
7592 cat conftest.err
>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.
$ac_objext; then
7598 ac_cv_struct_tm
=time.h
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 ac_cv_struct_tm
=sys
/time.h
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7609 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7610 if test $ac_cv_struct_tm = sys
/time.h
; then
7612 cat >>confdefs.h
<<\_ACEOF
7613 #define TM_IN_SYS_TIME 1
7618 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7619 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7620 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <$ac_cv_struct_tm>
7636 static struct tm ac_aggr;
7637 if (ac_aggr.tm_zone)
7643 rm -f conftest.
$ac_objext
7644 if { (ac_try
="$ac_compile"
7646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_member_struct_tm_tm_zone=yes
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <$ac_cv_struct_tm>
7678 static struct tm ac_aggr;
7679 if (sizeof ac_aggr.tm_zone)
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7689 *) ac_try_echo
=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1
>conftest.err
7696 cat conftest.err
>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.
$ac_objext; then
7702 ac_cv_member_struct_tm_tm_zone
=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.
$ac_ext >&5
7707 ac_cv_member_struct_tm_tm_zone
=no
7710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7719 cat >>confdefs.h
<<_ACEOF
7720 #define HAVE_STRUCT_TM_TM_ZONE 1
7726 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7728 cat >>confdefs.h
<<\_ACEOF
7729 #define HAVE_TM_ZONE 1
7733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7734 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7735 if test "${ac_cv_have_decl_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7757 rm -f conftest.
$ac_objext
7758 if { (ac_try
="$ac_compile"
7760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_have_decl_tzname=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_have_decl_tzname=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7786 if test $ac_cv_have_decl_tzname = yes; then
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_TZNAME 1
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 0
7802 { echo "$as_me:$LINENO: checking for tzname" >&5
7803 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7804 if test "${ac_cv_var_tzname+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 #if !HAVE_DECL_TZNAME
7815 extern char *tzname[];
7821 return tzname[0][0];
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1
>conftest.err
7837 cat conftest.err
>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest
$ac_exeext &&
7843 $as_test_x conftest
$ac_exeext; then
7844 ac_cv_var_tzname
=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7853 conftest
$ac_exeext conftest.
$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7856 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7857 if test $ac_cv_var_tzname = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_TZNAME 1
7866 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7867 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7868 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_gmtoff)
7889 rm -f conftest.
$ac_objext
7890 if { (ac_try
="$ac_compile"
7892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_gmtoff=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7922 static struct tm ac_aggr;
7923 if (sizeof ac_aggr.tm_gmtoff)
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7933 *) ac_try_echo
=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1
>conftest.err
7940 cat conftest.err
>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.
$ac_objext; then
7946 ac_cv_member_struct_tm_tm_gmtoff
=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.
$ac_ext >&5
7951 ac_cv_member_struct_tm_tm_gmtoff
=no
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7961 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7963 cat >>confdefs.h
<<\_ACEOF
7964 #define HAVE_TM_GMTOFF 1
7969 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7970 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7971 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 cat >conftest.
$ac_ext <<_ACEOF
7977 cat confdefs.h
>>conftest.
$ac_ext
7978 cat >>conftest.
$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #if HAVE_SYS_SOCKET_H
7982 #include <sys/socket.h>
7991 static struct ifreq ac_aggr;
7992 if (ac_aggr.ifr_flags)
7998 rm -f conftest.
$ac_objext
7999 if { (ac_try
="$ac_compile"
8001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_cv_member_struct_ifreq_ifr_flags=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8037 static struct ifreq ac_aggr;
8038 if (sizeof ac_aggr.ifr_flags)
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.
$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_flags
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_cv_member_struct_ifreq_ifr_flags
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8076 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8078 cat >>confdefs.h
<<_ACEOF
8079 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_hwaddr)
8113 rm -f conftest.
$ac_objext
8114 if { (ac_try
="$ac_compile"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_hwaddr)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8163 *) ac_try_echo
=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.
$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.
$ac_ext <<_ACEOF
8207 cat confdefs.h
>>conftest.
$ac_ext
8208 cat >>conftest.
$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_netmask)
8228 rm -f conftest.
$ac_objext
8229 if { (ac_try
="$ac_compile"
8231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_netmask=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_netmask)
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_netmask
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8308 cat >>confdefs.h
<<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_broadaddr)
8343 rm -f conftest.
$ac_objext
8344 if { (ac_try
="$ac_compile"
8346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_broadaddr)
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.
$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.
$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_addr)
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_addr=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_addr)
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.
$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_addr
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_addr
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8538 cat >>confdefs.h
<<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8547 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8549 if test "$ac_cv_prog_cc_c89" != no
; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8553 cat >>confdefs.h
<<\_ACEOF
8554 #define PROTOTYPES 1
8558 cat >>confdefs.h
<<\_ACEOF
8559 #define __PROTOTYPES 1
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8567 { echo "$as_me:$LINENO: checking for working volatile" >&5
8568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_volatile+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8584 int * volatile y = (int *) 0;
8590 rm -f conftest.
$ac_objext
8591 if { (ac_try
="$ac_compile"
8593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_c_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_c_volatile=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8618 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 cat >>confdefs.h <<\_ACEOF
8627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_const+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8642 /* FIXME: Include the comments suggested by Paul. */
8644 /* Ultrix mips cc rejects this. */
8645 typedef int charset[2];
8647 /* SunOS 4.1.1 cc rejects this. */
8648 char const *const *pcpcc;
8650 /* NEC SVR4.0.2 mips cc rejects this. */
8651 struct point {int x, y;};
8652 static struct point const zero = {0,0};
8653 /* AIX XL C 1.02.0.0 rejects this.
8654 It does not let you subtract one const X* pointer from another in
8655 an arm of an if-expression whose if-part is not a constant
8657 const char *g = "string";
8658 pcpcc = &g + (g ? g-g : 0);
8659 /* HPUX 7.0 cc rejects these. */
8661 ppc = (char**) pcpcc;
8662 pcpcc = (char const *const *) ppc;
8663 { /* SCO 3.2v4 cc rejects this. */
8665 char const *s = 0 ? (char *) 0 : (char const *) 0;
8670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8672 const int *foo = &x[0];
8675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8676 typedef const int *iptr;
8680 { /* AIX XL C 1.02.0.0 rejects this saying
8681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8682 struct s { int j; const int *ap[3]; };
8683 struct s *b; b->j = 5;
8685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 return !cs[0] && !zero.x;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1
>conftest.err
8707 cat conftest.err
>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.
$ac_objext; then
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8725 if test $ac_cv_c_const = no
; then
8727 cat >>confdefs.h
<<\_ACEOF
8733 { echo "$as_me:$LINENO: checking for void * support" >&5
8734 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8735 if test "${emacs_cv_void_star+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8753 rm -f conftest.
$ac_objext
8754 if { (ac_try
="$ac_compile"
8756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 emacs_cv_void_star=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 emacs_cv_void_star=no
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8781 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8782 if test $emacs_cv_void_star = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define POINTER_TYPE void
8788 cat >>confdefs.h <<\_ACEOF
8789 #define POINTER_TYPE char
8798 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8800 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.make <<\_ACEOF
8807 @echo '@@@%%%=$(MAKE)=@@@%%%'
8809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8810 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8812 eval ac_cv_prog_make_${ac_make}_set=yes;;
8814 eval ac_cv_prog_make_${ac_make}_set=no;;
8818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 SET_MAKE="MAKE=${MAKE-make}"
8829 { echo "$as_me:$LINENO: checking for long file names" >&5
8830 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8831 if test "${ac_cv_sys_long_file_names+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_sys_long_file_names=yes
8835 # Test for long file names in all the places we know might matter:
8836 # . the current directory, where building will happen
8837 # $prefix/lib where we will be installing things
8838 # $exec_prefix/lib likewise
8839 # $TMPDIR if set, where it might want to write temporary files
8840 # /tmp where it might want to write temporary files
8843 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8844 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8845 # in the usual case where exec_prefix is '${prefix}'.
8847 . | /* | ?:[\\/]*) ;; #(
8850 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8851 ac_xdir=$ac_dir/cf$$
8852 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8853 ac_tf1=$ac_xdir/conftest9012345
8854 ac_tf2=$ac_xdir/conftest9012346
8855 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8856 ac_cv_sys_long_file_names=no
8857 rm -f -r "$ac_xdir" 2>/dev/null
8858 test $ac_cv_sys_long_file_names = no && break
8861 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8862 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8863 if test $ac_cv_sys_long_file_names = yes; then
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_LONG_FILE_NAMES 1
8872 #### Choose a window system.
8874 { echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8878 # Check whether --with-x was given.
8879 if test "${with_x+set}" = set; then
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8888 case $x_includes,$x_libraries in #(
8889 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8890 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8891 { (exit 1); exit 1; }; };; #(
8892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -f -r conftest.dir
8898 if mkdir conftest.dir; then
8900 cat >Imakefile <<'_ACEOF'
8902 @echo incroot='${INCROOT}'
8904 @echo usrlibdir='${USRLIBDIR}'
8906 @echo libdir='${LIBDIR}'
8908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8910 for ac_var in incroot usrlibdir libdir; do
8911 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8914 for ac_extension in a so sl; do
8915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8917 ac_im_usrlibdir=$ac_im_libdir; break
8920 # Screen out bogus values from the imake configuration. They are
8921 # bogus both because they are the default anyway, and because
8922 # using them would break gcc on systems where it needs fixed includes.
8923 case $ac_im_incroot in
8924 /usr/include) ac_x_includes= ;;
8925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8927 case $ac_im_usrlibdir in
8929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8933 rm -f -r conftest.dir
8936 # Standard set of common directories for X headers.
8937 # Check X11 before X11Rn because it is often a symlink to the current release.
8949 /usr/local/X11/include
8950 /usr/local/X11R6/include
8951 /usr/local/X11R5/include
8952 /usr/local/X11R4/include
8954 /usr/local/include/X11
8955 /usr/local/include/X11R6
8956 /usr/local/include/X11R5
8957 /usr/local/include/X11R4
8961 /usr/XFree86/include/X11
8965 /usr/unsupported/include
8967 /usr/local/x11r5/include
8968 /usr/lpp/Xamples/include
8970 /usr/openwin/include
8971 /usr/openwin/share/include'
8973 if test "$ac_x_includes" = no; then
8974 # Guess where to find include files, by looking for Xlib.h.
8975 # First, try using that file with no special directory specified.
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <X11/Xlib.h>
8984 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8987 *) ac_try_echo
=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1
>conftest.err
8994 cat conftest.err
>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev
/null
&& {
8997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8998 test ! -s conftest.err
9000 # We can compile using X headers with no special include directory.
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.
$ac_ext >&5
9006 for ac_dir
in $ac_x_header_dirs; do
9007 if test -r "$ac_dir/X11/Xlib.h"; then
9008 ac_x_includes
=$ac_dir
9014 rm -f conftest.err conftest.
$ac_ext
9015 fi # $ac_x_includes = no
9017 if test "$ac_x_libraries" = no
; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Xlib.h>
9038 rm -f conftest.
$ac_objext conftest
$ac_exeext
9039 if { (ac_try
="$ac_link"
9041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9057 # We can link X programs with no special library path.
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r "$ac_dir/libX11.$ac_extension"; then
9069 ac_x_libraries=$ac_dir
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi # $ac_x_libraries = no
9080 case $ac_x_includes,$ac_x_libraries in #(
9082 # Didn't find X, or a directory has "'" in its name.
9083 ac_cv_have_x="have_x=no";; #(
9085 # Record where we found X for the cache.
9086 ac_cv_have_x="have_x=yes\
9087 ac_x_includes='$ac_x_includes'\
9088 ac_x_libraries='$ac_x_libraries'"
9094 eval "$ac_cv_have_x"
9097 if test "$have_x" != yes; then
9098 { echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6; }
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes\
9107 ac_x_includes='$x_includes'\
9108 ac_x_libraries='$x_libraries'"
9109 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9110 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9113 if test "$no_x" = yes; then
9119 ## Workaround for bug in autoconf <= 2.62.
9120 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9121 ## No need to do anything special for these standard directories.
9122 ## This is an experiment, take it out if it causes problems.
9123 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9125 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9129 if test "${x_libraries}" != NONE; then
9130 if test -n "${x_libraries}"; then
9131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9134 x_default_search_path=""
9135 x_search_path=${x_libraries}
9136 if test -z "${x_search_path}"; then
9137 x_search_path=/usr/lib
9139 for x_library in `echo ${x_search_path}: | \
9140 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9142 ${x_library}/X11/%L/%T/%N%C%S:\
9143 ${x_library}/X11/%l/%T/%N%C%S:\
9144 ${x_library}/X11/%T/%N%C%S:\
9145 ${x_library}/X11/%L/%T/%N%S:\
9146 ${x_library}/X11/%l/%T/%N%S:\
9147 ${x_library}/X11/%T/%N%S"
9148 if test x"${x_default_search_path}" = x; then
9149 x_default_search_path=${x_search_path}
9151 x_default_search_path="${x_search_path}:${x_default_search_path}"
9155 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9156 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9159 if test x"${x_includes}" = x; then
9160 bitmapdir=/usr/include/X11/bitmaps
9162 # accumulate include directories that have X11 bitmap subdirectories
9164 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9165 if test -d "${bmd}/X11/bitmaps"; then
9166 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9168 if test -d "${bmd}/bitmaps"; then
9169 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9172 if test ${bmd_acc} != "dummyval"; then
9173 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9180 tmp_CPPFLAGS="$CPPFLAGS"
9181 tmp_CFLAGS="$CFLAGS"
9182 CPPFLAGS="$CPPFLAGS -x objective-c"
9183 CFLAGS="$CFLAGS -x objective-c"
9184 if test "${with_ns}" != no; then
9185 if test "${opsys}" = darwin; then
9187 ns_appdir=`pwd`/nextstep/Emacs.app
9188 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9189 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9190 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9191 elif test -f /etc/GNUstep/GNUstep.conf; then
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9196 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9197 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9198 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9199 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9200 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9201 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9202 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9205 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9206 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9207 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9208 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9216 echo $ECHO_N "checking AppKit/AppKit.h usability... $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 $ac_includes_default
9224 #include <AppKit/AppKit.h>
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9230 *) ac_try_echo
=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1
>conftest.err
9237 cat conftest.err
>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.
$ac_objext; then
9243 ac_header_compiler
=yes
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 ac_header_compiler
=no
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6; }
9255 # Is the header present?
9256 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9257 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <AppKit/AppKit.h>
9266 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null && {
9279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9282 ac_header_preproc=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9304 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9319 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9320 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9330 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <Foundation/NSObjCRuntime.h>
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9355 *) ac_try_echo
=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1
>conftest.err
9362 cat conftest.err
>&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.
$ac_objext; then
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.
$ac_ext >&5
9376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9377 if test $ns_have_integer = no
; then
9381 if test "${HAVE_NS}" = yes; then
9382 window_system
=nextstep
9385 # set up packaging dirs
9386 exec_prefix
=${ns_appbindir}
9387 libexecdir
=${ns_appbindir}/libexec
9388 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9389 prefix
=${ns_appresdir}
9392 CFLAGS
="$tmp_CFLAGS"
9393 CPPFLAGS
="$tmp_CPPFLAGS"
9395 case "${window_system}" in
9399 case "${with_x_toolkit}" in
9400 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9401 motif
) USE_X_TOOLKIT
=MOTIF
;;
9403 USE_X_TOOLKIT
=none
;;
9404 no
) USE_X_TOOLKIT
=none
;;
9405 * ) USE_X_TOOLKIT
=maybe
;;
9415 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9416 # Extract the first word of "X", so it can be a program name with args.
9417 set dummy X
; ac_word
=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 if test -n "$HAVE_XSERVER"; then
9424 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9430 test -z "$as_dir" && as_dir
=.
9431 for ac_exec_ext
in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_HAVE_XSERVER
="true"
9434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9444 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9445 if test -n "$HAVE_XSERVER"; then
9446 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9447 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9454 if test "$HAVE_XSERVER" = true ||
9455 test -n "$DISPLAY" ||
9456 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9457 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9458 were found. You should install the relevant development files for X
9459 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9460 sure you have development files for image handling, i.e.
9461 tiff, gif, jpeg, png and xpm.
9462 If you are sure you want Emacs compiled without X window support, pass
9465 echo "$as_me: error: You seem to be running X, but no X development libraries
9466 were found. You should install the relevant development files for X
9467 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9468 sure you have development files for image handling, i.e.
9469 tiff, gif, jpeg, png and xpm.
9470 If you are sure you want Emacs compiled without X window support, pass
9472 to configure." >&2;}
9473 { (exit 1); exit 1; }; }
9477 ### If we're using X11, we should use the X menu package.
9480 yes ) HAVE_MENUS
=yes ;;
9483 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9484 # Assume not, until told otherwise.
9487 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9488 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9489 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.
$ac_ext <<_ACEOF
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9500 #define malloc_get_state innocuous_malloc_get_state
9502 /* System header to define __stub macros and hopefully few prototypes,
9503 which can conflict with char malloc_get_state (); below.
9504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9505 <limits.h> exists even on freestanding compilers. */
9508 # include <limits.h>
9510 # include <assert.h>
9513 #undef malloc_get_state
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9521 char malloc_get_state ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9532 return malloc_get_state ();
9537 rm -f conftest.
$ac_objext conftest
$ac_exeext
9538 if { (ac_try
="$ac_link"
9540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext &&
9554 $as_test_x conftest$ac_exeext; then
9555 ac_cv_func_malloc_get_state=yes
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_func_malloc_get_state=no
9563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 conftest$ac_exeext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9568 if test $ac_cv_func_malloc_get_state = yes; then
9574 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define malloc_set_state innocuous_malloc_set_state
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char malloc_set_state (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9595 # include <limits.h>
9597 # include <assert.h>
9600 #undef malloc_set_state
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9608 char malloc_set_state ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9619 return malloc_set_state ();
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9628 *) ac_try_echo
=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest
$ac_exeext &&
9641 $as_test_x conftest
$ac_exeext; then
9642 ac_cv_func_malloc_set_state
=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.
$ac_ext >&5
9647 ac_cv_func_malloc_set_state
=no
9650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9651 conftest
$ac_exeext conftest.
$ac_ext
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9654 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9655 if test $ac_cv_func_malloc_set_state = yes; then
9661 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9662 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9663 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.
$ac_ext <<_ACEOF
9669 cat confdefs.h
>>conftest.
$ac_ext
9670 cat >>conftest.
$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 extern void (* __after_morecore_hook)();
9676 __after_morecore_hook = 0
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (ac_try
="$ac_link"
9684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 emacs_cv_var___after_morecore_hook=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 emacs_cv_var___after_morecore_hook=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9711 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9712 if test $emacs_cv_var___after_morecore_hook = no; then
9715 if test "${system_malloc}" = "yes"; then
9718 (The GNU allocators don't work with this system configuration.)"
9720 if test "$doug_lea_malloc" = "yes" ; then
9721 if test "$GNU_MALLOC" = yes ; then
9723 (Using Doug Lea's new malloc from the GNU C Library.)"
9726 cat >>confdefs.h <<\_ACEOF
9727 #define DOUG_LEA_MALLOC 1
9732 if test x"${REL_ALLOC}" = x; then
9733 REL_ALLOC=${GNU_MALLOC}
9739 for ac_header in stdlib.h unistd.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_res=`eval echo '${'$as_ac_Header'}'`
9749 { echo "$as_me:$LINENO: result: $ac_res" >&5
9750 echo "${ECHO_T}$ac_res" >&6; }
9752 # Is the header compilable?
9753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9762 #include <$ac_header>
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9768 *) ac_try_echo
=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.
$ac_objext; then
9781 ac_header_compiler
=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.
$ac_ext >&5
9786 ac_header_compiler
=no
9789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9791 echo "${ECHO_T}$ac_header_compiler" >&6; }
9793 # Is the header present?
9794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9796 cat >conftest.
$ac_ext <<_ACEOF
9799 cat confdefs.h
>>conftest.
$ac_ext
9800 cat >>conftest.
$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 #include <$ac_header>
9804 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } >/dev/null && {
9817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9820 ac_header_preproc=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_preproc=no
9828 rm -f conftest.err conftest.$ac_ext
9829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9830 echo "${ECHO_T}$ac_header_preproc" >&6; }
9832 # So? What about this header?
9833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9839 ac_header_preproc=yes
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 eval "$as_ac_Header=\$ac_header_preproc"
9864 ac_res=`eval echo '${'$as_ac_Header'}'`
9865 { echo "$as_me:$LINENO: result: $ac_res" >&5
9866 echo "${ECHO_T}$ac_res" >&6; }
9869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9879 for ac_func in getpagesize
9881 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895 #define $ac_func innocuous_$ac_func
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9903 # include <limits.h>
9905 # include <assert.h>
9910 /* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined __stub_$ac_func || defined __stub___$ac_func
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9936 *) ac_try_echo
=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1
>conftest.err
9943 cat conftest.err
>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest
$ac_exeext &&
9949 $as_test_x conftest
$ac_exeext; then
9950 eval "$as_ac_var=yes"
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.
$ac_ext >&5
9955 eval "$as_ac_var=no"
9958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9959 conftest
$ac_exeext conftest.
$ac_ext
9961 ac_res
=`eval echo '${'$as_ac_var'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h
<<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9972 { echo "$as_me:$LINENO: checking for working mmap" >&5
9973 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9974 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 if test "$cross_compiling" = yes; then
9978 ac_cv_func_mmap_fixed_mapped
=no
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 /* malloc might have been renamed as rpl_malloc. */
9990 /* Thanks to Mike Haertel and Jim Avera for this test.
9991 Here is a matrix of mmap possibilities:
9992 mmap private not fixed
9993 mmap private fixed at somewhere currently unmapped
9994 mmap private fixed at somewhere already mapped
9995 mmap shared not fixed
9996 mmap shared fixed at somewhere currently unmapped
9997 mmap shared fixed at somewhere already mapped
9998 For private mappings, we should verify that changes cannot be read()
9999 back from the file, nor mmap's back from the file at a different
10000 address. (There have been systems where private was not correctly
10001 implemented like the infamous i386 svr4.0, and systems where the
10002 VM page cache was not coherent with the file system buffer cache
10003 like early versions of FreeBSD and possibly contemporary NetBSD.)
10004 For shared mappings, we should conversely verify that changes get
10005 propagated back to all the places they're supposed to be.
10007 Grep wants private fixed already mapped.
10008 The main things grep needs to know about mmap are:
10009 * does it exist and is it safe to write into the mmap'd area
10010 * how to use it (BSD variants) */
10013 #include <sys/mman.h>
10015 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10019 /* This mess was copied from the GNU getpagesize.h. */
10020 #ifndef HAVE_GETPAGESIZE
10021 /* Assume that all systems that can run configure have sys/param.h. */
10022 # ifndef HAVE_SYS_PARAM_H
10023 # define HAVE_SYS_PARAM_H 1
10026 # ifdef _SC_PAGESIZE
10027 # define getpagesize() sysconf(_SC_PAGESIZE)
10028 # else /* no _SC_PAGESIZE */
10029 # ifdef HAVE_SYS_PARAM_H
10030 # include <sys/param.h>
10031 # ifdef EXEC_PAGESIZE
10032 # define getpagesize() EXEC_PAGESIZE
10033 # else /* no EXEC_PAGESIZE */
10035 # define getpagesize() NBPG * CLSIZE
10038 # endif /* no CLSIZE */
10039 # else /* no NBPG */
10041 # define getpagesize() NBPC
10042 # else /* no NBPC */
10044 # define getpagesize() PAGESIZE
10045 # endif /* PAGESIZE */
10046 # endif /* no NBPC */
10047 # endif /* no NBPG */
10048 # endif /* no EXEC_PAGESIZE */
10049 # else /* no HAVE_SYS_PARAM_H */
10050 # define getpagesize() 8192 /* punt totally */
10051 # endif /* no HAVE_SYS_PARAM_H */
10052 # endif /* no _SC_PAGESIZE */
10054 #endif /* no HAVE_GETPAGESIZE */
10059 char *data, *data2, *data3;
10063 pagesize = getpagesize ();
10065 /* First, make a file with some known garbage in it. */
10066 data = (char *) malloc (pagesize);
10069 for (i = 0; i < pagesize; ++i)
10070 *(data + i) = rand ();
10072 fd = creat ("conftest.mmap", 0600);
10075 if (write (fd, data, pagesize) != pagesize)
10079 /* Next, try to mmap the file at a fixed address which already has
10080 something else allocated at it. If we can, also make sure that
10081 we see the same garbage. */
10082 fd = open ("conftest.mmap", O_RDWR);
10085 data2 = (char *) malloc (2 * pagesize);
10088 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10089 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10090 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10092 for (i = 0; i < pagesize; ++i)
10093 if (*(data + i) != *(data2 + i))
10096 /* Finally, make sure that changes to the mapped area do not
10097 percolate back to the file as seen by read(). (This is a bug on
10098 some variants of i386 svr4.0.) */
10099 for (i = 0; i < pagesize; ++i)
10100 *(data2 + i) = *(data2 + i) + 1;
10101 data3 = (char *) malloc (pagesize);
10104 if (read (fd, data3, pagesize) != pagesize)
10106 for (i = 0; i < pagesize; ++i)
10107 if (*(data + i) != *(data3 + i))
10113 rm -f 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>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10126 *) ac_try_echo
=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_func_mmap_fixed_mapped
=yes
10135 echo "$as_me: program exited with status $ac_status" >&5
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.
$ac_ext >&5
10139 ( exit $ac_status )
10140 ac_cv_func_mmap_fixed_mapped
=no
10142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10148 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10149 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10151 cat >>confdefs.h
<<\_ACEOF
10152 #define HAVE_MMAP 1
10156 rm -f conftest.mmap
10158 if test $use_mmap_for_buffers = yes; then
10162 LIBS
="$libsrc_libs $LIBS"
10165 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10166 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10167 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_check_lib_save_LIBS
=$LIBS
10171 LIBS
="-ldnet $LIBS"
10172 cat >conftest.
$ac_ext <<_ACEOF
10175 cat confdefs.h
>>conftest.
$ac_ext
10176 cat >>conftest.
$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10189 return dnet_ntoa ();
10194 rm -f conftest.
$ac_objext conftest
$ac_exeext
10195 if { (ac_try
="$ac_link"
10196 case "(($ac_try" in
10197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext &&
10211 $as_test_x conftest$ac_exeext; then
10212 ac_cv_lib_dnet_dnet_ntoa=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_lib_dnet_dnet_ntoa=no
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10226 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_LIBDNET 1
10231 LIBS="-ldnet $LIBS"
10236 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10237 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lXbsd $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10263 *) ac_try_echo
=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1
>conftest.err
10270 cat conftest.err
>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest
$ac_exeext &&
10276 $as_test_x conftest
$ac_exeext; then
10277 ac_cv_lib_Xbsd_main
=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.
$ac_ext >&5
10282 ac_cv_lib_Xbsd_main
=no
10285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10286 conftest
$ac_exeext conftest.
$ac_ext
10287 LIBS
=$ac_check_lib_save_LIBS
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10290 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10291 if test $ac_cv_lib_Xbsd_main = yes; then
10292 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10297 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10298 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS
=$LIBS
10303 LIBS
="-lpthreads $LIBS"
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10321 return cma_open ();
10326 rm -f conftest.
$ac_objext conftest
$ac_exeext
10327 if { (ac_try
="$ac_link"
10328 case "(($ac_try" in
10329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext &&
10343 $as_test_x conftest$ac_exeext; then
10344 ac_cv_lib_pthreads_cma_open=yes
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_cv_lib_pthreads_cma_open=no
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10357 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10358 if test $ac_cv_lib_pthreads_cma_open = yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_LIBPTHREADS 1
10363 LIBS="-lpthreads $LIBS"
10371 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10372 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10373 if test "${gdb_cv_bigtoc+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10379 *) gdb_cv_bigtoc=-bbigtoc ;;
10382 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10402 *) ac_try_echo
=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1
>conftest.err
10409 cat conftest.err
>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest
$ac_exeext &&
10415 $as_test_x conftest
$ac_exeext; then
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.
$ac_ext >&5
10424 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10425 conftest
$ac_exeext conftest.
$ac_ext
10428 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10429 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10433 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10434 # used for the tests that follow. We set them back to REAL_CFLAGS and
10435 # REAL_CPPFLAGS later on.
10437 REAL_CPPFLAGS
="$CPPFLAGS"
10439 if test "${HAVE_X11}" = "yes"; then
10440 DEFS
="$C_SWITCH_X_SITE $DEFS"
10441 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10443 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10444 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10446 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10447 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10448 # but it's more convenient here to set LD_RUN_PATH
10449 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10450 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10451 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10455 if test "${opsys}" = "gnu-linux"; then
10456 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10457 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10458 cat >conftest.
$ac_ext <<_ACEOF
10461 cat confdefs.h
>>conftest.
$ac_ext
10462 cat >>conftest.
$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10468 XOpenDisplay ("foo");
10473 rm -f conftest.
$ac_objext conftest
$ac_exeext
10474 if { (ac_try
="$ac_link"
10475 case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 xlinux_first_failure=no
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 xlinux_first_failure=yes
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 if test "${xlinux_first_failure}" = "yes"; then
10502 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10503 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10504 OLD_CPPFLAGS="$CPPFLAGS"
10506 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10507 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10508 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10509 LIBS="$LIBS -b i486-linuxaout"
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10520 XOpenDisplay ("foo");
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10529 *) ac_try_echo
=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1
>conftest.err
10536 cat conftest.err
>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest
$ac_exeext &&
10542 $as_test_x conftest
$ac_exeext; then
10543 xlinux_second_failure
=no
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.
$ac_ext >&5
10548 xlinux_second_failure
=yes
10551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10552 conftest
$ac_exeext conftest.
$ac_ext
10553 if test "${xlinux_second_failure}" = "yes"; then
10554 # If we get the same failure with -b, there is no use adding -b.
10555 # So take it out. This plays safe.
10556 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10557 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10558 CPPFLAGS
="$OLD_CPPFLAGS"
10560 { echo "$as_me:$LINENO: result: no" >&5
10561 echo "${ECHO_T}no" >&6; }
10563 { echo "$as_me:$LINENO: result: yes" >&5
10564 echo "${ECHO_T}yes" >&6; }
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10572 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10573 # header files included from there.
10574 { echo "$as_me:$LINENO: checking for Xkb" >&5
10575 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10576 cat >conftest.
$ac_ext <<_ACEOF
10579 cat confdefs.h
>>conftest.
$ac_ext
10580 cat >>conftest.
$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <X11/Xlib.h>
10583 #include <X11/XKBlib.h>
10587 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10592 rm -f conftest.
$ac_objext conftest
$ac_exeext
10593 if { (ac_try
="$ac_link"
10594 case "(($ac_try" in
10595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && {
10606 test -z "$ac_c_werror_flag" ||
10607 test ! -s conftest.err
10608 } && test -s conftest$ac_exeext &&
10609 $as_test_x conftest$ac_exeext; then
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619 conftest$ac_exeext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10621 echo "${ECHO_T}$emacs_xkb" >&6; }
10622 if test $emacs_xkb = yes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_XKBGETKEYBOARD 1
10634 for ac_func in XrmSetDatabase XScreenResourceString \
10635 XScreenNumberOfScreen XSetWMProtocols
10637 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define $ac_func innocuous_$ac_func
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10659 # include <limits.h>
10661 # include <assert.h>
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined __stub_$ac_func || defined __stub___$ac_func
10683 return $ac_func ();
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10692 *) ac_try_echo
=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1
>conftest.err
10699 cat conftest.err
>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest
$ac_exeext &&
10705 $as_test_x conftest
$ac_exeext; then
10706 eval "$as_ac_var=yes"
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.
$ac_ext >&5
10711 eval "$as_ac_var=no"
10714 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10715 conftest
$ac_exeext conftest.
$ac_ext
10717 ac_res
=`eval echo '${'$as_ac_var'}'`
10718 { echo "$as_me:$LINENO: result: $ac_res" >&5
10719 echo "${ECHO_T}$ac_res" >&6; }
10720 if test `eval echo '${'$as_ac_var'}'` = yes; then
10721 cat >>confdefs.h
<<_ACEOF
10722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730 if test "${window_system}" = "x11"; then
10731 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10732 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10733 if test "${emacs_cv_x11_version_6+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.
$ac_ext <<_ACEOF
10739 cat confdefs.h
>>conftest.
$ac_ext
10740 cat >>conftest.
$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <X11/Xlib.h>
10746 #if XlibSpecificationRelease < 6
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext
10755 if { (ac_try
="$ac_link"
10756 case "(($ac_try" in
10757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext &&
10771 $as_test_x conftest$ac_exeext; then
10772 emacs_cv_x11_version_6=yes
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 emacs_cv_x11_version_6=no
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10784 if test $emacs_cv_x11_version_6 = yes; then
10785 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10786 echo "${ECHO_T}6 or newer" >&6; }
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_X11R6 1
10793 { echo "$as_me:$LINENO: result: before 6" >&5
10794 echo "${ECHO_T}before 6" >&6; }
10799 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
10801 if test "${HAVE_X11}" = "yes"; then
10802 if test "${with_rsvg}" != "no"; then
10803 RSVG_REQUIRED=2.0.0
10804 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10809 # Extract the first word of "pkg-config", so it can be a program name with args.
10810 set dummy pkg-config; ac_word=$2
10811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 case $PKG_CONFIG in
10818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10840 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10841 if test -n "$PKG_CONFIG"; then
10842 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10843 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10845 { echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6; }
10851 if test "$PKG_CONFIG" = "no" ; then
10854 PKG_CONFIG_MIN_VERSION=0.9.0
10855 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10856 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10857 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10859 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10860 { echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6; }
10864 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10865 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10866 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10867 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10868 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10870 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10871 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10872 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10873 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10874 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10876 { echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6; }
10880 ## If we have a custom action on failure, don't print errors
, but
10881 ## do set a variable so people can do so.
10882 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10889 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10890 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10894 if test $succeeded = yes; then
10903 if test ".${RSVG_CFLAGS}" != "."; then
10906 cat >>confdefs.h
<<\_ACEOF
10907 #define HAVE_RSVG 1
10910 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10911 LIBS
="$RSVG_LIBS $LIBS"
10918 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10921 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926 # Extract the first word of "pkg-config", so it can be a program name with args.
10927 set dummy pkg-config
; ac_word
=$2
10928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10930 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 case $PKG_CONFIG in
10935 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10939 for as_dir
in $PATH
10942 test -z "$as_dir" && as_dir
=.
10943 for ac_exec_ext
in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10957 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10958 if test -n "$PKG_CONFIG"; then
10959 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10960 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10962 { echo "$as_me:$LINENO: result: no" >&5
10963 echo "${ECHO_T}no" >&6; }
10968 if test "$PKG_CONFIG" = "no" ; then
10971 PKG_CONFIG_MIN_VERSION
=0.9.0
10972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10973 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10974 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10976 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10977 { echo "$as_me:$LINENO: result: yes" >&5
10978 echo "${ECHO_T}yes" >&6; }
10981 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10982 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10983 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10984 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10985 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10987 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10988 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10989 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10990 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10991 echo "${ECHO_T}$GTK_LIBS" >&6; }
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
10997 ## If we have a custom action on failure, don't print errors, but
10998 ## do set a variable so people can do so.
10999 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11011 if test $succeeded = yes; then
11017 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11018 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11019 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11020 { (exit 1); exit 1; }; }
11025 if test x
"$pkg_check_gtk" = xyes
; then
11029 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11030 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11031 LIBS
="$GTK_LIBS $LIBS"
11034 for ac_func
in gtk_main
11036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.
$ac_ext <<_ACEOF
11045 cat confdefs.h
>>conftest.
$ac_ext
11046 cat >>conftest.
$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11058 # include <limits.h>
11060 # include <assert.h>
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 return $ac_func ();
11087 rm -f conftest.
$ac_objext conftest
$ac_exeext
11088 if { (ac_try
="$ac_link"
11089 case "(($ac_try" in
11090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11096 grep -v '^ *+' conftest.er1 >conftest.err
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext &&
11104 $as_test_x conftest$ac_exeext; then
11105 eval "$as_ac_var=yes"
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 eval "$as_ac_var=no"
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 if test "$USE_X_TOOLKIT" != "maybe"; then
11129 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11130 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11131 { (exit 1); exit 1; }; };
11136 cat >>confdefs.h <<\_ACEOF
11141 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11144 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11145 closing open displays. This is no problem if you just use
11146 one display, but if you use more than one and close one of them
11147 Emacs may crash." >&5
11148 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&2;}
11159 if test "${HAVE_GTK}" = "yes"; then
11161 if test "$with_toolkit_scroll_bars" != no; then
11162 with_toolkit_scroll_bars=yes
11165 HAVE_GTK_MULTIDISPLAY=no
11167 for ac_func in gdk_display_open
11169 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define $ac_func innocuous_$ac_func
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11191 # include <limits.h>
11193 # include <assert.h>
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_$ac_func || defined __stub___$ac_func
11215 return $ac_func ();
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11224 *) ac_try_echo
=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1
>conftest.err
11231 cat conftest.err
>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest
$ac_exeext &&
11237 $as_test_x conftest
$ac_exeext; then
11238 eval "$as_ac_var=yes"
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.
$ac_ext >&5
11243 eval "$as_ac_var=no"
11246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11247 conftest
$ac_exeext conftest.
$ac_ext
11249 ac_res
=`eval echo '${'$as_ac_var'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_var'}'` = yes; then
11253 cat >>confdefs.h
<<_ACEOF
11254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11256 HAVE_GTK_MULTIDISPLAY
=yes
11260 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11262 cat >>confdefs.h
<<\_ACEOF
11263 #define HAVE_GTK_MULTIDISPLAY 1
11268 HAVE_GTK_FILE_SELECTION
=no
11270 for ac_func
in gtk_file_selection_new
11272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11275 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 cat >conftest.
$ac_ext <<_ACEOF
11281 cat confdefs.h
>>conftest.
$ac_ext
11282 cat >>conftest.
$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11286 #define $ac_func innocuous_$ac_func
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func (); below.
11290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291 <limits.h> exists even on freestanding compilers. */
11294 # include <limits.h>
11296 # include <assert.h>
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined __stub_$ac_func || defined __stub___$ac_func
11318 return $ac_func ();
11323 rm -f conftest.
$ac_objext conftest
$ac_exeext
11324 if { (ac_try
="$ac_link"
11325 case "(($ac_try" in
11326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_link") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest$ac_exeext &&
11340 $as_test_x conftest$ac_exeext; then
11341 eval "$as_ac_var=yes"
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 eval "$as_ac_var=no"
11349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350 conftest$ac_exeext conftest.$ac_ext
11352 ac_res=`eval echo '${'$as_ac_var'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11355 if test `eval echo '${'$as_ac_var'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11359 HAVE_GTK_FILE_SELECTION=yes
11364 HAVE_GTK_FILE_CHOOSER=no
11366 for ac_func in gtk_file_chooser_dialog_new
11368 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11382 #define $ac_func innocuous_$ac_func
11384 /* System header to define __stub macros and hopefully few prototypes,
11385 which can conflict with char $ac_func (); below.
11386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387 <limits.h> exists even on freestanding compilers. */
11390 # include <limits.h>
11392 # include <assert.h>
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11404 /* The GNU C library defines this for functions which it implements
11405 to always fail with ENOSYS. Some functions are actually named
11406 something starting with __ and the normal name is an alias. */
11407 #if defined __stub_$ac_func || defined __stub___$ac_func
11414 return $ac_func ();
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (ac_try="$ac_link"
11421 case "(($ac_try" in
11422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11423 *) ac_try_echo
=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_link") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1
>conftest.err
11430 cat conftest.err
>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest
$ac_exeext &&
11436 $as_test_x conftest
$ac_exeext; then
11437 eval "$as_ac_var=yes"
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.
$ac_ext >&5
11442 eval "$as_ac_var=no"
11445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11446 conftest
$ac_exeext conftest.
$ac_ext
11448 ac_res
=`eval echo '${'$as_ac_var'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h
<<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 HAVE_GTK_FILE_CHOOSER
=yes
11460 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11461 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11463 cat >>confdefs.h
<<\_ACEOF
11464 #define HAVE_GTK_FILE_BOTH 1
11469 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 HAVE_GTK_AND_PTHREAD
=no
11472 for ac_header
in pthread.h
11474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 ac_res
=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11485 # Is the header compilable?
11486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #include <$ac_header>
11497 rm -f conftest.
$ac_objext
11498 if { (ac_try
="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 ac_header_compiler=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_compiler=no
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11524 echo "${ECHO_T}$ac_header_compiler" >&6; }
11526 # Is the header present?
11527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <$ac_header>
11537 if { (ac_try="$ac_cpp conftest.$ac_ext"
11538 case "(($ac_try" in
11539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11540 *) ac_try_echo
=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1
>conftest.err
11547 cat conftest.err
>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } >/dev
/null
&& {
11550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11553 ac_header_preproc
=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.
$ac_ext >&5
11558 ac_header_preproc
=no
11561 rm -f conftest.err conftest.
$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563 echo "${ECHO_T}$ac_header_preproc" >&6; }
11565 # So? What about this header?
11566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc
=yes
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 eval "$as_ac_Header=\$ac_header_preproc"
11597 ac_res
=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11603 cat >>confdefs.h
<<_ACEOF
11604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 if test "$ac_cv_header_pthread_h"; then
11612 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11613 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11614 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_check_lib_save_LIBS
=$LIBS
11618 LIBS
="-lpthread $LIBS"
11619 cat >conftest.
$ac_ext <<_ACEOF
11622 cat confdefs.h
>>conftest.
$ac_ext
11623 cat >>conftest.
$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11632 char pthread_self ();
11636 return pthread_self ();
11641 rm -f conftest.
$ac_objext conftest
$ac_exeext
11642 if { (ac_try
="$ac_link"
11643 case "(($ac_try" in
11644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_link") 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest$ac_exeext &&
11658 $as_test_x conftest$ac_exeext; then
11659 ac_cv_lib_pthread_pthread_self=yes
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_cv_lib_pthread_pthread_self=no
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11672 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11673 if test $ac_cv_lib_pthread_pthread_self = yes; then
11674 HAVE_GTK_AND_PTHREAD=yes
11678 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11679 case "${canonical}" in
11681 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GTK_AND_PTHREAD 1
11693 if test "${with_dbus}" = "yes"; then
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698 set dummy pkg-config; ac_word=$2
11699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 case $PKG_CONFIG in
11706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11733 { echo "$as_me:$LINENO: result: no" >&5
11734 echo "${ECHO_T}no" >&6; }
11739 if test "$PKG_CONFIG" = "no" ; then
11742 PKG_CONFIG_MIN_VERSION=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11745 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11747 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11748 { echo "$as_me:$LINENO: result: yes" >&5
11749 echo "${ECHO_T}yes" >&6; }
11752 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11753 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11754 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11755 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11756 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11758 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11759 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11760 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11762 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11764 { echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6; }
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 if test $succeeded = yes; then
11788 if test "$HAVE_DBUS" = yes; then
11790 cat >>confdefs.h <<\_ACEOF
11791 #define HAVE_DBUS 1
11798 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11799 if test "$with_xaw3d" != no; then
11800 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11801 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11802 if test "${emacs_cv_xaw3d+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11812 #include <X11/Intrinsic.h>
11813 #include <X11/Xaw3d/Simple.h>
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (ac_try="$ac_link"
11824 case "(($ac_try" in
11825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11826 *) ac_try_echo
=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_link") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1
>conftest.err
11833 cat conftest.err
>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && {
11836 test -z "$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 } && test -s conftest
$ac_exeext &&
11839 $as_test_x conftest
$ac_exeext; then
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11848 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11849 conftest
$ac_exeext conftest.
$ac_ext
11855 if test $emacs_cv_xaw3d = yes; then
11856 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11857 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT
=LUCID
11861 cat >>confdefs.h
<<\_ACEOF
11862 #define HAVE_XAW3D 1
11866 { echo "$as_me:$LINENO: result: no" >&5
11867 echo "${ECHO_T}no" >&6; }
11868 { echo "$as_me:$LINENO: checking for libXaw" >&5
11869 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11870 if test "${emacs_cv_xaw+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11880 #include <X11/Intrinsic.h>
11881 #include <X11/Xaw/Simple.h>
11890 rm -f conftest.
$ac_objext conftest
$ac_exeext
11891 if { (ac_try
="$ac_link"
11892 case "(($ac_try" in
11893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_link") 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && {
11904 test -z "$ac_c_werror_flag" ||
11905 test ! -s conftest.err
11906 } && test -s conftest$ac_exeext &&
11907 $as_test_x conftest$ac_exeext; then
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917 conftest$ac_exeext conftest.$ac_ext
11920 if test $emacs_cv_xaw = yes; then
11921 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11922 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11923 USE_X_TOOLKIT=LUCID
11924 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11925 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11926 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11927 { (exit 1); exit 1; }; }
11929 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11930 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11936 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11938 if test "${USE_X_TOOLKIT}" != "none"; then
11939 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11940 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <X11/Intrinsic.h>
11954 #if XtSpecificationRelease < 6
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11966 *) ac_try_echo
=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest
$ac_exeext &&
11979 $as_test_x conftest
$ac_exeext; then
11980 emacs_cv_x11_toolkit_version_6
=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.
$ac_ext >&5
11985 emacs_cv_x11_toolkit_version_6
=no
11988 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11989 conftest
$ac_exeext conftest.
$ac_ext
11992 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11993 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11994 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11995 echo "${ECHO_T}6 or newer" >&6; }
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define HAVE_X11XTR6 1
12002 { echo "$as_me:$LINENO: result: before 6" >&5
12003 echo "${ECHO_T}before 6" >&6; }
12007 if test x
$HAVE_X11XTR6 = xyes
; then
12008 LIBS
="-lXt -lSM -lICE $LIBS"
12013 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12014 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 ac_check_lib_save_LIBS
=$LIBS
12020 cat >conftest.
$ac_ext <<_ACEOF
12023 cat confdefs.h
>>conftest.
$ac_ext
12024 cat >>conftest.
$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12033 char XmuConvertStandardSelection ();
12037 return XmuConvertStandardSelection ();
12042 rm -f conftest.
$ac_objext conftest
$ac_exeext
12043 if { (ac_try
="$ac_link"
12044 case "(($ac_try" in
12045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest$ac_exeext &&
12059 $as_test_x conftest$ac_exeext; then
12060 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12074 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_LIBXMU 1
12083 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12086 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12087 if test "${HAVE_X11}" = "yes"; then
12088 if test "${USE_X_TOOLKIT}" != "none"; then
12090 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12091 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lXext $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12110 char XShapeQueryExtension ();
12114 return XShapeQueryExtension ();
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12123 *) ac_try_echo
=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1
>conftest.err
12130 cat conftest.err
>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest
$ac_exeext &&
12136 $as_test_x conftest
$ac_exeext; then
12137 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.
$ac_ext >&5
12142 ac_cv_lib_Xext_XShapeQueryExtension
=no
12145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12146 conftest
$ac_exeext conftest.
$ac_ext
12147 LIBS
=$ac_check_lib_save_LIBS
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12150 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12151 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12152 cat >>confdefs.h
<<_ACEOF
12153 #define HAVE_LIBXEXT 1
12156 LIBS
="-lXext $LIBS"
12163 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12164 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12165 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12166 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12179 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12182 Motif version prior to 2.1.
12188 rm -f conftest.
$ac_objext
12189 if { (ac_try
="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && {
12202 test -z "$ac_c_werror_flag" ||
12203 test ! -s conftest.err
12204 } && test -s conftest.$ac_objext; then
12205 emacs_cv_motif_version_2_1=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 emacs_cv_motif_version_2_1=no
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12216 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12217 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12218 if test $emacs_cv_motif_version_2_1 = yes; then
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_MOTIF_2_1 1
12225 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12226 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12227 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 ac_check_lib_save_LIBS=$LIBS
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char XpCreateContext ();
12249 return XpCreateContext ();
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12258 *) ac_try_echo
=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1
>conftest.err
12265 cat conftest.err
>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest
$ac_exeext &&
12271 $as_test_x conftest
$ac_exeext; then
12272 ac_cv_lib_Xp_XpCreateContext
=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 ac_cv_lib_Xp_XpCreateContext
=no
12280 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12281 conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12285 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12286 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12290 if test ${HAVE_LIBXP} = yes; then
12292 cat >>confdefs.h
<<\_ACEOF
12293 #define HAVE_LIBXP 1
12298 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12299 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12300 if test "${emacs_cv_lesstif+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 # We put this in CFLAGS temporarily to precede other -I options
12304 # that might be in CFLAGS temporarily.
12305 # We put this in CPPFLAGS where it precedes the other -I options.
12306 OLD_CPPFLAGS
=$CPPFLAGS
12308 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12309 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12325 rm -f conftest.
$ac_objext
12326 if { (ac_try
="$ac_compile"
12327 case "(($ac_try" in
12328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_compile") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest.$ac_objext; then
12342 emacs_cv_lesstif=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 emacs_cv_lesstif=no
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12353 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12354 if test $emacs_cv_lesstif = yes; then
12355 # Make sure this -I option remains in CPPFLAGS after it is set
12356 # back to REAL_CPPFLAGS.
12357 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12358 # have those other -I options anyway. Ultimately, having this
12359 # directory ultimately in CPPFLAGS will be enough.
12360 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12361 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12364 CPPFLAGS=$OLD_CPPFLAGS
12371 USE_TOOLKIT_SCROLL_BARS=no
12372 if test "${with_toolkit_scroll_bars}" != "no"; then
12373 if test "${USE_X_TOOLKIT}" != "none"; then
12374 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12375 cat >>confdefs.h <<\_ACEOF
12376 #define USE_TOOLKIT_SCROLL_BARS 1
12380 USE_TOOLKIT_SCROLL_BARS=yes
12381 elif test "${HAVE_XAW3D}" = "yes"; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define USE_TOOLKIT_SCROLL_BARS 1
12386 USE_TOOLKIT_SCROLL_BARS=yes
12388 elif test "${HAVE_GTK}" = "yes"; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define USE_TOOLKIT_SCROLL_BARS 1
12393 USE_TOOLKIT_SCROLL_BARS=yes
12394 elif test "${HAVE_NS}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define USE_TOOLKIT_SCROLL_BARS 1
12399 USE_TOOLKIT_SCROLL_BARS=yes
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 #include <X11/Xlib.h>
12411 #include <X11/Xresource.h>
12420 rm -f conftest.$ac_objext
12421 if { (ac_try="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12424 *) ac_try_echo
=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1
>conftest.err
12431 cat conftest.err
>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.
$ac_objext; then
12439 cat >>confdefs.h
<<\_ACEOF
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.
$ac_ext >&5
12450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 if test "${with_xim}" != "no"; then
12455 cat >>confdefs.h
<<\_ACEOF
12462 if test "${HAVE_XIM}" != "no"; then
12463 late_CFLAGS
=$CFLAGS
12464 if test "$GCC" = yes; then
12465 CFLAGS
="$CFLAGS --pedantic-errors"
12467 cat >conftest.
$ac_ext <<_ACEOF
12470 cat confdefs.h
>>conftest.
$ac_ext
12471 cat >>conftest.
$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 #include <X11/Xlib.h>
12475 #include <X11/Xresource.h>
12484 XPointer *client_data;
12486 /* If we're not using GCC, it's probably not XFree86, and this is
12487 probably right, but we can't use something like --pedantic-errors. */
12488 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12489 char*, XIMProc, XPointer*);
12491 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12497 rm -f conftest.
$ac_objext
12498 if { (ac_try
="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 emacs_cv_arg6_star=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 if test "$emacs_cv_arg6_star" = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12530 cat >>confdefs.h <<\_ACEOF
12531 #define XRegisterIMInstantiateCallback_arg6 XPointer
12535 CFLAGS=$late_CFLAGS
12538 ### Start of font-backend section.
12540 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12542 if test "x${with_freetype}" = "xno"; then
12545 if test "x${with_xft}" != "xno"; then
12550 # Extract the first word of "pkg-config", so it can be a program name with args.
12551 set dummy pkg-config
; ac_word
=$2
12552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 case $PKG_CONFIG in
12559 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12563 for as_dir
in $PATH
12566 test -z "$as_dir" && as_dir
=.
12567 for ac_exec_ext
in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12581 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12584 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12586 { echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6; }
12592 if test "$PKG_CONFIG" = "no" ; then
12595 PKG_CONFIG_MIN_VERSION
=0.9.0
12596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12597 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12598 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12600 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12601 { echo "$as_me:$LINENO: result: yes" >&5
12602 echo "${ECHO_T}yes" >&6; }
12605 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12606 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12607 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12608 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12609 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12611 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12612 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12613 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12614 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12615 echo "${ECHO_T}$XFT_LIBS" >&6; }
12617 { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12621 ## If we have a custom action on failure, don't print errors, but
12622 ## do set a variable so people can do so.
12623 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12635 if test $succeeded = yes; then
12641 if test "$HAVE_XFT" != no
; then
12642 OLD_CPPFLAGS
="$CPPFLAGS"
12643 OLD_CFLAGS
="$CFLAGS"
12645 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12646 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12647 LIBS
="$XFT_LIBS $LIBS"
12648 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12649 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12650 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12651 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12655 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12657 # Is the header compilable?
12658 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12659 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12660 cat >conftest.
$ac_ext <<_ACEOF
12663 cat confdefs.h
>>conftest.
$ac_ext
12664 cat >>conftest.
$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 #include <X11/Xft/Xft.h>
12669 rm -f conftest.
$ac_objext
12670 if { (ac_try
="$ac_compile"
12671 case "(($ac_try" in
12672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_compile") 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest.$ac_objext; then
12686 ac_header_compiler=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_header_compiler=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6; }
12698 # Is the header present?
12699 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12700 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <X11/Xft/Xft.h>
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12712 *) ac_try_echo
=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1
>conftest.err
12719 cat conftest.err
>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev
/null
&& {
12722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12725 ac_header_preproc
=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.
$ac_ext >&5
12730 ac_header_preproc
=no
12733 rm -f conftest.err conftest.
$ac_ext
12734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12735 echo "${ECHO_T}$ac_header_preproc" >&6; }
12737 # So? What about this header?
12738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12740 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12741 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12743 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12744 ac_header_preproc
=yes
12747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12748 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12762 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12763 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12769 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12773 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12774 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12775 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12776 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 ac_check_lib_save_LIBS
=$LIBS
12780 LIBS
="-lXft $XFT_LIBS $LIBS"
12781 cat >conftest.
$ac_ext <<_ACEOF
12784 cat confdefs.h
>>conftest.
$ac_ext
12785 cat >>conftest.
$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12794 char XftFontOpen ();
12798 return XftFontOpen ();
12803 rm -f conftest.
$ac_objext conftest
$ac_exeext
12804 if { (ac_try
="$ac_link"
12805 case "(($ac_try" in
12806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 ac_cv_lib_Xft_XftFontOpen=yes
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_cv_lib_Xft_XftFontOpen=no
12829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12833 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12834 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12835 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12843 if test "${HAVE_XFT}" = "yes"; then
12845 cat >>confdefs.h <<\_ACEOF
12850 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12852 CPPFLAGS="$OLD_CPPFLAGS"
12853 CFLAGS="$OLD_CFLAGS"
12855 fi # "${HAVE_XFT}" = "yes"
12856 fi # "$HAVE_XFT" != no
12857 fi # "x${with_xft}" != "xno"
12859 if test "$HAVE_XFT" != "yes"; then
12865 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12866 if test "${HAVE_XFT}" = "yes"; then
12868 elif test "x${with_freetype}" != "xno"; then
12873 # Extract the first word of "pkg-config", so it can be a program name with args.
12874 set dummy pkg-config; ac_word=$2
12875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 case $PKG_CONFIG in
12882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12905 if test -n "$PKG_CONFIG"; then
12906 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12907 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12915 if test "$PKG_CONFIG" = "no" ; then
12918 PKG_CONFIG_MIN_VERSION=0.9.0
12919 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12920 { echo "$as_me:$LINENO: checking for freetype2" >&5
12921 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12923 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12924 { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12928 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12929 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12930 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12931 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12932 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12934 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12935 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12936 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12937 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12938 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12940 { echo "$as_me:$LINENO: result: no" >&5
12941 echo "${ECHO_T}no" >&6; }
12944 ## If we have a custom action on failure, don't print errors
, but
12945 ## do set a variable so people can do so.
12946 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12958 if test $succeeded = yes; then
12964 if test "${HAVE_FREETYPE}" = "yes"; then
12968 # Extract the first word of "pkg-config", so it can be a program name with args.
12969 set dummy pkg-config
; ac_word
=$2
12970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 case $PKG_CONFIG in
12977 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12981 for as_dir
in $PATH
12984 test -z "$as_dir" && as_dir
=.
12985 for ac_exec_ext
in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12999 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13000 if test -n "$PKG_CONFIG"; then
13001 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13002 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13010 if test "$PKG_CONFIG" = "no" ; then
13013 PKG_CONFIG_MIN_VERSION
=0.9.0
13014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13015 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13016 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13018 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13019 { echo "$as_me:$LINENO: result: yes" >&5
13020 echo "${ECHO_T}yes" >&6; }
13023 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13024 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13025 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13026 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13027 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13029 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13030 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13031 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13032 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13033 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13035 { echo "$as_me:$LINENO: result: no" >&5
13036 echo "${ECHO_T}no" >&6; }
13037 FONTCONFIG_CFLAGS
=""
13039 ## If we have a custom action on failure, don't print errors, but
13040 ## do set a variable so people can do so.
13041 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13048 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13049 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13053 if test $succeeded = yes; then
13059 if test "${HAVE_FC}" = "no"; then
13066 if test "${HAVE_FREETYPE}" = "yes"; then
13068 cat >>confdefs.h
<<\_ACEOF
13069 #define HAVE_FREETYPE 1
13072 if test "${with_libotf}" != "no"; then
13076 # Extract the first word of "pkg-config", so it can be a program name with args.
13077 set dummy pkg-config
; ac_word
=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 case $PKG_CONFIG in
13085 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13089 for as_dir
in $PATH
13092 test -z "$as_dir" && as_dir
=.
13093 for ac_exec_ext
in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13107 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13108 if test -n "$PKG_CONFIG"; then
13109 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13110 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13112 { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13118 if test "$PKG_CONFIG" = "no" ; then
13121 PKG_CONFIG_MIN_VERSION
=0.9.0
13122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13123 { echo "$as_me:$LINENO: checking for libotf" >&5
13124 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13126 if $PKG_CONFIG --exists "libotf" 2>&5; then
13127 { echo "$as_me:$LINENO: result: yes" >&5
13128 echo "${ECHO_T}yes" >&6; }
13131 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13132 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13133 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13134 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13135 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13137 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13138 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13139 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13140 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13141 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13147 ## If we have a custom action on failure, don't print errors, but
13148 ## do set a variable so people can do so.
13149 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13156 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13157 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13161 if test $succeeded = yes; then
13167 if test "$HAVE_LIBOTF" = "yes"; then
13169 cat >>confdefs.h
<<\_ACEOF
13170 #define HAVE_LIBOTF 1
13178 if test "${with_m17n_flt}" != "no"; then
13182 # Extract the first word of "pkg-config", so it can be a program name with args.
13183 set dummy pkg-config
; ac_word
=$2
13184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 case $PKG_CONFIG in
13191 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13195 for as_dir
in $PATH
13198 test -z "$as_dir" && as_dir
=.
13199 for ac_exec_ext
in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13213 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13214 if test -n "$PKG_CONFIG"; then
13215 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13216 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13218 { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13224 if test "$PKG_CONFIG" = "no" ; then
13227 PKG_CONFIG_MIN_VERSION
=0.9.0
13228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13229 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13230 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13232 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13233 { echo "$as_me:$LINENO: result: yes" >&5
13234 echo "${ECHO_T}yes" >&6; }
13237 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13238 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13239 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13240 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13241 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13243 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13244 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13245 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13246 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13247 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13249 { echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6; }
13253 ## If we have a custom action on failure, don't print errors, but
13254 ## do set a variable so people can do so.
13255 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13267 if test $succeeded = yes; then
13273 if test "$HAVE_M17N_FLT" = "yes"; then
13275 cat >>confdefs.h
<<\_ACEOF
13276 #define HAVE_M17N_FLT 1
13291 ### End of font-backend section.
13293 ### Use -lXpm if available, unless `--with-xpm=no'.
13295 if test "${HAVE_X11}" = "yes"; then
13296 if test "${with_xpm}" != "no"; then
13297 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13298 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13299 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13300 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13304 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13306 # Is the header compilable?
13307 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13308 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13309 cat >conftest.
$ac_ext <<_ACEOF
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <X11/xpm.h>
13318 rm -f conftest.
$ac_objext
13319 if { (ac_try
="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_compile") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest.$ac_objext; then
13335 ac_header_compiler=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_header_compiler=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345 echo "${ECHO_T}$ac_header_compiler" >&6; }
13347 # Is the header present?
13348 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13349 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <X11/xpm.h>
13358 if { (ac_try="$ac_cpp conftest.$ac_ext"
13359 case "(($ac_try" in
13360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13361 *) ac_try_echo
=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1
>conftest.err
13368 cat conftest.err
>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev
/null
&& {
13371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13374 ac_header_preproc
=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.
$ac_ext >&5
13379 ac_header_preproc
=no
13382 rm -f conftest.err conftest.
$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384 echo "${ECHO_T}$ac_header_preproc" >&6; }
13386 # So? What about this header?
13387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13389 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13390 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13393 ac_header_preproc
=yes
13396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13397 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13411 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13412 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13422 if test $ac_cv_header_X11_xpm_h = yes; then
13423 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13424 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13425 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 ac_check_lib_save_LIBS
=$LIBS
13429 LIBS
="-lXpm -lX11 $LIBS"
13430 cat >conftest.
$ac_ext <<_ACEOF
13433 cat confdefs.h
>>conftest.
$ac_ext
13434 cat >>conftest.
$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 /* Override any GCC internal prototype to avoid an error.
13438 Use char because int might match the return type of a GCC
13439 builtin and then its argument prototype would still apply. */
13443 char XpmReadFileToPixmap ();
13447 return XpmReadFileToPixmap ();
13452 rm -f conftest.
$ac_objext conftest
$ac_exeext
13453 if { (ac_try
="$ac_link"
13454 case "(($ac_try" in
13455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest$ac_exeext &&
13469 $as_test_x conftest$ac_exeext; then
13470 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13483 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13484 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13491 if test "${HAVE_XPM}" = "yes"; then
13492 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13493 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #include "X11/xpm.h"
13501 #ifndef XpmReturnAllocPixels
13502 no_return_alloc_pixels
13506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13515 if test "${HAVE_XPM}" = "yes"; then
13516 { echo "$as_me:$LINENO: result: yes" >&5
13517 echo "${ECHO_T}yes" >&6; }
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13525 if test "${HAVE_XPM}" = "yes"; then
13527 cat >>confdefs.h <<\_ACEOF
13534 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13536 if test "${HAVE_X11}" = "yes"; then
13537 if test "${with_jpeg}" != "no"; then
13538 if test "${ac_cv_header_jerror_h+set}" = set; then
13539 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13540 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13541 if test "${ac_cv_header_jerror_h+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13545 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13547 # Is the header compilable?
13548 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13549 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13557 #include <jerror.h>
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13568 grep -v '^
*+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 ac_header_compiler=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's
/^
/|
/' conftest.$ac_ext >&5
13581 ac_header_compiler=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13590 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 #include <jerror.h>
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607 grep -v '^
*+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null && {
13612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13615 ac_header_preproc=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's
/^
/|
/' conftest.$ac_ext >&5
13620 ac_header_preproc=no
13623 rm -f conftest.err conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13625 echo "${ECHO_T}$ac_header_preproc" >&6; }
13627 # So? What about this header?
13628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13630 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13631 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13633 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13634 ac_header_preproc=yes
13637 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13638 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13640 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13642 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13644 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13646 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13648 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13652 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13653 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 ac_cv_header_jerror_h=$ac_header_preproc
13659 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13660 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13663 if test $ac_cv_header_jerror_h = yes; then
13664 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13665 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ljpeg $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13684 char jpeg_destroy_compress ();
13688 return jpeg_destroy_compress ();
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13702 grep -v '^
*+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's
/^
/|
/' conftest.$ac_ext >&5
13716 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13724 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13725 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13735 if test "${HAVE_JPEG}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_JPEG 1
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <jpeglib.h>
13747 version=JPEG_LIB_VERSION
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_JPEG 1
13757 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13758 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13766 ### Use -lpng if available, unless `--with-png=no'.
13768 if test "${HAVE_X11}" = "yes"; then
13769 if test "${with_png}" != "no"; then
13770 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13771 # in /usr/include/libpng.
13774 for ac_header
in png.h libpng
/png.h
13776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 ac_res
=`eval echo '${'$as_ac_Header'}'`
13784 { echo "$as_me:$LINENO: result: $ac_res" >&5
13785 echo "${ECHO_T}$ac_res" >&6; }
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13790 cat >conftest.
$ac_ext <<_ACEOF
13793 cat confdefs.h
>>conftest.
$ac_ext
13794 cat >>conftest.
$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <$ac_header>
13799 rm -f conftest.
$ac_objext
13800 if { (ac_try
="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_header_compiler=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_header_compiler=no
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6; }
13828 # Is the header present?
13829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <$ac_header>
13839 if { (ac_try="$ac_cpp conftest.$ac_ext"
13840 case "(($ac_try" in
13841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13842 *) ac_try_echo
=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1
>conftest.err
13849 cat conftest.err
>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } >/dev
/null
&& {
13852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13855 ac_header_preproc
=yes
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.
$ac_ext >&5
13860 ac_header_preproc
=no
13863 rm -f conftest.err conftest.
$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13865 echo "${ECHO_T}$ac_header_preproc" >&6; }
13867 # So? What about this header?
13868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13874 ac_header_preproc
=yes
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 eval "$as_ac_Header=\$ac_header_preproc"
13899 ac_res
=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905 cat >>confdefs.h
<<_ACEOF
13906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13914 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13915 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13916 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 ac_check_lib_save_LIBS
=$LIBS
13920 LIBS
="-lpng -lz -lm $LIBS"
13921 cat >conftest.
$ac_ext <<_ACEOF
13924 cat confdefs.h
>>conftest.
$ac_ext
13925 cat >>conftest.
$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13934 char png_get_channels ();
13938 return png_get_channels ();
13943 rm -f conftest.
$ac_objext conftest
$ac_exeext
13944 if { (ac_try
="$ac_link"
13945 case "(($ac_try" in
13946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_link") 2>conftest.er1
13952 grep -v '^ *+' conftest.er1 >conftest.err
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest$ac_exeext &&
13960 $as_test_x conftest$ac_exeext; then
13961 ac_cv_lib_png_png_get_channels=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_cv_lib_png_png_get_channels=no
13969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13973 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13974 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13975 if test $ac_cv_lib_png_png_get_channels = yes; then
13982 if test "${HAVE_PNG}" = "yes"; then
13984 cat >>confdefs.h <<\_ACEOF
13991 ### Use -ltiff if available, unless `--with-tiff=no
'.
13993 if test "${HAVE_X11}" = "yes"; then
13994 if test "${with_tiff}" != "no"; then
13995 if test "${ac_cv_header_tiffio_h+set}" = set; then
13996 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13997 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13998 if test "${ac_cv_header_tiffio_h+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14002 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14004 # Is the header compilable?
14005 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14006 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14014 #include <tiffio.h>
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14025 grep -v '^
*+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest.$ac_objext; then
14033 ac_header_compiler=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's
/^
/|
/' conftest.$ac_ext >&5
14038 ac_header_compiler=no
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14043 echo "${ECHO_T}$ac_header_compiler" >&6; }
14045 # Is the header present?
14046 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14047 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <tiffio.h>
14056 if { (ac_try="$ac_cpp conftest.$ac_ext"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14064 grep -v '^
*+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null && {
14069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14072 ac_header_preproc=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's
/^
/|
/' conftest.$ac_ext >&5
14077 ac_header_preproc=no
14080 rm -f conftest.err conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6; }
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14087 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14090 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14091 ac_header_preproc=yes
14094 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14103 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14109 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14110 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_cv_header_tiffio_h=$ac_header_preproc
14116 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14117 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14120 if test $ac_cv_header_tiffio_h = yes; then
14122 # At least one tiff package requires the jpeg library.
14123 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14124 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14125 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14126 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-ltiff $tifflibs $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14144 char TIFFGetVersion ();
14148 return TIFFGetVersion ();
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14162 grep -v '^
*+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest$ac_exeext &&
14170 $as_test_x conftest$ac_exeext; then
14171 ac_cv_lib_tiff_TIFFGetVersion=yes
14173 echo "$as_me: failed program was:" >&5
14174 sed 's
/^
/|
/' conftest.$ac_ext >&5
14176 ac_cv_lib_tiff_TIFFGetVersion=no
14179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14183 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14184 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14185 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14194 if test "${HAVE_TIFF}" = "yes"; then
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_TIFF 1
14203 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14205 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14206 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14207 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14208 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14209 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14213 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14215 # Is the header compilable?
14216 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14217 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #include <gif_lib.h>
14227 rm -f conftest.
$ac_objext
14228 if { (ac_try
="$ac_compile"
14229 case "(($ac_try" in
14230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_compile") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } && {
14241 test -z "$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 } && test -s conftest.$ac_objext; then
14244 ac_header_compiler=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_header_compiler=no
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14254 echo "${ECHO_T}$ac_header_compiler" >&6; }
14256 # Is the header present?
14257 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14258 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <gif_lib.h>
14267 if { (ac_try="$ac_cpp conftest.$ac_ext"
14268 case "(($ac_try" in
14269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14270 *) ac_try_echo
=$ac_try;;
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14275 grep -v '^ *+' conftest.er1
>conftest.err
14277 cat conftest.err
>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } >/dev
/null
&& {
14280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14283 ac_header_preproc
=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 ac_header_preproc
=no
14291 rm -f conftest.err conftest.
$ac_ext
14292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14293 echo "${ECHO_T}$ac_header_preproc" >&6; }
14295 # So? What about this header?
14296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14298 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14299 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14301 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14302 ac_header_preproc
=yes
14305 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14306 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14308 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14310 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14312 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14314 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14316 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14320 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14321 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 ac_cv_header_gif_lib_h
=$ac_header_preproc
14327 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14328 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14331 if test $ac_cv_header_gif_lib_h = yes; then
14332 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14333 # Earlier versions can crash Emacs.
14334 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14335 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14336 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 ac_check_lib_save_LIBS
=$LIBS
14341 cat >conftest.
$ac_ext <<_ACEOF
14344 cat confdefs.h
>>conftest.
$ac_ext
14345 cat >>conftest.
$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14354 char EGifPutExtensionLast ();
14358 return EGifPutExtensionLast ();
14363 rm -f conftest.
$ac_objext conftest
$ac_exeext
14364 if { (ac_try
="$ac_link"
14365 case "(($ac_try" in
14366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14367 *) ac_try_echo=$ac_try;;
14369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14370 (eval "$ac_link") 2>conftest.er1
14372 grep -v '^ *+' conftest.er1 >conftest.err
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext &&
14380 $as_test_x conftest$ac_exeext; then
14381 ac_cv_lib_gif_EGifPutExtensionLast=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_lib_gif_EGifPutExtensionLast=no
14389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14394 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14395 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14405 if test "$HAVE_GIF" = yes; then
14406 ac_gif_lib_name="-lgif"
14409 # If gif_lib.h but no libgif, try libungif.
14410 if test x"$try_libungif" = xyes; then
14411 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14412 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lungif $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14431 char EGifPutExtensionLast ();
14435 return EGifPutExtensionLast ();
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14444 *) ac_try_echo
=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1
>conftest.err
14451 cat conftest.err
>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest
$ac_exeext &&
14457 $as_test_x conftest
$ac_exeext; then
14458 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.
$ac_ext >&5
14463 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14466 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14467 conftest
$ac_exeext conftest.
$ac_ext
14468 LIBS
=$ac_check_lib_save_LIBS
14470 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14471 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14472 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14477 if test "$HAVE_GIF" = yes; then
14479 cat >>confdefs.h
<<\_ACEOF
14480 #define LIBGIF -lungif
14483 ac_gif_lib_name
="-lungif"
14487 if test "${HAVE_GIF}" = "yes"; then
14489 cat >>confdefs.h
<<\_ACEOF
14496 if test "${HAVE_X11}" = "yes"; then
14499 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14500 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14501 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14502 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14503 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14504 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14505 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14506 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14507 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14508 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14510 if test "X${MISSING}" != X
; then
14511 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14513 Maybe some development libraries/packages are missing?
14514 If you don't want to link with them give
14516 as options to configure" >&5
14517 echo "$as_me: error: The following required libraries were not found:
14519 Maybe some development libraries/packages are missing?
14520 If you don't want to link with them give
14522 as options to configure" >&2;}
14523 { (exit 1); exit 1; }; }
14527 ### Use -lgpm if available, unless `--with-gpm=no'.
14529 if test "${with_gpm}" != "no"; then
14530 if test "${ac_cv_header_gpm_h+set}" = set; then
14531 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14532 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_gpm_h+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14537 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14539 # Is the header compilable?
14540 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14541 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14542 cat >conftest.
$ac_ext <<_ACEOF
14545 cat confdefs.h
>>conftest.
$ac_ext
14546 cat >>conftest.
$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14551 rm -f conftest.
$ac_objext
14552 if { (ac_try
="$ac_compile"
14553 case "(($ac_try" in
14554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest.$ac_objext; then
14568 ac_header_compiler=yes
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_compiler=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578 echo "${ECHO_T}$ac_header_compiler" >&6; }
14580 # Is the header present?
14581 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14582 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14591 if { (ac_try="$ac_cpp conftest.$ac_ext"
14592 case "(($ac_try" in
14593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14594 *) ac_try_echo
=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1
>conftest.err
14601 cat conftest.err
>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev
/null
&& {
14604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14607 ac_header_preproc
=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.
$ac_ext >&5
14612 ac_header_preproc
=no
14615 rm -f conftest.err conftest.
$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617 echo "${ECHO_T}$ac_header_preproc" >&6; }
14619 # So? What about this header?
14620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14622 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14623 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14625 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14626 ac_header_preproc
=yes
14629 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14630 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14632 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14634 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14636 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14638 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14640 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14644 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14645 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_cv_header_gpm_h
=$ac_header_preproc
14651 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14652 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14655 if test $ac_cv_header_gpm_h = yes; then
14656 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14657 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14658 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 ac_check_lib_save_LIBS
=$LIBS
14663 cat >conftest.
$ac_ext <<_ACEOF
14666 cat confdefs.h
>>conftest.
$ac_ext
14667 cat >>conftest.
$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14680 return Gpm_Open ();
14685 rm -f conftest.
$ac_objext conftest
$ac_exeext
14686 if { (ac_try
="$ac_link"
14687 case "(($ac_try" in
14688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_lib_gpm_Gpm_Open=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_lib_gpm_Gpm_Open=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14716 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14717 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14726 if test "${HAVE_GPM}" = "yes"; then
14728 cat >>confdefs.h <<\_ACEOF
14734 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14735 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14736 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14737 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14741 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14743 # Is the header compilable?
14744 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14745 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 #include <malloc/malloc.h>
14755 rm -f conftest.$ac_objext
14756 if { (ac_try="$ac_compile"
14757 case "(($ac_try" in
14758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14759 *) ac_try_echo
=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_compile") 2>conftest.er1
14764 grep -v '^ *+' conftest.er1
>conftest.err
14766 cat conftest.err
>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && {
14769 test -z "$ac_c_werror_flag" ||
14770 test ! -s conftest.err
14771 } && test -s conftest.
$ac_objext; then
14772 ac_header_compiler
=yes
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.
$ac_ext >&5
14777 ac_header_compiler
=no
14780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14782 echo "${ECHO_T}$ac_header_compiler" >&6; }
14784 # Is the header present?
14785 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14786 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14787 cat >conftest.
$ac_ext <<_ACEOF
14790 cat confdefs.h
>>conftest.
$ac_ext
14791 cat >>conftest.
$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <malloc/malloc.h>
14795 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14796 case "(($ac_try" in
14797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null && {
14808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14811 ac_header_preproc=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_preproc=no
14819 rm -f conftest.err conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821 echo "${ECHO_T}$ac_header_preproc" >&6; }
14823 # So? What about this header?
14824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14827 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14830 ac_header_preproc=yes
14833 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14834 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14848 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14849 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14855 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14856 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14859 if test $ac_cv_header_malloc_malloc_h = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_MALLOC_MALLOC_H 1
14869 ### Use NeXTstep API to implement GUI.
14870 if test "${HAVE_NS}" = "yes"; then
14872 cat >>confdefs.h <<\_ACEOF
14876 if test "${NS_IMPL_COCOA}" = "yes"; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define NS_IMPL_COCOA 1
14883 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define COCOA_EXPERIMENTAL_CTRL_G 1
14890 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14892 cat >>confdefs.h <<\_ACEOF
14893 #define NS_IMPL_GNUSTEP 1
14898 cat >>confdefs.h <<\_ACEOF
14899 #define NS_HAVE_INTEGER 1
14902 # We also have mouse menus.
14907 ### Use session management (-lSM -lICE) if available
14909 if test "${HAVE_X11}" = "yes"; then
14910 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14911 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14912 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14913 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14914 echo $ECHO_N "(cached) $ECHO_C" >&6
14916 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14917 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14919 # Is the header compilable?
14920 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14921 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14922 cat >conftest.$ac_ext <<_ACEOF
14925 cat confdefs.h >>conftest.$ac_ext
14926 cat >>conftest.$ac_ext <<_ACEOF
14927 /* end confdefs.h. */
14928 $ac_includes_default
14929 #include <X11/SM/SMlib.h>
14931 rm -f conftest.$ac_objext
14932 if { (ac_try="$ac_compile"
14933 case "(($ac_try" in
14934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14935 *) ac_try_echo
=$ac_try;;
14937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14938 (eval "$ac_compile") 2>conftest.er1
14940 grep -v '^ *+' conftest.er1
>conftest.err
14942 cat conftest.err
>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); } && {
14945 test -z "$ac_c_werror_flag" ||
14946 test ! -s conftest.err
14947 } && test -s conftest.
$ac_objext; then
14948 ac_header_compiler
=yes
14950 echo "$as_me: failed program was:" >&5
14951 sed 's/^/| /' conftest.
$ac_ext >&5
14953 ac_header_compiler
=no
14956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14958 echo "${ECHO_T}$ac_header_compiler" >&6; }
14960 # Is the header present?
14961 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14962 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14963 cat >conftest.
$ac_ext <<_ACEOF
14966 cat confdefs.h
>>conftest.
$ac_ext
14967 cat >>conftest.
$ac_ext <<_ACEOF
14968 /* end confdefs.h. */
14969 #include <X11/SM/SMlib.h>
14971 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14972 case "(($ac_try" in
14973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1 >conftest.err
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } >/dev/null && {
14984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14987 ac_header_preproc=yes
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14992 ac_header_preproc=no
14995 rm -f conftest.err conftest.$ac_ext
14996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14997 echo "${ECHO_T}$ac_header_preproc" >&6; }
14999 # So? What about this header?
15000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15002 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15003 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15004 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15005 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15006 ac_header_preproc=yes
15009 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15010 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15011 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15012 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15020 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15024 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15025 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15026 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15031 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15032 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15035 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15036 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15037 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15038 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-lSM -lICE $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15050 /* Override any GCC internal prototype to avoid an error.
15051 Use char because int might match the return type of a GCC
15052 builtin and then its argument prototype would still apply. */
15056 char SmcOpenConnection ();
15060 return SmcOpenConnection ();
15065 rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15069 *) ac_try_echo
=$ac_try;;
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_link") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1
>conftest.err
15076 cat conftest.err
>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest
$ac_exeext &&
15082 $as_test_x conftest
$ac_exeext; then
15083 ac_cv_lib_SM_SmcOpenConnection
=yes
15085 echo "$as_me: failed program was:" >&5
15086 sed 's/^/| /' conftest.
$ac_ext >&5
15088 ac_cv_lib_SM_SmcOpenConnection
=no
15091 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15092 conftest
$ac_exeext conftest.
$ac_ext
15093 LIBS
=$ac_check_lib_save_LIBS
15095 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15096 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15097 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15105 if test "${HAVE_X_SM}" = "yes"; then
15107 cat >>confdefs.h
<<\_ACEOF
15108 #define HAVE_X_SM 1
15113 *) LIBS
="-lSM -lICE $LIBS" ;;
15118 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15119 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15120 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15121 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 cat >conftest.
$ac_ext <<_ACEOF
15127 cat confdefs.h
>>conftest.
$ac_ext
15128 cat >>conftest.
$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15139 rm -f conftest.
$ac_objext conftest
$ac_exeext
15140 if { (ac_try
="$ac_link"
15141 case "(($ac_try" in
15142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15157 emacs_cv_netdb_declares_h_errno=yes
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 emacs_cv_netdb_declares_h_errno=no
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15169 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15170 if test $emacs_cv_netdb_declares_h_errno = yes; then
15172 cat >>confdefs.h <<\_ACEOF
15173 #define HAVE_H_ERRNO 1
15178 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15179 # for constant arguments. Useless!
15180 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15181 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15182 if test "${ac_cv_working_alloca_h+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <alloca.h>
15195 char *p = (char *) alloca (2 * sizeof (int));
15201 rm -f conftest.$ac_objext conftest$ac_exeext
15202 if { (ac_try="$ac_link"
15203 case "(($ac_try" in
15204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15205 *) ac_try_echo
=$ac_try;;
15207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15208 (eval "$ac_link") 2>conftest.er1
15210 grep -v '^ *+' conftest.er1
>conftest.err
15212 cat conftest.err
>&5
15213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); } && {
15215 test -z "$ac_c_werror_flag" ||
15216 test ! -s conftest.err
15217 } && test -s conftest
$ac_exeext &&
15218 $as_test_x conftest
$ac_exeext; then
15219 ac_cv_working_alloca_h
=yes
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.
$ac_ext >&5
15224 ac_cv_working_alloca_h
=no
15227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15228 conftest
$ac_exeext conftest.
$ac_ext
15230 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15231 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15232 if test $ac_cv_working_alloca_h = yes; then
15234 cat >>confdefs.h
<<\_ACEOF
15235 #define HAVE_ALLOCA_H 1
15240 { echo "$as_me:$LINENO: checking for alloca" >&5
15241 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15242 if test "${ac_cv_func_alloca_works+set}" = set; then
15243 echo $ECHO_N "(cached) $ECHO_C" >&6
15245 cat >conftest.
$ac_ext <<_ACEOF
15248 cat confdefs.h
>>conftest.
$ac_ext
15249 cat >>conftest.
$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15252 # define alloca __builtin_alloca
15255 # include <malloc.h>
15256 # define alloca _alloca
15258 # ifdef HAVE_ALLOCA_H
15259 # include <alloca.h>
15264 # ifndef alloca /* predefined by HP cc +Olibcalls */
15275 char *p = (char *) alloca (1);
15281 rm -f conftest.
$ac_objext conftest
$ac_exeext
15282 if { (ac_try
="$ac_link"
15283 case "(($ac_try" in
15284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15285 *) ac_try_echo=$ac_try;;
15287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15288 (eval "$ac_link") 2>conftest.er1
15290 grep -v '^ *+' conftest.er1 >conftest.err
15292 cat conftest.err >&5
15293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15294 (exit $ac_status); } && {
15295 test -z "$ac_c_werror_flag" ||
15296 test ! -s conftest.err
15297 } && test -s conftest$ac_exeext &&
15298 $as_test_x conftest$ac_exeext; then
15299 ac_cv_func_alloca_works=yes
15301 echo "$as_me: failed program was:" >&5
15302 sed 's/^/| /' conftest.$ac_ext >&5
15304 ac_cv_func_alloca_works=no
15307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15308 conftest$ac_exeext conftest.$ac_ext
15310 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15311 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15313 if test $ac_cv_func_alloca_works = yes; then
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_ALLOCA 1
15320 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15321 # that cause trouble. Some versions do not even contain alloca or
15322 # contain a buggy version. If you still want to use their alloca,
15323 # use ar to extract alloca.o from them instead of compiling alloca.c.
15325 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15327 cat >>confdefs.h <<\_ACEOF
15332 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15333 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15334 if test "${ac_cv_os_cray+set}" = set; then
15335 echo $ECHO_N "(cached
) $ECHO_C" >&6
15337 cat >conftest.$ac_ext <<_ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15343 #if defined CRAY && ! defined CRAY2
15350 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15351 $EGREP "webecray
" >/dev/null 2>&1; then
15359 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15360 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15361 if test $ac_cv_os_cray = yes; then
15362 for ac_func in _getb67 GETB67 getb67; do
15363 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15364 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15365 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15366 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15367 echo $ECHO_N "(cached
) $ECHO_C" >&6
15369 cat >conftest.$ac_ext <<_ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h. */
15375 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15376 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15377 #define $ac_func innocuous_$ac_func
15379 /* System header to define __stub macros and hopefully few prototypes,
15380 which can conflict with char $ac_func (); below.
15381 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15382 <limits.h> exists even on freestanding compilers. */
15385 # include <limits.h>
15387 # include <assert.h>
15392 /* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
15399 /* The GNU C library defines this for functions which it implements
15400 to always fail with ENOSYS. Some functions are actually named
15401 something starting with __ and the normal name is an alias. */
15402 #if defined __stub_$ac_func || defined __stub___$ac_func
15409 return $ac_func ();
15414 rm -f conftest.$ac_objext conftest$ac_exeext
15415 if { (ac_try="$ac_link"
15416 case "(($ac_try" in
15417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15418 *) ac_try_echo=$ac_try;;
15420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15421 (eval "$ac_link") 2>conftest.er1
15423 grep -v '^ *+' conftest.er1 >conftest.err
15425 cat conftest.err >&5
15426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15427 (exit $ac_status); } && {
15428 test -z "$ac_c_werror_flag" ||
15429 test ! -s conftest.err
15430 } && test -s conftest$ac_exeext &&
15431 $as_test_x conftest$ac_exeext; then
15432 eval "$as_ac_var=yes"
15434 echo "$as_me: failed program was
:" >&5
15435 sed 's/^/| /' conftest.$ac_ext >&5
15437 eval "$as_ac_var=no
"
15440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15441 conftest$ac_exeext conftest.$ac_ext
15443 ac_res=`eval echo '${'$as_ac_var'}'`
15444 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15445 echo "${ECHO_T}$ac_res" >&6; }
15446 if test `eval echo '${'$as_ac_var'}'` = yes; then
15448 cat >>confdefs.h <<_ACEOF
15449 #define CRAY_STACKSEG_END $ac_func
15458 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15459 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15460 if test "${ac_cv_c_stack_direction+set}" = set; then
15461 echo $ECHO_N "(cached
) $ECHO_C" >&6
15463 if test "$cross_compiling" = yes; then
15464 ac_cv_c_stack_direction=0
15466 cat >conftest.$ac_ext <<_ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15472 $ac_includes_default
15474 find_stack_direction ()
15476 static char *addr = 0;
15481 return find_stack_direction ();
15484 return (&dummy > addr) ? 1 : -1;
15490 return find_stack_direction () < 0;
15493 rm -f conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497 *) ac_try_echo=$ac_try;;
15499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15500 (eval "$ac_link") 2>&5
15502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15504 { (case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_try") 2>&5
15511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15512 (exit $ac_status); }; }; then
15513 ac_cv_c_stack_direction=1
15515 echo "$as_me: program exited with status
$ac_status" >&5
15516 echo "$as_me: failed program was
:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 ( exit $ac_status )
15520 ac_cv_c_stack_direction=-1
15522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15527 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15528 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15530 cat >>confdefs.h <<_ACEOF
15531 #define STACK_DIRECTION $ac_cv_c_stack_direction
15538 if test x"$ac_cv_func_alloca_works" != xyes; then
15539 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15540 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15541 { (exit 1); exit 1; }; }
15544 # fmod, logb, and frexp are found in -lm on most systems.
15545 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15547 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15548 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15549 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15550 echo $ECHO_N "(cached
) $ECHO_C" >&6
15552 ac_check_lib_save_LIBS=$LIBS
15554 cat >conftest.$ac_ext <<_ACEOF
15557 cat confdefs.h >>conftest.$ac_ext
15558 cat >>conftest.$ac_ext <<_ACEOF
15559 /* end confdefs.h. */
15561 /* Override any GCC internal prototype to avoid an error.
15562 Use char because int might match the return type of a GCC
15563 builtin and then its argument prototype would still apply. */
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15585 grep -v '^ *+' conftest.er1 >conftest.err
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 ac_cv_lib_m_sqrt=yes
15596 echo "$as_me: failed program was
:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15599 ac_cv_lib_m_sqrt=no
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS
15606 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15607 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15608 if test $ac_cv_lib_m_sqrt = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define HAVE_LIBM 1
15618 # Check for mail-locking functions in a "mail" library. Probably this should
15619 # have the same check as for liblockfile below.
15621 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15622 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15623 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15624 echo $ECHO_N "(cached
) $ECHO_C" >&6
15626 ac_check_lib_save_LIBS=$LIBS
15627 LIBS="-lmail $LIBS"
15628 cat >conftest.$ac_ext <<_ACEOF
15631 cat confdefs.h >>conftest.$ac_ext
15632 cat >>conftest.$ac_ext <<_ACEOF
15633 /* end confdefs.h. */
15635 /* Override any GCC internal prototype to avoid an error.
15636 Use char because int might match the return type of a GCC
15637 builtin and then its argument prototype would still apply. */
15645 return maillock ();
15650 rm -f conftest.$ac_objext conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_link") 2>conftest.er1
15659 grep -v '^ *+' conftest.er1 >conftest.err
15661 cat conftest.err >&5
15662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15663 (exit $ac_status); } && {
15664 test -z "$ac_c_werror_flag" ||
15665 test ! -s conftest.err
15666 } && test -s conftest$ac_exeext &&
15667 $as_test_x conftest$ac_exeext; then
15668 ac_cv_lib_mail_maillock=yes
15670 echo "$as_me: failed program was
:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_cv_lib_mail_maillock=no
15676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15677 conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15680 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15681 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15682 if test $ac_cv_lib_mail_maillock = yes; then
15683 cat >>confdefs.h <<_ACEOF
15684 #define HAVE_LIBMAIL 1
15687 LIBS="-lmail $LIBS"
15692 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15693 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15694 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15695 echo $ECHO_N "(cached
) $ECHO_C" >&6
15697 ac_check_lib_save_LIBS=$LIBS
15698 LIBS="-llockfile $LIBS"
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15716 return maillock ();
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (ac_try="$ac_link"
15723 case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_link") 2>conftest.er1
15730 grep -v '^ *+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15734 (exit $ac_status); } && {
15735 test -z "$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15737 } && test -s conftest$ac_exeext &&
15738 $as_test_x conftest$ac_exeext; then
15739 ac_cv_lib_lockfile_maillock=yes
15741 echo "$as_me: failed program was
:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ac_cv_lib_lockfile_maillock=no
15747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15752 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15753 if test $ac_cv_lib_lockfile_maillock = yes; then
15754 cat >>confdefs.h <<_ACEOF
15755 #define HAVE_LIBLOCKFILE 1
15758 LIBS="-llockfile $LIBS"
15762 # If we have the shared liblockfile, assume we must use it for mail
15763 # locking (e.g. Debian). If we couldn't link against liblockfile
15764 # (no liblockfile.a installed), ensure that we don't need to.
15765 if test "$ac_cv_lib_lockfile_maillock" = no; then
15766 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15767 set dummy liblockfile.so; ac_word=$2
15768 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15769 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15770 if test "${ac_cv_prog_liblockfile+set}" = set; then
15771 echo $ECHO_N "(cached
) $ECHO_C" >&6
15773 if test -n "$liblockfile"; then
15774 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15777 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15778 for as_dir in $as_dummy
15781 test -z "$as_dir" && as_dir=.
15782 for ac_exec_ext in '' $ac_executable_extensions; do
15783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15784 ac_cv_prog_liblockfile="yes"
15785 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15792 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15795 liblockfile=$ac_cv_prog_liblockfile
15796 if test -n "$liblockfile"; then
15797 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15798 echo "${ECHO_T}$liblockfile" >&6; }
15800 { echo "$as_me:$LINENO: result
: no
" >&5
15801 echo "${ECHO_T}no
" >&6; }
15805 if test $ac_cv_prog_liblockfile = yes; then
15806 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15807 This probably means that movemail could lose mail.
15808 There may be a \`development' package to
install containing liblockfile.
" >&5
15809 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15810 This probably means that movemail could lose mail.
15811 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15812 { (exit 1); exit 1; }; }
15817 for ac_func in touchlock
15819 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15820 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15821 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15822 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15823 echo $ECHO_N "(cached
) $ECHO_C" >&6
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15833 #define $ac_func innocuous_$ac_func
15835 /* System header to define __stub macros and hopefully few prototypes,
15836 which can conflict with char $ac_func (); below.
15837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838 <limits.h> exists even on freestanding compilers. */
15841 # include <limits.h>
15843 # include <assert.h>
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15855 /* The GNU C library defines this for functions which it implements
15856 to always fail with ENOSYS. Some functions are actually named
15857 something starting with __ and the normal name is an alias. */
15858 #if defined __stub_$ac_func || defined __stub___$ac_func
15865 return $ac_func ();
15870 rm -f conftest.$ac_objext conftest$ac_exeext
15871 if { (ac_try="$ac_link"
15872 case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15877 (eval "$ac_link") 2>conftest.er1
15879 grep -v '^ *+' conftest.er1 >conftest.err
15881 cat conftest.err >&5
15882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15883 (exit $ac_status); } && {
15884 test -z "$ac_c_werror_flag" ||
15885 test ! -s conftest.err
15886 } && test -s conftest$ac_exeext &&
15887 $as_test_x conftest$ac_exeext; then
15888 eval "$as_ac_var=yes"
15890 echo "$as_me: failed program was
:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 eval "$as_ac_var=no
"
15896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15897 conftest$ac_exeext conftest.$ac_ext
15899 ac_res=`eval echo '${'$as_ac_var'}'`
15900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15901 echo "${ECHO_T}$ac_res" >&6; }
15902 if test `eval echo '${'$as_ac_var'}'` = yes; then
15903 cat >>confdefs.h <<_ACEOF
15904 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15911 for ac_header in maillock.h
15913 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15914 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15915 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15916 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15917 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15918 echo $ECHO_N "(cached
) $ECHO_C" >&6
15920 ac_res=`eval echo '${'$as_ac_Header'}'`
15921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15922 echo "${ECHO_T}$ac_res" >&6; }
15924 # Is the header compilable?
15925 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15926 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15927 cat >conftest.$ac_ext <<_ACEOF
15930 cat confdefs.h >>conftest.$ac_ext
15931 cat >>conftest.$ac_ext <<_ACEOF
15932 /* end confdefs.h. */
15933 $ac_includes_default
15934 #include <$ac_header>
15936 rm -f conftest.$ac_objext
15937 if { (ac_try="$ac_compile"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_compile") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15949 (exit $ac_status); } && {
15950 test -z "$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15952 } && test -s conftest.$ac_objext; then
15953 ac_header_compiler=yes
15955 echo "$as_me: failed program was
:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_header_compiler=no
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15963 echo "${ECHO_T}$ac_header_compiler" >&6; }
15965 # Is the header present?
15966 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15967 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15968 cat >conftest.$ac_ext <<_ACEOF
15971 cat confdefs.h >>conftest.$ac_ext
15972 cat >>conftest.$ac_ext <<_ACEOF
15973 /* end confdefs.h. */
15974 #include <$ac_header>
15976 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15977 case "(($ac_try" in
15978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15979 *) ac_try_echo=$ac_try;;
15981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15982 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15988 (exit $ac_status); } >/dev/null && {
15989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15992 ac_header_preproc=yes
15994 echo "$as_me: failed program was
:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15997 ac_header_preproc=no
16000 rm -f conftest.err conftest.$ac_ext
16001 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16002 echo "${ECHO_T}$ac_header_preproc" >&6; }
16004 # So? What about this header?
16005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16007 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16008 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16009 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16011 ac_header_preproc=yes
16014 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16015 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16016 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16017 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16018 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16019 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16020 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16021 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16022 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16024 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16025 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16029 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16030 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16032 echo $ECHO_N "(cached
) $ECHO_C" >&6
16034 eval "$as_ac_Header=\
$ac_header_preproc"
16036 ac_res=`eval echo '${'$as_ac_Header'}'`
16037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16038 echo "${ECHO_T}$ac_res" >&6; }
16041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16042 cat >>confdefs.h <<_ACEOF
16043 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16122 for ac_func in gethostname getdomainname dup2 \
16123 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16124 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16125 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16126 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16127 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16128 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16129 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16130 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16131 cfmakeraw cfsetspeed
16133 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16134 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16135 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16136 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16137 echo $ECHO_N "(cached
) $ECHO_C" >&6
16139 cat >conftest.$ac_ext <<_ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16147 #define $ac_func innocuous_$ac_func
16149 /* System header to define __stub macros and hopefully few prototypes,
16150 which can conflict with char $ac_func (); below.
16151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16152 <limits.h> exists even on freestanding compilers. */
16155 # include <limits.h>
16157 # include <assert.h>
16162 /* Override any GCC internal prototype to avoid an error.
16163 Use char because int might match the return type of a GCC
16164 builtin and then its argument prototype would still apply. */
16169 /* The GNU C library defines this for functions which it implements
16170 to always fail with ENOSYS. Some functions are actually named
16171 something starting with __ and the normal name is an alias. */
16172 #if defined __stub_$ac_func || defined __stub___$ac_func
16179 return $ac_func ();
16184 rm -f conftest.$ac_objext conftest$ac_exeext
16185 if { (ac_try="$ac_link"
16186 case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_link") 2>conftest.er1
16193 grep -v '^ *+' conftest.er1 >conftest.err
16195 cat conftest.err >&5
16196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16197 (exit $ac_status); } && {
16198 test -z "$ac_c_werror_flag" ||
16199 test ! -s conftest.err
16200 } && test -s conftest$ac_exeext &&
16201 $as_test_x conftest$ac_exeext; then
16202 eval "$as_ac_var=yes"
16204 echo "$as_me: failed program was
:" >&5
16205 sed 's/^/| /' conftest.$ac_ext >&5
16207 eval "$as_ac_var=no
"
16210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16211 conftest$ac_exeext conftest.$ac_ext
16213 ac_res=`eval echo '${'$as_ac_var'}'`
16214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16215 echo "${ECHO_T}$ac_res" >&6; }
16216 if test `eval echo '${'$as_ac_var'}'` = yes; then
16217 cat >>confdefs.h <<_ACEOF
16218 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16226 for ac_header in sys/un.h
16228 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16230 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16231 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16232 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached
) $ECHO_C" >&6
16235 ac_res=`eval echo '${'$as_ac_Header'}'`
16236 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16237 echo "${ECHO_T}$ac_res" >&6; }
16239 # Is the header compilable?
16240 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16241 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16242 cat >conftest.$ac_ext <<_ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 $ac_includes_default
16249 #include <$ac_header>
16251 rm -f conftest.$ac_objext
16252 if { (ac_try="$ac_compile"
16253 case "(($ac_try" in
16254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16255 *) ac_try_echo=$ac_try;;
16257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16258 (eval "$ac_compile") 2>conftest.er1
16260 grep -v '^ *+' conftest.er1 >conftest.err
16262 cat conftest.err >&5
16263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16264 (exit $ac_status); } && {
16265 test -z "$ac_c_werror_flag" ||
16266 test ! -s conftest.err
16267 } && test -s conftest.$ac_objext; then
16268 ac_header_compiler=yes
16270 echo "$as_me: failed program was
:" >&5
16271 sed 's/^/| /' conftest.$ac_ext >&5
16273 ac_header_compiler=no
16276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16277 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16278 echo "${ECHO_T}$ac_header_compiler" >&6; }
16280 # Is the header present?
16281 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16282 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16283 cat >conftest.$ac_ext <<_ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h. */
16289 #include <$ac_header>
16291 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
16304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16305 test ! -s conftest.err
16307 ac_header_preproc=yes
16309 echo "$as_me: failed program was
:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16312 ac_header_preproc=no
16315 rm -f conftest.err conftest.$ac_ext
16316 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16317 echo "${ECHO_T}$ac_header_preproc" >&6; }
16319 # So? What about this header?
16320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16322 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16323 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16324 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16326 ac_header_preproc=yes
16329 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16330 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16332 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16334 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16336 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16339 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16340 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16344 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16345 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16347 echo $ECHO_N "(cached
) $ECHO_C" >&6
16349 eval "$as_ac_Header=\
$ac_header_preproc"
16351 ac_res=`eval echo '${'$as_ac_Header'}'`
16352 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16353 echo "${ECHO_T}$ac_res" >&6; }
16356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16357 cat >>confdefs.h <<_ACEOF
16358 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16370 for ac_header in $ac_header_list
16372 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16373 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16374 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16375 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16376 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16377 echo $ECHO_N "(cached
) $ECHO_C" >&6
16379 ac_res=`eval echo '${'$as_ac_Header'}'`
16380 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16381 echo "${ECHO_T}$ac_res" >&6; }
16383 # Is the header compilable?
16384 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16385 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16386 cat >conftest.$ac_ext <<_ACEOF
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 $ac_includes_default
16393 #include <$ac_header>
16395 rm -f conftest.$ac_objext
16396 if { (ac_try="$ac_compile"
16397 case "(($ac_try" in
16398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16399 *) ac_try_echo=$ac_try;;
16401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16402 (eval "$ac_compile") 2>conftest.er1
16404 grep -v '^ *+' conftest.er1 >conftest.err
16406 cat conftest.err >&5
16407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16408 (exit $ac_status); } && {
16409 test -z "$ac_c_werror_flag" ||
16410 test ! -s conftest.err
16411 } && test -s conftest.$ac_objext; then
16412 ac_header_compiler=yes
16414 echo "$as_me: failed program was
:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16417 ac_header_compiler=no
16420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16421 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16422 echo "${ECHO_T}$ac_header_compiler" >&6; }
16424 # Is the header present?
16425 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16426 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16427 cat >conftest.$ac_ext <<_ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h. */
16433 #include <$ac_header>
16435 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
16448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16451 ac_header_preproc=yes
16453 echo "$as_me: failed program was
:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ac_header_preproc=no
16459 rm -f conftest.err conftest.$ac_ext
16460 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16461 echo "${ECHO_T}$ac_header_preproc" >&6; }
16463 # So? What about this header?
16464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16466 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16467 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16468 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16470 ac_header_preproc=yes
16473 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16474 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16475 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16476 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16477 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16478 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16479 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16480 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16483 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16484 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16488 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16489 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16491 echo $ECHO_N "(cached
) $ECHO_C" >&6
16493 eval "$as_ac_Header=\
$ac_header_preproc"
16495 ac_res=`eval echo '${'$as_ac_Header'}'`
16496 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16497 echo "${ECHO_T}$ac_res" >&6; }
16500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16517 for ac_func in $ac_func_list
16519 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16520 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16521 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16522 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16523 echo $ECHO_N "(cached
) $ECHO_C" >&6
16525 cat >conftest.$ac_ext <<_ACEOF
16528 cat confdefs.h >>conftest.$ac_ext
16529 cat >>conftest.$ac_ext <<_ACEOF
16530 /* end confdefs.h. */
16531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16533 #define $ac_func innocuous_$ac_func
16535 /* System header to define __stub macros and hopefully few prototypes,
16536 which can conflict with char $ac_func (); below.
16537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16538 <limits.h> exists even on freestanding compilers. */
16541 # include <limits.h>
16543 # include <assert.h>
16548 /* Override any GCC internal prototype to avoid an error.
16549 Use char because int might match the return type of a GCC
16550 builtin and then its argument prototype would still apply. */
16555 /* The GNU C library defines this for functions which it implements
16556 to always fail with ENOSYS. Some functions are actually named
16557 something starting with __ and the normal name is an alias. */
16558 #if defined __stub_$ac_func || defined __stub___$ac_func
16565 return $ac_func ();
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_link") 2>conftest.er1
16579 grep -v '^ *+' conftest.er1 >conftest.err
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest$ac_exeext &&
16587 $as_test_x conftest$ac_exeext; then
16588 eval "$as_ac_var=yes"
16590 echo "$as_me: failed program was
:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 eval "$as_ac_var=no
"
16596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16597 conftest$ac_exeext conftest.$ac_ext
16599 ac_res=`eval echo '${'$as_ac_var'}'`
16600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16601 echo "${ECHO_T}$ac_res" >&6; }
16602 if test `eval echo '${'$as_ac_var'}'` = yes; then
16603 cat >>confdefs.h <<_ACEOF
16604 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16626 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16627 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16628 if test "${ac_cv_func_working_mktime+set}" = set; then
16629 echo $ECHO_N "(cached
) $ECHO_C" >&6
16631 if test "$cross_compiling" = yes; then
16632 ac_cv_func_working_mktime=no
16634 cat >conftest.$ac_ext <<_ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h. */
16640 /* Test program from Paul Eggert and Tony Leneis. */
16641 #ifdef TIME_WITH_SYS_TIME
16642 # include <sys/time.h>
16645 # ifdef HAVE_SYS_TIME_H
16646 # include <sys/time.h>
16652 #include <stdlib.h>
16654 #ifdef HAVE_UNISTD_H
16655 # include <unistd.h>
16659 # define alarm(X) /* empty */
16662 /* Work around redefinition to rpl_putenv by other config tests. */
16665 static time_t time_t_max;
16666 static time_t time_t_min;
16668 /* Values we'll use to set the TZ environment variable. */
16669 static char *tz_strings[] = {
16670 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16671 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16673 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16675 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16676 Based on a problem report from Andreas Jaeger. */
16678 spring_forward_gap ()
16680 /* glibc (up to about 1998-10-07) failed this test. */
16683 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16684 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16685 on systems that don't support the Olson extension, or don't have the
16686 full zoneinfo tables installed. */
16687 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16696 return mktime (&tm) != (time_t) -1;
16704 return ! (lt = localtime (&now)) || mktime (lt) == now;
16711 return (mktime_test1 (now)
16712 && mktime_test1 ((time_t) (time_t_max - now))
16713 && mktime_test1 ((time_t) (time_t_min + now)));
16719 /* Based on code from Ariel Faigon. */
16729 return tm.tm_mon == 2 && tm.tm_mday == 31;
16738 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16739 now = mktime (&tm);
16740 if (now != (time_t) -1)
16742 struct tm *lt = localtime (&now);
16744 && lt->tm_year == tm.tm_year
16745 && lt->tm_mon == tm.tm_mon
16746 && lt->tm_mday == tm.tm_mday
16747 && lt->tm_hour == tm.tm_hour
16748 && lt->tm_min == tm.tm_min
16749 && lt->tm_sec == tm.tm_sec
16750 && lt->tm_yday == tm.tm_yday
16751 && lt->tm_wday == tm.tm_wday
16752 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16753 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16762 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16763 ignoring leap seconds. */
16764 unsigned long int answer = 2527315200UL;
16768 tm.tm_year = 2050 - 1900;
16771 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16774 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16775 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16776 on systems that don't support the Olson extension, or don't have the
16777 full zoneinfo tables installed. */
16778 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16782 /* Check that the result is either a failure, or close enough
16783 to the correct answer that we can assume the discrepancy is
16784 due to leap seconds. */
16785 return (t == (time_t) -1
16786 || (0 < t && answer - 120 <= t && t <= answer + 120));
16795 /* This test makes some buggy mktime implementations loop.
16796 Give up after 60 seconds; a mktime slower than that
16797 isn't worth using anyway. */
16800 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16803 if ((time_t) -1 < 0)
16804 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16806 delta = time_t_max / 997; /* a suitable prime number */
16807 for (i = 0; i < N_STRINGS; i++)
16810 putenv (tz_strings[i]);
16812 for (t = 0; t <= time_t_max - delta; t += delta)
16813 if (! mktime_test (t))
16815 if (! (mktime_test ((time_t) 1)
16816 && mktime_test ((time_t) (60 * 60))
16817 && mktime_test ((time_t) (60 * 60 * 24))))
16820 for (j = 1; 0 < j; j *= 2)
16821 if (! bigtime_test (j))
16823 if (! bigtime_test (j - 1))
16826 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16829 rm -f conftest$ac_exeext
16830 if { (ac_try="$ac_link"
16831 case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_link") 2>&5
16838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16840 { (case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_try") 2>&5
16847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16848 (exit $ac_status); }; }; then
16849 ac_cv_func_working_mktime=yes
16851 echo "$as_me: program exited with status
$ac_status" >&5
16852 echo "$as_me: failed program was
:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 ( exit $ac_status )
16856 ac_cv_func_working_mktime=no
16858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16863 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16864 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16865 if test $ac_cv_func_working_mktime = no; then
16866 case " $LIBOBJS " in
16867 *" mktime.
$ac_objext "* ) ;;
16868 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16874 if test "$ac_cv_func_working_mktime" = no; then
16876 cat >>confdefs.h <<\_ACEOF
16877 #define BROKEN_MKTIME 1
16882 ac_have_func=no # yes means we've found a way to get the load average.
16884 # Make sure getloadavg.c is where it belongs, at configure-time.
16885 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16886 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16887 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16888 { (exit 1); exit 1; }; }
16892 # Check for getloadavg, but be sure not to touch the cache variable.
16893 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16894 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16895 if test "${ac_cv_func_getloadavg+set}" = set; then
16896 echo $ECHO_N "(cached
) $ECHO_C" >&6
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define getloadavg innocuous_getloadavg
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char getloadavg (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16914 # include <limits.h>
16916 # include <assert.h>
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16927 char getloadavg ();
16928 /* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931 #if defined __stub_getloadavg || defined __stub___getloadavg
16938 return getloadavg ();
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (ac_try="$ac_link"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_link") 2>conftest.er1
16952 grep -v '^ *+' conftest.er1 >conftest.err
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext &&
16960 $as_test_x conftest$ac_exeext; then
16961 ac_cv_func_getloadavg=yes
16963 echo "$as_me: failed program was
:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 ac_cv_func_getloadavg=no
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16972 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16973 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16974 if test $ac_cv_func_getloadavg = yes; then
16979 ) && ac_have_func=yes
16981 # On HPUX9, an unprivileged user can get load averages through this function.
16983 for ac_func in pstat_getdynamic
16985 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16986 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16987 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16988 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached
) $ECHO_C" >&6
16991 cat >conftest.$ac_ext <<_ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999 #define $ac_func innocuous_$ac_func
17001 /* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17007 # include <limits.h>
17009 # include <assert.h>
17014 /* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined __stub_$ac_func || defined __stub___$ac_func
17031 return $ac_func ();
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17049 (exit $ac_status); } && {
17050 test -z "$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17052 } && test -s conftest$ac_exeext &&
17053 $as_test_x conftest$ac_exeext; then
17054 eval "$as_ac_var=yes"
17056 echo "$as_me: failed program was
:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17059 eval "$as_ac_var=no
"
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063 conftest$ac_exeext conftest.$ac_ext
17065 ac_res=`eval echo '${'$as_ac_var'}'`
17066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17067 echo "${ECHO_T}$ac_res" >&6; }
17068 if test `eval echo '${'$as_ac_var'}'` = yes; then
17069 cat >>confdefs.h <<_ACEOF
17070 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17077 # Solaris has libkstat which does not require root.
17079 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17080 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17081 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17082 echo $ECHO_N "(cached
) $ECHO_C" >&6
17084 ac_check_lib_save_LIBS=$LIBS
17085 LIBS="-lkstat $LIBS"
17086 cat >conftest.$ac_ext <<_ACEOF
17089 cat confdefs.h >>conftest.$ac_ext
17090 cat >>conftest.$ac_ext <<_ACEOF
17091 /* end confdefs.h. */
17093 /* Override any GCC internal prototype to avoid an error.
17094 Use char because int might match the return type of a GCC
17095 builtin and then its argument prototype would still apply. */
17099 char kstat_open ();
17103 return kstat_open ();
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (ac_try="$ac_link"
17110 case "(($ac_try" in
17111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17112 *) ac_try_echo=$ac_try;;
17114 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17115 (eval "$ac_link") 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest$ac_exeext &&
17125 $as_test_x conftest$ac_exeext; then
17126 ac_cv_lib_kstat_kstat_open=yes
17128 echo "$as_me: failed program was
:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17131 ac_cv_lib_kstat_kstat_open=no
17134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17135 conftest$ac_exeext conftest.$ac_ext
17136 LIBS=$ac_check_lib_save_LIBS
17138 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17139 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17140 if test $ac_cv_lib_kstat_kstat_open = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_LIBKSTAT 1
17145 LIBS="-lkstat $LIBS"
17149 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17151 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17152 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17153 # to get the right answer into the cache.
17154 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17155 if test $ac_have_func = no; then
17156 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17157 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17158 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17159 echo $ECHO_N "(cached
) $ECHO_C" >&6
17161 ac_check_lib_save_LIBS=$LIBS
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17170 /* Override any GCC internal prototype to avoid an error.
17171 Use char because int might match the return type of a GCC
17172 builtin and then its argument prototype would still apply. */
17180 return elf_begin ();
17185 rm -f conftest.$ac_objext conftest$ac_exeext
17186 if { (ac_try="$ac_link"
17187 case "(($ac_try" in
17188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17189 *) ac_try_echo=$ac_try;;
17191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17192 (eval "$ac_link") 2>conftest.er1
17194 grep -v '^ *+' conftest.er1 >conftest.err
17196 cat conftest.err >&5
17197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17198 (exit $ac_status); } && {
17199 test -z "$ac_c_werror_flag" ||
17200 test ! -s conftest.err
17201 } && test -s conftest$ac_exeext &&
17202 $as_test_x conftest$ac_exeext; then
17203 ac_cv_lib_elf_elf_begin=yes
17205 echo "$as_me: failed program was
:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_cv_lib_elf_elf_begin=no
17211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17212 conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17215 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17216 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17217 if test $ac_cv_lib_elf_elf_begin = yes; then
17222 if test $ac_have_func = no; then
17223 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17224 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17225 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17226 echo $ECHO_N "(cached
) $ECHO_C" >&6
17228 ac_check_lib_save_LIBS=$LIBS
17230 cat >conftest.$ac_ext <<_ACEOF
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17237 /* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
17247 return kvm_open ();
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (ac_try="$ac_link"
17254 case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_link") 2>conftest.er1
17261 grep -v '^ *+' conftest.er1 >conftest.err
17263 cat conftest.err >&5
17264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17265 (exit $ac_status); } && {
17266 test -z "$ac_c_werror_flag" ||
17267 test ! -s conftest.err
17268 } && test -s conftest$ac_exeext &&
17269 $as_test_x conftest$ac_exeext; then
17270 ac_cv_lib_kvm_kvm_open=yes
17272 echo "$as_me: failed program was
:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_lib_kvm_kvm_open=no
17278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17279 conftest$ac_exeext conftest.$ac_ext
17280 LIBS=$ac_check_lib_save_LIBS
17282 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17283 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17284 if test $ac_cv_lib_kvm_kvm_open = yes; then
17288 # Check for the 4.4BSD definition of getloadavg.
17289 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17290 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17291 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17292 echo $ECHO_N "(cached
) $ECHO_C" >&6
17294 ac_check_lib_save_LIBS=$LIBS
17295 LIBS="-lutil $LIBS"
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17303 /* Override any GCC internal prototype to avoid an error.
17304 Use char because int might match the return type of a GCC
17305 builtin and then its argument prototype would still apply. */
17309 char getloadavg ();
17313 return getloadavg ();
17318 rm -f conftest.$ac_objext conftest$ac_exeext
17319 if { (ac_try="$ac_link"
17320 case "(($ac_try" in
17321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17322 *) ac_try_echo=$ac_try;;
17324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17325 (eval "$ac_link") 2>conftest.er1
17327 grep -v '^ *+' conftest.er1 >conftest.err
17329 cat conftest.err >&5
17330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17331 (exit $ac_status); } && {
17332 test -z "$ac_c_werror_flag" ||
17333 test ! -s conftest.err
17334 } && test -s conftest$ac_exeext &&
17335 $as_test_x conftest$ac_exeext; then
17336 ac_cv_lib_util_getloadavg=yes
17338 echo "$as_me: failed program was
:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_cv_lib_util_getloadavg=no
17344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17345 conftest$ac_exeext conftest.$ac_ext
17346 LIBS=$ac_check_lib_save_LIBS
17348 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17349 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17350 if test $ac_cv_lib_util_getloadavg = yes; then
17351 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17356 if test $ac_have_func = no; then
17357 # There is a commonly available library for RS/6000 AIX.
17358 # Since it is not a standard part of AIX, it might be installed locally.
17359 ac_getloadavg_LIBS=$LIBS
17360 LIBS="-L/usr
/local
/lib
$LIBS"
17361 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17362 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17363 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17364 echo $ECHO_N "(cached
) $ECHO_C" >&6
17366 ac_check_lib_save_LIBS=$LIBS
17367 LIBS="-lgetloadavg $LIBS"
17368 cat >conftest.$ac_ext <<_ACEOF
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 /* Override any GCC internal prototype to avoid an error.
17376 Use char because int might match the return type of a GCC
17377 builtin and then its argument prototype would still apply. */
17381 char getloadavg ();
17385 return getloadavg ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (ac_try="$ac_link"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_link") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest$ac_exeext &&
17407 $as_test_x conftest$ac_exeext; then
17408 ac_cv_lib_getloadavg_getloadavg=yes
17410 echo "$as_me: failed program was
:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17413 ac_cv_lib_getloadavg_getloadavg=no
17416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17417 conftest$ac_exeext conftest.$ac_ext
17418 LIBS=$ac_check_lib_save_LIBS
17420 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17421 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17422 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17423 LIBS="-lgetloadavg $LIBS"
17425 LIBS=$ac_getloadavg_LIBS
17430 # Make sure it is really in the library, if we think we found it,
17431 # otherwise set up the replacement function.
17433 for ac_func in getloadavg
17435 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17436 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17437 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17438 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17439 echo $ECHO_N "(cached
) $ECHO_C" >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17449 #define $ac_func innocuous_$ac_func
17451 /* System header to define __stub macros and hopefully few prototypes,
17452 which can conflict with char $ac_func (); below.
17453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17454 <limits.h> exists even on freestanding compilers. */
17457 # include <limits.h>
17459 # include <assert.h>
17464 /* Override any GCC internal prototype to avoid an error.
17465 Use char because int might match the return type of a GCC
17466 builtin and then its argument prototype would still apply. */
17471 /* The GNU C library defines this for functions which it implements
17472 to always fail with ENOSYS. Some functions are actually named
17473 something starting with __ and the normal name is an alias. */
17474 #if defined __stub_$ac_func || defined __stub___$ac_func
17481 return $ac_func ();
17486 rm -f conftest.$ac_objext conftest$ac_exeext
17487 if { (ac_try="$ac_link"
17488 case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_link") 2>conftest.er1
17495 grep -v '^ *+' conftest.er1 >conftest.err
17497 cat conftest.err >&5
17498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17499 (exit $ac_status); } && {
17500 test -z "$ac_c_werror_flag" ||
17501 test ! -s conftest.err
17502 } && test -s conftest$ac_exeext &&
17503 $as_test_x conftest$ac_exeext; then
17504 eval "$as_ac_var=yes"
17506 echo "$as_me: failed program was
:" >&5
17507 sed 's/^/| /' conftest.$ac_ext >&5
17509 eval "$as_ac_var=no
"
17512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17513 conftest$ac_exeext conftest.$ac_ext
17515 ac_res=`eval echo '${'$as_ac_var'}'`
17516 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17517 echo "${ECHO_T}$ac_res" >&6; }
17518 if test `eval echo '${'$as_ac_var'}'` = yes; then
17519 cat >>confdefs.h <<_ACEOF
17520 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17524 case " $LIBOBJS " in
17525 *" getloadavg.
$ac_objext "* ) ;;
17526 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17531 cat >>confdefs.h <<\_ACEOF
17532 #define C_GETLOADAVG 1
17535 # Figure out what our getloadavg.c needs.
17537 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17538 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17539 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17540 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17541 echo $ECHO_N "(cached
) $ECHO_C" >&6
17543 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17544 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17546 # Is the header compilable?
17547 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17548 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17549 cat >conftest.$ac_ext <<_ACEOF
17552 cat confdefs.h >>conftest.$ac_ext
17553 cat >>conftest.$ac_ext <<_ACEOF
17554 /* end confdefs.h. */
17555 $ac_includes_default
17556 #include <sys/dg_sys_info.h>
17558 rm -f conftest.$ac_objext
17559 if { (ac_try="$ac_compile"
17560 case "(($ac_try" in
17561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17562 *) ac_try_echo=$ac_try;;
17564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17565 (eval "$ac_compile") 2>conftest.er1
17567 grep -v '^ *+' conftest.er1 >conftest.err
17569 cat conftest.err >&5
17570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17571 (exit $ac_status); } && {
17572 test -z "$ac_c_werror_flag" ||
17573 test ! -s conftest.err
17574 } && test -s conftest.$ac_objext; then
17575 ac_header_compiler=yes
17577 echo "$as_me: failed program was
:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17580 ac_header_compiler=no
17583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17584 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17585 echo "${ECHO_T}$ac_header_compiler" >&6; }
17587 # Is the header present?
17588 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17589 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 #include <sys/dg_sys_info.h>
17598 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17599 case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17606 grep -v '^ *+' conftest.er1 >conftest.err
17608 cat conftest.err >&5
17609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17610 (exit $ac_status); } >/dev/null && {
17611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17612 test ! -s conftest.err
17614 ac_header_preproc=yes
17616 echo "$as_me: failed program was
:" >&5
17617 sed 's/^/| /' conftest.$ac_ext >&5
17619 ac_header_preproc=no
17622 rm -f conftest.err conftest.$ac_ext
17623 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17624 echo "${ECHO_T}$ac_header_preproc" >&6; }
17626 # So? What about this header?
17627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17629 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17630 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17631 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17632 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17633 ac_header_preproc=yes
17636 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17637 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17638 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17639 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17640 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17641 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17642 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17643 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17644 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17645 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17646 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17647 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17651 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17652 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17653 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17654 echo $ECHO_N "(cached
) $ECHO_C" >&6
17656 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17658 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17659 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17662 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17665 cat >>confdefs.h <<\_ACEOF
17670 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17671 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17672 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17673 echo $ECHO_N "(cached
) $ECHO_C" >&6
17675 ac_check_lib_save_LIBS=$LIBS
17677 cat >conftest.$ac_ext <<_ACEOF
17680 cat confdefs.h >>conftest.$ac_ext
17681 cat >>conftest.$ac_ext <<_ACEOF
17682 /* end confdefs.h. */
17684 /* Override any GCC internal prototype to avoid an error.
17685 Use char because int might match the return type of a GCC
17686 builtin and then its argument prototype would still apply. */
17690 char dg_sys_info ();
17694 return dg_sys_info ();
17699 rm -f conftest.$ac_objext conftest$ac_exeext
17700 if { (ac_try="$ac_link"
17701 case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_link") 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17712 (exit $ac_status); } && {
17713 test -z "$ac_c_werror_flag" ||
17714 test ! -s conftest.err
17715 } && test -s conftest$ac_exeext &&
17716 $as_test_x conftest$ac_exeext; then
17717 ac_cv_lib_dgc_dg_sys_info=yes
17719 echo "$as_me: failed program was
:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 ac_cv_lib_dgc_dg_sys_info=no
17725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17726 conftest$ac_exeext conftest.$ac_ext
17727 LIBS=$ac_check_lib_save_LIBS
17729 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17730 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17731 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17732 cat >>confdefs.h <<_ACEOF
17733 #define HAVE_LIBDGC 1
17744 if test "${ac_cv_header_locale_h+set}" = set; then
17745 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17746 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17747 if test "${ac_cv_header_locale_h+set}" = set; then
17748 echo $ECHO_N "(cached
) $ECHO_C" >&6
17750 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17751 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17753 # Is the header compilable?
17754 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17755 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17762 $ac_includes_default
17763 #include <locale.h>
17765 rm -f conftest.$ac_objext
17766 if { (ac_try="$ac_compile"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_compile") 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17778 (exit $ac_status); } && {
17779 test -z "$ac_c_werror_flag" ||
17780 test ! -s conftest.err
17781 } && test -s conftest.$ac_objext; then
17782 ac_header_compiler=yes
17784 echo "$as_me: failed program was
:" >&5
17785 sed 's/^/| /' conftest.$ac_ext >&5
17787 ac_header_compiler=no
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17792 echo "${ECHO_T}$ac_header_compiler" >&6; }
17794 # Is the header present?
17795 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17796 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17797 cat >conftest.$ac_ext <<_ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h. */
17803 #include <locale.h>
17805 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17806 case "(($ac_try" in
17807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17808 *) ac_try_echo=$ac_try;;
17810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17811 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17817 (exit $ac_status); } >/dev/null && {
17818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17819 test ! -s conftest.err
17821 ac_header_preproc=yes
17823 echo "$as_me: failed program was
:" >&5
17824 sed 's/^/| /' conftest.$ac_ext >&5
17826 ac_header_preproc=no
17829 rm -f conftest.err conftest.$ac_ext
17830 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17831 echo "${ECHO_T}$ac_header_preproc" >&6; }
17833 # So? What about this header?
17834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17836 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17837 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17838 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17839 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17840 ac_header_preproc=yes
17843 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17844 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17845 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17846 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17847 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17848 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17849 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17850 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17851 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17852 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17853 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17854 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17858 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17859 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17860 if test "${ac_cv_header_locale_h+set}" = set; then
17861 echo $ECHO_N "(cached
) $ECHO_C" >&6
17863 ac_cv_header_locale_h=$ac_header_preproc
17865 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17866 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17872 for ac_func in setlocale
17874 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17876 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached
) $ECHO_C" >&6
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888 #define $ac_func innocuous_$ac_func
17890 /* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17896 # include <limits.h>
17898 # include <assert.h>
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17910 /* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17920 return $ac_func ();
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17938 (exit $ac_status); } && {
17939 test -z "$ac_c_werror_flag" ||
17940 test ! -s conftest.err
17941 } && test -s conftest$ac_exeext &&
17942 $as_test_x conftest$ac_exeext; then
17943 eval "$as_ac_var=yes"
17945 echo "$as_me: failed program was
:" >&5
17946 sed 's/^/| /' conftest.$ac_ext >&5
17948 eval "$as_ac_var=no
"
17951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17952 conftest$ac_exeext conftest.$ac_ext
17954 ac_res=`eval echo '${'$as_ac_var'}'`
17955 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17956 echo "${ECHO_T}$ac_res" >&6; }
17957 if test `eval echo '${'$as_ac_var'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17966 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17967 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17968 # Irix 4.0.5F has the header but not the library.
17969 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17972 cat >>confdefs.h <<\_ACEOF
17978 if test $ac_have_func = no; then
17979 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17980 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17981 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17982 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17983 echo $ECHO_N "(cached
) $ECHO_C" >&6
17985 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17988 # Is the header compilable?
17989 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17990 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17991 cat >conftest.$ac_ext <<_ACEOF
17994 cat confdefs.h >>conftest.$ac_ext
17995 cat >>conftest.$ac_ext <<_ACEOF
17996 /* end confdefs.h. */
17997 $ac_includes_default
17998 #include <inq_stats/cpustats.h>
18000 rm -f conftest.$ac_objext
18001 if { (ac_try="$ac_compile"
18002 case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_compile") 2>conftest.er1
18009 grep -v '^ *+' conftest.er1 >conftest.err
18011 cat conftest.err >&5
18012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18013 (exit $ac_status); } && {
18014 test -z "$ac_c_werror_flag" ||
18015 test ! -s conftest.err
18016 } && test -s conftest.$ac_objext; then
18017 ac_header_compiler=yes
18019 echo "$as_me: failed program was
:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_header_compiler=no
18025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18026 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18027 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029 # Is the header present?
18030 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18031 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18032 cat >conftest.$ac_ext <<_ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <inq_stats/cpustats.h>
18040 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18052 (exit $ac_status); } >/dev/null && {
18053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18054 test ! -s conftest.err
18056 ac_header_preproc=yes
18058 echo "$as_me: failed program was
:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 ac_header_preproc=no
18064 rm -f conftest.err conftest.$ac_ext
18065 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18066 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068 # So? What about this header?
18069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18072 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18073 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18074 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18075 ac_header_preproc=yes
18078 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18079 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18080 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18081 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18083 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18085 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18086 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18087 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18088 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18089 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18093 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18094 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18095 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18096 echo $ECHO_N "(cached
) $ECHO_C" >&6
18098 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18100 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18101 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18104 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18107 cat >>confdefs.h <<\_ACEOF
18112 cat >>confdefs.h <<\_ACEOF
18121 if test $ac_have_func = no; then
18122 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18123 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18124 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18125 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18126 echo $ECHO_N "(cached
) $ECHO_C" >&6
18128 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18129 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18131 # Is the header compilable?
18132 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18133 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18134 cat >conftest.$ac_ext <<_ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 $ac_includes_default
18141 #include <sys/cpustats.h>
18143 rm -f conftest.$ac_objext
18144 if { (ac_try="$ac_compile"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_compile") 2>conftest.er1
18152 grep -v '^ *+' conftest.er1 >conftest.err
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest.$ac_objext; then
18160 ac_header_compiler=yes
18162 echo "$as_me: failed program was
:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18165 ac_header_compiler=no
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18170 echo "${ECHO_T}$ac_header_compiler" >&6; }
18172 # Is the header present?
18173 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18174 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18175 cat >conftest.$ac_ext <<_ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <sys/cpustats.h>
18183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18191 grep -v '^ *+' conftest.er1 >conftest.err
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18195 (exit $ac_status); } >/dev/null && {
18196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18199 ac_header_preproc=yes
18201 echo "$as_me: failed program was
:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_header_preproc=no
18207 rm -f conftest.err conftest.$ac_ext
18208 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6; }
18211 # So? What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18214 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18215 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18217 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18218 ac_header_preproc=yes
18221 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18222 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18223 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18224 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18226 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18227 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18228 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18229 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18230 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18231 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18232 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18236 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18237 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18238 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18239 echo $ECHO_N "(cached
) $ECHO_C" >&6
18241 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18243 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18244 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18247 if test $ac_cv_header_sys_cpustats_h = yes; then
18248 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18257 if test $ac_have_func = no; then
18259 for ac_header in mach/mach.h
18261 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18262 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18263 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18264 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached
) $ECHO_C" >&6
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18274 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18303 echo "$as_me: failed program was
:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_compiler=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18315 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <$ac_header>
18324 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18340 ac_header_preproc=yes
18342 echo "$as_me: failed program was
:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_preproc=no
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18355 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18356 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18359 ac_header_preproc=yes
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18363 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18365 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18367 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18369 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18373 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18377 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18378 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached
) $ECHO_C" >&6
18382 eval "$as_ac_Header=\
$ac_header_preproc"
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18401 for ac_header in nlist.h
18403 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18404 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18405 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18406 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18408 echo $ECHO_N "(cached
) $ECHO_C" >&6
18410 ac_res=`eval echo '${'$as_ac_Header'}'`
18411 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18412 echo "${ECHO_T}$ac_res" >&6; }
18414 # Is the header compilable?
18415 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18416 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18417 cat >conftest.$ac_ext <<_ACEOF
18420 cat confdefs.h >>conftest.$ac_ext
18421 cat >>conftest.$ac_ext <<_ACEOF
18422 /* end confdefs.h. */
18423 $ac_includes_default
18424 #include <$ac_header>
18426 rm -f conftest.$ac_objext
18427 if { (ac_try="$ac_compile"
18428 case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_compile") 2>conftest.er1
18435 grep -v '^ *+' conftest.er1 >conftest.err
18437 cat conftest.err >&5
18438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18439 (exit $ac_status); } && {
18440 test -z "$ac_c_werror_flag" ||
18441 test ! -s conftest.err
18442 } && test -s conftest.$ac_objext; then
18443 ac_header_compiler=yes
18445 echo "$as_me: failed program was
:" >&5
18446 sed 's/^/| /' conftest.$ac_ext >&5
18448 ac_header_compiler=no
18451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18452 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18453 echo "${ECHO_T}$ac_header_compiler" >&6; }
18455 # Is the header present?
18456 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18457 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18458 cat >conftest.$ac_ext <<_ACEOF
18461 cat confdefs.h >>conftest.$ac_ext
18462 cat >>conftest.$ac_ext <<_ACEOF
18463 /* end confdefs.h. */
18464 #include <$ac_header>
18466 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18478 (exit $ac_status); } >/dev/null && {
18479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18482 ac_header_preproc=yes
18484 echo "$as_me: failed program was
:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 ac_header_preproc=no
18490 rm -f conftest.err conftest.$ac_ext
18491 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18492 echo "${ECHO_T}$ac_header_preproc" >&6; }
18494 # So? What about this header?
18495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18497 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18498 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18499 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18501 ac_header_preproc=yes
18504 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18505 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18506 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18507 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18508 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18509 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18510 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18511 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18512 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18514 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18515 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18519 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18520 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18522 echo $ECHO_N "(cached
) $ECHO_C" >&6
18524 eval "$as_ac_Header=\
$ac_header_preproc"
18526 ac_res=`eval echo '${'$as_ac_Header'}'`
18527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18528 echo "${ECHO_T}$ac_res" >&6; }
18531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18532 cat >>confdefs.h <<_ACEOF
18533 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18535 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18536 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18537 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18538 echo $ECHO_N "(cached
) $ECHO_C" >&6
18540 cat >conftest.$ac_ext <<_ACEOF
18543 cat confdefs.h >>conftest.$ac_ext
18544 cat >>conftest.$ac_ext <<_ACEOF
18545 /* end confdefs.h. */
18551 static struct nlist ac_aggr;
18552 if (ac_aggr.n_un.n_name)
18558 rm -f conftest.$ac_objext
18559 if { (ac_try="$ac_compile"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_compile") 2>conftest.er1
18567 grep -v '^ *+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18571 (exit $ac_status); } && {
18572 test -z "$ac_c_werror_flag" ||
18573 test ! -s conftest.err
18574 } && test -s conftest.$ac_objext; then
18575 ac_cv_member_struct_nlist_n_un_n_name=yes
18577 echo "$as_me: failed program was
:" >&5
18578 sed 's/^/| /' conftest.$ac_ext >&5
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18591 static struct nlist ac_aggr;
18592 if (sizeof ac_aggr.n_un.n_name)
18598 rm -f conftest.$ac_objext
18599 if { (ac_try="$ac_compile"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_compile") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest.$ac_objext; then
18615 ac_cv_member_struct_nlist_n_un_n_name=yes
18617 echo "$as_me: failed program was
:" >&5
18618 sed 's/^/| /' conftest.$ac_ext >&5
18620 ac_cv_member_struct_nlist_n_un_n_name=no
18623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18629 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18630 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18632 cat >>confdefs.h <<_ACEOF
18633 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18637 cat >>confdefs.h <<\_ACEOF
18638 #define NLIST_NAME_UNION 1
18652 # Some definitions of getloadavg require that the program be installed setgid.
18653 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18654 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18655 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18656 echo $ECHO_N "(cached
) $ECHO_C" >&6
18658 cat >conftest.$ac_ext <<_ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h. */
18664 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18665 #ifdef LDAV_PRIVILEGED
18666 Yowza Am I SETGID yet
18669 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18670 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18671 ac_cv_func_getloadavg_setgid=yes
18673 ac_cv_func_getloadavg_setgid=no
18678 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18679 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18680 if test $ac_cv_func_getloadavg_setgid = yes; then
18683 cat >>confdefs.h <<\_ACEOF
18684 #define GETLOADAVG_PRIVILEGED 1
18691 if test $ac_cv_func_getloadavg_setgid = yes; then
18692 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18693 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18694 if test "${ac_cv_group_kmem+set}" = set; then
18695 echo $ECHO_N "(cached
) $ECHO_C" >&6
18697 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18698 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18699 # If we got an error (system does not support symlinks), try without -L.
18700 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18701 ac_cv_group_kmem=`echo $ac_ls_output \
18702 | sed -ne 's/[ ][ ]*/ /g;
18703 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18707 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18708 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18709 KMEM_GROUP=$ac_cv_group_kmem
18711 if test "x
$ac_save_LIBS" = x; then
18712 GETLOADAVG_LIBS=$LIBS
18714 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18720 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18721 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18722 if test "${ac_cv_sys_largefile_source+set}" = set; then
18723 echo $ECHO_N "(cached
) $ECHO_C" >&6
18726 cat >conftest.$ac_ext <<_ACEOF
18729 cat confdefs.h >>conftest.$ac_ext
18730 cat >>conftest.$ac_ext <<_ACEOF
18731 /* end confdefs.h. */
18732 #include <sys/types.h> /* for off_t */
18737 int (*fp) (FILE *, off_t, int) = fseeko;
18738 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest$ac_exeext &&
18760 $as_test_x conftest$ac_exeext; then
18761 ac_cv_sys_largefile_source=no; break
18763 echo "$as_me: failed program was
:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18770 conftest$ac_exeext conftest.$ac_ext
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #define _LARGEFILE_SOURCE 1
18778 #include <sys/types.h> /* for off_t */
18783 int (*fp) (FILE *, off_t, int) = fseeko;
18784 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18789 rm -f conftest.$ac_objext conftest$ac_exeext
18790 if { (ac_try="$ac_link"
18791 case "(($ac_try" in
18792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18793 *) ac_try_echo=$ac_try;;
18795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18796 (eval "$ac_link") 2>conftest.er1
18798 grep -v '^ *+' conftest.er1 >conftest.err
18800 cat conftest.err >&5
18801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18802 (exit $ac_status); } && {
18803 test -z "$ac_c_werror_flag" ||
18804 test ! -s conftest.err
18805 } && test -s conftest$ac_exeext &&
18806 $as_test_x conftest$ac_exeext; then
18807 ac_cv_sys_largefile_source=1; break
18809 echo "$as_me: failed program was
:" >&5
18810 sed 's/^/| /' conftest.$ac_ext >&5
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817 ac_cv_sys_largefile_source=unknown
18821 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18822 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18823 case $ac_cv_sys_largefile_source in #(
18826 cat >>confdefs.h <<_ACEOF
18827 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18833 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18834 # in glibc 2.1.3, but that breaks too many other things.
18835 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18836 if test $ac_cv_sys_largefile_source != unknown; then
18838 cat >>confdefs.h <<\_ACEOF
18839 #define HAVE_FSEEKO 1
18845 # Configure getopt.
18846 # getopt.m4 serial 10
18848 # The getopt module assume you want GNU getopt, with getopt_long etc,
18849 # rather than vanilla POSIX getopt. This means your your code should
18850 # always include <getopt.h> for the getopt prototypes.
18862 # Prerequisites of lib/getopt*.
18869 for ac_header in getopt.h
18871 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18872 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18873 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18874 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18876 echo $ECHO_N "(cached
) $ECHO_C" >&6
18878 ac_res=`eval echo '${'$as_ac_Header'}'`
18879 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18880 echo "${ECHO_T}$ac_res" >&6; }
18882 # Is the header compilable?
18883 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18884 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18885 cat >conftest.$ac_ext <<_ACEOF
18888 cat confdefs.h >>conftest.$ac_ext
18889 cat >>conftest.$ac_ext <<_ACEOF
18890 /* end confdefs.h. */
18891 $ac_includes_default
18892 #include <$ac_header>
18894 rm -f conftest.$ac_objext
18895 if { (ac_try="$ac_compile"
18896 case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_compile") 2>conftest.er1
18903 grep -v '^ *+' conftest.er1 >conftest.err
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18907 (exit $ac_status); } && {
18908 test -z "$ac_c_werror_flag" ||
18909 test ! -s conftest.err
18910 } && test -s conftest.$ac_objext; then
18911 ac_header_compiler=yes
18913 echo "$as_me: failed program was
:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_header_compiler=no
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18921 echo "${ECHO_T}$ac_header_compiler" >&6; }
18923 # Is the header present?
18924 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18925 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <$ac_header>
18934 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18935 case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18940 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18942 grep -v '^ *+' conftest.er1 >conftest.err
18944 cat conftest.err >&5
18945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18946 (exit $ac_status); } >/dev/null && {
18947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18948 test ! -s conftest.err
18950 ac_header_preproc=yes
18952 echo "$as_me: failed program was
:" >&5
18953 sed 's/^/| /' conftest.$ac_ext >&5
18955 ac_header_preproc=no
18958 rm -f conftest.err conftest.$ac_ext
18959 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18960 echo "${ECHO_T}$ac_header_preproc" >&6; }
18962 # So? What about this header?
18963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18965 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18966 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18967 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18968 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18969 ac_header_preproc=yes
18972 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18973 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18974 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18975 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18976 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18977 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18978 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18979 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18980 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18981 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18982 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18983 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18987 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18988 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18990 echo $ECHO_N "(cached
) $ECHO_C" >&6
18992 eval "$as_ac_Header=\
$ac_header_preproc"
18994 ac_res=`eval echo '${'$as_ac_Header'}'`
18995 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18996 echo "${ECHO_T}$ac_res" >&6; }
18999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19000 cat >>confdefs.h <<_ACEOF
19001 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19010 if test -z "$GETOPT_H"; then
19012 for ac_func in getopt_long_only
19014 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19015 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19016 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19017 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19018 echo $ECHO_N "(cached
) $ECHO_C" >&6
19020 cat >conftest.$ac_ext <<_ACEOF
19023 cat confdefs.h >>conftest.$ac_ext
19024 cat >>conftest.$ac_ext <<_ACEOF
19025 /* end confdefs.h. */
19026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19028 #define $ac_func innocuous_$ac_func
19030 /* System header to define __stub macros and hopefully few prototypes,
19031 which can conflict with char $ac_func (); below.
19032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19033 <limits.h> exists even on freestanding compilers. */
19036 # include <limits.h>
19038 # include <assert.h>
19043 /* Override any GCC internal prototype to avoid an error.
19044 Use char because int might match the return type of a GCC
19045 builtin and then its argument prototype would still apply. */
19050 /* The GNU C library defines this for functions which it implements
19051 to always fail with ENOSYS. Some functions are actually named
19052 something starting with __ and the normal name is an alias. */
19053 #if defined __stub_$ac_func || defined __stub___$ac_func
19060 return $ac_func ();
19065 rm -f conftest.$ac_objext conftest$ac_exeext
19066 if { (ac_try="$ac_link"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_link") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19078 (exit $ac_status); } && {
19079 test -z "$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19081 } && test -s conftest$ac_exeext &&
19082 $as_test_x conftest$ac_exeext; then
19083 eval "$as_ac_var=yes"
19085 echo "$as_me: failed program was
:" >&5
19086 sed 's/^/| /' conftest.$ac_ext >&5
19088 eval "$as_ac_var=no
"
19091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19092 conftest$ac_exeext conftest.$ac_ext
19094 ac_res=`eval echo '${'$as_ac_var'}'`
19095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19096 echo "${ECHO_T}$ac_res" >&6; }
19097 if test `eval echo '${'$as_ac_var'}'` = yes; then
19098 cat >>confdefs.h <<_ACEOF
19099 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19109 if test -z "$GETOPT_H"; then
19110 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19111 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19112 if test "${ac_cv_have_decl_optreset+set}" = set; then
19113 echo $ECHO_N "(cached
) $ECHO_C" >&6
19115 cat >conftest.$ac_ext <<_ACEOF
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19121 #include <getopt.h>
19134 rm -f conftest.$ac_objext
19135 if { (ac_try="$ac_compile"
19136 case "(($ac_try" in
19137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138 *) ac_try_echo=$ac_try;;
19140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19141 (eval "$ac_compile") 2>conftest.er1
19143 grep -v '^ *+' conftest.er1 >conftest.err
19145 cat conftest.err >&5
19146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19147 (exit $ac_status); } && {
19148 test -z "$ac_c_werror_flag" ||
19149 test ! -s conftest.err
19150 } && test -s conftest.$ac_objext; then
19151 ac_cv_have_decl_optreset=yes
19153 echo "$as_me: failed program was
:" >&5
19154 sed 's/^/| /' conftest.$ac_ext >&5
19156 ac_cv_have_decl_optreset=no
19159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19161 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19162 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19163 if test $ac_cv_have_decl_optreset = yes; then
19169 if test -z "$GETOPT_H"; then
19170 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19171 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19172 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19173 echo $ECHO_N "(cached
) $ECHO_C" >&6
19175 if test "$cross_compiling" = yes; then
19176 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19177 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19178 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19179 echo $ECHO_N "(cached
) $ECHO_C" >&6
19181 cat >conftest.$ac_ext <<_ACEOF
19184 cat confdefs.h >>conftest.$ac_ext
19185 cat >>conftest.$ac_ext <<_ACEOF
19186 /* end confdefs.h. */
19187 #include <getopt.h>
19192 #ifndef getopt_clip
19193 (void) getopt_clip;
19200 rm -f conftest.$ac_objext
19201 if { (ac_try="$ac_compile"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_compile") 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19213 (exit $ac_status); } && {
19214 test -z "$ac_c_werror_flag" ||
19215 test ! -s conftest.err
19216 } && test -s conftest.$ac_objext; then
19217 ac_cv_have_decl_getopt_clip=yes
19219 echo "$as_me: failed program was
:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19222 ac_cv_have_decl_getopt_clip=no
19225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19227 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19228 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19229 if test $ac_cv_have_decl_getopt_clip = yes; then
19230 gl_cv_func_gnu_getopt=no
19232 gl_cv_func_gnu_getopt=yes
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19242 #include <getopt.h>
19248 myargv[0] = "conftest
";
19251 return getopt (2, myargv, "+a
") != '?';
19257 rm -f conftest$ac_exeext
19258 if { (ac_try="$ac_link"
19259 case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19264 (eval "$ac_link") 2>&5
19266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19267 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19268 { (case "(($ac_try" in
19269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19270 *) ac_try_echo=$ac_try;;
19272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19273 (eval "$ac_try") 2>&5
19275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 gl_cv_func_gnu_getopt=yes
19279 echo "$as_me: program exited with status
$ac_status" >&5
19280 echo "$as_me: failed program was
:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ( exit $ac_status )
19284 gl_cv_func_gnu_getopt=no
19286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19291 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19292 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19293 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19300 if test -n "$GETOPT_H"; then
19305 cat >>confdefs.h <<\_ACEOF
19306 #define __GETOPT_PREFIX rpl_
19312 GETOPTOBJS='getopt.o getopt1.o'
19319 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19320 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19321 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19322 echo $ECHO_N "(cached
) $ECHO_C" >&6
19324 # Use it with a single arg.
19325 cat >conftest.$ac_ext <<_ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 $ac_includes_default
19340 rm -f conftest.$ac_objext
19341 if { (ac_try="$ac_compile"
19342 case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_compile") 2>conftest.er1
19349 grep -v '^ *+' conftest.er1 >conftest.err
19351 cat conftest.err >&5
19352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19353 (exit $ac_status); } && {
19354 test -z "$ac_c_werror_flag" ||
19355 test ! -s conftest.err
19356 } && test -s conftest.$ac_objext; then
19357 ac_cv_func_getpgrp_void=no
19359 echo "$as_me: failed program was
:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 ac_cv_func_getpgrp_void=yes
19365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19369 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19370 if test $ac_cv_func_getpgrp_void = yes; then
19372 cat >>confdefs.h <<\_ACEOF
19373 #define GETPGRP_VOID 1
19380 for ac_func in strftime
19382 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19383 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19384 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19385 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19386 echo $ECHO_N "(cached
) $ECHO_C" >&6
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19394 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19395 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19396 #define $ac_func innocuous_$ac_func
19398 /* System header to define __stub macros and hopefully few prototypes,
19399 which can conflict with char $ac_func (); below.
19400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19401 <limits.h> exists even on freestanding compilers. */
19404 # include <limits.h>
19406 # include <assert.h>
19411 /* Override any GCC internal prototype to avoid an error.
19412 Use char because int might match the return type of a GCC
19413 builtin and then its argument prototype would still apply. */
19418 /* The GNU C library defines this for functions which it implements
19419 to always fail with ENOSYS. Some functions are actually named
19420 something starting with __ and the normal name is an alias. */
19421 #if defined __stub_$ac_func || defined __stub___$ac_func
19428 return $ac_func ();
19433 rm -f conftest.$ac_objext conftest$ac_exeext
19434 if { (ac_try="$ac_link"
19435 case "(($ac_try" in
19436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19437 *) ac_try_echo=$ac_try;;
19439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19440 (eval "$ac_link") 2>conftest.er1
19442 grep -v '^ *+' conftest.er1 >conftest.err
19444 cat conftest.err >&5
19445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19446 (exit $ac_status); } && {
19447 test -z "$ac_c_werror_flag" ||
19448 test ! -s conftest.err
19449 } && test -s conftest$ac_exeext &&
19450 $as_test_x conftest$ac_exeext; then
19451 eval "$as_ac_var=yes"
19453 echo "$as_me: failed program was
:" >&5
19454 sed 's/^/| /' conftest.$ac_ext >&5
19456 eval "$as_ac_var=no
"
19459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19460 conftest$ac_exeext conftest.$ac_ext
19462 ac_res=`eval echo '${'$as_ac_var'}'`
19463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19464 echo "${ECHO_T}$ac_res" >&6; }
19465 if test `eval echo '${'$as_ac_var'}'` = yes; then
19466 cat >>confdefs.h <<_ACEOF
19467 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19471 # strftime is in -lintl on SCO UNIX.
19472 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19473 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19474 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19475 echo $ECHO_N "(cached
) $ECHO_C" >&6
19477 ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-lintl $LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19496 return strftime ();
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_link") 2>conftest.er1
19510 grep -v '^ *+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19514 (exit $ac_status); } && {
19515 test -z "$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 } && test -s conftest$ac_exeext &&
19518 $as_test_x conftest$ac_exeext; then
19519 ac_cv_lib_intl_strftime=yes
19521 echo "$as_me: failed program was
:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ac_cv_lib_intl_strftime=no
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528 conftest$ac_exeext conftest.$ac_ext
19529 LIBS=$ac_check_lib_save_LIBS
19531 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19532 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19533 if test $ac_cv_lib_intl_strftime = yes; then
19534 cat >>confdefs.h <<\_ACEOF
19535 #define HAVE_STRFTIME 1
19538 LIBS="-lintl $LIBS"
19547 for ac_func in grantpt
19549 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19550 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19551 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19552 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19553 echo $ECHO_N "(cached
) $ECHO_C" >&6
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19563 #define $ac_func innocuous_$ac_func
19565 /* System header to define __stub macros and hopefully few prototypes,
19566 which can conflict with char $ac_func (); below.
19567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19568 <limits.h> exists even on freestanding compilers. */
19571 # include <limits.h>
19573 # include <assert.h>
19578 /* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19585 /* The GNU C library defines this for functions which it implements
19586 to always fail with ENOSYS. Some functions are actually named
19587 something starting with __ and the normal name is an alias. */
19588 #if defined __stub_$ac_func || defined __stub___$ac_func
19595 return $ac_func ();
19600 rm -f conftest.$ac_objext conftest$ac_exeext
19601 if { (ac_try="$ac_link"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_link") 2>conftest.er1
19609 grep -v '^ *+' conftest.er1 >conftest.err
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest$ac_exeext &&
19617 $as_test_x conftest$ac_exeext; then
19618 eval "$as_ac_var=yes"
19620 echo "$as_me: failed program was
:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19623 eval "$as_ac_var=no
"
19626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19627 conftest$ac_exeext conftest.$ac_ext
19629 ac_res=`eval echo '${'$as_ac_var'}'`
19630 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19631 echo "${ECHO_T}$ac_res" >&6; }
19632 if test `eval echo '${'$as_ac_var'}'` = yes; then
19633 cat >>confdefs.h <<_ACEOF
19634 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19641 # PTY-related GNU extensions.
19643 for ac_func in getpt
19645 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19646 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19647 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19648 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19649 echo $ECHO_N "(cached
) $ECHO_C" >&6
19651 cat >conftest.$ac_ext <<_ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h. */
19657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19659 #define $ac_func innocuous_$ac_func
19661 /* System header to define __stub macros and hopefully few prototypes,
19662 which can conflict with char $ac_func (); below.
19663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19664 <limits.h> exists even on freestanding compilers. */
19667 # include <limits.h>
19669 # include <assert.h>
19674 /* Override any GCC internal prototype to avoid an error.
19675 Use char because int might match the return type of a GCC
19676 builtin and then its argument prototype would still apply. */
19681 /* The GNU C library defines this for functions which it implements
19682 to always fail with ENOSYS. Some functions are actually named
19683 something starting with __ and the normal name is an alias. */
19684 #if defined __stub_$ac_func || defined __stub___$ac_func
19691 return $ac_func ();
19696 rm -f conftest.$ac_objext conftest$ac_exeext
19697 if { (ac_try="$ac_link"
19698 case "(($ac_try" in
19699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19700 *) ac_try_echo=$ac_try;;
19702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19703 (eval "$ac_link") 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19709 (exit $ac_status); } && {
19710 test -z "$ac_c_werror_flag" ||
19711 test ! -s conftest.err
19712 } && test -s conftest$ac_exeext &&
19713 $as_test_x conftest$ac_exeext; then
19714 eval "$as_ac_var=yes"
19716 echo "$as_me: failed program was
:" >&5
19717 sed 's/^/| /' conftest.$ac_ext >&5
19719 eval "$as_ac_var=no
"
19722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19723 conftest$ac_exeext conftest.$ac_ext
19725 ac_res=`eval echo '${'$as_ac_var'}'`
19726 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19727 echo "${ECHO_T}$ac_res" >&6; }
19728 if test `eval echo '${'$as_ac_var'}'` = yes; then
19729 cat >>confdefs.h <<_ACEOF
19730 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19737 # Check this now, so that we will NOT find the above functions in ncurses.
19738 # That is because we have not set up to link ncurses in lib-src.
19739 # It's better to believe a function is not available
19740 # than to expect to find it in ncurses.
19742 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19743 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19744 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19745 echo $ECHO_N "(cached
) $ECHO_C" >&6
19747 ac_check_lib_save_LIBS=$LIBS
19748 LIBS="-lncurses $LIBS"
19749 cat >conftest.$ac_ext <<_ACEOF
19752 cat confdefs.h >>conftest.$ac_ext
19753 cat >>conftest.$ac_ext <<_ACEOF
19754 /* end confdefs.h. */
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19771 rm -f conftest.$ac_objext conftest$ac_exeext
19772 if { (ac_try="$ac_link"
19773 case "(($ac_try" in
19774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19775 *) ac_try_echo=$ac_try;;
19777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19778 (eval "$ac_link") 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19784 (exit $ac_status); } && {
19785 test -z "$ac_c_werror_flag" ||
19786 test ! -s conftest.err
19787 } && test -s conftest$ac_exeext &&
19788 $as_test_x conftest$ac_exeext; then
19789 ac_cv_lib_ncurses_tparm=yes
19791 echo "$as_me: failed program was
:" >&5
19792 sed 's/^/| /' conftest.$ac_ext >&5
19794 ac_cv_lib_ncurses_tparm=no
19797 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19798 conftest$ac_exeext conftest.$ac_ext
19799 LIBS=$ac_check_lib_save_LIBS
19801 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19802 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19803 if test $ac_cv_lib_ncurses_tparm = yes; then
19804 cat >>confdefs.h <<_ACEOF
19805 #define HAVE_LIBNCURSES 1
19808 LIBS="-lncurses $LIBS"
19813 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 #include <netinet/in.h>
19823 #include <arpa/nameser.h>
19824 #include <resolv.h>
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest$ac_exeext &&
19850 $as_test_x conftest$ac_exeext; then
19853 echo "$as_me: failed program was
:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860 conftest$ac_exeext conftest.$ac_ext
19861 if test "$have_res_init" = no; then
19863 LIBS="$LIBS -lresolv"
19864 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19865 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19866 cat >conftest.$ac_ext <<_ACEOF
19869 cat confdefs.h >>conftest.$ac_ext
19870 cat >>conftest.$ac_ext <<_ACEOF
19871 /* end confdefs.h. */
19872 #include <netinet/in.h>
19873 #include <arpa/nameser.h>
19874 #include <resolv.h>
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest$ac_exeext &&
19900 $as_test_x conftest$ac_exeext; then
19903 echo "$as_me: failed program was
:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19911 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19912 echo "${ECHO_T}$have_res_init" >&6; }
19913 if test "$have_res_init" = yes ; then
19919 if test "$have_res_init" = yes; then
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE_RES_INIT 1
19927 # Do we need the Hesiod library to provide the support routines?
19928 if test "$with_hesiod" != no ; then
19929 # Don't set $LIBS here -- see comments above.
19930 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19931 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19932 if test "${ac_cv_func_res_send+set}" = set; then
19933 echo $ECHO_N "(cached
) $ECHO_C" >&6
19935 cat >conftest.$ac_ext <<_ACEOF
19938 cat confdefs.h >>conftest.$ac_ext
19939 cat >>conftest.$ac_ext <<_ACEOF
19940 /* end confdefs.h. */
19941 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19943 #define res_send innocuous_res_send
19945 /* System header to define __stub macros and hopefully few prototypes,
19946 which can conflict with char res_send (); below.
19947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19948 <limits.h> exists even on freestanding compilers. */
19951 # include <limits.h>
19953 # include <assert.h>
19958 /* Override any GCC internal prototype to avoid an error.
19959 Use char because int might match the return type of a GCC
19960 builtin and then its argument prototype would still apply. */
19965 /* The GNU C library defines this for functions which it implements
19966 to always fail with ENOSYS. Some functions are actually named
19967 something starting with __ and the normal name is an alias. */
19968 #if defined __stub_res_send || defined __stub___res_send
19975 return res_send ();
19980 rm -f conftest.$ac_objext conftest$ac_exeext
19981 if { (ac_try="$ac_link"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_link") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest$ac_exeext &&
19997 $as_test_x conftest$ac_exeext; then
19998 ac_cv_func_res_send=yes
20000 echo "$as_me: failed program was
:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20003 ac_cv_func_res_send=no
20006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20007 conftest$ac_exeext conftest.$ac_ext
20009 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20010 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20011 if test $ac_cv_func_res_send = yes; then
20014 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20015 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20016 if test "${ac_cv_func___res_send+set}" = set; then
20017 echo $ECHO_N "(cached
) $ECHO_C" >&6
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20027 #define __res_send innocuous___res_send
20029 /* System header to define __stub macros and hopefully few prototypes,
20030 which can conflict with char __res_send (); below.
20031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20032 <limits.h> exists even on freestanding compilers. */
20035 # include <limits.h>
20037 # include <assert.h>
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20048 char __res_send ();
20049 /* The GNU C library defines this for functions which it implements
20050 to always fail with ENOSYS. Some functions are actually named
20051 something starting with __ and the normal name is an alias. */
20052 #if defined __stub___res_send || defined __stub_____res_send
20059 return __res_send ();
20064 rm -f conftest.$ac_objext conftest$ac_exeext
20065 if { (ac_try="$ac_link"
20066 case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20071 (eval "$ac_link") 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20077 (exit $ac_status); } && {
20078 test -z "$ac_c_werror_flag" ||
20079 test ! -s conftest.err
20080 } && test -s conftest$ac_exeext &&
20081 $as_test_x conftest$ac_exeext; then
20082 ac_cv_func___res_send=yes
20084 echo "$as_me: failed program was
:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_cv_func___res_send=no
20090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20091 conftest$ac_exeext conftest.$ac_ext
20093 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20094 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20095 if test $ac_cv_func___res_send = yes; then
20098 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20099 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20100 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20101 echo $ECHO_N "(cached
) $ECHO_C" >&6
20103 ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lresolv $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20112 /* Override any GCC internal prototype to avoid an error.
20113 Use char because int might match the return type of a GCC
20114 builtin and then its argument prototype would still apply. */
20122 return res_send ();
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131 *) ac_try_echo=$ac_try;;
20133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_link") 2>conftest.er1
20136 grep -v '^ *+' conftest.er1 >conftest.err
20138 cat conftest.err >&5
20139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20140 (exit $ac_status); } && {
20141 test -z "$ac_c_werror_flag" ||
20142 test ! -s conftest.err
20143 } && test -s conftest$ac_exeext &&
20144 $as_test_x conftest$ac_exeext; then
20145 ac_cv_lib_resolv_res_send=yes
20147 echo "$as_me: failed program was
:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_lib_resolv_res_send=no
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20157 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20158 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20159 if test $ac_cv_lib_resolv_res_send = yes; then
20162 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20163 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20164 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20165 echo $ECHO_N "(cached
) $ECHO_C" >&6
20167 ac_check_lib_save_LIBS=$LIBS
20168 LIBS="-lresolv $LIBS"
20169 cat >conftest.$ac_ext <<_ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h. */
20176 /* Override any GCC internal prototype to avoid an error.
20177 Use char because int might match the return type of a GCC
20178 builtin and then its argument prototype would still apply. */
20182 char __res_send ();
20186 return __res_send ();
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_lib_resolv___res_send=yes
20211 echo "$as_me: failed program was
:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_lib_resolv___res_send=no
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20219 LIBS=$ac_check_lib_save_LIBS
20221 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20222 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20223 if test $ac_cv_lib_resolv___res_send = yes; then
20233 if test "$resolv" = yes ; then
20238 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20239 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20240 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20241 echo $ECHO_N "(cached
) $ECHO_C" >&6
20243 cat >conftest.$ac_ext <<_ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20249 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20251 #define hes_getmailhost innocuous_hes_getmailhost
20253 /* System header to define __stub macros and hopefully few prototypes,
20254 which can conflict with char hes_getmailhost (); below.
20255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20256 <limits.h> exists even on freestanding compilers. */
20259 # include <limits.h>
20261 # include <assert.h>
20264 #undef hes_getmailhost
20266 /* Override any GCC internal prototype to avoid an error.
20267 Use char because int might match the return type of a GCC
20268 builtin and then its argument prototype would still apply. */
20272 char hes_getmailhost ();
20273 /* The GNU C library defines this for functions which it implements
20274 to always fail with ENOSYS. Some functions are actually named
20275 something starting with __ and the normal name is an alias. */
20276 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20283 return hes_getmailhost ();
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (ac_try="$ac_link"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_link") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest$ac_exeext &&
20305 $as_test_x conftest$ac_exeext; then
20306 ac_cv_func_hes_getmailhost=yes
20308 echo "$as_me: failed program was
:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_cv_func_hes_getmailhost=no
20314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20315 conftest$ac_exeext conftest.$ac_ext
20317 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20318 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20319 if test $ac_cv_func_hes_getmailhost = yes; then
20322 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20323 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20324 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20325 echo $ECHO_N "(cached
) $ECHO_C" >&6
20327 ac_check_lib_save_LIBS=$LIBS
20328 LIBS="-lhesiod $RESOLVLIB $LIBS"
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20336 /* Override any GCC internal prototype to avoid an error.
20337 Use char because int might match the return type of a GCC
20338 builtin and then its argument prototype would still apply. */
20342 char hes_getmailhost ();
20346 return hes_getmailhost ();
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (ac_try="$ac_link"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_link") 2>conftest.er1
20360 grep -v '^ *+' conftest.er1 >conftest.err
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest$ac_exeext &&
20368 $as_test_x conftest$ac_exeext; then
20369 ac_cv_lib_hesiod_hes_getmailhost=yes
20371 echo "$as_me: failed program was
:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_cv_lib_hesiod_hes_getmailhost=no
20377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20378 conftest$ac_exeext conftest.$ac_ext
20379 LIBS=$ac_check_lib_save_LIBS
20381 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20382 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20383 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20385 cat >>confdefs.h <<\_ACEOF
20386 #define HAVE_LIBHESIOD 1
20397 # Do we need libresolv (due to res_init or Hesiod)?
20398 if test "$resolv" = yes ; then
20400 cat >>confdefs.h <<\_ACEOF
20401 #define HAVE_LIBRESOLV 1
20406 # These tell us which Kerberos-related libraries to use.
20407 if test "${with_kerberos}" != no; then
20409 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20410 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20411 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20412 echo $ECHO_N "(cached
) $ECHO_C" >&6
20414 ac_check_lib_save_LIBS=$LIBS
20415 LIBS="-lcom_err $LIBS"
20416 cat >conftest.$ac_ext <<_ACEOF
20419 cat confdefs.h >>conftest.$ac_ext
20420 cat >>conftest.$ac_ext <<_ACEOF
20421 /* end confdefs.h. */
20423 /* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20438 rm -f conftest.$ac_objext conftest$ac_exeext
20439 if { (ac_try="$ac_link"
20440 case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20445 (eval "$ac_link") 2>conftest.er1
20447 grep -v '^ *+' conftest.er1 >conftest.err
20449 cat conftest.err >&5
20450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20451 (exit $ac_status); } && {
20452 test -z "$ac_c_werror_flag" ||
20453 test ! -s conftest.err
20454 } && test -s conftest$ac_exeext &&
20455 $as_test_x conftest$ac_exeext; then
20456 ac_cv_lib_com_err_com_err=yes
20458 echo "$as_me: failed program was
:" >&5
20459 sed 's/^/| /' conftest.$ac_ext >&5
20461 ac_cv_lib_com_err_com_err=no
20464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20468 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20469 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20470 if test $ac_cv_lib_com_err_com_err = yes; then
20471 cat >>confdefs.h <<_ACEOF
20472 #define HAVE_LIBCOM_ERR 1
20475 LIBS="-lcom_err $LIBS"
20480 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20481 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20482 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20483 echo $ECHO_N "(cached
) $ECHO_C" >&6
20485 ac_check_lib_save_LIBS=$LIBS
20486 LIBS="-lk5crypto $LIBS"
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20494 /* Override any GCC internal prototype to avoid an error.
20495 Use char because int might match the return type of a GCC
20496 builtin and then its argument prototype would still apply. */
20500 char mit_des_cbc_encrypt ();
20504 return mit_des_cbc_encrypt ();
20509 rm -f conftest.$ac_objext conftest$ac_exeext
20510 if { (ac_try="$ac_link"
20511 case "(($ac_try" in
20512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20513 *) ac_try_echo=$ac_try;;
20515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20516 (eval "$ac_link") 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20522 (exit $ac_status); } && {
20523 test -z "$ac_c_werror_flag" ||
20524 test ! -s conftest.err
20525 } && test -s conftest$ac_exeext &&
20526 $as_test_x conftest$ac_exeext; then
20527 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20529 echo "$as_me: failed program was
:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20536 conftest$ac_exeext conftest.$ac_ext
20537 LIBS=$ac_check_lib_save_LIBS
20539 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20540 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20541 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20542 cat >>confdefs.h <<_ACEOF
20543 #define HAVE_LIBK5CRYPTO 1
20546 LIBS="-lk5crypto $LIBS"
20551 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20552 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20553 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20554 echo $ECHO_N "(cached
) $ECHO_C" >&6
20556 ac_check_lib_save_LIBS=$LIBS
20557 LIBS="-lcrypto $LIBS"
20558 cat >conftest.$ac_ext <<_ACEOF
20561 cat confdefs.h >>conftest.$ac_ext
20562 cat >>conftest.$ac_ext <<_ACEOF
20563 /* end confdefs.h. */
20565 /* Override any GCC internal prototype to avoid an error.
20566 Use char because int might match the return type of a GCC
20567 builtin and then its argument prototype would still apply. */
20571 char mit_des_cbc_encrypt ();
20575 return mit_des_cbc_encrypt ();
20580 rm -f conftest.$ac_objext conftest$ac_exeext
20581 if { (ac_try="$ac_link"
20582 case "(($ac_try" in
20583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20584 *) ac_try_echo=$ac_try;;
20586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20587 (eval "$ac_link") 2>conftest.er1
20589 grep -v '^ *+' conftest.er1 >conftest.err
20591 cat conftest.err >&5
20592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20593 (exit $ac_status); } && {
20594 test -z "$ac_c_werror_flag" ||
20595 test ! -s conftest.err
20596 } && test -s conftest$ac_exeext &&
20597 $as_test_x conftest$ac_exeext; then
20598 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20600 echo "$as_me: failed program was
:" >&5
20601 sed 's/^/| /' conftest.$ac_ext >&5
20603 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20607 conftest$ac_exeext conftest.$ac_ext
20608 LIBS=$ac_check_lib_save_LIBS
20610 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20611 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20612 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20613 cat >>confdefs.h <<_ACEOF
20614 #define HAVE_LIBCRYPTO 1
20617 LIBS="-lcrypto $LIBS"
20622 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20623 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20624 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20625 echo $ECHO_N "(cached
) $ECHO_C" >&6
20627 ac_check_lib_save_LIBS=$LIBS
20628 LIBS="-lkrb5 $LIBS"
20629 cat >conftest.$ac_ext <<_ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20636 /* Override any GCC internal prototype to avoid an error.
20637 Use char because int might match the return type of a GCC
20638 builtin and then its argument prototype would still apply. */
20642 char krb5_init_context ();
20646 return krb5_init_context ();
20651 rm -f conftest.$ac_objext conftest$ac_exeext
20652 if { (ac_try="$ac_link"
20653 case "(($ac_try" in
20654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655 *) ac_try_echo=$ac_try;;
20657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20658 (eval "$ac_link") 2>conftest.er1
20660 grep -v '^ *+' conftest.er1 >conftest.err
20662 cat conftest.err >&5
20663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20664 (exit $ac_status); } && {
20665 test -z "$ac_c_werror_flag" ||
20666 test ! -s conftest.err
20667 } && test -s conftest$ac_exeext &&
20668 $as_test_x conftest$ac_exeext; then
20669 ac_cv_lib_krb5_krb5_init_context=yes
20671 echo "$as_me: failed program was
:" >&5
20672 sed 's/^/| /' conftest.$ac_ext >&5
20674 ac_cv_lib_krb5_krb5_init_context=no
20677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20678 conftest$ac_exeext conftest.$ac_ext
20679 LIBS=$ac_check_lib_save_LIBS
20681 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20682 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20683 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20684 cat >>confdefs.h <<_ACEOF
20685 #define HAVE_LIBKRB5 1
20688 LIBS="-lkrb5 $LIBS"
20692 if test "${with_kerberos5}" = no; then
20694 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20695 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20696 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20697 echo $ECHO_N "(cached
) $ECHO_C" >&6
20699 ac_check_lib_save_LIBS=$LIBS
20700 LIBS="-ldes425 $LIBS"
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20708 /* Override any GCC internal prototype to avoid an error.
20709 Use char because int might match the return type of a GCC
20710 builtin and then its argument prototype would still apply. */
20714 char des_cbc_encrypt ();
20718 return des_cbc_encrypt ();
20723 rm -f conftest.$ac_objext conftest$ac_exeext
20724 if { (ac_try="$ac_link"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_link") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest$ac_exeext &&
20740 $as_test_x conftest$ac_exeext; then
20741 ac_cv_lib_des425_des_cbc_encrypt=yes
20743 echo "$as_me: failed program was
:" >&5
20744 sed 's/^/| /' conftest.$ac_ext >&5
20746 ac_cv_lib_des425_des_cbc_encrypt=no
20749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20750 conftest$ac_exeext conftest.$ac_ext
20751 LIBS=$ac_check_lib_save_LIBS
20753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20754 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20755 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757 #define HAVE_LIBDES425 1
20760 LIBS="-ldes425 $LIBS"
20764 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20765 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20766 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20767 echo $ECHO_N "(cached
) $ECHO_C" >&6
20769 ac_check_lib_save_LIBS=$LIBS
20771 cat >conftest.$ac_ext <<_ACEOF
20774 cat confdefs.h >>conftest.$ac_ext
20775 cat >>conftest.$ac_ext <<_ACEOF
20776 /* end confdefs.h. */
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20784 char des_cbc_encrypt ();
20788 return des_cbc_encrypt ();
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20800 (eval "$ac_link") 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20806 (exit $ac_status); } && {
20807 test -z "$ac_c_werror_flag" ||
20808 test ! -s conftest.err
20809 } && test -s conftest$ac_exeext &&
20810 $as_test_x conftest$ac_exeext; then
20811 ac_cv_lib_des_des_cbc_encrypt=yes
20813 echo "$as_me: failed program was
:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 ac_cv_lib_des_des_cbc_encrypt=no
20819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20820 conftest$ac_exeext conftest.$ac_ext
20821 LIBS=$ac_check_lib_save_LIBS
20823 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20824 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20825 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE_LIBDES 1
20837 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20838 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20839 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20840 echo $ECHO_N "(cached
) $ECHO_C" >&6
20842 ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lkrb4 $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20857 char krb_get_cred ();
20861 return krb_get_cred ();
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest$ac_exeext &&
20883 $as_test_x conftest$ac_exeext; then
20884 ac_cv_lib_krb4_krb_get_cred=yes
20886 echo "$as_me: failed program was
:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_lib_krb4_krb_get_cred=no
20892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LIBS=$ac_check_lib_save_LIBS
20896 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20897 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20898 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20899 cat >>confdefs.h <<_ACEOF
20900 #define HAVE_LIBKRB4 1
20903 LIBS="-lkrb4 $LIBS"
20907 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20908 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20909 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20910 echo $ECHO_N "(cached
) $ECHO_C" >&6
20912 ac_check_lib_save_LIBS=$LIBS
20914 cat >conftest.$ac_ext <<_ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20921 /* Override any GCC internal prototype to avoid an error.
20922 Use char because int might match the return type of a GCC
20923 builtin and then its argument prototype would still apply. */
20927 char krb_get_cred ();
20931 return krb_get_cred ();
20936 rm -f conftest.$ac_objext conftest$ac_exeext
20937 if { (ac_try="$ac_link"
20938 case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_link") 2>conftest.er1
20945 grep -v '^ *+' conftest.er1 >conftest.err
20947 cat conftest.err >&5
20948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20949 (exit $ac_status); } && {
20950 test -z "$ac_c_werror_flag" ||
20951 test ! -s conftest.err
20952 } && test -s conftest$ac_exeext &&
20953 $as_test_x conftest$ac_exeext; then
20954 ac_cv_lib_krb_krb_get_cred=yes
20956 echo "$as_me: failed program was
:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20959 ac_cv_lib_krb_krb_get_cred=no
20962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20966 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20967 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20968 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define HAVE_LIBKRB 1
20981 if test "${with_kerberos5}" != no; then
20983 for ac_header in krb5.h
20985 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20987 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20988 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20990 echo $ECHO_N "(cached
) $ECHO_C" >&6
20992 ac_res=`eval echo '${'$as_ac_Header'}'`
20993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20994 echo "${ECHO_T}$ac_res" >&6; }
20996 # Is the header compilable?
20997 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20998 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 $ac_includes_default
21006 #include <$ac_header>
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_header_compiler=yes
21027 echo "$as_me: failed program was
:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21039 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21060 (exit $ac_status); } >/dev/null && {
21061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21064 ac_header_preproc=yes
21066 echo "$as_me: failed program was
:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_preproc=no
21072 rm -f conftest.err conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21074 echo "${ECHO_T}$ac_header_preproc" >&6; }
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21080 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21083 ac_header_preproc=yes
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21087 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21088 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21089 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21090 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21091 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21093 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21097 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached
) $ECHO_C" >&6
21106 eval "$as_ac_Header=\
$ac_header_preproc"
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21124 for ac_header in des.h
21126 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21127 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21128 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21129 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21130 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21131 echo $ECHO_N "(cached
) $ECHO_C" >&6
21133 ac_res=`eval echo '${'$as_ac_Header'}'`
21134 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21135 echo "${ECHO_T}$ac_res" >&6; }
21137 # Is the header compilable?
21138 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21139 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21146 $ac_includes_default
21147 #include <$ac_header>
21149 rm -f conftest.$ac_objext
21150 if { (ac_try="$ac_compile"
21151 case "(($ac_try" in
21152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21153 *) ac_try_echo=$ac_try;;
21155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21156 (eval "$ac_compile") 2>conftest.er1
21158 grep -v '^ *+' conftest.er1 >conftest.err
21160 cat conftest.err >&5
21161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest.$ac_objext; then
21166 ac_header_compiler=yes
21168 echo "$as_me: failed program was
:" >&5
21169 sed 's/^/| /' conftest.$ac_ext >&5
21171 ac_header_compiler=no
21174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21175 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21176 echo "${ECHO_T}$ac_header_compiler" >&6; }
21178 # Is the header present?
21179 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21180 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21181 cat >conftest.$ac_ext <<_ACEOF
21184 cat confdefs.h >>conftest.$ac_ext
21185 cat >>conftest.$ac_ext <<_ACEOF
21186 /* end confdefs.h. */
21187 #include <$ac_header>
21189 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21197 grep -v '^ *+' conftest.er1 >conftest.err
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21201 (exit $ac_status); } >/dev/null && {
21202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21205 ac_header_preproc=yes
21207 echo "$as_me: failed program was
:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21210 ac_header_preproc=no
21213 rm -f conftest.err conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21215 echo "${ECHO_T}$ac_header_preproc" >&6; }
21217 # So? What about this header?
21218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21220 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21221 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21224 ac_header_preproc=yes
21227 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21228 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21229 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21230 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21231 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21232 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21233 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21234 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21235 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21236 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21237 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21238 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21242 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21243 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21245 echo $ECHO_N "(cached
) $ECHO_C" >&6
21247 eval "$as_ac_Header=\
$ac_header_preproc"
21249 ac_res=`eval echo '${'$as_ac_Header'}'`
21250 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21251 echo "${ECHO_T}$ac_res" >&6; }
21254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21261 for ac_header in kerberosIV/des.h
21263 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21265 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21266 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21268 echo $ECHO_N "(cached
) $ECHO_C" >&6
21270 ac_res=`eval echo '${'$as_ac_Header'}'`
21271 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21272 echo "${ECHO_T}$ac_res" >&6; }
21274 # Is the header compilable?
21275 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21276 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21277 cat >conftest.$ac_ext <<_ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h. */
21283 $ac_includes_default
21284 #include <$ac_header>
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_header_compiler=yes
21305 echo "$as_me: failed program was
:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_header_compiler=no
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21312 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21313 echo "${ECHO_T}$ac_header_compiler" >&6; }
21315 # Is the header present?
21316 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21317 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21318 cat >conftest.$ac_ext <<_ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h. */
21324 #include <$ac_header>
21326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21327 case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21338 (exit $ac_status); } >/dev/null && {
21339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21340 test ! -s conftest.err
21342 ac_header_preproc=yes
21344 echo "$as_me: failed program was
:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21347 ac_header_preproc=no
21350 rm -f conftest.err conftest.$ac_ext
21351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21352 echo "${ECHO_T}$ac_header_preproc" >&6; }
21354 # So? What about this header?
21355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21361 ac_header_preproc=yes
21364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21382 echo $ECHO_N "(cached
) $ECHO_C" >&6
21384 eval "$as_ac_Header=\
$ac_header_preproc"
21386 ac_res=`eval echo '${'$as_ac_Header'}'`
21387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21388 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21398 for ac_header in kerberos/des.h
21400 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21401 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21402 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21403 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached
) $ECHO_C" >&6
21407 ac_res=`eval echo '${'$as_ac_Header'}'`
21408 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21411 # Is the header compilable?
21412 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21413 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 #include <$ac_header>
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1 >conftest.err
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.$ac_objext; then
21440 ac_header_compiler=yes
21442 echo "$as_me: failed program was
:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ac_header_compiler=no
21448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6; }
21452 # Is the header present?
21453 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21454 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21463 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21464 case "(($ac_try" in
21465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21475 (exit $ac_status); } >/dev/null && {
21476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21479 ac_header_preproc=yes
21481 echo "$as_me: failed program was
:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_header_preproc=no
21487 rm -f conftest.err conftest.$ac_ext
21488 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21489 echo "${ECHO_T}$ac_header_preproc" >&6; }
21491 # So? What about this header?
21492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21494 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21495 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21496 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21498 ac_header_preproc=yes
21501 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21502 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21503 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21504 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21505 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21506 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21508 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21509 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21511 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21512 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21516 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21517 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21518 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21519 echo $ECHO_N "(cached
) $ECHO_C" >&6
21521 eval "$as_ac_Header=\
$ac_header_preproc"
21523 ac_res=`eval echo '${'$as_ac_Header'}'`
21524 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21525 echo "${ECHO_T}$ac_res" >&6; }
21528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21529 cat >>confdefs.h <<_ACEOF
21530 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21546 for ac_header in krb.h
21548 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21550 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21551 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21553 echo $ECHO_N "(cached
) $ECHO_C" >&6
21555 ac_res=`eval echo '${'$as_ac_Header'}'`
21556 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21557 echo "${ECHO_T}$ac_res" >&6; }
21559 # Is the header compilable?
21560 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21561 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21562 cat >conftest.$ac_ext <<_ACEOF
21565 cat confdefs.h >>conftest.$ac_ext
21566 cat >>conftest.$ac_ext <<_ACEOF
21567 /* end confdefs.h. */
21568 $ac_includes_default
21569 #include <$ac_header>
21571 rm -f conftest.$ac_objext
21572 if { (ac_try="$ac_compile"
21573 case "(($ac_try" in
21574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21575 *) ac_try_echo=$ac_try;;
21577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21578 (eval "$ac_compile") 2>conftest.er1
21580 grep -v '^ *+' conftest.er1 >conftest.err
21582 cat conftest.err >&5
21583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21584 (exit $ac_status); } && {
21585 test -z "$ac_c_werror_flag" ||
21586 test ! -s conftest.err
21587 } && test -s conftest.$ac_objext; then
21588 ac_header_compiler=yes
21590 echo "$as_me: failed program was
:" >&5
21591 sed 's/^/| /' conftest.$ac_ext >&5
21593 ac_header_compiler=no
21596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21597 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21598 echo "${ECHO_T}$ac_header_compiler" >&6; }
21600 # Is the header present?
21601 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21602 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 #include <$ac_header>
21611 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21623 (exit $ac_status); } >/dev/null && {
21624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21627 ac_header_preproc=yes
21629 echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_header_preproc=no
21635 rm -f conftest.err conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21637 echo "${ECHO_T}$ac_header_preproc" >&6; }
21639 # So? What about this header?
21640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21642 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21643 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21646 ac_header_preproc=yes
21649 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21650 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21651 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21652 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21653 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21654 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21655 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21656 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21657 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21659 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21660 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21664 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21665 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21667 echo $ECHO_N "(cached
) $ECHO_C" >&6
21669 eval "$as_ac_Header=\
$ac_header_preproc"
21671 ac_res=`eval echo '${'$as_ac_Header'}'`
21672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21673 echo "${ECHO_T}$ac_res" >&6; }
21676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21677 cat >>confdefs.h <<_ACEOF
21678 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21683 for ac_header in kerberosIV/krb.h
21685 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21687 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21688 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached
) $ECHO_C" >&6
21692 ac_res=`eval echo '${'$as_ac_Header'}'`
21693 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21694 echo "${ECHO_T}$ac_res" >&6; }
21696 # Is the header compilable?
21697 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21698 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21699 cat >conftest.$ac_ext <<_ACEOF
21702 cat confdefs.h >>conftest.$ac_ext
21703 cat >>conftest.$ac_ext <<_ACEOF
21704 /* end confdefs.h. */
21705 $ac_includes_default
21706 #include <$ac_header>
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712 *) ac_try_echo=$ac_try;;
21714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21715 (eval "$ac_compile") 2>conftest.er1
21717 grep -v '^ *+' conftest.er1 >conftest.err
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21721 (exit $ac_status); } && {
21722 test -z "$ac_c_werror_flag" ||
21723 test ! -s conftest.err
21724 } && test -s conftest.$ac_objext; then
21725 ac_header_compiler=yes
21727 echo "$as_me: failed program was
:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21730 ac_header_compiler=no
21733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21734 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21735 echo "${ECHO_T}$ac_header_compiler" >&6; }
21737 # Is the header present?
21738 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21739 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 #include <$ac_header>
21748 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21749 case "(($ac_try" in
21750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751 *) ac_try_echo=$ac_try;;
21753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21754 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21756 grep -v '^ *+' conftest.er1 >conftest.err
21758 cat conftest.err >&5
21759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21760 (exit $ac_status); } >/dev/null && {
21761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21762 test ! -s conftest.err
21764 ac_header_preproc=yes
21766 echo "$as_me: failed program was
:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21769 ac_header_preproc=no
21772 rm -f conftest.err conftest.$ac_ext
21773 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21774 echo "${ECHO_T}$ac_header_preproc" >&6; }
21776 # So? What about this header?
21777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21780 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21783 ac_header_preproc=yes
21786 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21787 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21788 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21789 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21790 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21791 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21792 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21793 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21794 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21796 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21797 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21801 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21802 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21804 echo $ECHO_N "(cached
) $ECHO_C" >&6
21806 eval "$as_ac_Header=\
$ac_header_preproc"
21808 ac_res=`eval echo '${'$as_ac_Header'}'`
21809 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21810 echo "${ECHO_T}$ac_res" >&6; }
21813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21814 cat >>confdefs.h <<_ACEOF
21815 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21820 for ac_header in kerberos/krb.h
21822 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21823 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21824 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21825 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21826 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21827 echo $ECHO_N "(cached
) $ECHO_C" >&6
21829 ac_res=`eval echo '${'$as_ac_Header'}'`
21830 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21831 echo "${ECHO_T}$ac_res" >&6; }
21833 # Is the header compilable?
21834 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21835 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21836 cat >conftest.$ac_ext <<_ACEOF
21839 cat confdefs.h >>conftest.$ac_ext
21840 cat >>conftest.$ac_ext <<_ACEOF
21841 /* end confdefs.h. */
21842 $ac_includes_default
21843 #include <$ac_header>
21845 rm -f conftest.$ac_objext
21846 if { (ac_try="$ac_compile"
21847 case "(($ac_try" in
21848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21849 *) ac_try_echo=$ac_try;;
21851 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21852 (eval "$ac_compile") 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21858 (exit $ac_status); } && {
21859 test -z "$ac_c_werror_flag" ||
21860 test ! -s conftest.err
21861 } && test -s conftest.$ac_objext; then
21862 ac_header_compiler=yes
21864 echo "$as_me: failed program was
:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21867 ac_header_compiler=no
21870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21871 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21872 echo "${ECHO_T}$ac_header_compiler" >&6; }
21874 # Is the header present?
21875 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21876 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21877 cat >conftest.$ac_ext <<_ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h. */
21883 #include <$ac_header>
21885 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21893 grep -v '^ *+' conftest.er1 >conftest.err
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21897 (exit $ac_status); } >/dev/null && {
21898 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21901 ac_header_preproc=yes
21903 echo "$as_me: failed program was
:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21906 ac_header_preproc=no
21909 rm -f conftest.err conftest.$ac_ext
21910 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21911 echo "${ECHO_T}$ac_header_preproc" >&6; }
21913 # So? What about this header?
21914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21917 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21920 ac_header_preproc=yes
21923 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21924 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21925 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21926 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21927 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21928 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21929 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21930 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21931 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21933 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21934 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21938 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21939 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21940 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21941 echo $ECHO_N "(cached
) $ECHO_C" >&6
21943 eval "$as_ac_Header=\
$ac_header_preproc"
21945 ac_res=`eval echo '${'$as_ac_Header'}'`
21946 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21947 echo "${ECHO_T}$ac_res" >&6; }
21950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21951 cat >>confdefs.h <<_ACEOF
21952 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21969 for ac_header in com_err.h
21971 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21973 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21974 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21976 echo $ECHO_N "(cached
) $ECHO_C" >&6
21978 ac_res=`eval echo '${'$as_ac_Header'}'`
21979 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21984 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <$ac_header>
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
22000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22003 grep -v '^ *+' conftest.er1 >conftest.err
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest.$ac_objext; then
22011 ac_header_compiler=yes
22013 echo "$as_me: failed program was
:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_compiler=no
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22025 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22046 (exit $ac_status); } >/dev/null && {
22047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22050 ac_header_preproc=yes
22052 echo "$as_me: failed program was
:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22066 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22069 ac_header_preproc=yes
22072 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22073 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22074 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22075 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22076 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22077 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22078 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22079 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22082 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22083 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22087 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22088 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22090 echo $ECHO_N "(cached
) $ECHO_C" >&6
22092 eval "$as_ac_Header=\
$ac_header_preproc"
22094 ac_res=`eval echo '${'$as_ac_Header'}'`
22095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22110 # Solaris requires -lintl if you want strerror (which calls dgettext)
22111 # to return localized messages.
22113 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22114 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22115 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22116 echo $ECHO_N "(cached
) $ECHO_C" >&6
22118 ac_check_lib_save_LIBS=$LIBS
22119 LIBS="-lintl $LIBS"
22120 cat >conftest.$ac_ext <<_ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22127 /* Override any GCC internal prototype to avoid an error.
22128 Use char because int might match the return type of a GCC
22129 builtin and then its argument prototype would still apply. */
22137 return dgettext ();
22142 rm -f conftest.$ac_objext conftest$ac_exeext
22143 if { (ac_try="$ac_link"
22144 case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_link") 2>conftest.er1
22151 grep -v '^ *+' conftest.er1 >conftest.err
22153 cat conftest.err >&5
22154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22155 (exit $ac_status); } && {
22156 test -z "$ac_c_werror_flag" ||
22157 test ! -s conftest.err
22158 } && test -s conftest$ac_exeext &&
22159 $as_test_x conftest$ac_exeext; then
22160 ac_cv_lib_intl_dgettext=yes
22162 echo "$as_me: failed program was
:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_cv_lib_intl_dgettext=no
22168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22169 conftest$ac_exeext conftest.$ac_ext
22170 LIBS=$ac_check_lib_save_LIBS
22172 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22173 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22174 if test $ac_cv_lib_intl_dgettext = yes; then
22175 cat >>confdefs.h <<_ACEOF
22176 #define HAVE_LIBINTL 1
22179 LIBS="-lintl $LIBS"
22184 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22185 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22186 if test "${emacs_cv_localtime_cache+set}" = set; then
22187 echo $ECHO_N "(cached
) $ECHO_C" >&6
22189 if test x$ac_cv_func_tzset = xyes; then
22190 if test "$cross_compiling" = yes; then
22191 # If we have tzset, assume the worst when cross-compiling.
22192 emacs_cv_localtime_cache=yes
22194 cat >conftest.$ac_ext <<_ACEOF
22197 cat confdefs.h >>conftest.$ac_ext
22198 cat >>conftest.$ac_ext <<_ACEOF
22199 /* end confdefs.h. */
22201 extern char **environ;
22205 for (to = from = environ; (*to = *from); from++)
22206 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22209 char TZ_GMT0[] = "TZ
=GMT0
";
22210 char TZ_PST8[] = "TZ
=PST8
";
22213 time_t now = time ((time_t *) 0);
22214 int hour_GMT0, hour_unset;
22215 if (putenv (TZ_GMT0) != 0)
22217 hour_GMT0 = localtime (&now)->tm_hour;
22219 hour_unset = localtime (&now)->tm_hour;
22220 if (putenv (TZ_PST8) != 0)
22222 if (localtime (&now)->tm_hour == hour_GMT0)
22225 if (localtime (&now)->tm_hour != hour_unset)
22230 rm -f conftest$ac_exeext
22231 if { (ac_try="$ac_link"
22232 case "(($ac_try" in
22233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22234 *) ac_try_echo=$ac_try;;
22236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22237 (eval "$ac_link") 2>&5
22239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22241 { (case "(($ac_try" in
22242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22243 *) ac_try_echo=$ac_try;;
22245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22246 (eval "$ac_try") 2>&5
22248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22249 (exit $ac_status); }; }; then
22250 emacs_cv_localtime_cache=no
22252 echo "$as_me: program exited with status
$ac_status" >&5
22253 echo "$as_me: failed program was
:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ( exit $ac_status )
22257 emacs_cv_localtime_cache=yes
22259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22264 # If we lack tzset, report that localtime does not cache TZ,
22265 # since we can't invalidate the cache if we don't have tzset.
22266 emacs_cv_localtime_cache=no
22269 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22270 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22271 if test $emacs_cv_localtime_cache = yes; then
22273 cat >>confdefs.h <<\_ACEOF
22274 #define LOCALTIME_CACHE 1
22279 if test "x
$HAVE_TIMEVAL" = xyes; then
22281 for ac_func in gettimeofday
22283 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22284 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22285 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22286 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22287 echo $ECHO_N "(cached
) $ECHO_C" >&6
22289 cat >conftest.$ac_ext <<_ACEOF
22292 cat confdefs.h >>conftest.$ac_ext
22293 cat >>conftest.$ac_ext <<_ACEOF
22294 /* end confdefs.h. */
22295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22297 #define $ac_func innocuous_$ac_func
22299 /* System header to define __stub macros and hopefully few prototypes,
22300 which can conflict with char $ac_func (); below.
22301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22302 <limits.h> exists even on freestanding compilers. */
22305 # include <limits.h>
22307 # include <assert.h>
22312 /* Override any GCC internal prototype to avoid an error.
22313 Use char because int might match the return type of a GCC
22314 builtin and then its argument prototype would still apply. */
22319 /* The GNU C library defines this for functions which it implements
22320 to always fail with ENOSYS. Some functions are actually named
22321 something starting with __ and the normal name is an alias. */
22322 #if defined __stub_$ac_func || defined __stub___$ac_func
22329 return $ac_func ();
22334 rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22341 (eval "$ac_link") 2>conftest.er1
22343 grep -v '^ *+' conftest.er1 >conftest.err
22345 cat conftest.err >&5
22346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22347 (exit $ac_status); } && {
22348 test -z "$ac_c_werror_flag" ||
22349 test ! -s conftest.err
22350 } && test -s conftest$ac_exeext &&
22351 $as_test_x conftest$ac_exeext; then
22352 eval "$as_ac_var=yes"
22354 echo "$as_me: failed program was
:" >&5
22355 sed 's/^/| /' conftest.$ac_ext >&5
22357 eval "$as_ac_var=no
"
22360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22361 conftest$ac_exeext conftest.$ac_ext
22363 ac_res=`eval echo '${'$as_ac_var'}'`
22364 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22365 echo "${ECHO_T}$ac_res" >&6; }
22366 if test `eval echo '${'$as_ac_var'}'` = yes; then
22367 cat >>confdefs.h <<_ACEOF
22368 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22374 if test $ac_cv_func_gettimeofday = yes; then
22375 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22376 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22377 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22378 echo $ECHO_N "(cached
) $ECHO_C" >&6
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22387 #ifdef TIME_WITH_SYS_TIME
22388 #include <sys/time.h>
22391 #ifdef HAVE_SYS_TIME_H
22392 #include <sys/time.h>
22400 struct timeval time;
22401 gettimeofday (&time, 0);
22406 rm -f conftest.$ac_objext
22407 if { (ac_try="$ac_compile"
22408 case "(($ac_try" in
22409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22410 *) ac_try_echo=$ac_try;;
22412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22413 (eval "$ac_compile") 2>conftest.er1
22415 grep -v '^ *+' conftest.er1 >conftest.err
22417 cat conftest.err >&5
22418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22419 (exit $ac_status); } && {
22420 test -z "$ac_c_werror_flag" ||
22421 test ! -s conftest.err
22422 } && test -s conftest.$ac_objext; then
22423 emacs_cv_gettimeofday_two_arguments=yes
22425 echo "$as_me: failed program was
:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22428 emacs_cv_gettimeofday_two_arguments=no
22431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22433 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22434 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22435 if test $emacs_cv_gettimeofday_two_arguments = no; then
22437 cat >>confdefs.h <<\_ACEOF
22438 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22446 { echo "$as_me:$LINENO: checking
for socket
" >&5
22447 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22448 if test "${ac_cv_func_socket+set}" = set; then
22449 echo $ECHO_N "(cached
) $ECHO_C" >&6
22451 cat >conftest.$ac_ext <<_ACEOF
22454 cat confdefs.h >>conftest.$ac_ext
22455 cat >>conftest.$ac_ext <<_ACEOF
22456 /* end confdefs.h. */
22457 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22459 #define socket innocuous_socket
22461 /* System header to define __stub macros and hopefully few prototypes,
22462 which can conflict with char socket (); below.
22463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22464 <limits.h> exists even on freestanding compilers. */
22467 # include <limits.h>
22469 # include <assert.h>
22474 /* Override any GCC internal prototype to avoid an error.
22475 Use char because int might match the return type of a GCC
22476 builtin and then its argument prototype would still apply. */
22481 /* The GNU C library defines this for functions which it implements
22482 to always fail with ENOSYS. Some functions are actually named
22483 something starting with __ and the normal name is an alias. */
22484 #if defined __stub_socket || defined __stub___socket
22496 rm -f conftest.$ac_objext conftest$ac_exeext
22497 if { (ac_try="$ac_link"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_link") 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest$ac_exeext &&
22513 $as_test_x conftest$ac_exeext; then
22514 ac_cv_func_socket=yes
22516 echo "$as_me: failed program was
:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_cv_func_socket=no
22522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22523 conftest$ac_exeext conftest.$ac_ext
22525 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22526 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22527 if test $ac_cv_func_socket = yes; then
22533 if test $ok_so_far = yes; then
22534 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22535 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22536 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22537 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22538 echo $ECHO_N "(cached
) $ECHO_C" >&6
22540 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22541 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22543 # Is the header compilable?
22544 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22545 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22546 cat >conftest.$ac_ext <<_ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h. */
22552 $ac_includes_default
22553 #include <netinet/in.h>
22555 rm -f conftest.$ac_objext
22556 if { (ac_try="$ac_compile"
22557 case "(($ac_try" in
22558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22559 *) ac_try_echo=$ac_try;;
22561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22562 (eval "$ac_compile") 2>conftest.er1
22564 grep -v '^ *+' conftest.er1 >conftest.err
22566 cat conftest.err >&5
22567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22568 (exit $ac_status); } && {
22569 test -z "$ac_c_werror_flag" ||
22570 test ! -s conftest.err
22571 } && test -s conftest.$ac_objext; then
22572 ac_header_compiler=yes
22574 echo "$as_me: failed program was
:" >&5
22575 sed 's/^/| /' conftest.$ac_ext >&5
22577 ac_header_compiler=no
22580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22581 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22582 echo "${ECHO_T}$ac_header_compiler" >&6; }
22584 # Is the header present?
22585 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22586 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 #include <netinet/in.h>
22595 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22607 (exit $ac_status); } >/dev/null && {
22608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22611 ac_header_preproc=yes
22613 echo "$as_me: failed program was
:" >&5
22614 sed 's/^/| /' conftest.$ac_ext >&5
22616 ac_header_preproc=no
22619 rm -f conftest.err conftest.$ac_ext
22620 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22621 echo "${ECHO_T}$ac_header_preproc" >&6; }
22623 # So? What about this header?
22624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22626 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22627 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22628 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22629 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22630 ac_header_preproc=yes
22633 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22634 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22635 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22636 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22637 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22638 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22639 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22640 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22641 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22642 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22643 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22644 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22648 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22649 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22650 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22651 echo $ECHO_N "(cached
) $ECHO_C" >&6
22653 ac_cv_header_netinet_in_h=$ac_header_preproc
22655 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22656 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22659 if test $ac_cv_header_netinet_in_h = yes; then
22667 if test $ok_so_far = yes; then
22668 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22669 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22670 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22671 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22672 echo $ECHO_N "(cached
) $ECHO_C" >&6
22674 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22675 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22677 # Is the header compilable?
22678 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22679 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22680 cat >conftest.$ac_ext <<_ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22687 #include <arpa/inet.h>
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22698 grep -v '^ *+' conftest.er1 >conftest.err
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_header_compiler=yes
22708 echo "$as_me: failed program was
:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22711 ac_header_compiler=no
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22716 echo "${ECHO_T}$ac_header_compiler" >&6; }
22718 # Is the header present?
22719 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22720 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 #include <arpa/inet.h>
22729 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22737 grep -v '^ *+' conftest.er1 >conftest.err
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22741 (exit $ac_status); } >/dev/null && {
22742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22745 ac_header_preproc=yes
22747 echo "$as_me: failed program was
:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22750 ac_header_preproc=no
22753 rm -f conftest.err conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22755 echo "${ECHO_T}$ac_header_preproc" >&6; }
22757 # So? What about this header?
22758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22760 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22761 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22762 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22763 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22764 ac_header_preproc=yes
22767 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22768 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22769 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22770 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22772 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22773 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22774 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22775 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22776 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22777 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22778 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22782 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22783 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22784 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22785 echo $ECHO_N "(cached
) $ECHO_C" >&6
22787 ac_cv_header_arpa_inet_h=$ac_header_preproc
22789 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22790 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22793 if test $ac_cv_header_arpa_inet_h = yes; then
22801 if test $ok_so_far = yes; then
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_INET_SOCKETS 1
22810 for ac_header in sys/ioctl.h
22812 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22813 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22814 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22815 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22816 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22817 echo $ECHO_N "(cached
) $ECHO_C" >&6
22819 ac_res=`eval echo '${'$as_ac_Header'}'`
22820 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22821 echo "${ECHO_T}$ac_res" >&6; }
22823 # Is the header compilable?
22824 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22825 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 $ac_includes_default
22833 #include <$ac_header>
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22852 ac_header_compiler=yes
22854 echo "$as_me: failed program was
:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_header_compiler=no
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22862 echo "${ECHO_T}$ac_header_compiler" >&6; }
22864 # Is the header present?
22865 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22866 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22867 cat >conftest.$ac_ext <<_ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 #include <$ac_header>
22875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22887 (exit $ac_status); } >/dev/null && {
22888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22891 ac_header_preproc=yes
22893 echo "$as_me: failed program was
:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_header_preproc=no
22899 rm -f conftest.err conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22901 echo "${ECHO_T}$ac_header_preproc" >&6; }
22903 # So? What about this header?
22904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22906 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22907 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22908 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22910 ac_header_preproc=yes
22913 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22914 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22915 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22916 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22917 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22918 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22919 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22920 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22921 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22923 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22924 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22928 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22929 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22930 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22931 echo $ECHO_N "(cached
) $ECHO_C" >&6
22933 eval "$as_ac_Header=\
$ac_header_preproc"
22935 ac_res=`eval echo '${'$as_ac_Header'}'`
22936 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22937 echo "${ECHO_T}$ac_res" >&6; }
22940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22941 cat >>confdefs.h <<_ACEOF
22942 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22950 if test -f /usr/lpp/X11/bin/smt.exp; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_AIX_SMT_EXP 1
22958 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22959 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22960 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22961 { echo "$as_me:$LINENO: result
: yes" >&5
22962 echo "${ECHO_T}yes" >&6; }
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_DEV_PTMX 1
22969 { echo "$as_me:$LINENO: result
: no
" >&5
22970 echo "${ECHO_T}no
" >&6; }
22973 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22974 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22975 if test "${ac_cv_type_pid_t+set}" = set; then
22976 echo $ECHO_N "(cached
) $ECHO_C" >&6
22978 cat >conftest.$ac_ext <<_ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22985 typedef pid_t ac__type_new_;
22989 if ((ac__type_new_ *) 0)
22991 if (sizeof (ac__type_new_))
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23006 grep -v '^ *+' conftest.er1 >conftest.err
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_type_pid_t=yes
23016 echo "$as_me: failed program was
:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 ac_cv_type_pid_t=no
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23026 if test $ac_cv_type_pid_t = yes; then
23030 cat >>confdefs.h <<_ACEOF
23037 for ac_header in vfork.h
23039 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23040 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23041 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23042 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23044 echo $ECHO_N "(cached
) $ECHO_C" >&6
23046 ac_res=`eval echo '${'$as_ac_Header'}'`
23047 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23048 echo "${ECHO_T}$ac_res" >&6; }
23050 # Is the header compilable?
23051 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23052 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23053 cat >conftest.$ac_ext <<_ACEOF
23056 cat confdefs.h >>conftest.$ac_ext
23057 cat >>conftest.$ac_ext <<_ACEOF
23058 /* end confdefs.h. */
23059 $ac_includes_default
23060 #include <$ac_header>
23062 rm -f conftest.$ac_objext
23063 if { (ac_try="$ac_compile"
23064 case "(($ac_try" in
23065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23066 *) ac_try_echo=$ac_try;;
23068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23069 (eval "$ac_compile") 2>conftest.er1
23071 grep -v '^ *+' conftest.er1 >conftest.err
23073 cat conftest.err >&5
23074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23075 (exit $ac_status); } && {
23076 test -z "$ac_c_werror_flag" ||
23077 test ! -s conftest.err
23078 } && test -s conftest.$ac_objext; then
23079 ac_header_compiler=yes
23081 echo "$as_me: failed program was
:" >&5
23082 sed 's/^/| /' conftest.$ac_ext >&5
23084 ac_header_compiler=no
23087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23088 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23089 echo "${ECHO_T}$ac_header_compiler" >&6; }
23091 # Is the header present?
23092 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23093 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23094 cat >conftest.$ac_ext <<_ACEOF
23097 cat confdefs.h >>conftest.$ac_ext
23098 cat >>conftest.$ac_ext <<_ACEOF
23099 /* end confdefs.h. */
23100 #include <$ac_header>
23102 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23103 case "(($ac_try" in
23104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23105 *) ac_try_echo=$ac_try;;
23107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23108 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23110 grep -v '^ *+' conftest.er1 >conftest.err
23112 cat conftest.err >&5
23113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23114 (exit $ac_status); } >/dev/null && {
23115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23116 test ! -s conftest.err
23118 ac_header_preproc=yes
23120 echo "$as_me: failed program was
:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23123 ac_header_preproc=no
23126 rm -f conftest.err conftest.$ac_ext
23127 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23128 echo "${ECHO_T}$ac_header_preproc" >&6; }
23130 # So? What about this header?
23131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23133 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23134 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23135 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23137 ac_header_preproc=yes
23140 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23141 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23142 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23143 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23144 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23145 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23146 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23147 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23148 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23150 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23151 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23155 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23156 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23157 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23158 echo $ECHO_N "(cached
) $ECHO_C" >&6
23160 eval "$as_ac_Header=\
$ac_header_preproc"
23162 ac_res=`eval echo '${'$as_ac_Header'}'`
23163 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23164 echo "${ECHO_T}$ac_res" >&6; }
23167 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23168 cat >>confdefs.h <<_ACEOF
23169 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23178 for ac_func in fork vfork
23180 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23181 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23182 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23183 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23184 echo $ECHO_N "(cached
) $ECHO_C" >&6
23186 cat >conftest.$ac_ext <<_ACEOF
23189 cat confdefs.h >>conftest.$ac_ext
23190 cat >>conftest.$ac_ext <<_ACEOF
23191 /* end confdefs.h. */
23192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23194 #define $ac_func innocuous_$ac_func
23196 /* System header to define __stub macros and hopefully few prototypes,
23197 which can conflict with char $ac_func (); below.
23198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23199 <limits.h> exists even on freestanding compilers. */
23202 # include <limits.h>
23204 # include <assert.h>
23209 /* Override any GCC internal prototype to avoid an error.
23210 Use char because int might match the return type of a GCC
23211 builtin and then its argument prototype would still apply. */
23216 /* The GNU C library defines this for functions which it implements
23217 to always fail with ENOSYS. Some functions are actually named
23218 something starting with __ and the normal name is an alias. */
23219 #if defined __stub_$ac_func || defined __stub___$ac_func
23226 return $ac_func ();
23231 rm -f conftest.$ac_objext conftest$ac_exeext
23232 if { (ac_try="$ac_link"
23233 case "(($ac_try" in
23234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23235 *) ac_try_echo=$ac_try;;
23237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23238 (eval "$ac_link") 2>conftest.er1
23240 grep -v '^ *+' conftest.er1 >conftest.err
23242 cat conftest.err >&5
23243 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23244 (exit $ac_status); } && {
23245 test -z "$ac_c_werror_flag" ||
23246 test ! -s conftest.err
23247 } && test -s conftest$ac_exeext &&
23248 $as_test_x conftest$ac_exeext; then
23249 eval "$as_ac_var=yes"
23251 echo "$as_me: failed program was
:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23254 eval "$as_ac_var=no
"
23257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23258 conftest$ac_exeext conftest.$ac_ext
23260 ac_res=`eval echo '${'$as_ac_var'}'`
23261 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23262 echo "${ECHO_T}$ac_res" >&6; }
23263 if test `eval echo '${'$as_ac_var'}'` = yes; then
23264 cat >>confdefs.h <<_ACEOF
23265 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23271 if test "x
$ac_cv_func_fork" = xyes; then
23272 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23273 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23274 if test "${ac_cv_func_fork_works+set}" = set; then
23275 echo $ECHO_N "(cached
) $ECHO_C" >&6
23277 if test "$cross_compiling" = yes; then
23278 ac_cv_func_fork_works=cross
23280 cat >conftest.$ac_ext <<_ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23286 $ac_includes_default
23291 /* By Ruediger Kuhlmann. */
23292 return fork () < 0;
23298 rm -f conftest$ac_exeext
23299 if { (ac_try="$ac_link"
23300 case "(($ac_try" in
23301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23302 *) ac_try_echo=$ac_try;;
23304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23305 (eval "$ac_link") 2>&5
23307 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23309 { (case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_try") 2>&5
23316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23317 (exit $ac_status); }; }; then
23318 ac_cv_func_fork_works=yes
23320 echo "$as_me: program exited with status
$ac_status" >&5
23321 echo "$as_me: failed program was
:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23324 ( exit $ac_status )
23325 ac_cv_func_fork_works=no
23327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23332 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23333 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23336 ac_cv_func_fork_works=$ac_cv_func_fork
23338 if test "x
$ac_cv_func_fork_works" = xcross; then
23340 *-*-amigaos* | *-*-msdosdjgpp*)
23341 # Override, as these systems have only a dummy fork() stub
23342 ac_cv_func_fork_works=no
23345 ac_cv_func_fork_works=yes
23348 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23349 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23351 ac_cv_func_vfork_works=$ac_cv_func_vfork
23352 if test "x
$ac_cv_func_vfork" = xyes; then
23353 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23354 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23355 if test "${ac_cv_func_vfork_works+set}" = set; then
23356 echo $ECHO_N "(cached
) $ECHO_C" >&6
23358 if test "$cross_compiling" = yes; then
23359 ac_cv_func_vfork_works=cross
23361 cat >conftest.$ac_ext <<_ACEOF
23364 cat confdefs.h >>conftest.$ac_ext
23365 cat >>conftest.$ac_ext <<_ACEOF
23366 /* end confdefs.h. */
23367 /* Thanks to Paul Eggert for this test. */
23368 $ac_includes_default
23369 #include <sys/wait.h>
23370 #ifdef HAVE_VFORK_H
23371 # include <vfork.h>
23373 /* On some sparc systems, changes by the child to local and incoming
23374 argument registers are propagated back to the parent. The compiler
23375 is told about this with #include <vfork.h>, but some compilers
23376 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23377 static variable whose address is put into a register that is
23378 clobbered by the vfork. */
23381 sparc_address_test (int arg)
23383 sparc_address_test (arg) int arg;
23386 static pid_t child;
23404 pid_t parent = getpid ();
23407 sparc_address_test (0);
23412 /* Here is another test for sparc vfork register problems. This
23413 test uses lots of local variables, at least as many local
23414 variables as main has allocated so far including compiler
23415 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23416 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23417 reuse the register of parent for one of the local variables,
23418 since it will think that parent can't possibly be used any more
23419 in this routine. Assigning to the local variable will thus
23420 munge parent in the parent process. */
23422 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23423 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23424 /* Convince the compiler that p..p7 are live; otherwise, it might
23425 use the same hardware register for all 8 local variables. */
23426 if (p != p1 || p != p2 || p != p3 || p != p4
23427 || p != p5 || p != p6 || p != p7)
23430 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23431 from child file descriptors. If the child closes a descriptor
23432 before it execs or exits, this munges the parent's descriptor
23433 as well. Test for this by closing stdout in the child. */
23434 _exit(close(fileno(stdout)) != 0);
23439 while (wait(&status) != child)
23442 /* Was there some problem with vforking? */
23445 /* Did the child fail? (This shouldn't happen.) */
23448 /* Did the vfork/compiler bug occur? */
23449 || parent != getpid()
23451 /* Did the file descriptor bug occur? */
23452 || fstat(fileno(stdout), &st) != 0
23457 rm -f conftest$ac_exeext
23458 if { (ac_try="$ac_link"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_link") 2>&5
23466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23468 { (case "(($ac_try" in
23469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23470 *) ac_try_echo=$ac_try;;
23472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23473 (eval "$ac_try") 2>&5
23475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23476 (exit $ac_status); }; }; then
23477 ac_cv_func_vfork_works=yes
23479 echo "$as_me: program exited with status
$ac_status" >&5
23480 echo "$as_me: failed program was
:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23483 ( exit $ac_status )
23484 ac_cv_func_vfork_works=no
23486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23491 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23492 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23495 if test "x
$ac_cv_func_fork_works" = xcross; then
23496 ac_cv_func_vfork_works=$ac_cv_func_vfork
23497 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23498 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23501 if test "x
$ac_cv_func_vfork_works" = xyes; then
23503 cat >>confdefs.h <<\_ACEOF
23504 #define HAVE_WORKING_VFORK 1
23509 cat >>confdefs.h <<\_ACEOF
23514 if test "x
$ac_cv_func_fork_works" = xyes; then
23516 cat >>confdefs.h <<\_ACEOF
23517 #define HAVE_WORKING_FORK 1
23523 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23524 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23525 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23526 echo $ECHO_N "(cached
) $ECHO_C" >&6
23528 cat >conftest.$ac_ext <<_ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h. */
23534 #include <langinfo.h>
23538 char* cs = nl_langinfo(CODESET);
23543 rm -f conftest.$ac_objext conftest$ac_exeext
23544 if { (ac_try="$ac_link"
23545 case "(($ac_try" in
23546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23547 *) ac_try_echo=$ac_try;;
23549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23550 (eval "$ac_link") 2>conftest.er1
23552 grep -v '^ *+' conftest.er1 >conftest.err
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23556 (exit $ac_status); } && {
23557 test -z "$ac_c_werror_flag" ||
23558 test ! -s conftest.err
23559 } && test -s conftest$ac_exeext &&
23560 $as_test_x conftest$ac_exeext; then
23561 emacs_cv_langinfo_codeset=yes
23563 echo "$as_me: failed program was
:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566 emacs_cv_langinfo_codeset=no
23569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23570 conftest$ac_exeext conftest.$ac_ext
23573 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23574 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23575 if test $emacs_cv_langinfo_codeset = yes; then
23577 cat >>confdefs.h <<\_ACEOF
23578 #define HAVE_LANGINFO_CODESET 1
23583 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23584 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23585 if test "${ac_cv_type_size_t+set}" = set; then
23586 echo $ECHO_N "(cached
) $ECHO_C" >&6
23588 cat >conftest.$ac_ext <<_ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23594 $ac_includes_default
23595 typedef size_t ac__type_new_;
23599 if ((ac__type_new_ *) 0)
23601 if (sizeof (ac__type_new_))
23607 rm -f conftest.$ac_objext
23608 if { (ac_try="$ac_compile"
23609 case "(($ac_try" in
23610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23611 *) ac_try_echo=$ac_try;;
23613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23614 (eval "$ac_compile") 2>conftest.er1
23616 grep -v '^ *+' conftest.er1 >conftest.err
23618 cat conftest.err >&5
23619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23620 (exit $ac_status); } && {
23621 test -z "$ac_c_werror_flag" ||
23622 test ! -s conftest.err
23623 } && test -s conftest.$ac_objext; then
23624 ac_cv_type_size_t=yes
23626 echo "$as_me: failed program was
:" >&5
23627 sed 's/^/| /' conftest.$ac_ext >&5
23629 ac_cv_type_size_t=no
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23635 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23636 if test $ac_cv_type_size_t = yes; then
23638 cat >>confdefs.h <<_ACEOF
23639 #define HAVE_SIZE_T 1
23646 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23647 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23648 if test "${ac_cv_type_mbstate_t+set}" = set; then
23649 echo $ECHO_N "(cached
) $ECHO_C" >&6
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 $ac_includes_default
23658 # include <wchar.h>
23662 mbstate_t x; return sizeof x;
23667 rm -f conftest.$ac_objext
23668 if { (ac_try="$ac_compile"
23669 case "(($ac_try" in
23670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23671 *) ac_try_echo=$ac_try;;
23673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23674 (eval "$ac_compile") 2>conftest.er1
23676 grep -v '^ *+' conftest.er1 >conftest.err
23678 cat conftest.err >&5
23679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest.$ac_objext; then
23684 ac_cv_type_mbstate_t=yes
23686 echo "$as_me: failed program was
:" >&5
23687 sed 's/^/| /' conftest.$ac_ext >&5
23689 ac_cv_type_mbstate_t=no
23692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23695 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23696 if test $ac_cv_type_mbstate_t = yes; then
23698 cat >>confdefs.h <<\_ACEOF
23699 #define HAVE_MBSTATE_T 1
23704 cat >>confdefs.h <<\_ACEOF
23705 #define mbstate_t int
23710 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23711 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23712 if test "${emacs_cv_c_restrict+set}" = set; then
23713 echo $ECHO_N "(cached
) $ECHO_C" >&6
23715 cat >conftest.$ac_ext <<_ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23721 void fred (int *restrict x);
23730 rm -f conftest.$ac_objext
23731 if { (ac_try="$ac_compile"
23732 case "(($ac_try" in
23733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23734 *) ac_try_echo=$ac_try;;
23736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23737 (eval "$ac_compile") 2>conftest.er1
23739 grep -v '^ *+' conftest.er1 >conftest.err
23741 cat conftest.err >&5
23742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23743 (exit $ac_status); } && {
23744 test -z "$ac_c_werror_flag" ||
23745 test ! -s conftest.err
23746 } && test -s conftest.$ac_objext; then
23747 emacs_cv_c_restrict=yes
23749 echo "$as_me: failed program was
:" >&5
23750 sed 's/^/| /' conftest.$ac_ext >&5
23752 cat >conftest.$ac_ext <<_ACEOF
23755 cat confdefs.h >>conftest.$ac_ext
23756 cat >>conftest.$ac_ext <<_ACEOF
23757 /* end confdefs.h. */
23758 void fred (int *__restrict x);
23767 rm -f conftest.$ac_objext
23768 if { (ac_try="$ac_compile"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_compile") 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23780 (exit $ac_status); } && {
23781 test -z "$ac_c_werror_flag" ||
23782 test ! -s conftest.err
23783 } && test -s conftest.$ac_objext; then
23784 emacs_cv_c_restrict=__restrict
23786 echo "$as_me: failed program was
:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 emacs_cv_c_restrict=no
23792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23797 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23798 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23799 case "$emacs_cv_c_restrict" in
23800 yes) emacs_restrict=restrict;;
23801 no) emacs_restrict="";;
23802 *) emacs_restrict="$emacs_cv_c_restrict";;
23804 if test "$emacs_restrict" != __restrict; then
23806 cat >>confdefs.h <<_ACEOF
23807 #define __restrict $emacs_restrict
23812 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23813 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23814 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23815 echo $ECHO_N "(cached
) $ECHO_C" >&6
23817 cat >conftest.$ac_ext <<_ACEOF
23820 cat confdefs.h >>conftest.$ac_ext
23821 cat >>conftest.$ac_ext <<_ACEOF
23822 /* end confdefs.h. */
23823 void fred (int x[__restrict]);
23832 rm -f conftest.$ac_objext
23833 if { (ac_try="$ac_compile"
23834 case "(($ac_try" in
23835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23836 *) ac_try_echo=$ac_try;;
23838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23839 (eval "$ac_compile") 2>conftest.er1
23841 grep -v '^ *+' conftest.er1 >conftest.err
23843 cat conftest.err >&5
23844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23845 (exit $ac_status); } && {
23846 test -z "$ac_c_werror_flag" ||
23847 test ! -s conftest.err
23848 } && test -s conftest.$ac_objext; then
23849 emacs_cv_c_restrict_arr=yes
23851 echo "$as_me: failed program was
:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23854 emacs_cv_c_restrict_arr=no
23857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23859 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23860 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23861 if test "$emacs_cv_c_restrict_arr" = yes; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define __restrict_arr __restrict
23871 # Set up the CFLAGS for real compilation, so we can substitute it.
23872 CFLAGS="$REAL_CFLAGS"
23873 CPPFLAGS="$REAL_CPPFLAGS"
23875 #### Find out which version of Emacs this is.
23876 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23877 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23878 if test x"${version}" = x; then
23879 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23880 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23881 { (exit 1); exit 1; }; }
23884 ### Specify what sort of things we'll be editing into Makefile and config.h.
23885 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23925 cat >>confdefs.h <<_ACEOF
23926 #define EMACS_CONFIGURATION "${canonical}"
23930 cat >>confdefs.h <<_ACEOF
23931 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23935 cat >>confdefs.h <<_ACEOF
23936 #define config_machfile "${machfile}"
23940 cat >>confdefs.h <<_ACEOF
23941 #define config_opsysfile "${opsysfile}"
23945 cat >>confdefs.h <<_ACEOF
23946 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23950 cat >>confdefs.h <<_ACEOF
23951 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23955 cat >>confdefs.h <<_ACEOF
23956 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23960 cat >>confdefs.h <<_ACEOF
23961 #define UNEXEC_SRC ${UNEXEC_SRC}
23965 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_X_WINDOWS 1
23972 if test "${USE_X_TOOLKIT}" != "none
" ; then
23974 cat >>confdefs.h <<\_ACEOF
23975 #define USE_X_TOOLKIT 1
23978 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
23980 cat >>confdefs.h <<\_ACEOF
23981 #define USE_LUCID 1
23984 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
23986 cat >>confdefs.h <<\_ACEOF
23987 #define USE_MOTIF 1
23992 if test "${HAVE_X11}" = "yes" ; then
23994 cat >>confdefs.h <<\_ACEOF
23999 if test "${HAVE_MENUS}" = "yes" ; then
24001 cat >>confdefs.h <<\_ACEOF
24002 #define HAVE_MENUS 1
24006 if test "${GNU_MALLOC}" = "yes" ; then
24008 cat >>confdefs.h <<\_ACEOF
24009 #define GNU_MALLOC 1
24013 if test "${REL_ALLOC}" = "yes" ; then
24015 cat >>confdefs.h <<\_ACEOF
24016 #define REL_ALLOC 1
24026 #### Report on what we decided to do.
24027 #### Report GTK as a toolkit, even if it doesn't use Xt.
24028 #### It makes printing result more understandable as using GTK sets
24029 #### toolkit_scroll_bars to yes by default.
24030 if test "${HAVE_GTK}" = "yes"; then
24035 Configured
for \
`${canonical}'.
24037 Where should the build process find the source code? ${srcdir}
24038 What operating system and machine description files should Emacs use?
24039 \`${opsysfile}' and \`${machfile}'
24040 What compiler should emacs be built with?
${CC} ${CFLAGS}
24041 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24042 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24043 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24044 What window system should Emacs use?
${window_system}
24045 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24047 if test -n "${x_includes}"; then
24048 echo " Where
do we
find X Windows header files?
${x_includes}"
24050 echo " Where
do we
find X Windows header files? Standard
dirs"
24052 if test -n "${x_libraries}"; then
24053 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24055 echo " Where
do we
find X Windows libraries? Standard
dirs"
24058 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24059 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24060 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24061 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24062 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24063 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24064 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24065 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24066 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24068 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24069 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24070 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24071 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24073 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24076 if test $USE_XASSERTS = yes; then
24077 echo " Compiling with asserts turned on.
"
24078 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24083 if test "$USE_X_TOOLKIT" = GTK; then
24084 case "$canonical" in
24086 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24087 will probably get a crash on startup. If this happens
, please use another
24088 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24093 if test "$HAVE_NS" = "yes"; then
24095 echo "You must run
\"make install\" in order to
test the built application.
24096 The installed application will go to nextstep
/Emacs.app and can be
24097 run or moved from there.
"
24098 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24099 echo "The application will be fully self-contained.
"
24101 echo "The lisp resources
for the application will be installed under
${prefix}.
24102 You may need to run
\"make install\" with sudo. The application will fail
24103 to run
if these resources are not installed.
"
24108 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24109 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24114 # Remove any trailing slashes in these variables.
24115 test "${prefix}" != NONE &&
24116 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24117 test "${exec_prefix}" != NONE &&
24118 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24120 # Now get this: Some word that is part of the ${srcdir} directory name
24121 # or the ${configuration} value might, just might, happen to be an
24122 # identifier like `sun4' or `i386' or something, and be predefined by
24123 # the C preprocessor to some helpful value like 1, or maybe the empty
24124 # string. Needless to say consequent macro substitutions are less
24125 # than conducive to the makefile finding the correct directory.
24126 cpp_undefs="`echo $srcdir $configuration $canonical |
24127 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24128 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24130 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24131 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24132 ## from Makefile.c can correctly provide the arg `-traditional' to the
24135 cat >conftest.$ac_ext <<_ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24143 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24144 $EGREP "yes..
yes" >/dev/null 2>&1; then
24145 CPP_NEED_TRADITIONAL=no
24147 CPP_NEED_TRADITIONAL=yes
24152 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
"
24154 ac_config_commands="$ac_config_commands default
"
24156 cat >confcache <<\_ACEOF
24157 # This file is a shell script that caches the results of configure
24158 # tests run on this system so they can be shared between configure
24159 # scripts and configure runs, see configure's option --config-cache.
24160 # It is not useful on other systems. If it contains results you don't
24161 # want to keep, you may remove or edit it.
24163 # config.status only pays attention to the cache file if you give it
24164 # the --recheck option to rerun configure.
24166 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24167 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24168 # following values.
24172 # The following way of writing the cache mishandles newlines in values,
24173 # but we know of no workaround that is simple, portable, and efficient.
24174 # So, we kill variables containing newlines.
24175 # Ultrix sh set writes to stderr and can't be redirected directly,
24176 # and sets the high bit in the cache file unless we assign to the vars.
24178 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24179 eval ac_val=\$$ac_var
24183 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24184 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24187 _ | IFS | as_nl) ;; #(
24188 *) $as_unset $ac_var ;;
24194 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24195 *${as_nl}ac_space=\ *)
24196 # `set' does not quote correctly, so add quotes (double-quote
24197 # substitution turns \\\\ into \\, and sed turns \\ into \).
24200 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24203 # `set' quotes correctly as required by POSIX, so do not add quotes.
24204 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24213 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24215 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24217 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24218 if test -w "$cache_file"; then
24219 test "x
$cache_file" != "x
/dev
/null
" &&
24220 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24221 echo "$as_me: updating cache
$cache_file" >&6;}
24222 cat confcache >$cache_file
24224 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24225 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24230 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24231 # Let make expand exec_prefix.
24232 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24234 DEFS=-DHAVE_CONFIG_H
24238 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24239 # 1. Remove the extension, and $U if already installed.
24240 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24241 ac_i=`echo "$ac_i" | sed "$ac_script"`
24242 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24243 # will be set to the directory where LIBOBJS objects are built.
24244 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24245 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24247 LIBOBJS=$ac_libobjs
24249 LTLIBOBJS=$ac_ltlibobjs
24253 : ${CONFIG_STATUS=./config.status}
24254 ac_clean_files_save=$ac_clean_files
24255 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24256 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24257 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24258 cat >$CONFIG_STATUS <<_ACEOF
24260 # Generated by $as_me.
24261 # Run this file to recreate the current configuration.
24262 # Compiler output produced by configure, useful for debugging
24263 # configure, is in config.log if it exists.
24266 ac_cs_recheck=false
24268 SHELL=\${CONFIG_SHELL-$SHELL}
24271 cat >>$CONFIG_STATUS <<\_ACEOF
24272 ## --------------------- ##
24273 ## M4sh Initialization. ##
24274 ## --------------------- ##
24276 # Be more Bourne compatible
24277 DUALCASE=1; export DUALCASE # for MKS sh
24278 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24281 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24282 # is contrary to our usage. Disable this feature.
24283 alias -g '${1+"$@"}'='"$@
"'
24284 setopt NO_GLOB_SUBST
24286 case `(set -o) 2>/dev/null` in
24287 *posix*) set -o posix ;;
24296 # Avoid depending upon Character Ranges.
24297 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24298 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24299 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24300 as_cr_digits='0123456789'
24301 as_cr_alnum=$as_cr_Letters$as_cr_digits
24303 # The user is always right.
24304 if test "${PATH_SEPARATOR+set}" != set; then
24305 echo "#! /bin/sh" >conf$$.sh
24306 echo "exit 0" >>conf$$.sh
24308 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24316 # Support unset when possible.
24317 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24325 # We need space, tab and new line, in precisely that order. Quoting is
24326 # there to prevent editors from complaining about space-tab.
24327 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24328 # splitting by setting IFS to empty value.)
24333 # Find who we are. Look in the path if we contain no directory separator.
24335 *[\\/]* ) as_myself
=$0 ;;
24336 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24337 for as_dir
in $PATH
24340 test -z "$as_dir" && as_dir
=.
24341 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24347 # We did not find ourselves, most probably we were run as `sh COMMAND'
24348 # in which case we are not to be found in the path.
24349 if test "x$as_myself" = x
; then
24352 if test ! -f "$as_myself"; then
24353 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24354 { (exit 1); exit 1; }
24357 # Work around bugs in pre-3.0 UWIN ksh.
24358 for as_var
in ENV MAIL MAILPATH
24359 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24367 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24368 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24369 LC_TELEPHONE LC_TIME
24371 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24372 eval $as_var=C
; export $as_var
24374 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24378 # Required to use basename.
24379 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24380 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24386 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24387 as_basename
=basename
24393 # Name of the executable.
24394 as_me
=`$as_basename -- "$0" ||
24395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24396 X"$0" : 'X\(//\)$' \| \
24397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24399 sed '/^.*\/\([^/][^/]*\)\/*$/{
24418 as_lineno_1
=$LINENO
24419 as_lineno_2
=$LINENO
24420 test "x$as_lineno_1" != "x$as_lineno_2" &&
24421 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24423 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24424 # uniformly replaced by the line number. The first 'sed' inserts a
24425 # line-number line after each line using $LINENO; the second 'sed'
24426 # does the real work. The second script uses 'N' to pair each
24427 # line-number line with the line containing $LINENO, and appends
24428 # trailing '-' during substitution so that $LINENO is not a special
24429 # case at line end.
24430 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24431 # scripts with optimization help from Paolo Bonzini. Blame Lee
24432 # E. McMahon (1931-1989) for sed's syntax. :-)
24444 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24447 ' >$as_me.lineno
&&
24448 chmod +x
"$as_me.lineno" ||
24449 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24450 { (exit 1); exit 1; }; }
24452 # Don't try to exec as it changes $[0], causing all sort of problems
24453 # (the dirname of $[0] is not the place where we might find the
24454 # original and so on. Autoconf is especially sensitive to this).
24455 .
"./$as_me.lineno"
24456 # Exit status is that of the last command.
24461 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24467 ECHO_C
= ECHO_N
= ECHO_T
=
24468 case `echo -n x` in
24470 case `echo 'x\c'` in
24471 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24478 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24479 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24485 rm -f conf$$ conf$$.exe conf$$.
file
24486 if test -d conf$$.dir
; then
24487 rm -f conf$$.dir
/conf$$.
file
24493 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24495 # ... but there are two gotchas:
24496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24498 # In both cases, we have to default to `cp -p'.
24499 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24501 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24506 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24507 rmdir conf$$.dir
2>/dev
/null
24509 if mkdir
-p .
2>/dev
/null
; then
24512 test -d .
/-p && rmdir .
/-p
24516 if test -x / >/dev
/null
2>&1; then
24517 as_test_x
='test -x'
24519 if ls -dL / >/dev
/null
2>&1; then
24526 if test -d "$1"; then
24532 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24533 ???[sx]*):;;*)false;;esac;fi
24537 as_executable_p
=$as_test_x
24539 # Sed expression to map a string onto a valid CPP name.
24540 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24542 # Sed expression to map a string onto a valid variable name.
24543 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24548 # Save the log message, to keep $[0] and so on meaningful, and to
24549 # report actual input values of CONFIG_FILES etc. instead of their
24550 # values after options handling.
24552 This file was extended by emacs $as_me 23.0.60, which was
24553 generated by GNU Autoconf 2.61. Invocation command line was
24555 CONFIG_FILES = $CONFIG_FILES
24556 CONFIG_HEADERS = $CONFIG_HEADERS
24557 CONFIG_LINKS = $CONFIG_LINKS
24558 CONFIG_COMMANDS = $CONFIG_COMMANDS
24561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24566 cat >>$CONFIG_STATUS <<_ACEOF
24567 # Files that config.status was made for.
24568 config_files="$ac_config_files"
24569 config_headers="$ac_config_headers"
24570 config_commands="$ac_config_commands"
24574 cat >>$CONFIG_STATUS <<\_ACEOF
24576 \`$as_me' instantiates files from templates according to the
24577 current configuration.
24579 Usage: $0 [OPTIONS] [FILE]...
24581 -h, --help print this help, then exit
24582 -V, --version print version number and configuration settings, then exit
24583 -q, --quiet do not print progress messages
24584 -d, --debug don't remove temporary files
24585 --recheck update $as_me by reconfiguring in the same conditions
24586 --file=FILE[:TEMPLATE]
24587 instantiate the configuration file FILE
24588 --header=FILE[:TEMPLATE]
24589 instantiate the configuration header FILE
24591 Configuration files:
24594 Configuration headers:
24597 Configuration commands:
24600 Report bugs to <bug-autoconf@gnu.org>."
24603 cat >>$CONFIG_STATUS <<_ACEOF
24605 emacs config.status 23.0.60
24606 configured by $0, generated by GNU Autoconf 2.61,
24607 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24609 Copyright (C) 2006 Free Software Foundation, Inc.
24610 This config.status script is free software; the Free Software Foundation
24611 gives unlimited permission to copy, distribute and modify it."
24618 cat >>$CONFIG_STATUS <<\_ACEOF
24619 # If no file are specified by the user, then we need to provide default
24620 # value. By we need to know if files were specified by the user.
24626 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24627 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24638 # Handling of the options.
24639 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24641 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24642 echo "$ac_cs_version"; exit ;;
24643 --debug |
--debu |
--deb |
--de |
--d |
-d )
24645 --file |
--fil |
--fi |
--f )
24647 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24648 ac_need_defaults
=false
;;
24649 --header |
--heade |
--head |
--hea )
24651 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24652 ac_need_defaults
=false
;;
24654 # Conflict between --help and --header
24655 { echo "$as_me: error: ambiguous option: $1
24656 Try \`$0 --help' for more information." >&2
24657 { (exit 1); exit 1; }; };;
24658 --help |
--hel |
-h )
24659 echo "$ac_cs_usage"; exit ;;
24660 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24661 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24664 # This is an error.
24665 -*) { echo "$as_me: error: unrecognized option: $1
24666 Try \`$0 --help' for more information." >&2
24667 { (exit 1); exit 1; }; } ;;
24669 *) ac_config_targets
="$ac_config_targets $1"
24670 ac_need_defaults
=false
;;
24676 ac_configure_extra_args
=
24678 if $ac_cs_silent; then
24680 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24684 cat >>$CONFIG_STATUS <<_ACEOF
24685 if \$ac_cs_recheck; then
24686 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24687 CONFIG_SHELL=$SHELL
24688 export CONFIG_SHELL
24689 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24693 cat >>$CONFIG_STATUS <<\_ACEOF
24697 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24698 ## Running $as_me. ##
24704 cat >>$CONFIG_STATUS <<_ACEOF
24708 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24712 cat >>$CONFIG_STATUS <<\_ACEOF
24714 # Handling of arguments.
24715 for ac_config_target
in $ac_config_targets
24717 case $ac_config_target in
24718 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24719 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24720 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24721 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24722 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24723 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24724 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24725 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24726 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24727 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24728 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24729 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24730 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24732 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24733 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24734 { (exit 1); exit 1; }; };;
24739 # If the user did not use the arguments to specify the items to instantiate,
24740 # then the envvar interface is used. Set only those that are not.
24741 # We use the long form for the default assignment because of an extremely
24742 # bizarre bug on SunOS 4.1.3.
24743 if $ac_need_defaults; then
24744 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24745 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24746 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24749 # Have a temporary directory for convenience. Make it in the build tree
24750 # simply because there is no reason against having it here, and in addition,
24751 # creating and moving files from /tmp can sometimes cause problems.
24752 # Hook for its removal unless debugging.
24753 # Note that there is a small window in which the directory will not be cleaned:
24754 # after its creation but before its name has been assigned to `$tmp'.
24758 trap 'exit_status=$?
24759 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24761 trap '{ (exit 1); exit 1; }' 1 2 13 15
24763 # Create a (secure) tmp directory for tmp files.
24766 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24767 test -n "$tmp" && test -d "$tmp"
24770 tmp
=.
/conf$$
-$RANDOM
24771 (umask 077 && mkdir
"$tmp")
24774 echo "$me: cannot create a temporary directory in ." >&2
24775 { (exit 1); exit 1; }
24779 # Set up the sed scripts for CONFIG_FILES section.
24782 # No need to generate the scripts if there are no CONFIG_FILES.
24783 # This happens for instance when ./config.status config.h
24784 if test -n "$CONFIG_FILES"; then
24791 for ac_last_try
in false false false false false
:; do
24792 cat >conf$
$subs.
sed <<_ACEOF
24793 SHELL!$SHELL$ac_delim
24794 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24795 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24796 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24797 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24798 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24799 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24800 exec_prefix!$exec_prefix$ac_delim
24801 prefix!$prefix$ac_delim
24802 program_transform_name!$program_transform_name$ac_delim
24803 bindir!$bindir$ac_delim
24804 sbindir!$sbindir$ac_delim
24805 libexecdir!$libexecdir$ac_delim
24806 datarootdir!$datarootdir$ac_delim
24807 datadir!$datadir$ac_delim
24808 sysconfdir!$sysconfdir$ac_delim
24809 sharedstatedir!$sharedstatedir$ac_delim
24810 localstatedir!$localstatedir$ac_delim
24811 includedir!$includedir$ac_delim
24812 oldincludedir!$oldincludedir$ac_delim
24813 docdir!$docdir$ac_delim
24814 infodir!$infodir$ac_delim
24815 htmldir!$htmldir$ac_delim
24816 dvidir!$dvidir$ac_delim
24817 pdfdir!$pdfdir$ac_delim
24818 psdir!$psdir$ac_delim
24819 libdir!$libdir$ac_delim
24820 localedir!$localedir$ac_delim
24821 mandir!$mandir$ac_delim
24822 DEFS!$DEFS$ac_delim
24823 ECHO_C!$ECHO_C$ac_delim
24824 ECHO_N!$ECHO_N$ac_delim
24825 ECHO_T!$ECHO_T$ac_delim
24826 LIBS!$LIBS$ac_delim
24827 build_alias!$build_alias$ac_delim
24828 host_alias!$host_alias$ac_delim
24829 target_alias!$target_alias$ac_delim
24830 MAINT!$MAINT$ac_delim
24831 build!$build$ac_delim
24832 build_cpu!$build_cpu$ac_delim
24833 build_vendor!$build_vendor$ac_delim
24834 build_os!$build_os$ac_delim
24835 host!$host$ac_delim
24836 host_cpu!$host_cpu$ac_delim
24837 host_vendor!$host_vendor$ac_delim
24838 host_os!$host_os$ac_delim
24840 CFLAGS!$CFLAGS$ac_delim
24841 LDFLAGS!$LDFLAGS$ac_delim
24842 CPPFLAGS!$CPPFLAGS$ac_delim
24843 ac_ct_CC!$ac_ct_CC$ac_delim
24844 EXEEXT!$EXEEXT$ac_delim
24845 OBJEXT!$OBJEXT$ac_delim
24847 GREP!$GREP$ac_delim
24848 EGREP!$EGREP$ac_delim
24849 LN_S!$LN_S$ac_delim
24850 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24851 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24852 INSTALL_DATA!$INSTALL_DATA$ac_delim
24853 RANLIB!$RANLIB$ac_delim
24854 INSTALL_INFO!$INSTALL_INFO$ac_delim
24855 GZIP_PROG!$GZIP_PROG$ac_delim
24856 MAKEINFO!$MAKEINFO$ac_delim
24857 LIBSOUND!$LIBSOUND$ac_delim
24858 PKG_CONFIG!$PKG_CONFIG$ac_delim
24859 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24860 ALSA_LIBS!$ALSA_LIBS$ac_delim
24861 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24862 SET_MAKE!$SET_MAKE$ac_delim
24863 XMKMF!$XMKMF$ac_delim
24864 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24865 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24866 RSVG_LIBS!$RSVG_LIBS$ac_delim
24867 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24868 GTK_LIBS!$GTK_LIBS$ac_delim
24869 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24870 DBUS_LIBS!$DBUS_LIBS$ac_delim
24871 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24872 XFT_LIBS!$XFT_LIBS$ac_delim
24873 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24874 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24875 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24876 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24877 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24878 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24879 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24880 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24881 ALLOCA!$ALLOCA$ac_delim
24882 liblockfile!$liblockfile$ac_delim
24883 LIBOBJS!$LIBOBJS$ac_delim
24884 NEED_SETGID!$NEED_SETGID$ac_delim
24885 KMEM_GROUP!$KMEM_GROUP$ac_delim
24886 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24887 GETOPT_H!$GETOPT_H$ac_delim
24888 GETOPTOBJS!$GETOPTOBJS$ac_delim
24889 version!$version$ac_delim
24892 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24894 elif $ac_last_try; then
24895 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24896 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24897 { (exit 1); exit 1; }; }
24899 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24903 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24904 if test -n "$ac_eof"; then
24905 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24906 ac_eof
=`expr $ac_eof + 1`
24909 cat >>$CONFIG_STATUS <<_ACEOF
24910 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24911 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24914 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24915 s/^/s,@/; s/!/@,|#_!!_#|/
24918 s/'"$ac_delim"'$/,g/; t
24920 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24921 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24922 rm -f conf$
$subs.
sed
24923 cat >>$CONFIG_STATUS <<_ACEOF
24929 for ac_last_try
in false false false false false
:; do
24930 cat >conf$
$subs.
sed <<_ACEOF
24931 configuration!$configuration$ac_delim
24932 canonical!$canonical$ac_delim
24933 srcdir!$srcdir$ac_delim
24934 lispdir!$lispdir$ac_delim
24935 locallisppath!$locallisppath$ac_delim
24936 lisppath!$lisppath$ac_delim
24937 x_default_search_path!$x_default_search_path$ac_delim
24938 etcdir!$etcdir$ac_delim
24939 archlibdir!$archlibdir$ac_delim
24940 bitmapdir!$bitmapdir$ac_delim
24941 gamedir!$gamedir$ac_delim
24942 gameuser!$gameuser$ac_delim
24943 c_switch_system!$c_switch_system$ac_delim
24944 c_switch_machine!$c_switch_machine$ac_delim
24945 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24946 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24947 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24948 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24949 machfile!$machfile$ac_delim
24950 opsysfile!$opsysfile$ac_delim
24951 ns_appdir!$ns_appdir$ac_delim
24952 ns_appbindir!$ns_appbindir$ac_delim
24953 ns_appresdir!$ns_appresdir$ac_delim
24954 ns_appsrc!$ns_appsrc$ac_delim
24955 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
24956 LTLIBOBJS!$LTLIBOBJS$ac_delim
24959 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
24961 elif $ac_last_try; then
24962 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24963 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24964 { (exit 1); exit 1; }; }
24966 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24970 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24971 if test -n "$ac_eof"; then
24972 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24973 ac_eof
=`expr $ac_eof + 1`
24976 cat >>$CONFIG_STATUS <<_ACEOF
24977 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24978 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24981 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24982 s/^/s,@/; s/!/@,|#_!!_#|/
24985 s/'"$ac_delim"'$/,g/; t
24987 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24988 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24989 rm -f conf$
$subs.
sed
24990 cat >>$CONFIG_STATUS <<_ACEOF
24997 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24998 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24999 # trailing colons and then remove the whole line if VPATH becomes empty
25000 # (actually we leave an empty line to preserve line numbers).
25001 if test "x$srcdir" = x.
; then
25002 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25003 s/:*\$(srcdir):*/:/
25004 s/:*\${srcdir}:*/:/
25006 s/^\([^=]*=[ ]*\):*/\1/
25012 cat >>$CONFIG_STATUS <<\_ACEOF
25013 fi # test -n "$CONFIG_FILES"
25016 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25019 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25021 case $ac_mode$ac_tag in
25023 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25024 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25025 { (exit 1); exit 1; }; };;
25026 :[FH
]-) ac_tag
=-:-;;
25027 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25044 -) ac_f
="$tmp/stdin";;
25045 *) # Look for the file first in the build tree, then in the source tree
25046 # (if the path is not absolute). The absolute path cannot be DOS-style,
25047 # because $ac_f cannot contain `:'.
25051 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25053 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25054 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25055 { (exit 1); exit 1; }; };;
25057 ac_file_inputs
="$ac_file_inputs $ac_f"
25060 # Let's still pretend it is `configure' which instantiates (i.e., don't
25061 # use $as_me), people would be surprised to read:
25062 # /* config.h. Generated by config.status. */
25063 configure_input
="Generated from "`IFS=:
25064 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25065 if test x
"$ac_file" != x-
; then
25066 configure_input
="$ac_file. $configure_input"
25067 { echo "$as_me:$LINENO: creating $ac_file" >&5
25068 echo "$as_me: creating $ac_file" >&6;}
25072 *:-:* |
*:-) cat >"$tmp/stdin";;
25077 ac_dir
=`$as_dirname -- "$ac_file" ||
25078 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25079 X"$ac_file" : 'X\(//\)[^/]' \| \
25080 X"$ac_file" : 'X\(//\)$' \| \
25081 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25083 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25087 /^X\(\/\/\)[^/].*/{
25102 -*) as_dir
=.
/$as_dir;;
25104 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25108 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25109 *) as_qdir
=$as_dir;;
25111 as_dirs
="'$as_qdir' $as_dirs"
25112 as_dir
=`$as_dirname -- "$as_dir" ||
25113 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25114 X"$as_dir" : 'X\(//\)[^/]' \| \
25115 X"$as_dir" : 'X\(//\)$' \| \
25116 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25122 /^X\(\/\/\)[^/].*/{
25135 test -d "$as_dir" && break
25137 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25138 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25139 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25140 { (exit 1); exit 1; }; }; }
25144 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25146 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25147 # A ".." for each directory in $ac_dir_suffix.
25148 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25149 case $ac_top_builddir_sub in
25150 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25151 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25154 ac_abs_top_builddir
=$ac_pwd
25155 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25156 # for backward compatibility:
25157 ac_top_builddir
=$ac_top_build_prefix
25160 .
) # We are building in place.
25162 ac_top_srcdir
=$ac_top_builddir_sub
25163 ac_abs_top_srcdir
=$ac_pwd ;;
25164 [\\/]* | ?
:[\\/]* ) # Absolute name.
25165 ac_srcdir
=$srcdir$ac_dir_suffix;
25166 ac_top_srcdir
=$srcdir
25167 ac_abs_top_srcdir
=$srcdir ;;
25168 *) # Relative name.
25169 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25170 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25171 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25173 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25183 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25184 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25188 cat >>$CONFIG_STATUS <<\_ACEOF
25189 # If the template does not know about datarootdir, expand it.
25190 # FIXME: This hack should be removed a few years after 2.60.
25191 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25193 case `sed -n '/datarootdir/ {
25202 ' $ac_file_inputs` in
25203 *datarootdir
*) ac_datarootdir_seen
=yes;;
25204 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25205 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25206 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25208 cat >>$CONFIG_STATUS <<_ACEOF
25209 ac_datarootdir_hack='
25210 s&@datadir@&$datadir&g
25211 s&@docdir@&$docdir&g
25212 s&@infodir@&$infodir&g
25213 s&@localedir@&$localedir&g
25214 s&@mandir@&$mandir&g
25215 s&\\\${datarootdir}&$datarootdir&g' ;;
25219 # Neutralize VPATH when `$srcdir' = `.'.
25220 # Shell code in configure.ac might set extrasub.
25221 # FIXME: do we really want to maintain this feature?
25222 cat >>$CONFIG_STATUS <<_ACEOF
25226 cat >>$CONFIG_STATUS <<\_ACEOF
25228 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25229 s
&@configure_input@
&$configure_input&;t t
25230 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25231 s
&@srcdir@
&$ac_srcdir&;t t
25232 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25233 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25234 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25235 s
&@builddir@
&$ac_builddir&;t t
25236 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25237 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25238 s
&@INSTALL@
&$ac_INSTALL&;t t
25239 $ac_datarootdir_hack
25240 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25243 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25245 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25246 which seems to be undefined. Please make sure it is defined." >&5
25247 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25248 which seems to be undefined. Please make sure it is defined." >&2;}
25252 -) cat "$tmp/out"; rm -f "$tmp/out";;
25253 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25262 # Transform confdefs.h into a sed script `conftest.defines', that
25263 # substitutes the proper values into config.h.in to produce config.h.
25264 rm -f conftest.defines conftest.
tail
25265 # First, append a space to every undef/define line, to ease matching.
25266 echo 's/$/ /' >conftest.defines
25267 # Then, protect against being on the right side of a sed subst, or in
25268 # an unquoted here document, in config.status. If some macros were
25269 # called several times there might be several #defines for the same
25270 # symbol, which is useless. But do not sort them, since the last
25271 # AC_DEFINE must be honored.
25272 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25273 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25274 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25275 # PARAMS is the parameter list in the macro definition--in most cases, it's
25276 # just an empty string.
25277 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25278 ac_dB
='\\)[ (].*,\\1define\\2'
25286 s/^[ ]*#[ ]*define[ ][ ]*//
25291 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25292 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25293 ' >>conftest.defines
25295 # Remove the space that was appended to ease matching.
25296 # Then replace #undef with comments. This is necessary, for
25297 # example, in the case of _POSIX_SOURCE, which is predefined and required
25298 # on some systems where configure will not decide to define it.
25299 # (The regexp can be short, since the line contains either #define or #undef.)
25301 s,^[ #]*u.*,/* & */,' >>conftest.defines
25303 # Break up conftest.defines:
25304 ac_max_sed_lines
=50
25306 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25307 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25308 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25310 ac_in
='$ac_file_inputs'
25311 ac_out
='"$tmp/out1"'
25312 ac_nxt
='"$tmp/out2"'
25316 # Write a here document:
25317 cat >>$CONFIG_STATUS <<_ACEOF
25318 # First, check the format of the line:
25319 cat >"\$tmp/defines.sed" <<\\CEOF
25320 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25321 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25325 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25327 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25328 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25329 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25330 grep . conftest.
tail >/dev
/null ||
break
25331 rm -f conftest.defines
25332 mv conftest.
tail conftest.defines
25334 rm -f conftest.defines conftest.
tail
25336 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25337 cat >>$CONFIG_STATUS <<\_ACEOF
25338 if test x
"$ac_file" != x-
; then
25339 echo "/* $configure_input */" >"$tmp/config.h"
25340 cat "$ac_result" >>"$tmp/config.h"
25341 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25342 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25343 echo "$as_me: $ac_file is unchanged" >&6;}
25346 mv "$tmp/config.h" $ac_file
25349 echo "/* $configure_input */"
25355 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25356 echo "$as_me: executing $ac_file commands" >&6;}
25361 case $ac_file$ac_mode in
25364 ### Make the necessary directories, if they don't exist.
25365 for dir
in etc lisp
; do
25366 test -d ${dir} || mkdir
${dir}
25369 # Build src/Makefile from ${srcdir}/src/Makefile.c
25370 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25371 # This must be done after src/config.h is built, since we rely on that file.
25373 echo creating src
/epaths.h
25374 ${MAKE-make} epaths-force
25376 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25377 # `..' to `. .' unless invoked with -traditional
25379 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25380 CPPFLAGS
="$CPPFLAGS -traditional"
25383 echo creating lib-src
/Makefile
25385 rm -f junk.c junk1.c junk2.c
25386 sed -e '/start of cpp stuff/q' \
25387 < Makefile.c
> junk1.c
25388 sed -e '1,/start of cpp stuff/d'\
25389 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25390 < Makefile.c
> junk.c
25391 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25392 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25393 cat junk1.c junk2.c
> Makefile.new
25394 rm -f junk.c junk1.c junk2.c
25395 chmod 444 Makefile.new
25396 mv -f Makefile.new Makefile
25399 echo creating src
/Makefile
25401 rm -f junk.c junk1.c junk2.c
25402 sed -e '/start of cpp stuff/q' \
25403 < Makefile.c
> junk1.c
25404 sed -e '1,/start of cpp stuff/d'\
25405 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25406 < Makefile.c
> junk.c
25407 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25408 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25409 cat junk1.c junk2.c
> Makefile.new
25410 rm -f junk.c junk1.c junk2.c
25411 chmod 444 Makefile.new
25412 mv -f Makefile.new Makefile
25415 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25416 echo creating src
/.gdbinit
25417 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25426 { (exit 0); exit 0; }
25428 chmod +x
$CONFIG_STATUS
25429 ac_clean_files
=$ac_clean_files_save
25432 # configure is writing to config.log, and then calls config.status.
25433 # config.status does its own redirection, appending to config.log.
25434 # Unfortunately, on DOS this fails, as config.log is still kept open
25435 # by configure, so config.status won't be able to write to it; its
25436 # output is simply discarded. So we exec the FD to /dev/null,
25437 # effectively closing config.log, so it can be properly (re)opened and
25438 # appended to by config.status. When coming back to configure, we
25439 # need to make the FD available again.
25440 if test "$no_create" != yes; then
25442 ac_config_status_args
=
25443 test "$silent" = yes &&
25444 ac_config_status_args
="$ac_config_status_args --quiet"
25446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25449 # would make configure fail if this is the last instruction.
25450 $ac_cs_success ||
{ (exit 1); exit 1; }