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
741 GNUSTEP_SYSTEM_HEADERS
742 GNUSTEP_SYSTEM_LIBRARIES
744 LIB_SRC_EXTRA_INSTALLABLES
747 ac_precious_vars
='build_alias
759 # Initialize some variables set by options.
761 ac_init_version
=false
762 # The variables have the same names as the options, with
763 # dashes changed to underlines.
771 program_transform_name
=s
,x
,x
,
779 # Installation directory options.
780 # These are left unexpanded so users can "make install exec_prefix=/foo"
781 # and all the variables that are supposed to be based on exec_prefix
782 # by default will actually change.
783 # Use braces instead of parens because sh, perl, etc. also accept them.
784 # (The list follows the same order as the GNU Coding Standards.)
785 bindir
='${exec_prefix}/bin'
786 sbindir
='${exec_prefix}/sbin'
787 libexecdir
='${exec_prefix}/libexec'
788 datarootdir
='${prefix}/share'
789 datadir
='${datarootdir}'
790 sysconfdir
='${prefix}/etc'
791 sharedstatedir
='${prefix}/com'
792 localstatedir
='${prefix}/var'
793 includedir
='${prefix}/include'
794 oldincludedir
='/usr/include'
795 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
796 infodir
='${datarootdir}/info'
801 libdir
='${exec_prefix}/lib'
802 localedir
='${datarootdir}/locale'
803 mandir
='${datarootdir}/man'
809 # If the previous option needs an argument, assign it.
810 if test -n "$ac_prev"; then
811 eval $ac_prev=\
$ac_option
817 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821 # Accept the important Cygnus configure options, so we can diagnose typos.
823 case $ac_dashdash$ac_option in
827 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
829 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
832 -build |
--build |
--buil |
--bui |
--bu)
833 ac_prev
=build_alias
;;
834 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
835 build_alias
=$ac_optarg ;;
837 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
838 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
839 ac_prev
=cache_file
;;
840 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
841 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
842 cache_file
=$ac_optarg ;;
845 cache_file
=config.cache
;;
847 -datadir |
--datadir |
--datadi |
--datad)
849 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
850 datadir
=$ac_optarg ;;
852 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
853 |
--dataroo |
--dataro |
--datar)
854 ac_prev
=datarootdir
;;
855 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
856 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
857 datarootdir
=$ac_optarg ;;
859 -disable-* |
--disable-*)
860 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_
$ac_feature=no
;;
868 -docdir |
--docdir |
--docdi |
--doc |
--do)
870 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
873 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
875 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
878 -enable-* |
--enable-*)
879 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
882 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
883 { (exit 1); exit 1; }; }
884 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
885 eval enable_
$ac_feature=\
$ac_optarg ;;
887 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
888 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
889 |
--exec |
--exe |
--ex)
890 ac_prev
=exec_prefix
;;
891 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
892 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
893 |
--exec=* |
--exe=* |
--ex=*)
894 exec_prefix
=$ac_optarg ;;
896 -gas |
--gas |
--ga |
--g)
897 # Obsolete; use --with-gas.
900 -help |
--help |
--hel |
--he |
-h)
902 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
903 ac_init_help
=recursive
;;
904 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
905 ac_init_help
=short
;;
907 -host |
--host |
--hos |
--ho)
908 ac_prev
=host_alias
;;
909 -host=* |
--host=* |
--hos=* |
--ho=*)
910 host_alias
=$ac_optarg ;;
912 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
914 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
916 htmldir
=$ac_optarg ;;
918 -includedir |
--includedir |
--includedi |
--included |
--include \
919 |
--includ |
--inclu |
--incl |
--inc)
920 ac_prev
=includedir
;;
921 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
922 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
923 includedir
=$ac_optarg ;;
925 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
927 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
928 infodir
=$ac_optarg ;;
930 -libdir |
--libdir |
--libdi |
--libd)
932 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
935 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
936 |
--libexe |
--libex |
--libe)
937 ac_prev
=libexecdir
;;
938 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
939 |
--libexe=* |
--libex=* |
--libe=*)
940 libexecdir
=$ac_optarg ;;
942 -localedir |
--localedir |
--localedi |
--localed |
--locale)
944 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
945 localedir
=$ac_optarg ;;
947 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
948 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
949 ac_prev
=localstatedir
;;
950 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
951 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
952 localstatedir
=$ac_optarg ;;
954 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
956 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
960 # Obsolete; use --without-fp.
963 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
964 |
--no-cr |
--no-c |
-n)
967 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
968 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
971 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
972 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
973 |
--oldin |
--oldi |
--old |
--ol |
--o)
974 ac_prev
=oldincludedir
;;
975 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
976 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
977 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
978 oldincludedir
=$ac_optarg ;;
980 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
982 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
985 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
986 |
--program-pre |
--program-pr |
--program-p)
987 ac_prev
=program_prefix
;;
988 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
989 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
990 program_prefix
=$ac_optarg ;;
992 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
993 |
--program-suf |
--program-su |
--program-s)
994 ac_prev
=program_suffix
;;
995 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
996 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
997 program_suffix
=$ac_optarg ;;
999 -program-transform-name |
--program-transform-name \
1000 |
--program-transform-nam |
--program-transform-na \
1001 |
--program-transform-n |
--program-transform- \
1002 |
--program-transform |
--program-transfor \
1003 |
--program-transfo |
--program-transf \
1004 |
--program-trans |
--program-tran \
1005 |
--progr-tra |
--program-tr |
--program-t)
1006 ac_prev
=program_transform_name
;;
1007 -program-transform-name=* |
--program-transform-name=* \
1008 |
--program-transform-nam=* |
--program-transform-na=* \
1009 |
--program-transform-n=* |
--program-transform-=* \
1010 |
--program-transform=* |
--program-transfor=* \
1011 |
--program-transfo=* |
--program-transf=* \
1012 |
--program-trans=* |
--program-tran=* \
1013 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1014 program_transform_name
=$ac_optarg ;;
1016 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1018 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1019 pdfdir
=$ac_optarg ;;
1021 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1023 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1026 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1027 |
-silent |
--silent |
--silen |
--sile |
--sil)
1030 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1032 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1034 sbindir
=$ac_optarg ;;
1036 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1037 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1038 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1040 ac_prev
=sharedstatedir
;;
1041 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1042 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1043 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1045 sharedstatedir
=$ac_optarg ;;
1047 -site |
--site |
--sit)
1049 -site=* |
--site=* |
--sit=*)
1052 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1054 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1055 srcdir
=$ac_optarg ;;
1057 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1058 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1059 ac_prev
=sysconfdir
;;
1060 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1061 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1062 sysconfdir
=$ac_optarg ;;
1064 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1065 ac_prev
=target_alias
;;
1066 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1067 target_alias
=$ac_optarg ;;
1069 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1072 -version |
--version |
--versio |
--versi |
--vers |
-V)
1073 ac_init_version
=: ;;
1076 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1079 { echo "$as_me: error: invalid package name: $ac_package" >&2
1080 { (exit 1); exit 1; }; }
1081 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1082 eval with_
$ac_package=\
$ac_optarg ;;
1084 -without-* |
--without-*)
1085 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1088 { echo "$as_me: error: invalid package name: $ac_package" >&2
1089 { (exit 1); exit 1; }; }
1090 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1091 eval with_
$ac_package=no
;;
1094 # Obsolete; use --with-x.
1097 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1098 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1099 ac_prev
=x_includes
;;
1100 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1101 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1102 x_includes
=$ac_optarg ;;
1104 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1105 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1106 ac_prev
=x_libraries
;;
1107 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1108 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1109 x_libraries
=$ac_optarg ;;
1111 -*) { echo "$as_me: error: unrecognized option: $ac_option
1112 Try \`$0 --help' for more information." >&2
1113 { (exit 1); exit 1; }; }
1117 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1120 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1121 { (exit 1); exit 1; }; }
1122 eval $ac_envvar=\
$ac_optarg
1123 export $ac_envvar ;;
1126 # FIXME: should be removed in autoconf 3.0.
1127 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1128 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1129 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1130 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1136 if test -n "$ac_prev"; then
1137 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1138 { echo "$as_me: error: missing argument to $ac_option" >&2
1139 { (exit 1); exit 1; }; }
1142 # Be sure to have absolute directory names.
1143 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1144 datadir sysconfdir sharedstatedir localstatedir includedir \
1145 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1146 libdir localedir mandir
1148 eval ac_val
=\$
$ac_var
1150 [\\/$
]* | ?
:[\\/]* ) continue;;
1151 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1153 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1154 { (exit 1); exit 1; }; }
1157 # There might be people who depend on the old broken behavior: `$host'
1158 # used to hold the argument of --host etc.
1159 # FIXME: To remove some day.
1162 target
=$target_alias
1164 # FIXME: To remove some day.
1165 if test "x$host_alias" != x
; then
1166 if test "x$build_alias" = x
; then
1167 cross_compiling
=maybe
1168 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1169 If a cross compiler is detected then cross compile mode will be used." >&2
1170 elif test "x$build_alias" != "x$host_alias"; then
1176 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1178 test "$silent" = yes && exec 6>/dev
/null
1181 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1182 ac_ls_di
=`ls -di .` &&
1183 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1184 { echo "$as_me: error: Working directory cannot be determined" >&2
1185 { (exit 1); exit 1; }; }
1186 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1187 { echo "$as_me: error: pwd does not report name of working directory" >&2
1188 { (exit 1); exit 1; }; }
1191 # Find the source files, if location was not specified.
1192 if test -z "$srcdir"; then
1193 ac_srcdir_defaulted
=yes
1194 # Try the directory containing this script, then the parent directory.
1195 ac_confdir
=`$as_dirname -- "$0" ||
1196 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1197 X"$0" : 'X\(//\)[^/]' \| \
1198 X"$0" : 'X\(//\)$' \| \
1199 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1219 if test ! -r "$srcdir/$ac_unique_file"; then
1223 ac_srcdir_defaulted
=no
1225 if test ! -r "$srcdir/$ac_unique_file"; then
1226 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1227 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1228 { (exit 1); exit 1; }; }
1230 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1232 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1233 { (exit 1); exit 1; }; }
1235 # When building in place, set srcdir=.
1236 if test "$ac_abs_confdir" = "$ac_pwd"; then
1239 # Remove unnecessary trailing slashes from srcdir.
1240 # Double slashes in file names in object file debugging info
1241 # mess up M-x gdb in Emacs.
1243 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245 for ac_var
in $ac_precious_vars; do
1246 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1248 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1249 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1253 # Report the --help message.
1255 if test "$ac_init_help" = "long"; then
1256 # Omit some internal or obsolete options to make the list less imposing.
1257 # This message is too long to be a string in the A/UX 3.1 sh.
1259 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1261 Usage: $0 [OPTION]... [VAR=VALUE]...
1263 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1264 VAR=VALUE. See below for descriptions of some of the useful variables.
1266 Defaults for the options are specified in brackets.
1269 -h, --help display this help and exit
1270 --help=short display options specific to this package
1271 --help=recursive display the short help of all the included packages
1272 -V, --version display version information and exit
1273 -q, --quiet, --silent do not print \`checking...' messages
1274 --cache-file=FILE cache test results in FILE [disabled]
1275 -C, --config-cache alias for \`--cache-file=config.cache'
1276 -n, --no-create do not create output files
1277 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1279 Installation directories:
1280 --prefix=PREFIX install architecture-independent files in PREFIX
1281 [$ac_default_prefix]
1282 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1285 By default, \`make install' will install all the files in
1286 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1287 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1288 for instance \`--prefix=\$HOME'.
1290 For better control, use the options below.
1292 Fine tuning of the installation directories:
1293 --bindir=DIR user executables [EPREFIX/bin]
1294 --sbindir=DIR system admin executables [EPREFIX/sbin]
1295 --libexecdir=DIR program executables [EPREFIX/libexec]
1296 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1297 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1298 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1299 --libdir=DIR object code libraries [EPREFIX/lib]
1300 --includedir=DIR C header files [PREFIX/include]
1301 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1302 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1303 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1304 --infodir=DIR info documentation [DATAROOTDIR/info]
1305 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1306 --mandir=DIR man documentation [DATAROOTDIR/man]
1307 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1308 --htmldir=DIR html documentation [DOCDIR]
1309 --dvidir=DIR dvi documentation [DOCDIR]
1310 --pdfdir=DIR pdf documentation [DOCDIR]
1311 --psdir=DIR ps documentation [DOCDIR]
1317 --program-prefix=PREFIX prepend PREFIX to installed program names
1318 --program-suffix=SUFFIX append SUFFIX to installed program names
1319 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1322 --x-includes=DIR X include files are
in DIR
1323 --x-libraries=DIR X library files are
in DIR
1326 --build=BUILD configure
for building on BUILD
[guessed
]
1327 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1331 if test -n "$ac_init_help"; then
1332 case $ac_init_help in
1333 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1338 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1339 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1340 --enable-cocoa-experimental-ctrl-g
1341 enable experimental improved ctrl-g recognition
1342 --disable-ns-self-contained
1343 disable self contained build under NeXTstep
1344 --enable-asserts compile code with asserts enabled
1345 --enable-maintainer-mode
1346 enable make rules and dependencies not useful
(and
1347 sometimes confusing
) to the casual installer
1348 --enable-locallisppath=PATH
1349 directories Emacs should search
for lisp files
1350 specific to this site
1351 --disable-largefile omit support
for large files
1354 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1355 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1356 --without-pop don
't support POP mail retrieval with movemail
1357 --with-kerberos support Kerberos-authenticated POP
1358 --with-kerberos5 support Kerberos version 5 authenticated POP
1359 --with-hesiod support Hesiod to get the POP server host
1360 --without-sound don't compile with sound support
1361 --without-sync-input Process async input synchronously
1362 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1364 --without-xpm don
't compile with XPM image support
1365 --without-jpeg don't compile with JPEG image support
1366 --without-tiff don
't compile with TIFF image support
1367 --without-gif don't compile with GIF image support
1368 --without-png don
't compile with PNG image support
1369 --without-rsvg don't compile with SVG image support
1370 --without-freetype don
't use Freetype for local font support
1371 --without-xft don't use XFT
for anti aliased fonts
1372 --without-libotf don
't use libotf for OpenType font support
1373 --without-m17n-flt don't use m17n-flt
for text shaping
1374 --without-toolkit-scroll-bars
1375 don
't use Motif or Xaw3d scroll bars
1376 --without-xaw3d don't use Xaw3d
1377 --without-xim don
't use X11 XIM
1378 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1379 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1381 --without-dbus don
't compile with D-Bus support
1382 --without-makeinfo don't require makeinfo
for building manuals
1384 --with-pkg-config-prog=PATH
1385 Path to pkg-config
for finding GTK and librsvg
1386 --with-x use the X Window System
1388 Some influential environment variables
:
1389 CC C compiler
command
1390 CFLAGS C compiler flags
1391 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1392 nonstandard directory
<lib dir
>
1393 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1394 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1395 you have headers
in a nonstandard directory
<include dir
>
1397 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1399 Use these variables to override the choices made by
`configure' or to help
1400 it to find libraries and programs with nonstandard names/locations.
1406 if test "$ac_init_help" = "recursive"; then
1407 # If there are subdirs, report their specific --help.
1408 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1409 test -d "$ac_dir" || continue
1413 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1415 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1416 # A ".." for each directory in $ac_dir_suffix.
1417 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1418 case $ac_top_builddir_sub in
1419 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1423 ac_abs_top_builddir=$ac_pwd
1424 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1425 # for backward compatibility:
1426 ac_top_builddir=$ac_top_build_prefix
1429 .) # We are building in place.
1431 ac_top_srcdir=$ac_top_builddir_sub
1432 ac_abs_top_srcdir=$ac_pwd ;;
1433 [\\/]* | ?:[\\/]* ) # Absolute name.
1434 ac_srcdir=$srcdir$ac_dir_suffix;
1435 ac_top_srcdir=$srcdir
1436 ac_abs_top_srcdir=$srcdir ;;
1438 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1439 ac_top_srcdir=$ac_top_build_prefix$srcdir
1440 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1442 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1444 cd "$ac_dir" || { ac_status=$?; continue; }
1445 # Check for guested configure.
1446 if test -f "$ac_srcdir/configure.gnu"; then
1448 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1449 elif test -f "$ac_srcdir/configure"; then
1451 $SHELL "$ac_srcdir/configure" --help=recursive
1453 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1455 cd "$ac_pwd" || { ac_status=$?; break; }
1459 test -n "$ac_init_help" && exit $ac_status
1460 if $ac_init_version; then
1462 emacs configure 23.0.60
1463 generated by GNU Autoconf 2.61
1465 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1466 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1467 This configure script is free software; the Free Software Foundation
1468 gives unlimited permission to copy, distribute and modify it.
1472 cat >config.log <<_ACEOF
1473 This file contains any messages produced by compilers while
1474 running configure, to aid debugging if configure makes a mistake.
1476 It was created by emacs $as_me 23.0.60, which was
1477 generated by GNU Autoconf 2.61. Invocation command line was
1489 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1490 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1491 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1492 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1493 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1496 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1498 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1499 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1500 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1501 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1502 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1503 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1504 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512 test -z "$as_dir" && as_dir=.
1513 echo "PATH: $as_dir"
1529 # Keep a trace of the command line.
1530 # Strip out --no-create and --no-recursion so they do not pile up.
1531 # Strip out --silent because we don't want to record it for future runs.
1532 # Also quote any args containing shell meta-characters.
1533 # Make two passes to allow for proper duplicate-argument suppression.
1537 ac_must_keep_next=false
1543 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1545 | -silent | --silent | --silen | --sile | --sil)
1548 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1551 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1553 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1554 if test $ac_must_keep_next = true; then
1555 ac_must_keep_next=false # Got value, back to normal.
1558 *=* | --config-cache | -C | -disable-* | --disable-* \
1559 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1560 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1561 | -with-* | --with-* | -without-* | --without-* | --x)
1562 case "$ac_configure_args0 " in
1563 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1566 -* ) ac_must_keep_next=true ;;
1569 ac_configure_args="$ac_configure_args '$ac_arg'"
1574 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1575 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1577 # When interrupted or exit'd, cleanup temporary files, and complete
1578 # config.log. We remove comments because anyway the quotes in there
1579 # would cause problems or look ugly.
1580 # WARNING: Use '\'' to represent an apostrophe within the trap.
1581 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1582 trap 'exit_status=$?
1583 # Save into config.log some information that might help in debugging.
1588 ## ---------------- ##
1589 ## Cache variables. ##
1590 ## ---------------- ##
1593 # The following way of writing the cache mishandles newlines in values,
1595 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1596 eval ac_val=\$$ac_var
1600 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1601 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1604 _ | IFS | as_nl) ;; #(
1605 *) $as_unset $ac_var ;;
1610 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1611 *${as_nl}ac_space=\ *)
1613 "s/'\''/'\''\\\\'\'''\''/g;
1614 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1625 ## ----------------- ##
1626 ## Output variables. ##
1627 ## ----------------- ##
1630 for ac_var in $ac_subst_vars
1632 eval ac_val=\$$ac_var
1634 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1636 echo "$ac_var='\''$ac_val'\''"
1640 if test -n "$ac_subst_files"; then
1642 ## ------------------- ##
1643 ## File substitutions. ##
1644 ## ------------------- ##
1647 for ac_var in $ac_subst_files
1649 eval ac_val=\$$ac_var
1651 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 echo "$ac_var='\''$ac_val'\''"
1658 if test -s confdefs.h; then
1668 test "$ac_signal" != 0 &&
1669 echo "$as_me: caught signal $ac_signal"
1670 echo "$as_me: exit $exit_status"
1672 rm -f core *.core core.conftest.* &&
1673 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1676 for ac_signal in 1 2 13 15; do
1677 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1681 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1682 rm -f -r conftest* confdefs.h
1684 # Predefined preprocessor variables.
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_NAME "$PACKAGE_NAME"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_STRING "$PACKAGE_STRING"
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1711 # Let the site file select an alternate cache file if it wants to.
1712 # Prefer explicitly selected file to automatically selected ones.
1713 if test -n "$CONFIG_SITE"; then
1714 set x "$CONFIG_SITE"
1715 elif test "x$prefix" != xNONE; then
1716 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1718 set x "$ac_default_prefix/share/config.site" \
1719 "$ac_default_prefix/etc/config.site"
1724 if test -r "$ac_site_file"; then
1725 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1726 echo "$as_me: loading site script $ac_site_file" >&6;}
1727 sed 's/^/| /' "$ac_site_file" >&5
1732 if test -r "$cache_file"; then
1733 # Some versions of bash will fail to source /dev/null (special
1734 # files actually), so we avoid doing that.
1735 if test -f "$cache_file"; then
1736 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1737 echo "$as_me: loading cache $cache_file" >&6;}
1739 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1740 *) . "./$cache_file";;
1744 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1745 echo "$as_me: creating cache $cache_file" >&6;}
1749 ac_header_list="$ac_header_list sys/time.h"
1750 ac_header_list="$ac_header_list unistd.h"
1751 ac_func_list="$ac_func_list alarm"
1752 # Check that the precious variables saved in the cache have kept the same
1754 ac_cache_corrupted=false
1755 for ac_var in $ac_precious_vars; do
1756 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1757 eval ac_new_set=\$ac_env_${ac_var}_set
1758 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1759 eval ac_new_val=\$ac_env_${ac_var}_value
1760 case $ac_old_set,$ac_new_set in
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1763 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1767 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1771 if test "x$ac_old_val" != "x$ac_new_val"; then
1772 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1773 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1774 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1775 echo "$as_me: former value
: $ac_old_val" >&2;}
1776 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1777 echo "$as_me: current value
: $ac_new_val" >&2;}
1778 ac_cache_corrupted=:
1781 # Pass precious variables to config.status.
1782 if test "$ac_new_set" = set; then
1784 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1785 *) ac_arg=$ac_var=$ac_new_val ;;
1787 case " $ac_configure_args " in
1788 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1789 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1793 if $ac_cache_corrupted; then
1794 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1795 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1796 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1797 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1798 { (exit 1); exit 1; }; }
1826 ac_cpp='$CPP $CPPFLAGS'
1827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1836 test "$program_prefix" != NONE &&
1837 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1838 # Use a double $ so make ignores it.
1839 test "$program_suffix" != NONE &&
1840 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1841 # Double any \ or $. echo might interpret backslashes.
1842 # By default was `s
,x
,x
', remove it if useless.
1843 cat <<\_ACEOF >conftest.sed
1844 s/[\\$]/&&/g;s/;s,x,x,$//
1846 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1850 lispdir='${datadir}/emacs
/${version}/lisp
'
1851 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1852 '${datadir}/emacs
/site-lisp
'
1853 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1854 etcdir='${datadir}/emacs
/${version}/etc
'
1855 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1856 docdir='${datadir}/emacs
/${version}/etc
'
1857 gamedir='${localstatedir}/games
/emacs
'
1864 # Check whether --with-pop was given.
1865 if test "${with_pop+set}" = set; then
1871 if test "$with_pop" = yes; then
1872 cat >>confdefs.h <<\_ACEOF
1873 #define MAIL_USE_POP 1
1880 # Check whether --with-kerberos was given.
1881 if test "${with_kerberos+set}" = set; then
1882 withval=$with_kerberos;
1887 if test "$with_kerberos" != no; then
1888 cat >>confdefs.h <<\_ACEOF
1896 # Check whether --with-kerberos5 was given.
1897 if test "${with_kerberos5+set}" = set; then
1898 withval=$with_kerberos5;
1903 if test "${with_kerberos5}" != no; then
1904 if test "${with_kerberos}" = no; then
1906 cat >>confdefs.h <<\_ACEOF
1912 cat >>confdefs.h <<\_ACEOF
1919 # Check whether --with-hesiod was given.
1920 if test "${with_hesiod+set}" = set; then
1921 withval=$with_hesiod;
1926 if test "$with_hesiod" != no; then
1928 cat >>confdefs.h <<\_ACEOF
1935 # Check whether --with-sound was given.
1936 if test "${with_sound+set}" = set; then
1937 withval=$with_sound;
1944 # Check whether --with-sync-input was given.
1945 if test "${with_sync_input+set}" = set; then
1946 withval=$with_sync_input;
1951 if test "$with_sync_input" = yes; then
1953 cat >>confdefs.h <<\_ACEOF
1954 #define SYNC_INPUT 1
1960 # Check whether --with-x-toolkit was given.
1961 if test "${with_x_toolkit+set}" = set; then
1962 withval=$with_x_toolkit; case "${withval}" in
1963 y | ye | yes ) val=gtk ;;
1965 l | lu | luc | luci | lucid ) val=lucid ;;
1966 a | at | ath | athe | athen | athena ) val=athena ;;
1967 m | mo | mot | moti | motif ) val=motif ;;
1968 g | gt | gtk ) val=gtk ;;
1970 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1971 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1972 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1973 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1974 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1975 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1976 { (exit 1); exit 1; }; }
1985 # Check whether --with-xpm was given.
1986 if test "${with_xpm+set}" = set; then
1993 # Check whether --with-jpeg was given.
1994 if test "${with_jpeg+set}" = set; then
2001 # Check whether --with-tiff was given.
2002 if test "${with_tiff+set}" = set; then
2009 # Check whether --with-gif was given.
2010 if test "${with_gif+set}" = set; then
2017 # Check whether --with-png was given.
2018 if test "${with_png+set}" = set; then
2025 # Check whether --with-rsvg was given.
2026 if test "${with_rsvg+set}" = set; then
2034 # Check whether --with-freetype was given.
2035 if test "${with_freetype+set}" = set; then
2036 withval=$with_freetype;
2042 # Check whether --with-xft was given.
2043 if test "${with_xft+set}" = set; then
2050 # Check whether --with-libotf was given.
2051 if test "${with_libotf+set}" = set; then
2052 withval=$with_libotf;
2058 # Check whether --with-m17n-flt was given.
2059 if test "${with_m17n_flt+set}" = set; then
2060 withval=$with_m17n_flt;
2067 # Check whether --with-toolkit-scroll-bars was given.
2068 if test "${with_toolkit_scroll_bars+set}" = set; then
2069 withval=$with_toolkit_scroll_bars;
2071 with_toolkit_scroll_bars=yes
2075 # Check whether --with-xaw3d was given.
2076 if test "${with_xaw3d+set}" = set; then
2077 withval=$with_xaw3d;
2083 # Check whether --with-xim was given.
2084 if test "${with_xim+set}" = set; then
2091 # Check whether --with-ns was given.
2092 if test "${with_ns+set}" = set; then
2100 # Check whether --with-gpm was given.
2101 if test "${with_gpm+set}" = set; then
2108 # Check whether --with-dbus was given.
2109 if test "${with_dbus+set}" = set; then
2116 ## For the times when you want to build Emacs but don't have
2117 ## a suitable makeinfo, and can live without the manuals.
2119 # Check whether --with-makeinfo was given.
2120 if test "${with_makeinfo+set}" = set; then
2121 withval
=$with_makeinfo;
2128 # Check whether --with-gtk was given.
2129 if test "${with_gtk+set}" = set; then
2130 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&5
2132 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2133 specify a toolkit." >&2;}
2134 { (exit 1); exit 1; }; }
2139 # Check whether --with-gcc was given.
2140 if test "${with_gcc+set}" = set; then
2141 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&5
2143 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2144 variable to specify a compiler." >&2;}
2145 { (exit 1); exit 1; }; }
2150 # Check whether --with-pkg-config-prog was given.
2151 if test "${with_pkg_config_prog+set}" = set; then
2152 withval
=$with_pkg_config_prog;
2155 if test "X${with_pkg_config_prog}" != X
; then
2156 if test "${with_pkg_config_prog}" != yes; then
2157 PKG_CONFIG
="${with_pkg_config_prog}"
2161 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2162 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2163 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=$enableval
2165 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2169 # Check whether --enable-ns-self-contained was given.
2170 if test "${enable_ns_self_contained+set}" = set; then
2171 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2173 EN_NS_SELF_CONTAINED
=yes
2177 # Check whether --enable-asserts was given.
2178 if test "${enable_asserts+set}" = set; then
2179 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2185 # Check whether --enable-maintainer-mode was given.
2186 if test "${enable_maintainer_mode+set}" = set; then
2187 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2189 USE_MAINTAINER_MODE
=no
2192 if test $USE_MAINTAINER_MODE = yes; then
2199 # Check whether --enable-locallisppath was given.
2200 if test "${enable_locallisppath+set}" = set; then
2201 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2203 elif test "${enableval}" != "yes"; then
2204 locallisppath
=${enableval}
2209 #### Make srcdir absolute, if it isn't already. It's important to
2210 #### avoid running the path through pwd unnecessarily, since pwd can
2211 #### give you automounter prefixes, which can go away. We do all this
2212 #### so Emacs can find its files when run uninstalled.
2213 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2218 ## We may be able to use the $PWD environment variable to make this
2219 ## absolute. But sometimes PWD is inaccurate.
2220 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2221 ## but that tested only for a well-formed and valid PWD,
2222 ## it did not object when PWD was well-formed and valid but just wrong.
2223 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2227 srcdir
="`(cd ${srcdir}; pwd)`"
2230 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2233 #### Check if the source directory already has a configured system in it.
2234 if test `pwd` != `(cd ${srcdir} && pwd)` \
2235 && test -f "${srcdir}/src/config.h" ; then
2236 { echo "$as_me:$LINENO: 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." >&5
2242 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2243 as a build directory right now; it has been configured in its own
2244 right. To configure in another directory as well, you MUST
2245 use GNU make. If you do not have GNU make, then you must
2246 now do \`make distclean' in ${srcdir},
2247 and then run $0 again." >&2;}
2250 #### Given the configuration name, set machfile and opsysfile to the
2251 #### names of the m/*.h and s/*.h files we should use.
2253 ### Canonicalize the configuration name.
2256 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2257 if test -f "$ac_dir/install-sh"; then
2259 ac_install_sh
="$ac_aux_dir/install-sh -c"
2261 elif test -f "$ac_dir/install.sh"; then
2263 ac_install_sh
="$ac_aux_dir/install.sh -c"
2265 elif test -f "$ac_dir/shtool"; then
2267 ac_install_sh
="$ac_aux_dir/shtool install -c"
2271 if test -z "$ac_aux_dir"; then
2272 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2273 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2274 { (exit 1); exit 1; }; }
2277 # These three variables are undocumented and unsupported,
2278 # and are intended to be withdrawn in a future Autoconf release.
2279 # They can cause serious problems if a builder's source tree is in a directory
2280 # whose full name contains unusual characters.
2281 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2282 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2283 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2286 # Make sure we can run config.sub.
2287 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2288 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2289 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2290 { (exit 1); exit 1; }; }
2292 { echo "$as_me:$LINENO: checking build system type" >&5
2293 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2294 if test "${ac_cv_build+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 ac_build_alias
=$build_alias
2298 test "x$ac_build_alias" = x
&&
2299 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2300 test "x$ac_build_alias" = x
&&
2301 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2302 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2303 { (exit 1); exit 1; }; }
2304 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2305 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2306 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2307 { (exit 1); exit 1; }; }
2310 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2311 echo "${ECHO_T}$ac_cv_build" >&6; }
2312 case $ac_cv_build in
2314 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2315 echo "$as_me: error: invalid value of canonical build" >&2;}
2316 { (exit 1); exit 1; }; };;
2319 ac_save_IFS
=$IFS; IFS
='-'
2325 # Remember, the first character of IFS is used to create $*,
2326 # except with old shells:
2329 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332 { echo "$as_me:$LINENO: checking host system type" >&5
2333 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2334 if test "${ac_cv_host+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test "x$host_alias" = x
; then
2338 ac_cv_host
=$ac_cv_build
2340 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2341 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2342 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2343 { (exit 1); exit 1; }; }
2347 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2348 echo "${ECHO_T}$ac_cv_host" >&6; }
2351 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2352 echo "$as_me: error: invalid value of canonical host" >&2;}
2353 { (exit 1); exit 1; }; };;
2356 ac_save_IFS
=$IFS; IFS
='-'
2362 # Remember, the first character of IFS is used to create $*,
2363 # except with old shells:
2366 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2370 configuration
=${host_alias-${build_alias-$host}}
2374 ### If you add support for a new configuration, add code to this
2375 ### switch statement to recognize your configuration name and select
2376 ### the appropriate operating system and machine description files.
2378 ### You would hope that you could choose an m/*.h file pretty much
2379 ### based on the machine portion of the configuration name, and an s-
2380 ### file based on the operating system portion. However, it turns out
2381 ### that each m/*.h file is pretty manufacturer-specific - for
2382 ### example mips.h is MIPS
2383 ### So we basically have to have a special case for each
2384 ### configuration name.
2386 ### As far as handling version numbers on operating systems is
2387 ### concerned, make sure things will fail in a fixable way. If
2388 ### /etc/MACHINES doesn't say anything about version numbers, be
2389 ### prepared to handle anything reasonably. If version numbers
2390 ### matter, be sure /etc/MACHINES says something about it.
2392 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2393 ### "System V Release 4"; he writes, "The old convention encouraged
2394 ### confusion between `system' and `release' levels'."
2396 machine
='' opsys
='' unported
=no
2397 case "${canonical}" in
2402 case "${canonical}" in
2403 alpha
*-*-freebsd*) machine
=alpha
;;
2404 arm
*-*-freebsd*) machine
=arm
;;
2405 ia64-
*-freebsd*) machine
=ia64
;;
2406 sparc-
*-freebsd*) machine
=sparc
;;
2407 sparc64-
*-freebsd*) machine
=sparc
;;
2408 powerpc-
*-freebsd*) machine
=macppc
;;
2409 i
[3456]86-*-freebsd*) machine
=intel386
;;
2410 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2414 ## FreeBSD kernel + glibc based userland
2417 case "${canonical}" in
2418 alpha
*-*-kfreebsd*) machine
=alpha
;;
2419 ia64-
*-kfreebsd*) machine
=ia64
;;
2420 sparc-
*-kfreebsd*) machine
=sparc
;;
2421 sparc64-
*-kfreebsd*) machine
=sparc
;;
2422 powerpc-
*-kfreebsd*) machine
=macppc
;;
2423 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2424 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2431 if test -f /usr
/lib
/crti.o
; then
2433 cat >>confdefs.h
<<\_ACEOF
2439 case "${canonical}" in
2440 alpha
*-*-netbsd*) machine
=alpha
;;
2441 i
[3456]86-*-netbsd*) machine
=intel386
;;
2442 powerpc-
*-netbsd*) machine
=macppc
;;
2443 sparc
*-*-netbsd*) machine
=sparc
;;
2444 vax-
*-netbsd*) machine
=vax
;;
2445 arm-
*-netbsd*) machine
=arm
;;
2446 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2447 hppa-
*-netbsd*) machine
=hp800
;;
2454 case "${canonical}" in
2455 alpha
*-*-openbsd*) machine
=alpha
;;
2456 arm-
*-openbsd*) machine
=arm
;;
2457 i386-
*-openbsd*) machine
=intel386
;;
2458 powerpc-
*-openbsd*) machine
=macppc
;;
2459 sparc
*-*-openbsd*) machine
=sparc
;;
2460 vax-
*-openbsd*) machine
=vax
;;
2461 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2468 case "${canonical}" in
2469 i
[3456]86-*-lynxos*) machine
=intel386
;;
2470 powerpc-
*-lynxos*) machine
=powerpc
;;
2474 alpha
*-*-linux-gnu* )
2475 machine
=alpha opsys
=gnu-linux
2479 machine
=arm opsys
=gnu-linux
2482 ## Apple Darwin / Mac OS X
2484 case "${canonical}" in
2485 i
[3456]86-* ) machine
=intel386
;;
2486 powerpc-
* ) machine
=macppc
;;
2490 # Define CPP as follows to make autoconf work correctly.
2491 CPP
="${CC-cc} -E -no-cpp-precomp"
2492 # Use fink packages if available.
2493 if test -d /sw
/include
&& test -d /sw
/lib
; then
2494 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2495 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2496 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2500 ## HP 9000 series 700 and 800, running HP/UX
2501 hppa
*-hp-hpux10.2
* )
2502 machine
=hp800 opsys
=hpux10-20
2504 hppa
*-hp-hpux1[1-9]* )
2505 machine
=hp800 opsys
=hpux11
2506 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2509 hppa
*-*-linux-gnu* )
2510 machine
=hp800 opsys
=gnu-linux
2515 machine
=ibms390 opsys
=gnu-linux
2517 s390x-
*-linux-gnu* )
2518 machine
=ibms390x opsys
=gnu-linux
2520 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2521 machine
=ibmrs6000 opsys
=aix4-2
2523 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2524 machine
=ibmrs6000 opsys
=aix4-2
2526 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2527 machine
=ibmrs6000 opsys
=aix4-2
2529 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2530 machine
=ibmrs6000 opsys
=aix4-2
2533 ## Macintosh PowerPC
2534 powerpc
*-*-linux-gnu* )
2535 machine
=macppc opsys
=gnu-linux
2538 ## Silicon Graphics machines
2541 machine
=iris4d opsys
=irix6-5
2542 # Without defining _LANGUAGE_C, things get masked out in the headers
2543 # so that, for instance, grepping for `free' in stdlib.h fails and
2544 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2545 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2546 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2550 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2551 machine
=sparc opsys
=gnu-linux
2555 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2556 | rs6000-
*-solaris2*)
2557 case "${canonical}" in
2558 i
[3456]86-*-* ) machine
=intel386
;;
2559 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2560 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2561 sparc
* ) machine
=sparc
;;
2564 case "${canonical}" in
2565 *-sunos5.3
* |
*-solaris2.3
* )
2567 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2569 *-sunos5.4
* |
*-solaris2.4
* )
2571 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2574 *-sunos5.5
* |
*-solaris2.5
* )
2576 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2579 *-sunos5.6
* |
*-solaris2.6
* )
2581 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2584 *-sunos5* |
*-solaris* )
2586 emacs_check_sunpro_c
=yes
2587 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2590 ## Watch out for a compiler that we know will not work.
2591 case "${canonical}" in
2592 *-solaris* |
*-sunos5* )
2593 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2594 ## /usr/ucb/cc doesn't work;
2595 ## we should find some other compiler that does work.
2606 case "${canonical}" in
2607 *-vms* ) opsys
=vms
;;
2614 machine
=ia64 opsys
=gnu-linux
2617 ## Intel 386 machines where we don't care about the manufacturer
2620 case "${canonical}" in
2621 *-cygwin ) opsys
=cygwin
;;
2622 *-darwin* ) opsys
=darwin
2623 CPP
="${CC-cc} -E -no-cpp-precomp"
2625 *-linux-gnu* ) opsys
=gnu-linux
;;
2626 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2627 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2628 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2629 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2633 ## m68k Linux-based GNU system
2635 machine
=m68k opsys
=gnu-linux
2638 ## Mips Linux-based GNU system
2639 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2640 machine
=mips opsys
=gnu-linux
2643 ## AMD x86-64 Linux-based GNU system
2644 x86_64-
*-linux-gnu* )
2645 machine
=amdx86-64 opsys
=gnu-linux
2648 ## Tensilica Xtensa Linux-based GNU system
2649 xtensa
*-*-linux-gnu* )
2650 machine
=xtensa opsys
=gnu-linux
2653 ## SuperH Linux-based GNU system
2654 sh
[34]*-*-linux-gnu* )
2655 machine
=sh3 opsys
=gnu-linux
2663 ### If the code above didn't choose an operating system, just choose
2664 ### an operating system based on the configuration name. You really
2665 ### only want to use this when you have no idea what the right
2666 ### operating system is; if you know what operating systems a machine
2667 ### runs, it's cleaner to make it explicit in the case statement
2669 if test x
"${opsys}" = x
; then
2670 case "${canonical}" in
2671 *-gnu* ) opsys
=gnu
;;
2672 *-sysv4.2uw
* ) opsys
=unixware
;;
2673 *-sysv5uw* ) opsys
=unixware
;;
2674 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2675 *-sysv4.1
* |
*-sysvr4.1
* )
2676 NON_GNU_CPP
=/usr
/lib
/cpp
2678 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2679 if [ x
$NON_GNU_CPP = x
]; then
2680 if [ -f /usr
/ccs
/lib
/cpp
]; then
2681 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2683 NON_GNU_CPP
=/lib
/cpp
2687 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2696 if test $unported = yes; then
2697 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2698 Check \`etc/MACHINES' for recognized configuration names." >&5
2699 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2700 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2701 { (exit 1); exit 1; }; }
2704 machfile
="m/${machine}.h"
2705 opsysfile
="s/${opsys}.h"
2708 #### Choose a compiler.
2709 test -n "$CC" && cc_specified
=yes
2711 # Save the value of CFLAGS that the user specified.
2712 SPECIFIED_CFLAGS
="$CFLAGS"
2715 ac_cpp
='$CPP $CPPFLAGS'
2716 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2719 if test -n "$ac_tool_prefix"; then
2720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2721 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC
="$CC" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2737 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$CC"; then
2749 { echo "$as_me:$LINENO: result: $CC" >&5
2750 echo "${ECHO_T}$CC" >&6; }
2752 { echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6; }
2758 if test -z "$ac_cv_prog_CC"; then
2760 # Extract the first word of "gcc", so it can be a program name with args.
2761 set dummy gcc
; ac_word
=$2
2762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 if test -n "$ac_ct_CC"; then
2768 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2770 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2774 test -z "$as_dir" && as_dir
=.
2775 for ac_exec_ext
in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_ac_ct_CC
="gcc"
2778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2788 if test -n "$ac_ct_CC"; then
2789 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2790 echo "${ECHO_T}$ac_ct_CC" >&6; }
2792 { echo "$as_me:$LINENO: result: no" >&5
2793 echo "${ECHO_T}no" >&6; }
2796 if test "x$ac_ct_CC" = x
; then
2799 case $cross_compiling:$ac_tool_warned in
2801 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2802 whose name does not start with the host triplet. If you think this
2803 configuration is useful to you, please write to autoconf@gnu.org." >&5
2804 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2807 ac_tool_warned
=yes ;;
2815 if test -z "$CC"; then
2816 if test -n "$ac_tool_prefix"; then
2817 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2818 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_CC+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 if test -n "$CC"; then
2825 ac_cv_prog_CC
="$CC" # Let the user override the test.
2827 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2831 test -z "$as_dir" && as_dir
=.
2832 for ac_exec_ext
in '' $ac_executable_extensions; do
2833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2834 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2845 if test -n "$CC"; then
2846 { echo "$as_me:$LINENO: result: $CC" >&5
2847 echo "${ECHO_T}$CC" >&6; }
2849 { echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6; }
2856 if test -z "$CC"; then
2857 # Extract the first word of "cc", so it can be a program name with args.
2858 set dummy cc
; ac_word
=$2
2859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_CC+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC
="$CC" # Let the user override the test.
2868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2872 test -z "$as_dir" && as_dir
=.
2873 for ac_exec_ext
in '' $ac_executable_extensions; do
2874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2875 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2876 ac_prog_rejected
=yes
2880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 if test $ac_prog_rejected = yes; then
2888 # We found a bogon in the path, so make sure we never use it.
2889 set dummy
$ac_cv_prog_CC
2891 if test $# != 0; then
2892 # We chose a different compiler from the bogus one.
2893 # However, it has the same basename, so the bogon will be chosen
2894 # first if we set CC to just the basename; use the full file name.
2896 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2902 if test -n "$CC"; then
2903 { echo "$as_me:$LINENO: result: $CC" >&5
2904 echo "${ECHO_T}$CC" >&6; }
2906 { echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6; }
2912 if test -z "$CC"; then
2913 if test -n "$ac_tool_prefix"; then
2914 for ac_prog
in cl.exe
2916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2917 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_CC+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 if test -n "$CC"; then
2924 ac_cv_prog_CC
="$CC" # Let the user override the test.
2926 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2930 test -z "$as_dir" && as_dir
=.
2931 for ac_exec_ext
in '' $ac_executable_extensions; do
2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2933 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944 if test -n "$CC"; then
2945 { echo "$as_me:$LINENO: result: $CC" >&5
2946 echo "${ECHO_T}$CC" >&6; }
2948 { echo "$as_me:$LINENO: result: no" >&5
2949 echo "${ECHO_T}no" >&6; }
2953 test -n "$CC" && break
2956 if test -z "$CC"; then
2958 for ac_prog
in cl.exe
2960 # Extract the first word of "$ac_prog", so it can be a program name with args.
2961 set dummy
$ac_prog; ac_word
=$2
2962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2964 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2965 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 if test -n "$ac_ct_CC"; then
2968 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2970 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2974 test -z "$as_dir" && as_dir
=.
2975 for ac_exec_ext
in '' $ac_executable_extensions; do
2976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977 ac_cv_prog_ac_ct_CC
="$ac_prog"
2978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2988 if test -n "$ac_ct_CC"; then
2989 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2990 echo "${ECHO_T}$ac_ct_CC" >&6; }
2992 { echo "$as_me:$LINENO: result: no" >&5
2993 echo "${ECHO_T}no" >&6; }
2997 test -n "$ac_ct_CC" && break
3000 if test "x$ac_ct_CC" = x
; then
3003 case $cross_compiling:$ac_tool_warned in
3005 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3006 whose name does not start with the host triplet. If you think this
3007 configuration is useful to you, please write to autoconf@gnu.org." >&5
3008 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3011 ac_tool_warned
=yes ;;
3020 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: no acceptable C compiler found in \$PATH
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3026 # Provide some information about the compiler.
3027 echo "$as_me:$LINENO: checking for C compiler version" >&5
3028 ac_compiler
=`set X $ac_compile; echo $2`
3029 { (ac_try
="$ac_compiler --version >&5"
3031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_compiler --version >&5") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }
3039 { (ac_try="$ac_compiler -v >&5"
3041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3042 *) ac_try_echo
=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compiler -v >&5") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }
3049 { (ac_try
="$ac_compiler -V >&5"
3051 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055 (eval "$ac_compiler -V >&5") 2>&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }
3060 cat >conftest.$ac_ext <<_ACEOF
3063 cat confdefs.h >>conftest.$ac_ext
3064 cat >>conftest.$ac_ext <<_ACEOF
3065 /* end confdefs.h. */
3075 ac_clean_files_save=$ac_clean_files
3076 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3077 # Try to create an executable without -o first, disregard a.out.
3078 # It will help us diagnose broken compilers, and finding out an intuition
3080 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3081 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3082 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3084 # List of possible output files, starting from the most likely.
3085 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3086 # only as a last resort. b.out is created by i960 compilers.
3087 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3089 # The IRIX 6 linker writes into existing files which may not be
3090 # executable, retaining their permissions. Remove them first so a
3091 # subsequent execution test works.
3093 for ac_file in $ac_files
3096 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3097 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3102 if { (ac_try="$ac_link_default"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_link_default") 2>&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); }; then
3112 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3113 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3114 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3115 # so that the user can short-circuit this test for compilers unknown to
3117 for ac_file
in $ac_files ''
3119 test -f "$ac_file" ||
continue
3121 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3124 # We found the default executable, but exeext='' is most
3128 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3130 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3132 # We set ac_cv_exeext here because the later test for it is not
3133 # safe: cross compilers may not add the suffix if given an `-o'
3134 # argument, so we may need to know it at that point already.
3135 # Even if this section looks crufty: it has the advantage of
3142 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3148 { echo "$as_me:$LINENO: result: $ac_file" >&5
3149 echo "${ECHO_T}$ac_file" >&6; }
3150 if test -z "$ac_file"; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.
$ac_ext >&5
3154 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3155 See \`config.log' for more details." >&5
3156 echo "$as_me: error: C compiler cannot create executables
3157 See \`config.log' for more details." >&2;}
3158 { (exit 77); exit 77; }; }
3161 ac_exeext
=$ac_cv_exeext
3163 # Check that the compiler produces executables we can run. If not, either
3164 # the compiler is broken, or we cross compile.
3165 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3166 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3167 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3168 # If not cross compiling, check that we can run a simple program.
3169 if test "$cross_compiling" != yes; then
3170 if { ac_try
='./$ac_file'
3171 { (case "(($ac_try" in
3172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_try") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3182 if test "$cross_compiling" = maybe; then
3185 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details.
" >&5
3188 echo "$as_me: error
: cannot run C compiled programs.
3189 If you meant to cross compile
, use \
`--host'.
3190 See \`config.log
' for more details." >&2;}
3191 { (exit 1); exit 1; }; }
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196 echo "${ECHO_T}yes" >&6; }
3198 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3199 ac_clean_files=$ac_clean_files_save
3200 # Check that the compiler produces executables we can run. If not, either
3201 # the compiler is broken, or we cross compile.
3202 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3203 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3204 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3205 echo "${ECHO_T}$cross_compiling" >&6; }
3207 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3208 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3209 if { (ac_try="$ac_link"
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_link") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }; then
3219 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3220 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3221 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3223 for ac_file
in conftest.exe conftest conftest.
*; do
3224 test -f "$ac_file" ||
continue
3226 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3227 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3233 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3234 See \`config.log' for more details." >&5
3235 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3236 See \`config.log' for more details." >&2;}
3237 { (exit 1); exit 1; }; }
3240 rm -f conftest
$ac_cv_exeext
3241 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3242 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3244 rm -f conftest.
$ac_ext
3245 EXEEXT
=$ac_cv_exeext
3247 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3248 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3249 if test "${ac_cv_objext+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.
$ac_ext <<_ACEOF
3255 cat confdefs.h
>>conftest.
$ac_ext
3256 cat >>conftest.
$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 rm -f conftest.o conftest.obj
3268 if { (ac_try
="$ac_compile"
3270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274 (eval "$ac_compile") 2>&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; then
3278 for ac_file in conftest.o conftest.obj conftest.*; do
3279 test -f "$ac_file" || continue;
3281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3282 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3287 echo "$as_me: failed program was:" >&5
3288 sed 's/^/| /' conftest.$ac_ext >&5
3290 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3291 See \`config.log
' for more details." >&5
3292 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3293 See \`config.log' for more details.
" >&2;}
3294 { (exit 1); exit 1; }; }
3297 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3299 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3300 echo "${ECHO_T}$ac_cv_objext" >&6; }
3301 OBJEXT=$ac_cv_objext
3303 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3304 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3305 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3306 echo $ECHO_N "(cached
) $ECHO_C" >&6
3308 cat >conftest.$ac_ext <<_ACEOF
3311 cat confdefs.h >>conftest.$ac_ext
3312 cat >>conftest.$ac_ext <<_ACEOF
3313 /* end confdefs.h. */
3326 rm -f conftest.$ac_objext
3327 if { (ac_try="$ac_compile"
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_c_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3345 echo "$as_me: failed program was
:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3355 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3356 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3357 GCC=`test $ac_compiler_gnu = yes && echo yes`
3358 ac_test_CFLAGS=${CFLAGS+set}
3359 ac_save_CFLAGS=$CFLAGS
3360 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3361 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3362 if test "${ac_cv_prog_cc_g+set}" = set; then
3363 echo $ECHO_N "(cached
) $ECHO_C" >&6
3365 ac_save_c_werror_flag=$ac_c_werror_flag
3366 ac_c_werror_flag=yes
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3403 echo "$as_me: failed program was
:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3441 echo "$as_me: failed program was
:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3444 ac_c_werror_flag=$ac_save_c_werror_flag
3446 cat >conftest.$ac_ext <<_ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3461 rm -f conftest.$ac_objext
3462 if { (ac_try="$ac_compile"
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3470 grep -v '^ *+' conftest.er1 >conftest.err
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3480 echo "$as_me: failed program was
:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 ac_c_werror_flag=$ac_save_c_werror_flag
3495 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3496 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3497 if test "$ac_test_CFLAGS" = set; then
3498 CFLAGS=$ac_save_CFLAGS
3499 elif test $ac_cv_prog_cc_g = yes; then
3500 if test "$GCC" = yes; then
3506 if test "$GCC" = yes; then
3512 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3513 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3514 if test "${ac_cv_prog_cc_c89+set}" = set; then
3515 echo $ECHO_N "(cached
) $ECHO_C" >&6
3517 ac_cv_prog_cc_c89=no
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3527 #include <sys/types.h>
3528 #include <sys/stat.h>
3529 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3530 struct buf { int x; };
3531 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3532 static char *e (p, i)
3538 static char *f (char * (*g) (char **, int), char **p, ...)
3543 s = g (p, va_arg (v,int));
3548 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3549 function prototypes and stuff, but not '\xHH' hex character constants.
3550 These don't provoke an error unfortunately, instead are silently treated
3551 as 'x'. The following induces an error, until -std is added to get
3552 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3553 array size at least. It's necessary to write '\x00'==0 to get something
3554 that's true only with -std. */
3555 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3557 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3558 inside strings and character constants. */
3560 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3562 int test (int i, double x);
3563 struct s1 {int (*f) (int a);};
3564 struct s2 {int (*f) (double a);};
3565 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3576 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3577 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3579 CC="$ac_save_CC $ac_arg"
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_c_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3597 ac_cv_prog_cc_c89=$ac_arg
3599 echo "$as_me: failed program was
:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f core conftest.err conftest.$ac_objext
3606 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3608 rm -f conftest.$ac_ext
3613 case "x
$ac_cv_prog_cc_c89" in
3615 { echo "$as_me:$LINENO: result
: none needed
" >&5
3616 echo "${ECHO_T}none needed
" >&6; } ;;
3618 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3619 echo "${ECHO_T}unsupported
" >&6; } ;;
3621 CC="$CC $ac_cv_prog_cc_c89"
3622 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3623 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 # On Suns, sometimes $CPP names a directory.
3635 if test -n "$CPP" && test -d "$CPP"; then
3639 ## If not using gcc, and on Solaris, and no CPP specified, see if
3640 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3641 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3642 test x"$CPP" = x; then
3643 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3644 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3646 if test "${emacs_cv_sunpro_c+set}" = set; then
3647 echo $ECHO_N "(cached
) $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (ac_try="$ac_link"
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_link") 2>conftest.er1
3676 grep -v '^ *+' conftest.er1 >conftest.err
3678 cat conftest.err >&5
3679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3680 (exit $ac_status); } && {
3681 test -z "$ac_c_werror_flag" ||
3682 test ! -s conftest.err
3683 } && test -s conftest$ac_exeext &&
3684 $as_test_x conftest$ac_exeext; then
3685 emacs_cv_sunpro_c=yes
3687 echo "$as_me: failed program was
:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 emacs_cv_sunpro_c=no
3693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3694 conftest$ac_exeext conftest.$ac_ext
3697 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3698 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3700 if test x"$emacs_cv_sunpro_c" = xyes; then
3701 NON_GNU_CPP="$CC -E -Xs"
3705 #### Some systems specify a CPP to use unless we are using GCC.
3706 #### Now that we know whether we are using GCC, we can decide whether
3707 #### to use that one.
3708 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3713 #### Some systems specify a CC to use unless we are using GCC.
3714 #### Now that we know whether we are using GCC, we can decide whether
3715 #### to use that one.
3716 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3717 test x$cc_specified != xyes
3722 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3724 CC="$CC $GCC_TEST_OPTIONS"
3727 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3729 CC="$CC $NON_GCC_TEST_OPTIONS"
3733 cat >>confdefs.h <<\_ACEOF
3734 #define _GNU_SOURCE 1
3739 ac_cpp='$CPP $CPPFLAGS'
3740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3744 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3745 # On Suns, sometimes $CPP names a directory.
3746 if test -n "$CPP" && test -d "$CPP"; then
3749 if test -z "$CPP"; then
3750 if test "${ac_cv_prog_CPP+set}" = set; then
3751 echo $ECHO_N "(cached
) $ECHO_C" >&6
3753 # Double quotes because CPP needs to be expanded
3754 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3757 for ac_c_preproc_warn_flag in '' yes
3759 # Use a header file that comes with gcc, so configuring glibc
3760 # with a fresh cross-compiler works.
3761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3762 # <limits.h> exists even on freestanding compilers.
3763 # On the NeXT, cc -E runs the code through the compiler's parser,
3764 # not just through cpp. "Syntax error
" is here to catch this case.
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3772 # include <limits.h>
3774 # include <assert.h>
3778 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3786 grep -v '^ *+' conftest.er1 >conftest.err
3788 cat conftest.err >&5
3789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3790 (exit $ac_status); } >/dev/null && {
3791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3792 test ! -s conftest.err
3796 echo "$as_me: failed program was
:" >&5
3797 sed 's/^/| /' conftest.$ac_ext >&5
3799 # Broken: fails on valid input.
3803 rm -f conftest.err conftest.$ac_ext
3805 # OK, works on sane cases. Now check whether nonexistent headers
3806 # can be detected and how.
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 #include <ac_nonexistent.h>
3815 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3821 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3831 # Broken: success on invalid input.
3834 echo "$as_me: failed program was
:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Passes both tests.
3842 rm -f conftest.err conftest.$ac_ext
3845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3846 rm -f conftest.err conftest.$ac_ext
3847 if $ac_preproc_ok; then
3859 { echo "$as_me:$LINENO: result
: $CPP" >&5
3860 echo "${ECHO_T}$CPP" >&6; }
3862 for ac_c_preproc_warn_flag in '' yes
3864 # Use a header file that comes with gcc, so configuring glibc
3865 # with a fresh cross-compiler works.
3866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3867 # <limits.h> exists even on freestanding compilers.
3868 # On the NeXT, cc -E runs the code through the compiler's parser,
3869 # not just through cpp. "Syntax error
" is here to catch this case.
3870 cat >conftest.$ac_ext <<_ACEOF
3873 cat confdefs.h >>conftest.$ac_ext
3874 cat >>conftest.$ac_ext <<_ACEOF
3875 /* end confdefs.h. */
3877 # include <limits.h>
3879 # include <assert.h>
3883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3895 (exit $ac_status); } >/dev/null && {
3896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3897 test ! -s conftest.err
3901 echo "$as_me: failed program was
:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3904 # Broken: fails on valid input.
3908 rm -f conftest.err conftest.$ac_ext
3910 # OK, works on sane cases. Now check whether nonexistent headers
3911 # can be detected and how.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3918 #include <ac_nonexistent.h>
3920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3928 grep -v '^ *+' conftest.er1 >conftest.err
3930 cat conftest.err >&5
3931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3932 (exit $ac_status); } >/dev/null && {
3933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3934 test ! -s conftest.err
3936 # Broken: success on invalid input.
3939 echo "$as_me: failed program was
:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 # Passes both tests.
3947 rm -f conftest.err conftest.$ac_ext
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.err conftest.$ac_ext
3952 if $ac_preproc_ok; then
3955 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3956 See \
`config.log' for more details." >&5
3957 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log
' for more details." >&2;}
3959 { (exit 1); exit 1; }; }
3963 ac_cpp='$CPP $CPPFLAGS'
3964 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3965 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3966 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3970 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3971 if test "${ac_cv_path_GREP+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 # Extract the first word of "grep ggrep" to use in msg output
3975 if test -z "$GREP"; then
3976 set dummy grep ggrep; ac_prog_name=$2
3977 if test "${ac_cv_path_GREP+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 ac_path_GREP_found=false
3981 # Loop through the user's path and
test for each of PROGNAME-LIST
3982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3983 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3986 test -z "$as_dir" && as_dir
=.
3987 for ac_prog
in grep ggrep
; do
3988 for ac_exec_ext
in '' $ac_executable_extensions; do
3989 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3990 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3991 # Check for GNU ac_path_GREP and select it if it is found.
3992 # Check for GNU $ac_path_GREP
3993 case `"$ac_path_GREP" --version 2>&1` in
3995 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4001 cat "conftest.in" "conftest.in" >"conftest.tmp"
4002 mv "conftest.tmp" "conftest.in"
4003 cp "conftest.in" "conftest.nl"
4004 echo 'GREP' >> "conftest.nl"
4005 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4006 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4007 ac_count
=`expr $ac_count + 1`
4008 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4009 # Best one so far, save it but keep looking for a better one
4010 ac_cv_path_GREP
="$ac_path_GREP"
4011 ac_path_GREP_max
=$ac_count
4013 # 10*(2^10) chars as input seems more than enough
4014 test $ac_count -gt 10 && break
4016 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4020 $ac_path_GREP_found && break 3
4030 GREP
="$ac_cv_path_GREP"
4031 if test -z "$GREP"; then
4032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4034 { (exit 1); exit 1; }; }
4038 ac_cv_path_GREP
=$GREP
4043 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4044 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4045 GREP
="$ac_cv_path_GREP"
4048 { echo "$as_me:$LINENO: checking for egrep" >&5
4049 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4054 then ac_cv_path_EGREP
="$GREP -E"
4056 # Extract the first word of "egrep" to use in msg output
4057 if test -z "$EGREP"; then
4058 set dummy
egrep; ac_prog_name
=$2
4059 if test "${ac_cv_path_EGREP+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_path_EGREP_found
=false
4063 # Loop through the user's path and test for each of PROGNAME-LIST
4064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4065 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4068 test -z "$as_dir" && as_dir
=.
4069 for ac_prog
in egrep; do
4070 for ac_exec_ext
in '' $ac_executable_extensions; do
4071 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4072 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4073 # Check for GNU ac_path_EGREP and select it if it is found.
4074 # Check for GNU $ac_path_EGREP
4075 case `"$ac_path_EGREP" --version 2>&1` in
4077 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4080 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4083 cat "conftest.in" "conftest.in" >"conftest.tmp"
4084 mv "conftest.tmp" "conftest.in"
4085 cp "conftest.in" "conftest.nl"
4086 echo 'EGREP' >> "conftest.nl"
4087 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4088 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4089 ac_count
=`expr $ac_count + 1`
4090 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4091 # Best one so far, save it but keep looking for a better one
4092 ac_cv_path_EGREP
="$ac_path_EGREP"
4093 ac_path_EGREP_max
=$ac_count
4095 # 10*(2^10) chars as input seems more than enough
4096 test $ac_count -gt 10 && break
4098 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4102 $ac_path_EGREP_found && break 3
4112 EGREP
="$ac_cv_path_EGREP"
4113 if test -z "$EGREP"; then
4114 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4115 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4116 { (exit 1); exit 1; }; }
4120 ac_cv_path_EGREP
=$EGREP
4126 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4127 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4128 EGREP
="$ac_cv_path_EGREP"
4132 { echo "$as_me:$LINENO: checking for AIX" >&5
4133 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4134 cat >conftest.
$ac_ext <<_ACEOF
4137 cat confdefs.h
>>conftest.
$ac_ext
4138 cat >>conftest.
$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4146 $EGREP "yes" >/dev
/null
2>&1; then
4147 { echo "$as_me:$LINENO: result: yes" >&5
4148 echo "${ECHO_T}yes" >&6; }
4149 cat >>confdefs.h
<<\_ACEOF
4150 #define _ALL_SOURCE 1
4154 { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4160 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4161 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4162 if test "${ac_cv_header_stdc+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 cat >conftest.
$ac_ext <<_ACEOF
4168 cat confdefs.h
>>conftest.
$ac_ext
4169 cat >>conftest.
$ac_ext <<_ACEOF
4170 /* end confdefs.h. */
4184 rm -f conftest.
$ac_objext
4185 if { (ac_try
="$ac_compile"
4187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4191 (eval "$ac_compile") 2>conftest.er1
4193 grep -v '^ *+' conftest.er1 >conftest.err
4195 cat conftest.err >&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && {
4198 test -z "$ac_c_werror_flag" ||
4199 test ! -s conftest.err
4200 } && test -s conftest.$ac_objext; then
4201 ac_cv_header_stdc=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 if test $ac_cv_header_stdc = yes; then
4212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4223 $EGREP "memchr" >/dev/null 2>&1; then
4226 ac_cv_header_stdc=no
4232 if test $ac_cv_header_stdc = yes; then
4233 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then
4247 ac_cv_header_stdc=no
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4266 #if ((' ' & 0x0FF) == 0x020)
4267 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4270 # define ISLOWER(c) \
4271 (('a' <= (c) && (c) <= 'i') \
4272 || ('j' <= (c) && (c) <= 'r') \
4273 || ('s' <= (c) && (c) <= 'z'))
4274 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4277 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4282 for (i = 0; i < 256; i++)
4283 if (XOR (islower (i), ISLOWER (i))
4284 || toupper (i) != TOUPPER (i))
4289 rm -f conftest$ac_exeext
4290 if { (ac_try="$ac_link"
4292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4293 *) ac_try_echo
=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_link") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4300 { (case "(($ac_try" in
4301 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_try") 2>&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); }; }; then
4311 echo "$as_me: program exited with status $ac_status" >&5
4312 echo "$as_me: failed program was:" >&5
4313 sed 's/^/| /' conftest.$ac_ext >&5
4316 ac_cv_header_stdc=no
4318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4324 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4325 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4326 if test $ac_cv_header_stdc = yes; then
4328 cat >>confdefs.h <<\_ACEOF
4329 #define STDC_HEADERS 1
4334 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4344 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4345 inttypes.h stdint.h unistd.h
4347 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4353 cat >conftest.$ac_ext <<_ACEOF
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4359 $ac_includes_default
4361 #include <$ac_header>
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4367 *) ac_try_echo
=$ac_try;;
4369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_compile") 2>conftest.er1
4372 grep -v '^ *+' conftest.er1
>conftest.err
4374 cat conftest.err
>&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_c_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest.
$ac_objext; then
4380 eval "$as_ac_Header=yes"
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.
$ac_ext >&5
4385 eval "$as_ac_Header=no"
4388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4390 ac_res
=`eval echo '${'$as_ac_Header'}'`
4391 { echo "$as_me:$LINENO: result: $ac_res" >&5
4392 echo "${ECHO_T}$ac_res" >&6; }
4393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4394 cat >>confdefs.h
<<_ACEOF
4395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403 if test "${ac_cv_header_minix_config_h+set}" = set; then
4404 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4405 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4410 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4412 # Is the header compilable?
4413 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4414 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4415 cat >conftest.
$ac_ext <<_ACEOF
4418 cat confdefs.h
>>conftest.
$ac_ext
4419 cat >>conftest.
$ac_ext <<_ACEOF
4420 /* end confdefs.h. */
4421 $ac_includes_default
4422 #include <minix/config.h>
4424 rm -f conftest.
$ac_objext
4425 if { (ac_try
="$ac_compile"
4427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4428 *) ac_try_echo=$ac_try;;
4430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4431 (eval "$ac_compile") 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } && {
4438 test -z "$ac_c_werror_flag" ||
4439 test ! -s conftest.err
4440 } && test -s conftest.$ac_objext; then
4441 ac_header_compiler=yes
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 ac_header_compiler=no
4449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451 echo "${ECHO_T}$ac_header_compiler" >&6; }
4453 # Is the header present?
4454 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4455 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4462 #include <minix/config.h>
4464 if { (ac_try="$ac_cpp conftest.$ac_ext"
4466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4467 *) ac_try_echo
=$ac_try;;
4469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4472 grep -v '^ *+' conftest.er1
>conftest.err
4474 cat conftest.err
>&5
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); } >/dev
/null
&& {
4477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4478 test ! -s conftest.err
4480 ac_header_preproc
=yes
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.
$ac_ext >&5
4485 ac_header_preproc
=no
4488 rm -f conftest.err conftest.
$ac_ext
4489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4490 echo "${ECHO_T}$ac_header_preproc" >&6; }
4492 # So? What about this header?
4493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4496 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4498 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4499 ac_header_preproc
=yes
4502 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4503 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4505 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4506 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4507 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4508 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4509 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4510 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4511 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4512 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4513 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4517 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4518 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4519 if test "${ac_cv_header_minix_config_h+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 ac_cv_header_minix_config_h
=$ac_header_preproc
4524 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4525 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4528 if test $ac_cv_header_minix_config_h = yes; then
4535 if test "$MINIX" = yes; then
4537 cat >>confdefs.h
<<\_ACEOF
4538 #define _POSIX_SOURCE 1
4542 cat >>confdefs.h
<<\_ACEOF
4543 #define _POSIX_1_SOURCE 2
4547 cat >>confdefs.h
<<\_ACEOF
4563 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4564 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4565 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4568 cat >conftest.
$ac_ext <<_ACEOF
4571 cat confdefs.h
>>conftest.
$ac_ext
4572 cat >>conftest.
$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4575 # define __EXTENSIONS__ 1
4576 $ac_includes_default
4585 rm -f conftest.
$ac_objext
4586 if { (ac_try
="$ac_compile"
4588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4589 *) ac_try_echo=$ac_try;;
4591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4592 (eval "$ac_compile") 2>conftest.er1
4594 grep -v '^ *+' conftest.er1 >conftest.err
4596 cat conftest.err >&5
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); } && {
4599 test -z "$ac_c_werror_flag" ||
4600 test ! -s conftest.err
4601 } && test -s conftest.$ac_objext; then
4602 ac_cv_safe_to_define___extensions__=yes
4604 echo "$as_me: failed program was:" >&5
4605 sed 's/^/| /' conftest.$ac_ext >&5
4607 ac_cv_safe_to_define___extensions__=no
4610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4612 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4613 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4614 test $ac_cv_safe_to_define___extensions__ = yes &&
4615 cat >>confdefs.h <<\_ACEOF
4616 #define __EXTENSIONS__ 1
4619 cat >>confdefs.h <<\_ACEOF
4620 #define _POSIX_PTHREAD_SEMANTICS 1
4623 cat >>confdefs.h <<\_ACEOF
4624 #define _TANDEM_SOURCE 1
4629 ### Use -Wno-pointer-sign if the compiler supports it
4630 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4631 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4632 SAVE_CFLAGS="$CFLAGS"
4633 CFLAGS="$CFLAGS -Wno-pointer-sign"
4634 cat >conftest.$ac_ext <<_ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4649 rm -f conftest.$ac_objext
4650 if { (ac_try="$ac_compile"
4652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4653 *) ac_try_echo
=$ac_try;;
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656 (eval "$ac_compile") 2>conftest.er1
4658 grep -v '^ *+' conftest.er1
>conftest.err
4660 cat conftest.err
>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); } && {
4663 test -z "$ac_c_werror_flag" ||
4664 test ! -s conftest.err
4665 } && test -s conftest.
$ac_objext; then
4668 echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.
$ac_ext >&5
4674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4675 if test $has_option = yes; then
4676 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4678 { echo "$as_me:$LINENO: result: $has_option" >&5
4679 echo "${ECHO_T}$has_option" >&6; }
4680 CFLAGS
="$SAVE_CFLAGS"
4684 #### Some other nice autoconf tests.
4686 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4687 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4689 if test "$LN_S" = "ln -s"; then
4690 { echo "$as_me:$LINENO: result: yes" >&5
4691 echo "${ECHO_T}yes" >&6; }
4693 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4694 echo "${ECHO_T}no, using $LN_S" >&6; }
4698 ac_cpp
='$CPP $CPPFLAGS'
4699 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4700 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4701 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4702 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4703 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4704 # On Suns, sometimes $CPP names a directory.
4705 if test -n "$CPP" && test -d "$CPP"; then
4708 if test -z "$CPP"; then
4709 if test "${ac_cv_prog_CPP+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 # Double quotes because CPP needs to be expanded
4713 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4716 for ac_c_preproc_warn_flag
in '' yes
4718 # Use a header file that comes with gcc, so configuring glibc
4719 # with a fresh cross-compiler works.
4720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4721 # <limits.h> exists even on freestanding compilers.
4722 # On the NeXT, cc -E runs the code through the compiler's parser,
4723 # not just through cpp. "Syntax error" is here to catch this case.
4724 cat >conftest.
$ac_ext <<_ACEOF
4727 cat confdefs.h
>>conftest.
$ac_ext
4728 cat >>conftest.
$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4731 # include <limits.h>
4733 # include <assert.h>
4737 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4740 *) ac_try_echo=$ac_try;;
4742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4745 grep -v '^ *+' conftest.er1 >conftest.err
4747 cat conftest.err >&5
4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4749 (exit $ac_status); } >/dev/null && {
4750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4751 test ! -s conftest.err
4755 echo "$as_me: failed program was:" >&5
4756 sed 's/^/| /' conftest.$ac_ext >&5
4758 # Broken: fails on valid input.
4762 rm -f conftest.err conftest.$ac_ext
4764 # OK, works on sane cases. Now check whether nonexistent headers
4765 # can be detected and how.
4766 cat >conftest.$ac_ext <<_ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <ac_nonexistent.h>
4774 if { (ac_try="$ac_cpp conftest.$ac_ext"
4776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4777 *) ac_try_echo
=$ac_try;;
4779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4782 grep -v '^ *+' conftest.er1
>conftest.err
4784 cat conftest.err
>&5
4785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4786 (exit $ac_status); } >/dev
/null
&& {
4787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4788 test ! -s conftest.err
4790 # Broken: success on invalid input.
4793 echo "$as_me: failed program was:" >&5
4794 sed 's/^/| /' conftest.
$ac_ext >&5
4796 # Passes both tests.
4801 rm -f conftest.err conftest.
$ac_ext
4804 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4805 rm -f conftest.err conftest.
$ac_ext
4806 if $ac_preproc_ok; then
4818 { echo "$as_me:$LINENO: result: $CPP" >&5
4819 echo "${ECHO_T}$CPP" >&6; }
4821 for ac_c_preproc_warn_flag
in '' yes
4823 # Use a header file that comes with gcc, so configuring glibc
4824 # with a fresh cross-compiler works.
4825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4826 # <limits.h> exists even on freestanding compilers.
4827 # On the NeXT, cc -E runs the code through the compiler's parser,
4828 # not just through cpp. "Syntax error" is here to catch this case.
4829 cat >conftest.
$ac_ext <<_ACEOF
4832 cat confdefs.h
>>conftest.
$ac_ext
4833 cat >>conftest.
$ac_ext <<_ACEOF
4834 /* end confdefs.h. */
4836 # include <limits.h>
4838 # include <assert.h>
4842 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4844 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1 >conftest.err
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null && {
4855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4863 # Broken: fails on valid input.
4867 rm -f conftest.err conftest.$ac_ext
4869 # OK, works on sane cases. Now check whether nonexistent headers
4870 # can be detected and how.
4871 cat >conftest.$ac_ext <<_ACEOF
4874 cat confdefs.h >>conftest.$ac_ext
4875 cat >>conftest.$ac_ext <<_ACEOF
4876 /* end confdefs.h. */
4877 #include <ac_nonexistent.h>
4879 if { (ac_try="$ac_cpp conftest.$ac_ext"
4881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4882 *) ac_try_echo
=$ac_try;;
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4887 grep -v '^ *+' conftest.er1
>conftest.err
4889 cat conftest.err
>&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev
/null
&& {
4892 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4893 test ! -s conftest.err
4895 # Broken: success on invalid input.
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.
$ac_ext >&5
4901 # Passes both tests.
4906 rm -f conftest.err conftest.
$ac_ext
4909 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4910 rm -f conftest.err conftest.
$ac_ext
4911 if $ac_preproc_ok; then
4914 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4915 See \`config.log' for more details." >&5
4916 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4917 See \`config.log' for more details." >&2;}
4918 { (exit 1); exit 1; }; }
4922 ac_cpp
='$CPP $CPPFLAGS'
4923 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4924 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4925 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4927 # Find a good install program. We prefer a C program (faster),
4928 # so one script is as good as another. But avoid the broken or
4929 # incompatible versions:
4930 # SysV /etc/install, /usr/sbin/install
4931 # SunOS /usr/etc/install
4932 # IRIX /sbin/install
4934 # AmigaOS /C/install, which installs bootblocks on floppy discs
4935 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4936 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4937 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4938 # OS/2's system install, which has a completely different semantic
4939 # ./install, which can be erroneously created by make from ./install.sh.
4940 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4941 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4942 if test -z "$INSTALL"; then
4943 if test "${ac_cv_path_install+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir
=.
4951 # Account for people who put trailing slashes in PATH elements.
4953 .
/ | .
// |
/cC
/* | \
4954 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4955 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4958 # OSF1 and SCO ODT 3.0 have their own names for install.
4959 # Don't use installbsd from OSF since it installs stuff as root
4961 for ac_prog
in ginstall scoinst
install; do
4962 for ac_exec_ext
in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4964 if test $ac_prog = install &&
4965 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4966 # AIX install. It has an incompatible calling convention.
4968 elif test $ac_prog = install &&
4969 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4970 # program-specific install script used by HP pwplus--don't use.
4973 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4986 if test "${ac_cv_path_install+set}" = set; then
4987 INSTALL
=$ac_cv_path_install
4989 # As a last resort, use the slow shell script. Don't cache a
4990 # value for INSTALL within a source directory, because that will
4991 # break other packages using the cache if that directory is
4992 # removed, or if the value is a relative name.
4993 INSTALL
=$ac_install_sh
4996 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4997 echo "${ECHO_T}$INSTALL" >&6; }
4999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5000 # It thinks the first close brace ends the variable substitution.
5001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5005 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5007 if test "x$RANLIB" = x
; then
5008 if test -n "$ac_tool_prefix"; then
5009 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5010 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$RANLIB"; then
5017 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir
=.
5024 for ac_exec_ext
in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 RANLIB
=$ac_cv_prog_RANLIB
5037 if test -n "$RANLIB"; then
5038 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5039 echo "${ECHO_T}$RANLIB" >&6; }
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5047 if test -z "$ac_cv_prog_RANLIB"; then
5048 ac_ct_RANLIB
=$RANLIB
5049 # Extract the first word of "ranlib", so it can be a program name with args.
5050 set dummy ranlib
; ac_word
=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 if test -n "$ac_ct_RANLIB"; then
5057 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5059 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5063 test -z "$as_dir" && as_dir
=.
5064 for ac_exec_ext
in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5077 if test -n "$ac_ct_RANLIB"; then
5078 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5079 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5081 { echo "$as_me:$LINENO: result: no" >&5
5082 echo "${ECHO_T}no" >&6; }
5085 if test "x$ac_ct_RANLIB" = x
; then
5088 case $cross_compiling:$ac_tool_warned in
5090 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&5
5093 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5096 ac_tool_warned
=yes ;;
5098 RANLIB
=$ac_ct_RANLIB
5101 RANLIB
="$ac_cv_prog_RANLIB"
5105 # Extract the first word of "install-info", so it can be a program name with args.
5106 set dummy install-info
; ac_word
=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 case $INSTALL_INFO in
5114 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5121 test -z "$as_dir" && as_dir
=.
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5136 if test -n "$INSTALL_INFO"; then
5137 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5138 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "install-info", so it can be a program name with args.
5146 set dummy install-info
; ac_word
=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 case $INSTALL_INFO in
5154 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 for as_dir
in /usr
/sbin
5161 test -z "$as_dir" && as_dir
=.
5162 for ac_exec_ext
in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5176 if test -n "$INSTALL_INFO"; then
5177 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5178 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5185 # Extract the first word of "install-info", so it can be a program name with args.
5186 set dummy install-info
; ac_word
=$2
5187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5189 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 case $INSTALL_INFO in
5194 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5201 test -z "$as_dir" && as_dir
=.
5202 for ac_exec_ext
in '' $ac_executable_extensions; do
5203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5216 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5217 if test -n "$INSTALL_INFO"; then
5218 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5219 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5226 # Extract the first word of "gzip", so it can be a program name with args.
5227 set dummy
gzip; ac_word
=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5231 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5242 test -z "$as_dir" && as_dir
=.
5243 for ac_exec_ext
in '' $ac_executable_extensions; do
5244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5257 if test -n "$GZIP_PROG"; then
5258 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5259 echo "${ECHO_T}$GZIP_PROG" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5268 ## Need makeinfo >= 4.6 (?) to build the manuals.
5269 # Extract the first word of "makeinfo", so it can be a program name with args.
5270 set dummy makeinfo
; ac_word
=$2
5271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5273 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5274 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5285 test -z "$as_dir" && as_dir
=.
5286 for ac_exec_ext
in '' $ac_executable_extensions; do
5287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5288 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5300 MAKEINFO
=$ac_cv_path_MAKEINFO
5301 if test -n "$MAKEINFO"; then
5302 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5303 echo "${ECHO_T}$MAKEINFO" >&6; }
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5310 if test "$MAKEINFO" != "no" && \
5311 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
5315 ## Makeinfo is unusual. For a released Emacs, the manuals are
5316 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5317 ## therefore in the category of "special tools" not normally required, which
5318 ## configure does not have to check for (eg autoconf itself).
5319 ## In a CVS checkout on the other hand, the manuals are not included.
5320 ## So makeinfo is a requirement to build from CVS, and configure
5321 ## should test for it as it does for any other build requirement.
5322 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5323 ## with pre-built manuals, from a CVS checkout.
5324 if test "$MAKEINFO" = "no"; then
5325 if test "x${with_makeinfo}" = "xno"; then
5327 elif ! test -e $srcdir/info
/emacs
; then
5328 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5329 source tree does not seem to have pre-built manuals in the \`info' directory.
5330 Either install a suitable version of makeinfo, or re-run configure
5331 with the \`--without-makeinfo' option to build without the manuals. " >&5
5332 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5333 source tree does not seem to have pre-built manuals in the \`info' directory.
5334 Either install a suitable version of makeinfo, or re-run configure
5335 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5336 { (exit 1); exit 1; }; }
5341 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5343 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5346 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5348 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5352 late_LDFLAGS
=$LDFLAGS
5353 if test "$GCC" = yes; then
5354 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5356 LDFLAGS
="$LDFLAGS -znocombreloc"
5359 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5360 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5361 cat >conftest.
$ac_ext <<_ACEOF
5364 rm -f conftest.
$ac_objext conftest
$ac_exeext
5365 if { (ac_try
="$ac_link"
5367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_link") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } && {
5378 test -z "$ac_c_werror_flag" ||
5379 test ! -s conftest.err
5380 } && test -s conftest$ac_exeext &&
5381 $as_test_x conftest$ac_exeext; then
5382 { echo "$as_me:$LINENO: result: yes" >&5
5383 echo "${ECHO_T}yes" >&6; }
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 LDFLAGS=$late_LDFLAGS
5389 { echo "$as_me:$LINENO: result: no" >&5
5390 echo "${ECHO_T}no" >&6; }
5393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5394 conftest$ac_exeext conftest.$ac_ext
5396 #### Extract some information from the operating system and machine files.
5398 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5399 - which libraries the lib-src programs will want, and
5400 - whether the GNU malloc routines are usable..." >&5
5401 echo "$as_me: checking the machine- and system-dependent files to find out
5402 - which libraries the lib-src programs will want, and
5403 - whether the GNU malloc routines are usable..." >&6;}
5405 ### First figure out CFLAGS (which we use for running the compiler here)
5406 ### and REAL_CFLAGS (which we use for real compilation).
5407 ### The two are the same except on a few systems, where they are made
5408 ### different to work around various lossages. For example,
5409 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5410 ### as implying static linking.
5412 ### If the CFLAGS env var is specified, we use that value
5413 ### instead of the default.
5415 ### It's not important that this name contain the PID; you can't run
5416 ### two configures in the same directory and have anything work
5418 tempcname="conftest.c"
5421 #include "'${srcdir}'/src/'${opsysfile}'"
5422 #include "'${srcdir}'/src/'${machfile}'"
5423 #ifndef LIBS_MACHINE
5424 #define LIBS_MACHINE
5429 #ifndef C_SWITCH_SYSTEM
5430 #define C_SWITCH_SYSTEM
5432 #ifndef C_SWITCH_MACHINE
5433 #define C_SWITCH_MACHINE
5435 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5436 configure___ c_switch_system=C_SWITCH_SYSTEM
5437 configure___ c_switch_machine=C_SWITCH_MACHINE
5440 #define LIB_X11_LIB -lX11
5443 #ifndef LIBX11_SYSTEM
5444 #define LIBX11_SYSTEM
5446 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5449 configure___ unexec=UNEXEC
5451 configure___ unexec=unexec.o
5454 #ifdef SYSTEM_MALLOC
5455 configure___ system_malloc=yes
5457 configure___ system_malloc=no
5460 #ifdef USE_MMAP_FOR_BUFFERS
5461 configure___ use_mmap_for_buffers=yes
5463 configure___ use_mmap_for_buffers=no
5466 #ifndef C_DEBUG_SWITCH
5467 #define C_DEBUG_SWITCH -g
5470 #ifndef C_OPTIMIZE_SWITCH
5472 #define C_OPTIMIZE_SWITCH -O2
5474 #define C_OPTIMIZE_SWITCH -O
5478 #ifndef C_WARNINGS_SWITCH
5479 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5482 #ifndef LD_SWITCH_MACHINE
5483 #define LD_SWITCH_MACHINE
5486 #ifndef LD_SWITCH_SYSTEM
5487 #define LD_SWITCH_SYSTEM
5490 #ifndef LD_SWITCH_X_SITE_AUX
5491 #define LD_SWITCH_X_SITE_AUX
5494 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5495 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5497 #ifdef THIS_IS_CONFIGURE
5499 /* Get the CFLAGS for tests in configure. */
5501 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5503 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5506 #else /* not THIS_IS_CONFIGURE */
5508 /* Get the CFLAGS for real compilation. */
5510 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5512 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5515 #endif /* not THIS_IS_CONFIGURE */
5518 # The value of CPP is a quoted variable reference, so we need to do this
5519 # to get its actual value...
5520 CPP=`eval "echo $CPP"`
5521 eval `${CPP} -Isrc ${tempcname} \
5522 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5523 if test "x$SPECIFIED_CFLAGS" = x; then
5524 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5525 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5527 REAL_CFLAGS="$CFLAGS"
5531 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5533 ### Make sure subsequent tests use flags consistent with the build flags.
5535 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5536 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5538 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5543 # Check whether --enable-largefile was given.
5544 if test "${enable_largefile+set}" = set; then
5545 enableval=$enable_largefile;
5548 if test "$enable_largefile" != no; then
5550 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5551 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5552 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 ac_cv_sys_largefile_CC=no
5556 if test "$GCC" != yes; then
5559 # IRIX 6.2 and later do not support large files by default,
5560 # so use the C compiler's -n32 option if that helps.
5561 cat >conftest.$ac_ext <<_ACEOF
5564 cat confdefs.h >>conftest.$ac_ext
5565 cat >>conftest.$ac_ext <<_ACEOF
5566 /* end confdefs.h. */
5567 #include <sys/types.h>
5568 /* Check that off_t can represent 2**63 - 1 correctly.
5569 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5570 since some C++ compilers masquerading as C compilers
5571 incorrectly reject 9223372036854775807. */
5572 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5573 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5574 && LARGE_OFF_T % 2147483647 == 1)
5584 rm -f conftest.$ac_objext
5585 if { (ac_try="$ac_compile"
5587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5588 *) ac_try_echo
=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_compile") 2>conftest.er1
5593 grep -v '^ *+' conftest.er1
>conftest.err
5595 cat conftest.err
>&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } && {
5598 test -z "$ac_c_werror_flag" ||
5599 test ! -s conftest.err
5600 } && test -s conftest.
$ac_objext; then
5603 echo "$as_me: failed program was:" >&5
5604 sed 's/^/| /' conftest.
$ac_ext >&5
5609 rm -f core conftest.err conftest.
$ac_objext
5611 rm -f conftest.
$ac_objext
5612 if { (ac_try
="$ac_compile"
5614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_compile") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1 >conftest.err
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && {
5625 test -z "$ac_c_werror_flag" ||
5626 test ! -s conftest.err
5627 } && test -s conftest.$ac_objext; then
5628 ac_cv_sys_largefile_CC=' -n32'; break
5630 echo "$as_me: failed program was:" >&5
5631 sed 's/^/| /' conftest.$ac_ext >&5
5636 rm -f core conftest.err conftest.$ac_objext
5640 rm -f conftest.$ac_ext
5643 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5644 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5645 if test "$ac_cv_sys_largefile_CC" != no; then
5646 CC=$CC$ac_cv_sys_largefile_CC
5649 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5650 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5651 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <sys/types.h>
5662 /* Check that off_t can represent 2**63 - 1 correctly.
5663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5664 since some C++ compilers masquerading as C compilers
5665 incorrectly reject 9223372036854775807. */
5666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5668 && LARGE_OFF_T % 2147483647 == 1)
5678 rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5682 *) ac_try_echo
=$ac_try;;
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685 (eval "$ac_compile") 2>conftest.er1
5687 grep -v '^ *+' conftest.er1
>conftest.err
5689 cat conftest.err
>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } && {
5692 test -z "$ac_c_werror_flag" ||
5693 test ! -s conftest.err
5694 } && test -s conftest.
$ac_objext; then
5695 ac_cv_sys_file_offset_bits
=no
; break
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.
$ac_ext >&5
5703 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #define _FILE_OFFSET_BITS 64
5711 #include <sys/types.h>
5712 /* Check that off_t can represent 2**63 - 1 correctly.
5713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5714 since some C++ compilers masquerading as C compilers
5715 incorrectly reject 9223372036854775807. */
5716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5718 && LARGE_OFF_T % 2147483647 == 1)
5728 rm -f conftest.
$ac_objext
5729 if { (ac_try
="$ac_compile"
5731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_compile") 2>conftest.er1
5737 grep -v '^ *+' conftest.er1 >conftest.err
5739 cat conftest.err >&5
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); } && {
5742 test -z "$ac_c_werror_flag" ||
5743 test ! -s conftest.err
5744 } && test -s conftest.$ac_objext; then
5745 ac_cv_sys_file_offset_bits=64; break
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5754 ac_cv_sys_file_offset_bits=unknown
5758 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5759 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5760 case $ac_cv_sys_file_offset_bits in #(
5763 cat >>confdefs.h <<_ACEOF
5764 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5769 if test $ac_cv_sys_file_offset_bits = unknown; then
5770 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5771 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5772 if test "${ac_cv_sys_large_files+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #include <sys/types.h>
5783 /* Check that off_t can represent 2**63 - 1 correctly.
5784 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5785 since some C++ compilers masquerading as C compilers
5786 incorrectly reject 9223372036854775807. */
5787 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5788 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5789 && LARGE_OFF_T % 2147483647 == 1)
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5803 *) ac_try_echo
=$ac_try;;
5805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5806 (eval "$ac_compile") 2>conftest.er1
5808 grep -v '^ *+' conftest.er1
>conftest.err
5810 cat conftest.err
>&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } && {
5813 test -z "$ac_c_werror_flag" ||
5814 test ! -s conftest.err
5815 } && test -s conftest.
$ac_objext; then
5816 ac_cv_sys_large_files
=no
; break
5818 echo "$as_me: failed program was:" >&5
5819 sed 's/^/| /' conftest.
$ac_ext >&5
5824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5825 cat >conftest.
$ac_ext <<_ACEOF
5828 cat confdefs.h
>>conftest.
$ac_ext
5829 cat >>conftest.
$ac_ext <<_ACEOF
5830 /* end confdefs.h. */
5831 #define _LARGE_FILES 1
5832 #include <sys/types.h>
5833 /* Check that off_t can represent 2**63 - 1 correctly.
5834 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5835 since some C++ compilers masquerading as C compilers
5836 incorrectly reject 9223372036854775807. */
5837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5838 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5839 && LARGE_OFF_T % 2147483647 == 1)
5849 rm -f conftest.
$ac_objext
5850 if { (ac_try
="$ac_compile"
5852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_compile") 2>conftest.er1
5858 grep -v '^ *+' conftest.er1 >conftest.err
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest.$ac_objext; then
5866 ac_cv_sys_large_files=1; break
5868 echo "$as_me: failed program was:" >&5
5869 sed 's/^/| /' conftest.$ac_ext >&5
5874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5875 ac_cv_sys_large_files=unknown
5879 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5880 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5881 case $ac_cv_sys_large_files in #(
5884 cat >>confdefs.h <<_ACEOF
5885 #define _LARGE_FILES $ac_cv_sys_large_files
5895 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5896 ### be located in either /usr/lib64 or /usr/lib.
5897 case "${canonical}" in
5898 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5899 if test -d /usr/lib64; then
5901 cat >>confdefs.h <<\_ACEOF
5902 #define HAVE_LIB64_DIR 1
5911 if test "${with_sound}" != "no"; then
5912 # Sound support for GNU/Linux and the free BSDs.
5916 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5918 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 ac_res=`eval echo '${'$as_ac_Header'}'`
5926 { echo "$as_me:$LINENO: result: $ac_res" >&5
5927 echo "${ECHO_T}$ac_res" >&6; }
5929 # Is the header compilable?
5930 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5938 $ac_includes_default
5939 #include <$ac_header>
5941 rm -f conftest.$ac_objext
5942 if { (ac_try="$ac_compile"
5944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5945 *) ac_try_echo
=$ac_try;;
5947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_compile") 2>conftest.er1
5950 grep -v '^ *+' conftest.er1
>conftest.err
5952 cat conftest.err
>&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); } && {
5955 test -z "$ac_c_werror_flag" ||
5956 test ! -s conftest.err
5957 } && test -s conftest.
$ac_objext; then
5958 ac_header_compiler
=yes
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.
$ac_ext >&5
5963 ac_header_compiler
=no
5966 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5967 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5968 echo "${ECHO_T}$ac_header_compiler" >&6; }
5970 # Is the header present?
5971 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5972 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5973 cat >conftest.
$ac_ext <<_ACEOF
5976 cat confdefs.h
>>conftest.
$ac_ext
5977 cat >>conftest.
$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5979 #include <$ac_header>
5981 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5984 *) ac_try_echo=$ac_try;;
5986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5989 grep -v '^ *+' conftest.er1 >conftest.err
5991 cat conftest.err >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } >/dev/null && {
5994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5997 ac_header_preproc=yes
5999 echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6002 ac_header_preproc=no
6005 rm -f conftest.err conftest.$ac_ext
6006 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6007 echo "${ECHO_T}$ac_header_preproc" >&6; }
6009 # So? What about this header?
6010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6016 ac_header_preproc=yes
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6021 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6022 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6023 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6025 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6026 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6029 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 eval "$as_ac_Header=\$ac_header_preproc"
6041 ac_res=`eval echo '${'$as_ac_Header'}'`
6042 { echo "$as_me:$LINENO: result: $ac_res" >&5
6043 echo "${ECHO_T}$ac_res" >&6; }
6046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6055 # Emulation library used on NetBSD.
6056 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6057 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6058 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_check_lib_save_LIBS=$LIBS
6062 LIBS="-lossaudio $LIBS"
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any GCC internal prototype to avoid an error.
6071 Use char because int might match the return type of a GCC
6072 builtin and then its argument prototype would still apply. */
6080 return _oss_ioctl ();
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (ac_try="$ac_link"
6088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6089 *) ac_try_echo
=$ac_try;;
6091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6092 (eval "$ac_link") 2>conftest.er1
6094 grep -v '^ *+' conftest.er1
>conftest.err
6096 cat conftest.err
>&5
6097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098 (exit $ac_status); } && {
6099 test -z "$ac_c_werror_flag" ||
6100 test ! -s conftest.err
6101 } && test -s conftest
$ac_exeext &&
6102 $as_test_x conftest
$ac_exeext; then
6103 ac_cv_lib_ossaudio__oss_ioctl
=yes
6105 echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.
$ac_ext >&5
6108 ac_cv_lib_ossaudio__oss_ioctl
=no
6111 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6112 conftest
$ac_exeext conftest.
$ac_ext
6113 LIBS
=$ac_check_lib_save_LIBS
6115 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6116 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6117 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6126 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6130 # Extract the first word of "pkg-config", so it can be a program name with args.
6131 set dummy pkg-config
; ac_word
=$2
6132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6134 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6146 test -z "$as_dir" && as_dir
=.
6147 for ac_exec_ext
in '' $ac_executable_extensions; do
6148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6149 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6157 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6161 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6162 if test -n "$PKG_CONFIG"; then
6163 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6164 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6166 { echo "$as_me:$LINENO: result: no" >&5
6167 echo "${ECHO_T}no" >&6; }
6172 if test "$PKG_CONFIG" = "no" ; then
6175 PKG_CONFIG_MIN_VERSION
=0.9.0
6176 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6177 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6178 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6180 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6181 { echo "$as_me:$LINENO: result: yes" >&5
6182 echo "${ECHO_T}yes" >&6; }
6185 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6186 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6187 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6188 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6189 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6191 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6192 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6193 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6194 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6195 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6197 { echo "$as_me:$LINENO: result: no" >&5
6198 echo "${ECHO_T}no" >&6; }
6201 ## If we have a custom action on failure, don't print errors, but
6202 ## do set a variable so people can do so.
6203 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6210 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6211 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6215 if test $succeeded = yes; then
6221 if test $HAVE_ALSA = yes; then
6222 SAVE_CFLAGS
="$CFLAGS"
6223 SAVE_LDFLAGS
="$LDFLAGS"
6224 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6225 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6226 cat >conftest.
$ac_ext <<_ACEOF
6229 cat confdefs.h
>>conftest.
$ac_ext
6230 cat >>conftest.
$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6232 #include <asoundlib.h>
6236 snd_lib_error_set_handler (0);
6241 rm -f conftest.
$ac_objext
6242 if { (ac_try
="$ac_compile"
6244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_compile") 2>conftest.er1
6250 grep -v '^ *+' conftest.er1 >conftest.err
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } && {
6255 test -z "$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 } && test -s conftest.$ac_objext; then
6258 emacs_alsa_normal=yes
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6263 emacs_alsa_normal=no
6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 if test "$emacs_alsa_normal" != yes; then
6268 cat >conftest.$ac_ext <<_ACEOF
6271 cat confdefs.h >>conftest.$ac_ext
6272 cat >>conftest.$ac_ext <<_ACEOF
6273 /* end confdefs.h. */
6274 #include <alsa/asoundlib.h>
6278 snd_lib_error_set_handler (0);
6283 rm -f conftest.$ac_objext
6284 if { (ac_try="$ac_compile"
6286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6287 *) ac_try_echo
=$ac_try;;
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290 (eval "$ac_compile") 2>conftest.er1
6292 grep -v '^ *+' conftest.er1
>conftest.err
6294 cat conftest.err
>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } && {
6297 test -z "$ac_c_werror_flag" ||
6298 test ! -s conftest.err
6299 } && test -s conftest.
$ac_objext; then
6300 emacs_alsa_subdir
=yes
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.
$ac_ext >&5
6305 emacs_alsa_subdir
=no
6308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6309 if test "$emacs_alsa_subdir" != yes; then
6310 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6311 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6312 { (exit 1); exit 1; }; }
6314 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6317 CFLAGS
="$SAVE_CFLAGS"
6318 LDFLAGS
="$SAVE_LDFLAGS"
6319 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6320 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6322 cat >>confdefs.h
<<\_ACEOF
6355 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6356 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6357 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6358 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6361 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6368 ac_res
=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6372 # Is the header compilable?
6373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6375 cat >conftest.
$ac_ext <<_ACEOF
6378 cat confdefs.h
>>conftest.
$ac_ext
6379 cat >>conftest.
$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 #include <$ac_header>
6384 rm -f conftest.
$ac_objext
6385 if { (ac_try
="$ac_compile"
6387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 ac_header_compiler=yes
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_header_compiler=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6411 echo "${ECHO_T}$ac_header_compiler" >&6; }
6413 # Is the header present?
6414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6416 cat >conftest.$ac_ext <<_ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #include <$ac_header>
6424 if { (ac_try="$ac_cpp conftest.$ac_ext"
6426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6427 *) ac_try_echo
=$ac_try;;
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1
>conftest.err
6434 cat conftest.err
>&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } >/dev
/null
&& {
6437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6440 ac_header_preproc
=yes
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.
$ac_ext >&5
6445 ac_header_preproc
=no
6448 rm -f conftest.err conftest.
$ac_ext
6449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6450 echo "${ECHO_T}$ac_header_preproc" >&6; }
6452 # So? What about this header?
6453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6459 ac_header_preproc
=yes
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 eval "$as_ac_Header=\$ac_header_preproc"
6484 ac_res
=`eval echo '${'$as_ac_Header'}'`
6485 { echo "$as_me:$LINENO: result: $ac_res" >&5
6486 echo "${ECHO_T}$ac_res" >&6; }
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h
<<_ACEOF
6491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6499 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6500 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6501 cat >conftest.
$ac_ext <<_ACEOF
6504 cat confdefs.h
>>conftest.
$ac_ext
6505 cat >>conftest.
$ac_ext <<_ACEOF
6506 /* end confdefs.h. */
6507 #include <sys/personality.h>
6511 personality (PER_LINUX32)
6516 rm -f conftest.
$ac_objext
6517 if { (ac_try
="$ac_compile"
6519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6533 emacs_cv_personality_linux32=yes
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6538 emacs_cv_personality_linux32=no
6541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6542 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6543 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6545 if test $emacs_cv_personality_linux32 = yes; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define HAVE_PERSONALITY_LINUX32 1
6554 for ac_header in term.h
6556 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6557 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 cat >conftest.$ac_ext <<_ACEOF
6565 cat confdefs.h >>conftest.$ac_ext
6566 cat >>conftest.$ac_ext <<_ACEOF
6567 /* end confdefs.h. */
6568 #include <$ac_header>
6570 if { (ac_try="$ac_cpp conftest.$ac_ext"
6572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6573 *) ac_try_echo
=$ac_try;;
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6578 grep -v '^ *+' conftest.er1
>conftest.err
6580 cat conftest.err
>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } >/dev
/null
&& {
6583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6586 eval "$as_ac_Header=yes"
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.
$ac_ext >&5
6591 eval "$as_ac_Header=no"
6594 rm -f conftest.err conftest.
$ac_ext
6596 ac_res
=`eval echo '${'$as_ac_Header'}'`
6597 { echo "$as_me:$LINENO: result: $ac_res" >&5
6598 echo "${ECHO_T}$ac_res" >&6; }
6599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6600 cat >>confdefs.h
<<_ACEOF
6601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6608 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6609 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6610 if test "${ac_cv_header_stdc+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 cat >conftest.
$ac_ext <<_ACEOF
6616 cat confdefs.h
>>conftest.
$ac_ext
6617 cat >>conftest.
$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6632 rm -f conftest.
$ac_objext
6633 if { (ac_try
="$ac_compile"
6635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6639 (eval "$ac_compile") 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && {
6646 test -z "$ac_c_werror_flag" ||
6647 test ! -s conftest.err
6648 } && test -s conftest.$ac_objext; then
6649 ac_cv_header_stdc=yes
6651 echo "$as_me: failed program was:" >&5
6652 sed 's/^/| /' conftest.$ac_ext >&5
6654 ac_cv_header_stdc=no
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 if test $ac_cv_header_stdc = yes; then
6660 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6671 $EGREP "memchr" >/dev/null 2>&1; then
6674 ac_cv_header_stdc=no
6680 if test $ac_cv_header_stdc = yes; then
6681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6692 $EGREP "free" >/dev/null 2>&1; then
6695 ac_cv_header_stdc=no
6701 if test $ac_cv_header_stdc = yes; then
6702 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6703 if test "$cross_compiling" = yes; then
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6714 #if ((' ' & 0x0FF) == 0x020)
6715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6718 # define ISLOWER(c) \
6719 (('a' <= (c) && (c) <= 'i') \
6720 || ('j' <= (c) && (c) <= 'r') \
6721 || ('s' <= (c) && (c) <= 'z'))
6722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6730 for (i = 0; i < 256; i++)
6731 if (XOR (islower (i), ISLOWER (i))
6732 || toupper (i) != TOUPPER (i))
6737 rm -f conftest$ac_exeext
6738 if { (ac_try="$ac_link"
6740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6741 *) ac_try_echo
=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_link") 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6748 { (case "(($ac_try" in
6749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_try") 2>&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6759 echo "$as_me: program exited with status $ac_status" >&5
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6764 ac_cv_header_stdc=no
6766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6772 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6773 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6774 if test $ac_cv_header_stdc = yes; then
6776 cat >>confdefs.h <<\_ACEOF
6777 #define STDC_HEADERS 1
6782 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6783 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6784 if test "${ac_cv_header_time+set}" = set; then
6785 echo $ECHO_N "(cached) $ECHO_C" >&6
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <sys/types.h>
6794 #include <sys/time.h>
6800 if ((struct tm *) 0)
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6810 *) ac_try_echo
=$ac_try;;
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813 (eval "$ac_compile") 2>conftest.er1
6815 grep -v '^ *+' conftest.er1
>conftest.err
6817 cat conftest.err
>&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest.
$ac_objext; then
6823 ac_cv_header_time
=yes
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.
$ac_ext >&5
6828 ac_cv_header_time
=no
6831 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6833 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6834 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6835 if test $ac_cv_header_time = yes; then
6837 cat >>confdefs.h
<<\_ACEOF
6838 #define TIME_WITH_SYS_TIME 1
6843 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6844 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6845 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6846 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 cat >conftest.
$ac_ext <<_ACEOF
6851 cat confdefs.h
>>conftest.
$ac_ext
6852 cat >>conftest.
$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6854 $ac_includes_default
6866 rm -f conftest.
$ac_objext
6867 if { (ac_try
="$ac_compile"
6869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_compile") 2>conftest.er1
6875 grep -v '^ *+' conftest.er1 >conftest.err
6877 cat conftest.err >&5
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); } && {
6880 test -z "$ac_c_werror_flag" ||
6881 test ! -s conftest.err
6882 } && test -s conftest.$ac_objext; then
6883 ac_cv_have_decl_sys_siglist=yes
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_have_decl_sys_siglist=no
6891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6894 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6895 if test $ac_cv_have_decl_sys_siglist = yes; then
6897 cat >>confdefs.h <<_ACEOF
6898 #define HAVE_DECL_SYS_SIGLIST 1
6903 cat >>confdefs.h <<_ACEOF
6904 #define HAVE_DECL_SYS_SIGLIST 0
6911 if test $ac_cv_have_decl_sys_siglist != yes; then
6912 # For Tru64, at least:
6913 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6914 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6915 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6928 #ifndef __sys_siglist
6929 (void) __sys_siglist;
6936 rm -f conftest.$ac_objext
6937 if { (ac_try="$ac_compile"
6939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6940 *) ac_try_echo
=$ac_try;;
6942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1
>conftest.err
6947 cat conftest.err
>&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.
$ac_objext; then
6953 ac_cv_have_decl___sys_siglist
=yes
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.
$ac_ext >&5
6958 ac_cv_have_decl___sys_siglist
=no
6961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6964 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6965 if test $ac_cv_have_decl___sys_siglist = yes; then
6967 cat >>confdefs.h
<<_ACEOF
6968 #define HAVE_DECL___SYS_SIGLIST 1
6973 cat >>confdefs.h
<<_ACEOF
6974 #define HAVE_DECL___SYS_SIGLIST 0
6981 if test $ac_cv_have_decl___sys_siglist = yes; then
6983 cat >>confdefs.h
<<\_ACEOF
6984 #define sys_siglist __sys_siglist
6989 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6990 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6991 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6992 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 cat >conftest.
$ac_ext <<_ACEOF
6997 cat confdefs.h
>>conftest.
$ac_ext
6998 cat >>conftest.
$ac_ext <<_ACEOF
6999 /* end confdefs.h. */
7000 #include <sys/types.h>
7001 #include <sys/wait.h>
7003 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7006 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7014 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7019 rm -f conftest.
$ac_objext
7020 if { (ac_try
="$ac_compile"
7022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_cv_header_sys_wait_h=yes
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_cv_header_sys_wait_h=no
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7047 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7048 if test $ac_cv_header_sys_wait_h = yes; then
7050 cat >>confdefs.h <<\_ACEOF
7051 #define HAVE_SYS_WAIT_H 1
7057 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7058 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7059 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 #ifdef TIME_WITH_SYS_TIME
7069 #include <sys/time.h>
7072 #ifdef HAVE_SYS_TIME_H
7073 #include <sys/time.h>
7084 static struct utimbuf x; x.actime = x.modtime;
7089 rm -f conftest.$ac_objext
7090 if { (ac_try="$ac_compile"
7092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7093 *) ac_try_echo
=$ac_try;;
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096 (eval "$ac_compile") 2>conftest.er1
7098 grep -v '^ *+' conftest.er1
>conftest.err
7100 cat conftest.err
>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); } && {
7103 test -z "$ac_c_werror_flag" ||
7104 test ! -s conftest.err
7105 } && test -s conftest.
$ac_objext; then
7106 emacs_cv_struct_utimbuf
=yes
7108 echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.
$ac_ext >&5
7111 emacs_cv_struct_utimbuf
=no
7114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7116 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7117 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7118 if test $emacs_cv_struct_utimbuf = yes; then
7120 cat >>confdefs.h
<<\_ACEOF
7121 #define HAVE_STRUCT_UTIMBUF 1
7126 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7127 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7128 if test "${ac_cv_type_signal+set}" = set; then
7129 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 cat >conftest.
$ac_ext <<_ACEOF
7134 cat confdefs.h
>>conftest.
$ac_ext
7135 cat >>conftest.
$ac_ext <<_ACEOF
7136 /* end confdefs.h. */
7137 #include <sys/types.h>
7143 return *(signal (0, 0)) (0) == 1;
7148 rm -f conftest.
$ac_objext
7149 if { (ac_try
="$ac_compile"
7151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7152 *) ac_try_echo=$ac_try;;
7154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7155 (eval "$ac_compile") 2>conftest.er1
7157 grep -v '^ *+' conftest.er1 >conftest.err
7159 cat conftest.err >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); } && {
7162 test -z "$ac_c_werror_flag" ||
7163 test ! -s conftest.err
7164 } && test -s conftest.$ac_objext; then
7165 ac_cv_type_signal=int
7167 echo "$as_me: failed program was:" >&5
7168 sed 's/^/| /' conftest.$ac_ext >&5
7170 ac_cv_type_signal=void
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7176 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7178 cat >>confdefs.h <<_ACEOF
7179 #define RETSIGTYPE $ac_cv_type_signal
7184 { echo "$as_me:$LINENO: checking for speed_t" >&5
7185 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7186 if test "${emacs_cv_speed_t+set}" = set; then
7187 echo $ECHO_N "(cached) $ECHO_C" >&6
7189 cat >conftest.$ac_ext <<_ACEOF
7192 cat confdefs.h >>conftest.$ac_ext
7193 cat >>conftest.$ac_ext <<_ACEOF
7194 /* end confdefs.h. */
7195 #include <termios.h>
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7208 *) ac_try_echo
=$ac_try;;
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1
>conftest.err
7215 cat conftest.err
>&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.
$ac_objext; then
7221 emacs_cv_speed_t
=yes
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.
$ac_ext >&5
7229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7231 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7232 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7233 if test $emacs_cv_speed_t = yes; then
7235 cat >>confdefs.h
<<\_ACEOF
7236 #define HAVE_SPEED_T 1
7241 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7242 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7243 if test "${emacs_cv_struct_timeval+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7246 cat >conftest.
$ac_ext <<_ACEOF
7249 cat confdefs.h
>>conftest.
$ac_ext
7250 cat >>conftest.
$ac_ext <<_ACEOF
7251 /* end confdefs.h. */
7252 #ifdef TIME_WITH_SYS_TIME
7253 #include <sys/time.h>
7256 #ifdef HAVE_SYS_TIME_H
7257 #include <sys/time.h>
7265 static struct timeval x; x.tv_sec = x.tv_usec;
7270 rm -f conftest.
$ac_objext
7271 if { (ac_try
="$ac_compile"
7273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7274 *) ac_try_echo=$ac_try;;
7276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7277 (eval "$ac_compile") 2>conftest.er1
7279 grep -v '^ *+' conftest.er1 >conftest.err
7281 cat conftest.err >&5
7282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283 (exit $ac_status); } && {
7284 test -z "$ac_c_werror_flag" ||
7285 test ! -s conftest.err
7286 } && test -s conftest.$ac_objext; then
7287 emacs_cv_struct_timeval=yes
7289 echo "$as_me: failed program was:" >&5
7290 sed 's/^/| /' conftest.$ac_ext >&5
7292 emacs_cv_struct_timeval=no
7295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7298 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7299 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7300 if test $emacs_cv_struct_timeval = yes; then
7302 cat >>confdefs.h <<\_ACEOF
7303 #define HAVE_TIMEVAL 1
7308 { echo "$as_me:$LINENO: checking for struct exception" >&5
7309 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7310 if test "${emacs_cv_struct_exception+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7323 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7332 *) ac_try_echo
=$ac_try;;
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7337 grep -v '^ *+' conftest.er1
>conftest.err
7339 cat conftest.err
>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.
$ac_objext; then
7345 emacs_cv_struct_exception
=yes
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.
$ac_ext >&5
7350 emacs_cv_struct_exception
=no
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7356 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7357 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7358 if test $emacs_cv_struct_exception != yes; then
7360 cat >>confdefs.h
<<\_ACEOF
7361 #define NO_MATHERR 1
7367 for ac_header
in sys
/socket.h
7369 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7370 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_res
=`eval echo '${'$as_ac_Header'}'`
7377 { echo "$as_me:$LINENO: result: $ac_res" >&5
7378 echo "${ECHO_T}$ac_res" >&6; }
7380 # Is the header compilable?
7381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7383 cat >conftest.
$ac_ext <<_ACEOF
7386 cat confdefs.h
>>conftest.
$ac_ext
7387 cat >>conftest.
$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 #include <$ac_header>
7392 rm -f conftest.
$ac_objext
7393 if { (ac_try
="$ac_compile"
7395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7401 grep -v '^ *+' conftest.er1 >conftest.err
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_header_compiler=yes
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 ac_header_compiler=no
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7419 echo "${ECHO_T}$ac_header_compiler" >&6; }
7421 # Is the header present?
7422 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7423 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7424 cat >conftest.$ac_ext <<_ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */
7430 #include <$ac_header>
7432 if { (ac_try="$ac_cpp conftest.$ac_ext"
7434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7435 *) ac_try_echo
=$ac_try;;
7437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7440 grep -v '^ *+' conftest.er1
>conftest.err
7442 cat conftest.err
>&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev
/null
&& {
7445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7446 test ! -s conftest.err
7448 ac_header_preproc
=yes
7450 echo "$as_me: failed program was:" >&5
7451 sed 's/^/| /' conftest.
$ac_ext >&5
7453 ac_header_preproc
=no
7456 rm -f conftest.err conftest.
$ac_ext
7457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7458 echo "${ECHO_T}$ac_header_preproc" >&6; }
7460 # So? What about this header?
7461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7467 ac_header_preproc
=yes
7470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7487 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7490 eval "$as_ac_Header=\$ac_header_preproc"
7492 ac_res
=`eval echo '${'$as_ac_Header'}'`
7493 { echo "$as_me:$LINENO: result: $ac_res" >&5
7494 echo "${ECHO_T}$ac_res" >&6; }
7497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7498 cat >>confdefs.h
<<_ACEOF
7499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7507 for ac_header
in net
/if.h
7509 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7512 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 cat >conftest.
$ac_ext <<_ACEOF
7518 cat confdefs.h
>>conftest.
$ac_ext
7519 cat >>conftest.
$ac_ext <<_ACEOF
7520 /* end confdefs.h. */
7521 $ac_includes_default
7522 #if HAVE_SYS_SOCKET_H
7523 #include <sys/socket.h>
7526 #include <$ac_header>
7528 rm -f conftest.
$ac_objext
7529 if { (ac_try
="$ac_compile"
7531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1 >conftest.err
7539 cat conftest.err >&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.$ac_objext; then
7545 eval "$as_ac_Header=yes"
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7550 eval "$as_ac_Header=no"
7553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7555 ac_res=`eval echo '${'$as_ac_Header'}'`
7556 { echo "$as_me:$LINENO: result: $ac_res" >&5
7557 echo "${ECHO_T}$ac_res" >&6; }
7558 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7559 cat >>confdefs.h <<_ACEOF
7560 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7568 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7569 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7570 if test "${ac_cv_struct_tm+set}" = set; then
7571 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 cat >conftest.$ac_ext <<_ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h. */
7579 #include <sys/types.h>
7586 int *p = &tm.tm_sec;
7592 rm -f conftest.$ac_objext
7593 if { (ac_try="$ac_compile"
7595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7596 *) ac_try_echo
=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1
>conftest.err
7603 cat conftest.err
>&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.
$ac_objext; then
7609 ac_cv_struct_tm
=time.h
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.
$ac_ext >&5
7614 ac_cv_struct_tm
=sys
/time.h
7617 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7620 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7621 if test $ac_cv_struct_tm = sys
/time.h
; then
7623 cat >>confdefs.h
<<\_ACEOF
7624 #define TM_IN_SYS_TIME 1
7629 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7630 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7631 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7632 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 cat >conftest.
$ac_ext <<_ACEOF
7637 cat confdefs.h
>>conftest.
$ac_ext
7638 cat >>conftest.
$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 #include <sys/types.h>
7641 #include <$ac_cv_struct_tm>
7647 static struct tm ac_aggr;
7648 if (ac_aggr.tm_zone)
7654 rm -f conftest.
$ac_objext
7655 if { (ac_try
="$ac_compile"
7657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7658 *) ac_try_echo=$ac_try;;
7660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7661 (eval "$ac_compile") 2>conftest.er1
7663 grep -v '^ *+' conftest.er1 >conftest.err
7665 cat conftest.err >&5
7666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667 (exit $ac_status); } && {
7668 test -z "$ac_c_werror_flag" ||
7669 test ! -s conftest.err
7670 } && test -s conftest.$ac_objext; then
7671 ac_cv_member_struct_tm_tm_zone=yes
7673 echo "$as_me: failed program was:" >&5
7674 sed 's/^/| /' conftest.$ac_ext >&5
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7682 #include <sys/types.h>
7683 #include <$ac_cv_struct_tm>
7689 static struct tm ac_aggr;
7690 if (sizeof ac_aggr.tm_zone)
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.
$ac_objext; then
7713 ac_cv_member_struct_tm_tm_zone
=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_cv_member_struct_tm_tm_zone
=no
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7726 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7727 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7728 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7730 cat >>confdefs.h
<<_ACEOF
7731 #define HAVE_STRUCT_TM_TM_ZONE 1
7737 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7739 cat >>confdefs.h
<<\_ACEOF
7740 #define HAVE_TM_ZONE 1
7744 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7745 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7746 if test "${ac_cv_have_decl_tzname+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7768 rm -f conftest.
$ac_objext
7769 if { (ac_try
="$ac_compile"
7771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7775 (eval "$ac_compile") 2>conftest.er1
7777 grep -v '^ *+' conftest.er1 >conftest.err
7779 cat conftest.err >&5
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); } && {
7782 test -z "$ac_c_werror_flag" ||
7783 test ! -s conftest.err
7784 } && test -s conftest.$ac_objext; then
7785 ac_cv_have_decl_tzname=yes
7787 echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7790 ac_cv_have_decl_tzname=no
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7796 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7797 if test $ac_cv_have_decl_tzname = yes; then
7799 cat >>confdefs.h <<_ACEOF
7800 #define HAVE_DECL_TZNAME 1
7805 cat >>confdefs.h <<_ACEOF
7806 #define HAVE_DECL_TZNAME 0
7813 { echo "$as_me:$LINENO: checking for tzname" >&5
7814 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7815 if test "${ac_cv_var_tzname+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7825 #if !HAVE_DECL_TZNAME
7826 extern char *tzname[];
7832 return tzname[0][0];
7837 rm -f conftest.$ac_objext conftest$ac_exeext
7838 if { (ac_try="$ac_link"
7840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7841 *) ac_try_echo
=$ac_try;;
7843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7844 (eval "$ac_link") 2>conftest.er1
7846 grep -v '^ *+' conftest.er1
>conftest.err
7848 cat conftest.err
>&5
7849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7850 (exit $ac_status); } && {
7851 test -z "$ac_c_werror_flag" ||
7852 test ! -s conftest.err
7853 } && test -s conftest
$ac_exeext &&
7854 $as_test_x conftest
$ac_exeext; then
7855 ac_cv_var_tzname
=yes
7857 echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.
$ac_ext >&5
7863 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7864 conftest
$ac_exeext conftest.
$ac_ext
7866 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7867 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7868 if test $ac_cv_var_tzname = yes; then
7870 cat >>confdefs.h
<<\_ACEOF
7871 #define HAVE_TZNAME 1
7877 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7878 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7879 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.
$ac_ext <<_ACEOF
7885 cat confdefs.h
>>conftest.
$ac_ext
7886 cat >>conftest.
$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7893 static struct tm ac_aggr;
7894 if (ac_aggr.tm_gmtoff)
7900 rm -f conftest.
$ac_objext
7901 if { (ac_try
="$ac_compile"
7903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7933 static struct tm ac_aggr;
7934 if (sizeof ac_aggr.tm_gmtoff)
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7944 *) ac_try_echo
=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1
>conftest.err
7951 cat conftest.err
>&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.
$ac_objext; then
7957 ac_cv_member_struct_tm_tm_gmtoff
=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.
$ac_ext >&5
7962 ac_cv_member_struct_tm_tm_gmtoff
=no
7965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7971 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7972 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7974 cat >>confdefs.h
<<\_ACEOF
7975 #define HAVE_TM_GMTOFF 1
7980 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7981 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7982 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 cat >conftest.
$ac_ext <<_ACEOF
7988 cat confdefs.h
>>conftest.
$ac_ext
7989 cat >>conftest.
$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
7991 $ac_includes_default
7992 #if HAVE_SYS_SOCKET_H
7993 #include <sys/socket.h>
8002 static struct ifreq ac_aggr;
8003 if (ac_aggr.ifr_flags)
8009 rm -f conftest.
$ac_objext
8010 if { (ac_try
="$ac_compile"
8012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1 >conftest.err
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_cv_member_struct_ifreq_ifr_flags=yes
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8031 cat >conftest.$ac_ext <<_ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 $ac_includes_default
8038 #if HAVE_SYS_SOCKET_H
8039 #include <sys/socket.h>
8048 static struct ifreq ac_aggr;
8049 if (sizeof ac_aggr.ifr_flags)
8055 rm -f conftest.$ac_objext
8056 if { (ac_try="$ac_compile"
8058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8059 *) ac_try_echo
=$ac_try;;
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062 (eval "$ac_compile") 2>conftest.er1
8064 grep -v '^ *+' conftest.er1
>conftest.err
8066 cat conftest.err
>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } && {
8069 test -z "$ac_c_werror_flag" ||
8070 test ! -s conftest.err
8071 } && test -s conftest.
$ac_objext; then
8072 ac_cv_member_struct_ifreq_ifr_flags
=yes
8074 echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.
$ac_ext >&5
8077 ac_cv_member_struct_ifreq_ifr_flags
=no
8080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8086 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8087 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8089 cat >>confdefs.h
<<_ACEOF
8090 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8095 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8096 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8097 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 cat >conftest.
$ac_ext <<_ACEOF
8103 cat confdefs.h
>>conftest.
$ac_ext
8104 cat >>conftest.
$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8106 $ac_includes_default
8107 #if HAVE_SYS_SOCKET_H
8108 #include <sys/socket.h>
8117 static struct ifreq ac_aggr;
8118 if (ac_aggr.ifr_hwaddr)
8124 rm -f conftest.
$ac_objext
8125 if { (ac_try
="$ac_compile"
8127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131 (eval "$ac_compile") 2>conftest.er1
8133 grep -v '^ *+' conftest.er1 >conftest.err
8135 cat conftest.err >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); } && {
8138 test -z "$ac_c_werror_flag" ||
8139 test ! -s conftest.err
8140 } && test -s conftest.$ac_objext; then
8141 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8152 $ac_includes_default
8153 #if HAVE_SYS_SOCKET_H
8154 #include <sys/socket.h>
8163 static struct ifreq ac_aggr;
8164 if (sizeof ac_aggr.ifr_hwaddr)
8170 rm -f conftest.$ac_objext
8171 if { (ac_try="$ac_compile"
8173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8174 *) ac_try_echo
=$ac_try;;
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177 (eval "$ac_compile") 2>conftest.er1
8179 grep -v '^ *+' conftest.er1
>conftest.err
8181 cat conftest.err
>&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest.
$ac_objext; then
8187 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.
$ac_ext >&5
8192 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8200 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8201 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8202 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8204 cat >>confdefs.h
<<_ACEOF
8205 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8210 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8211 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8212 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8213 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 cat >conftest.
$ac_ext <<_ACEOF
8218 cat confdefs.h
>>conftest.
$ac_ext
8219 cat >>conftest.
$ac_ext <<_ACEOF
8220 /* end confdefs.h. */
8221 $ac_includes_default
8222 #if HAVE_SYS_SOCKET_H
8223 #include <sys/socket.h>
8232 static struct ifreq ac_aggr;
8233 if (ac_aggr.ifr_netmask)
8239 rm -f conftest.
$ac_objext
8240 if { (ac_try
="$ac_compile"
8242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8243 *) ac_try_echo=$ac_try;;
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246 (eval "$ac_compile") 2>conftest.er1
8248 grep -v '^ *+' conftest.er1 >conftest.err
8250 cat conftest.err >&5
8251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8252 (exit $ac_status); } && {
8253 test -z "$ac_c_werror_flag" ||
8254 test ! -s conftest.err
8255 } && test -s conftest.$ac_objext; then
8256 ac_cv_member_struct_ifreq_ifr_netmask=yes
8258 echo "$as_me: failed program was:" >&5
8259 sed 's/^/| /' conftest.$ac_ext >&5
8261 cat >conftest.$ac_ext <<_ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8267 $ac_includes_default
8268 #if HAVE_SYS_SOCKET_H
8269 #include <sys/socket.h>
8278 static struct ifreq ac_aggr;
8279 if (sizeof ac_aggr.ifr_netmask)
8285 rm -f conftest.$ac_objext
8286 if { (ac_try="$ac_compile"
8288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8289 *) ac_try_echo
=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_compile") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1
>conftest.err
8296 cat conftest.err
>&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } && {
8299 test -z "$ac_c_werror_flag" ||
8300 test ! -s conftest.err
8301 } && test -s conftest.
$ac_objext; then
8302 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.
$ac_ext >&5
8307 ac_cv_member_struct_ifreq_ifr_netmask
=no
8310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8315 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8316 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8317 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8319 cat >>confdefs.h
<<_ACEOF
8320 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8325 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8326 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8327 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8328 echo $ECHO_N "(cached) $ECHO_C" >&6
8330 cat >conftest.
$ac_ext <<_ACEOF
8333 cat confdefs.h
>>conftest.
$ac_ext
8334 cat >>conftest.
$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 #if HAVE_SYS_SOCKET_H
8338 #include <sys/socket.h>
8347 static struct ifreq ac_aggr;
8348 if (ac_aggr.ifr_broadaddr)
8354 rm -f conftest.
$ac_objext
8355 if { (ac_try
="$ac_compile"
8357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8358 *) ac_try_echo=$ac_try;;
8360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8361 (eval "$ac_compile") 2>conftest.er1
8363 grep -v '^ *+' conftest.er1 >conftest.err
8365 cat conftest.err >&5
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest.$ac_objext; then
8371 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 cat >conftest.$ac_ext <<_ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h. */
8382 $ac_includes_default
8383 #if HAVE_SYS_SOCKET_H
8384 #include <sys/socket.h>
8393 static struct ifreq ac_aggr;
8394 if (sizeof ac_aggr.ifr_broadaddr)
8400 rm -f conftest.$ac_objext
8401 if { (ac_try="$ac_compile"
8403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8404 *) ac_try_echo
=$ac_try;;
8406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8407 (eval "$ac_compile") 2>conftest.er1
8409 grep -v '^ *+' conftest.er1
>conftest.err
8411 cat conftest.err
>&5
8412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8413 (exit $ac_status); } && {
8414 test -z "$ac_c_werror_flag" ||
8415 test ! -s conftest.err
8416 } && test -s conftest.
$ac_objext; then
8417 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8419 echo "$as_me: failed program was:" >&5
8420 sed 's/^/| /' conftest.
$ac_ext >&5
8422 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8430 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8431 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8432 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8434 cat >>confdefs.h
<<_ACEOF
8435 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8440 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8441 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8442 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8445 cat >conftest.
$ac_ext <<_ACEOF
8448 cat confdefs.h
>>conftest.
$ac_ext
8449 cat >>conftest.
$ac_ext <<_ACEOF
8450 /* end confdefs.h. */
8451 $ac_includes_default
8452 #if HAVE_SYS_SOCKET_H
8453 #include <sys/socket.h>
8462 static struct ifreq ac_aggr;
8463 if (ac_aggr.ifr_addr)
8469 rm -f conftest.
$ac_objext
8470 if { (ac_try
="$ac_compile"
8472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8473 *) ac_try_echo=$ac_try;;
8475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8476 (eval "$ac_compile") 2>conftest.er1
8478 grep -v '^ *+' conftest.er1 >conftest.err
8480 cat conftest.err >&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); } && {
8483 test -z "$ac_c_werror_flag" ||
8484 test ! -s conftest.err
8485 } && test -s conftest.$ac_objext; then
8486 ac_cv_member_struct_ifreq_ifr_addr=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8497 $ac_includes_default
8498 #if HAVE_SYS_SOCKET_H
8499 #include <sys/socket.h>
8508 static struct ifreq ac_aggr;
8509 if (sizeof ac_aggr.ifr_addr)
8515 rm -f conftest.$ac_objext
8516 if { (ac_try="$ac_compile"
8518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8519 *) ac_try_echo
=$ac_try;;
8521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8522 (eval "$ac_compile") 2>conftest.er1
8524 grep -v '^ *+' conftest.er1
>conftest.err
8526 cat conftest.err
>&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } && {
8529 test -z "$ac_c_werror_flag" ||
8530 test ! -s conftest.err
8531 } && test -s conftest.
$ac_objext; then
8532 ac_cv_member_struct_ifreq_ifr_addr
=yes
8534 echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.
$ac_ext >&5
8537 ac_cv_member_struct_ifreq_ifr_addr
=no
8540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8545 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8546 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8547 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8549 cat >>confdefs.h
<<_ACEOF
8550 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8558 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8559 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8560 if test "$ac_cv_prog_cc_c89" != no
; then
8561 { echo "$as_me:$LINENO: result: yes" >&5
8562 echo "${ECHO_T}yes" >&6; }
8564 cat >>confdefs.h
<<\_ACEOF
8565 #define PROTOTYPES 1
8569 cat >>confdefs.h
<<\_ACEOF
8570 #define __PROTOTYPES 1
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8578 { echo "$as_me:$LINENO: checking for working volatile" >&5
8579 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8580 if test "${ac_cv_c_volatile+set}" = set; then
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 cat >conftest.
$ac_ext <<_ACEOF
8586 cat confdefs.h
>>conftest.
$ac_ext
8587 cat >>conftest.
$ac_ext <<_ACEOF
8588 /* end confdefs.h. */
8595 int * volatile y = (int *) 0;
8601 rm -f conftest.
$ac_objext
8602 if { (ac_try
="$ac_compile"
8604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8605 *) ac_try_echo=$ac_try;;
8607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8608 (eval "$ac_compile") 2>conftest.er1
8610 grep -v '^ *+' conftest.er1 >conftest.err
8612 cat conftest.err >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); } && {
8615 test -z "$ac_c_werror_flag" ||
8616 test ! -s conftest.err
8617 } && test -s conftest.$ac_objext; then
8618 ac_cv_c_volatile=yes
8620 echo "$as_me: failed program was:" >&5
8621 sed 's/^/| /' conftest.$ac_ext >&5
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8629 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8630 if test $ac_cv_c_volatile = no; then
8632 cat >>confdefs.h <<\_ACEOF
8638 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8639 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8640 if test "${ac_cv_c_const+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8653 /* FIXME: Include the comments suggested by Paul. */
8655 /* Ultrix mips cc rejects this. */
8656 typedef int charset[2];
8658 /* SunOS 4.1.1 cc rejects this. */
8659 char const *const *pcpcc;
8661 /* NEC SVR4.0.2 mips cc rejects this. */
8662 struct point {int x, y;};
8663 static struct point const zero = {0,0};
8664 /* AIX XL C 1.02.0.0 rejects this.
8665 It does not let you subtract one const X* pointer from another in
8666 an arm of an if-expression whose if-part is not a constant
8668 const char *g = "string";
8669 pcpcc = &g + (g ? g-g : 0);
8670 /* HPUX 7.0 cc rejects these. */
8672 ppc = (char**) pcpcc;
8673 pcpcc = (char const *const *) ppc;
8674 { /* SCO 3.2v4 cc rejects this. */
8676 char const *s = 0 ? (char *) 0 : (char const *) 0;
8681 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8683 const int *foo = &x[0];
8686 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8687 typedef const int *iptr;
8691 { /* AIX XL C 1.02.0.0 rejects this saying
8692 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8693 struct s { int j; const int *ap[3]; };
8694 struct s *b; b->j = 5;
8696 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8700 return !cs[0] && !zero.x;
8707 rm -f conftest.$ac_objext
8708 if { (ac_try="$ac_compile"
8710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8711 *) ac_try_echo
=$ac_try;;
8713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8714 (eval "$ac_compile") 2>conftest.er1
8716 grep -v '^ *+' conftest.er1
>conftest.err
8718 cat conftest.err
>&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } && {
8721 test -z "$ac_c_werror_flag" ||
8722 test ! -s conftest.err
8723 } && test -s conftest.
$ac_objext; then
8726 echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.
$ac_ext >&5
8732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8734 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8735 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8736 if test $ac_cv_c_const = no
; then
8738 cat >>confdefs.h
<<\_ACEOF
8744 { echo "$as_me:$LINENO: checking for void * support" >&5
8745 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8746 if test "${emacs_cv_void_star+set}" = set; then
8747 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 cat >conftest.
$ac_ext <<_ACEOF
8752 cat confdefs.h
>>conftest.
$ac_ext
8753 cat >>conftest.
$ac_ext <<_ACEOF
8754 /* end confdefs.h. */
8764 rm -f conftest.
$ac_objext
8765 if { (ac_try
="$ac_compile"
8767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771 (eval "$ac_compile") 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } && {
8778 test -z "$ac_c_werror_flag" ||
8779 test ! -s conftest.err
8780 } && test -s conftest.$ac_objext; then
8781 emacs_cv_void_star=yes
8783 echo "$as_me: failed program was:" >&5
8784 sed 's/^/| /' conftest.$ac_ext >&5
8786 emacs_cv_void_star=no
8789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8792 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8793 if test $emacs_cv_void_star = yes; then
8794 cat >>confdefs.h <<\_ACEOF
8795 #define POINTER_TYPE void
8799 cat >>confdefs.h <<\_ACEOF
8800 #define POINTER_TYPE char
8809 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8810 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8811 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8812 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.make <<\_ACEOF
8818 @echo '@@@%%%=$(MAKE)=@@@%%%'
8820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8821 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8823 eval ac_cv_prog_make_${ac_make}_set=yes;;
8825 eval ac_cv_prog_make_${ac_make}_set=no;;
8829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8830 { echo "$as_me:$LINENO: result: yes" >&5
8831 echo "${ECHO_T}yes" >&6; }
8834 { echo "$as_me:$LINENO: result: no" >&5
8835 echo "${ECHO_T}no" >&6; }
8836 SET_MAKE="MAKE=${MAKE-make}"
8840 { echo "$as_me:$LINENO: checking for long file names" >&5
8841 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8842 if test "${ac_cv_sys_long_file_names+set}" = set; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_cv_sys_long_file_names=yes
8846 # Test for long file names in all the places we know might matter:
8847 # . the current directory, where building will happen
8848 # $prefix/lib where we will be installing things
8849 # $exec_prefix/lib likewise
8850 # $TMPDIR if set, where it might want to write temporary files
8851 # /tmp where it might want to write temporary files
8854 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8855 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8856 # in the usual case where exec_prefix is '${prefix}'.
8858 . | /* | ?:[\\/]*) ;; #(
8861 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8862 ac_xdir=$ac_dir/cf$$
8863 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8864 ac_tf1=$ac_xdir/conftest9012345
8865 ac_tf2=$ac_xdir/conftest9012346
8866 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8867 ac_cv_sys_long_file_names=no
8868 rm -f -r "$ac_xdir" 2>/dev/null
8869 test $ac_cv_sys_long_file_names = no && break
8872 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8873 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8874 if test $ac_cv_sys_long_file_names = yes; then
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_LONG_FILE_NAMES 1
8883 #### Choose a window system.
8885 { echo "$as_me:$LINENO: checking for X" >&5
8886 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8889 # Check whether --with-x was given.
8890 if test "${with_x+set}" = set; then
8894 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8895 if test "x$with_x" = xno; then
8896 # The user explicitly disabled X.
8899 case $x_includes,$x_libraries in #(
8900 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8901 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8902 { (exit 1); exit 1; }; };; #(
8903 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 # One or both of the vars are not set, and there is no cached value.
8907 ac_x_includes=no ac_x_libraries=no
8908 rm -f -r conftest.dir
8909 if mkdir conftest.dir; then
8911 cat >Imakefile <<'_ACEOF'
8913 @echo incroot='${INCROOT}'
8915 @echo usrlibdir='${USRLIBDIR}'
8917 @echo libdir='${LIBDIR}'
8919 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8920 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8921 for ac_var in incroot usrlibdir libdir; do
8922 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8924 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8925 for ac_extension in a so sl; do
8926 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8927 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8928 ac_im_usrlibdir=$ac_im_libdir; break
8931 # Screen out bogus values from the imake configuration. They are
8932 # bogus both because they are the default anyway, and because
8933 # using them would break gcc on systems where it needs fixed includes.
8934 case $ac_im_incroot in
8935 /usr/include) ac_x_includes= ;;
8936 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8938 case $ac_im_usrlibdir in
8940 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8944 rm -f -r conftest.dir
8947 # Standard set of common directories for X headers.
8948 # Check X11 before X11Rn because it is often a symlink to the current release.
8960 /usr/local/X11/include
8961 /usr/local/X11R6/include
8962 /usr/local/X11R5/include
8963 /usr/local/X11R4/include
8965 /usr/local/include/X11
8966 /usr/local/include/X11R6
8967 /usr/local/include/X11R5
8968 /usr/local/include/X11R4
8972 /usr/XFree86/include/X11
8976 /usr/unsupported/include
8978 /usr/local/x11r5/include
8979 /usr/lpp/Xamples/include
8981 /usr/openwin/include
8982 /usr/openwin/share/include'
8984 if test "$ac_x_includes" = no; then
8985 # Guess where to find include files, by looking for Xlib.h.
8986 # First, try using that file with no special directory specified.
8987 cat >conftest.$ac_ext <<_ACEOF
8990 cat confdefs.h >>conftest.$ac_ext
8991 cat >>conftest.$ac_ext <<_ACEOF
8992 /* end confdefs.h. */
8993 #include <X11/Xlib.h>
8995 if { (ac_try="$ac_cpp conftest.$ac_ext"
8997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8998 *) ac_try_echo
=$ac_try;;
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9003 grep -v '^ *+' conftest.er1
>conftest.err
9005 cat conftest.err
>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev
/null
&& {
9008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9009 test ! -s conftest.err
9011 # We can compile using X headers with no special include directory.
9014 echo "$as_me: failed program was:" >&5
9015 sed 's/^/| /' conftest.
$ac_ext >&5
9017 for ac_dir
in $ac_x_header_dirs; do
9018 if test -r "$ac_dir/X11/Xlib.h"; then
9019 ac_x_includes
=$ac_dir
9025 rm -f conftest.err conftest.
$ac_ext
9026 fi # $ac_x_includes = no
9028 if test "$ac_x_libraries" = no
; then
9029 # Check for the libraries.
9030 # See if we find them without any special options.
9031 # Don't add to $LIBS permanently.
9034 cat >conftest.
$ac_ext <<_ACEOF
9037 cat confdefs.h
>>conftest.
$ac_ext
9038 cat >>conftest.
$ac_ext <<_ACEOF
9039 /* end confdefs.h. */
9040 #include <X11/Xlib.h>
9049 rm -f conftest.
$ac_objext conftest
$ac_exeext
9050 if { (ac_try
="$ac_link"
9052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9056 (eval "$ac_link") 2>conftest.er1
9058 grep -v '^ *+' conftest.er1 >conftest.err
9060 cat conftest.err >&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest$ac_exeext &&
9066 $as_test_x conftest$ac_exeext; then
9068 # We can link X programs with no special library path.
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9075 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9077 # Don't even attempt the hair of trying to link an X program!
9078 for ac_extension in a so sl; do
9079 if test -r "$ac_dir/libX11.$ac_extension"; then
9080 ac_x_libraries=$ac_dir
9087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9088 conftest$ac_exeext conftest.$ac_ext
9089 fi # $ac_x_libraries = no
9091 case $ac_x_includes,$ac_x_libraries in #(
9093 # Didn't find X, or a directory has "'" in its name.
9094 ac_cv_have_x="have_x=no";; #(
9096 # Record where we found X for the cache.
9097 ac_cv_have_x="have_x=yes\
9098 ac_x_includes='$ac_x_includes'\
9099 ac_x_libraries='$ac_x_libraries'"
9105 eval "$ac_cv_have_x"
9108 if test "$have_x" != yes; then
9109 { echo "$as_me:$LINENO: result: $have_x" >&5
9110 echo "${ECHO_T}$have_x" >&6; }
9113 # If each of the values was on the command line, it overrides each guess.
9114 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9115 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9116 # Update the cache value to reflect the command line values.
9117 ac_cv_have_x="have_x=yes\
9118 ac_x_includes='$x_includes'\
9119 ac_x_libraries='$x_libraries'"
9120 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9121 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9124 if test "$no_x" = yes; then
9130 ## Workaround for bug in autoconf <= 2.62.
9131 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9132 ## No need to do anything special for these standard directories.
9133 ## This is an experiment, take it out if it causes problems.
9134 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9136 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9140 if test "${x_libraries}" != NONE; then
9141 if test -n "${x_libraries}"; then
9142 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9143 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9145 x_default_search_path=""
9146 x_search_path=${x_libraries}
9147 if test -z "${x_search_path}"; then
9148 x_search_path=/usr/lib
9150 for x_library in `echo ${x_search_path}: | \
9151 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9153 ${x_library}/X11/%L/%T/%N%C%S:\
9154 ${x_library}/X11/%l/%T/%N%C%S:\
9155 ${x_library}/X11/%T/%N%C%S:\
9156 ${x_library}/X11/%L/%T/%N%S:\
9157 ${x_library}/X11/%l/%T/%N%S:\
9158 ${x_library}/X11/%T/%N%S"
9159 if test x"${x_default_search_path}" = x; then
9160 x_default_search_path=${x_search_path}
9162 x_default_search_path="${x_search_path}:${x_default_search_path}"
9166 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9167 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9170 if test x"${x_includes}" = x; then
9171 bitmapdir=/usr/include/X11/bitmaps
9173 # accumulate include directories that have X11 bitmap subdirectories
9175 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9176 if test -d "${bmd}/X11/bitmaps"; then
9177 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9179 if test -d "${bmd}/bitmaps"; then
9180 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9183 if test ${bmd_acc} != "dummyval"; then
9184 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9191 tmp_CPPFLAGS="$CPPFLAGS"
9192 tmp_CFLAGS="$CFLAGS"
9193 CPPFLAGS="$CPPFLAGS -x objective-c"
9194 CFLAGS="$CFLAGS -x objective-c"
9195 if test "${with_ns}" != no; then
9196 if test "${opsys}" = darwin; then
9198 ns_appdir=`pwd`/nextstep/Emacs.app
9199 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9200 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9201 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9202 elif test -f /etc/GNUstep/GNUstep.conf; then
9204 ns_appdir=`pwd`/nextstep/Emacs.app
9205 ns_appbindir=`pwd`/nextstep/Emacs.app
9206 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9207 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9208 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9209 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9210 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9211 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9212 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9213 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9214 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9216 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9217 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9218 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9219 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9223 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9225 # Is the header compilable?
9226 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9227 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9228 cat >conftest.$ac_ext <<_ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 $ac_includes_default
9235 #include <AppKit/AppKit.h>
9237 rm -f conftest.$ac_objext
9238 if { (ac_try="$ac_compile"
9240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9241 *) ac_try_echo
=$ac_try;;
9243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9244 (eval "$ac_compile") 2>conftest.er1
9246 grep -v '^ *+' conftest.er1
>conftest.err
9248 cat conftest.err
>&5
9249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9250 (exit $ac_status); } && {
9251 test -z "$ac_c_werror_flag" ||
9252 test ! -s conftest.err
9253 } && test -s conftest.
$ac_objext; then
9254 ac_header_compiler
=yes
9256 echo "$as_me: failed program was:" >&5
9257 sed 's/^/| /' conftest.
$ac_ext >&5
9259 ac_header_compiler
=no
9262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9263 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9264 echo "${ECHO_T}$ac_header_compiler" >&6; }
9266 # Is the header present?
9267 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9268 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9269 cat >conftest.
$ac_ext <<_ACEOF
9272 cat confdefs.h
>>conftest.
$ac_ext
9273 cat >>conftest.
$ac_ext <<_ACEOF
9274 /* end confdefs.h. */
9275 #include <AppKit/AppKit.h>
9277 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9280 *) ac_try_echo=$ac_try;;
9282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9283 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9285 grep -v '^ *+' conftest.er1 >conftest.err
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } >/dev/null && {
9290 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9291 test ! -s conftest.err
9293 ac_header_preproc=yes
9295 echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9298 ac_header_preproc=no
9301 rm -f conftest.err conftest.$ac_ext
9302 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9303 echo "${ECHO_T}$ac_header_preproc" >&6; }
9305 # So? What about this header?
9306 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9312 ac_header_preproc=yes
9315 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9316 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9317 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9318 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9320 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9322 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9324 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9326 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9330 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9331 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9332 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9333 echo $ECHO_N "(cached) $ECHO_C" >&6
9335 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9337 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9338 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9341 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9346 NS_HAVE_NSINTEGER=yes
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 #include <Foundation/NSObjCRuntime.h>
9362 rm -f conftest.$ac_objext
9363 if { (ac_try="$ac_compile"
9365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9366 *) ac_try_echo
=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_compile") 2>conftest.er1
9371 grep -v '^ *+' conftest.er1
>conftest.err
9373 cat conftest.err
>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } && {
9376 test -z "$ac_c_werror_flag" ||
9377 test ! -s conftest.err
9378 } && test -s conftest.
$ac_objext; then
9379 ns_have_nsinteger
=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.
$ac_ext >&5
9384 ns_have_nsinteger
=no
9387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9388 if test $ns_have_nsinteger = no
; then
9389 NS_HAVE_NSINTEGER
=no
9392 if test "${HAVE_NS}" = yes; then
9393 window_system
=nextstep
9396 # set up packaging dirs
9397 exec_prefix
=${ns_appbindir}
9398 libexecdir
=${ns_appbindir}/libexec
9399 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9400 prefix
=${ns_appresdir}
9403 CFLAGS
="$tmp_CFLAGS"
9404 CPPFLAGS
="$tmp_CPPFLAGS"
9406 case "${window_system}" in
9410 case "${with_x_toolkit}" in
9411 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9412 motif
) USE_X_TOOLKIT
=MOTIF
;;
9414 USE_X_TOOLKIT
=none
;;
9415 no
) USE_X_TOOLKIT
=none
;;
9416 * ) USE_X_TOOLKIT
=maybe
;;
9426 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9427 # Extract the first word of "X", so it can be a program name with args.
9428 set dummy X
; ac_word
=$2
9429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9431 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 if test -n "$HAVE_XSERVER"; then
9435 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9437 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9441 test -z "$as_dir" && as_dir
=.
9442 for ac_exec_ext
in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_prog_HAVE_XSERVER
="true"
9445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9452 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9455 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9456 if test -n "$HAVE_XSERVER"; then
9457 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9458 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9460 { echo "$as_me:$LINENO: result: no" >&5
9461 echo "${ECHO_T}no" >&6; }
9465 if test "$HAVE_XSERVER" = true ||
9466 test -n "$DISPLAY" ||
9467 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9468 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9469 were found. You should install the relevant development files for X
9470 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9471 sure you have development files for image handling, i.e.
9472 tiff, gif, jpeg, png and xpm.
9473 If you are sure you want Emacs compiled without X window support, pass
9476 echo "$as_me: error: You seem to be running X, but no X development libraries
9477 were found. You should install the relevant development files for X
9478 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9479 sure you have development files for image handling, i.e.
9480 tiff, gif, jpeg, png and xpm.
9481 If you are sure you want Emacs compiled without X window support, pass
9483 to configure." >&2;}
9484 { (exit 1); exit 1; }; }
9488 ### If we're using X11, we should use the X menu package.
9491 yes ) HAVE_MENUS
=yes ;;
9494 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9495 # Assume not, until told otherwise.
9498 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9499 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9500 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9501 echo $ECHO_N "(cached) $ECHO_C" >&6
9503 cat >conftest.
$ac_ext <<_ACEOF
9506 cat confdefs.h
>>conftest.
$ac_ext
9507 cat >>conftest.
$ac_ext <<_ACEOF
9508 /* end confdefs.h. */
9509 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9511 #define malloc_get_state innocuous_malloc_get_state
9513 /* System header to define __stub macros and hopefully few prototypes,
9514 which can conflict with char malloc_get_state (); below.
9515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9516 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9524 #undef malloc_get_state
9526 /* Override any GCC internal prototype to avoid an error.
9527 Use char because int might match the return type of a GCC
9528 builtin and then its argument prototype would still apply. */
9532 char malloc_get_state ();
9533 /* The GNU C library defines this for functions which it implements
9534 to always fail with ENOSYS. Some functions are actually named
9535 something starting with __ and the normal name is an alias. */
9536 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9543 return malloc_get_state ();
9548 rm -f conftest.
$ac_objext conftest
$ac_exeext
9549 if { (ac_try
="$ac_link"
9551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9552 *) ac_try_echo=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_link") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1 >conftest.err
9559 cat conftest.err >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest$ac_exeext &&
9565 $as_test_x conftest$ac_exeext; then
9566 ac_cv_func_malloc_get_state=yes
9568 echo "$as_me: failed program was:" >&5
9569 sed 's/^/| /' conftest.$ac_ext >&5
9571 ac_cv_func_malloc_get_state=no
9574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9575 conftest$ac_exeext conftest.$ac_ext
9577 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9578 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9579 if test $ac_cv_func_malloc_get_state = yes; then
9585 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9586 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9587 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 cat >conftest.$ac_ext <<_ACEOF
9593 cat confdefs.h >>conftest.$ac_ext
9594 cat >>conftest.$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9596 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9598 #define malloc_set_state innocuous_malloc_set_state
9600 /* System header to define __stub macros and hopefully few prototypes,
9601 which can conflict with char malloc_set_state (); below.
9602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9603 <limits.h> exists even on freestanding compilers. */
9606 # include <limits.h>
9608 # include <assert.h>
9611 #undef malloc_set_state
9613 /* Override any GCC internal prototype to avoid an error.
9614 Use char because int might match the return type of a GCC
9615 builtin and then its argument prototype would still apply. */
9619 char malloc_set_state ();
9620 /* The GNU C library defines this for functions which it implements
9621 to always fail with ENOSYS. Some functions are actually named
9622 something starting with __ and the normal name is an alias. */
9623 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9630 return malloc_set_state ();
9635 rm -f conftest.$ac_objext conftest$ac_exeext
9636 if { (ac_try="$ac_link"
9638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9639 *) ac_try_echo
=$ac_try;;
9641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9642 (eval "$ac_link") 2>conftest.er1
9644 grep -v '^ *+' conftest.er1
>conftest.err
9646 cat conftest.err
>&5
9647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648 (exit $ac_status); } && {
9649 test -z "$ac_c_werror_flag" ||
9650 test ! -s conftest.err
9651 } && test -s conftest
$ac_exeext &&
9652 $as_test_x conftest
$ac_exeext; then
9653 ac_cv_func_malloc_set_state
=yes
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.
$ac_ext >&5
9658 ac_cv_func_malloc_set_state
=no
9661 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9662 conftest
$ac_exeext conftest.
$ac_ext
9664 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9665 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9666 if test $ac_cv_func_malloc_set_state = yes; then
9672 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9673 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9674 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9675 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 cat >conftest.
$ac_ext <<_ACEOF
9680 cat confdefs.h
>>conftest.
$ac_ext
9681 cat >>conftest.
$ac_ext <<_ACEOF
9682 /* end confdefs.h. */
9683 extern void (* __after_morecore_hook)();
9687 __after_morecore_hook = 0
9692 rm -f conftest.
$ac_objext conftest
$ac_exeext
9693 if { (ac_try
="$ac_link"
9695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_link") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } && {
9706 test -z "$ac_c_werror_flag" ||
9707 test ! -s conftest.err
9708 } && test -s conftest$ac_exeext &&
9709 $as_test_x conftest$ac_exeext; then
9710 emacs_cv_var___after_morecore_hook=yes
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9715 emacs_cv_var___after_morecore_hook=no
9718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9719 conftest$ac_exeext conftest.$ac_ext
9721 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9722 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9723 if test $emacs_cv_var___after_morecore_hook = no; then
9726 if test "${system_malloc}" = "yes"; then
9729 (The GNU allocators don't work with this system configuration.)"
9731 if test "$doug_lea_malloc" = "yes" ; then
9732 if test "$GNU_MALLOC" = yes ; then
9734 (Using Doug Lea's new malloc from the GNU C Library.)"
9737 cat >>confdefs.h <<\_ACEOF
9738 #define DOUG_LEA_MALLOC 1
9743 if test x"${REL_ALLOC}" = x; then
9744 REL_ALLOC=${GNU_MALLOC}
9750 for ac_header in stdlib.h unistd.h
9752 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_res=`eval echo '${'$as_ac_Header'}'`
9760 { echo "$as_me:$LINENO: result: $ac_res" >&5
9761 echo "${ECHO_T}$ac_res" >&6; }
9763 # Is the header compilable?
9764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9766 cat >conftest.$ac_ext <<_ACEOF
9769 cat confdefs.h >>conftest.$ac_ext
9770 cat >>conftest.$ac_ext <<_ACEOF
9771 /* end confdefs.h. */
9772 $ac_includes_default
9773 #include <$ac_header>
9775 rm -f conftest.$ac_objext
9776 if { (ac_try="$ac_compile"
9778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9779 *) ac_try_echo
=$ac_try;;
9781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9782 (eval "$ac_compile") 2>conftest.er1
9784 grep -v '^ *+' conftest.er1
>conftest.err
9786 cat conftest.err
>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } && {
9789 test -z "$ac_c_werror_flag" ||
9790 test ! -s conftest.err
9791 } && test -s conftest.
$ac_objext; then
9792 ac_header_compiler
=yes
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.
$ac_ext >&5
9797 ac_header_compiler
=no
9800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9802 echo "${ECHO_T}$ac_header_compiler" >&6; }
9804 # Is the header present?
9805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9807 cat >conftest.
$ac_ext <<_ACEOF
9810 cat confdefs.h
>>conftest.
$ac_ext
9811 cat >>conftest.
$ac_ext <<_ACEOF
9812 /* end confdefs.h. */
9813 #include <$ac_header>
9815 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9823 grep -v '^ *+' conftest.er1 >conftest.err
9825 cat conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); } >/dev/null && {
9828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9829 test ! -s conftest.err
9831 ac_header_preproc=yes
9833 echo "$as_me: failed program was:" >&5
9834 sed 's/^/| /' conftest.$ac_ext >&5
9836 ac_header_preproc=no
9839 rm -f conftest.err conftest.$ac_ext
9840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9841 echo "${ECHO_T}$ac_header_preproc" >&6; }
9843 # So? What about this header?
9844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9850 ac_header_preproc=yes
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9871 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 eval "$as_ac_Header=\$ac_header_preproc"
9875 ac_res=`eval echo '${'$as_ac_Header'}'`
9876 { echo "$as_me:$LINENO: result: $ac_res" >&5
9877 echo "${ECHO_T}$ac_res" >&6; }
9880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9881 cat >>confdefs.h <<_ACEOF
9882 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9890 for ac_func in getpagesize
9892 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9896 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 cat >conftest.$ac_ext <<_ACEOF
9901 cat confdefs.h >>conftest.$ac_ext
9902 cat >>conftest.$ac_ext <<_ACEOF
9903 /* end confdefs.h. */
9904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9906 #define $ac_func innocuous_$ac_func
9908 /* System header to define __stub macros and hopefully few prototypes,
9909 which can conflict with char $ac_func (); below.
9910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9911 <limits.h> exists even on freestanding compilers. */
9914 # include <limits.h>
9916 # include <assert.h>
9921 /* Override any GCC internal prototype to avoid an error.
9922 Use char because int might match the return type of a GCC
9923 builtin and then its argument prototype would still apply. */
9928 /* The GNU C library defines this for functions which it implements
9929 to always fail with ENOSYS. Some functions are actually named
9930 something starting with __ and the normal name is an alias. */
9931 #if defined __stub_$ac_func || defined __stub___$ac_func
9943 rm -f conftest.$ac_objext conftest$ac_exeext
9944 if { (ac_try="$ac_link"
9946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9947 *) ac_try_echo
=$ac_try;;
9949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9950 (eval "$ac_link") 2>conftest.er1
9952 grep -v '^ *+' conftest.er1
>conftest.err
9954 cat conftest.err
>&5
9955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9956 (exit $ac_status); } && {
9957 test -z "$ac_c_werror_flag" ||
9958 test ! -s conftest.err
9959 } && test -s conftest
$ac_exeext &&
9960 $as_test_x conftest
$ac_exeext; then
9961 eval "$as_ac_var=yes"
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.
$ac_ext >&5
9966 eval "$as_ac_var=no"
9969 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9970 conftest
$ac_exeext conftest.
$ac_ext
9972 ac_res
=`eval echo '${'$as_ac_var'}'`
9973 { echo "$as_me:$LINENO: result: $ac_res" >&5
9974 echo "${ECHO_T}$ac_res" >&6; }
9975 if test `eval echo '${'$as_ac_var'}'` = yes; then
9976 cat >>confdefs.h
<<_ACEOF
9977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9983 { echo "$as_me:$LINENO: checking for working mmap" >&5
9984 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9985 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9986 echo $ECHO_N "(cached) $ECHO_C" >&6
9988 if test "$cross_compiling" = yes; then
9989 ac_cv_func_mmap_fixed_mapped
=no
9991 cat >conftest.
$ac_ext <<_ACEOF
9994 cat confdefs.h
>>conftest.
$ac_ext
9995 cat >>conftest.
$ac_ext <<_ACEOF
9996 /* end confdefs.h. */
9997 $ac_includes_default
9998 /* malloc might have been renamed as rpl_malloc. */
10001 /* Thanks to Mike Haertel and Jim Avera for this test.
10002 Here is a matrix of mmap possibilities:
10003 mmap private not fixed
10004 mmap private fixed at somewhere currently unmapped
10005 mmap private fixed at somewhere already mapped
10006 mmap shared not fixed
10007 mmap shared fixed at somewhere currently unmapped
10008 mmap shared fixed at somewhere already mapped
10009 For private mappings, we should verify that changes cannot be read()
10010 back from the file, nor mmap's back from the file at a different
10011 address. (There have been systems where private was not correctly
10012 implemented like the infamous i386 svr4.0, and systems where the
10013 VM page cache was not coherent with the file system buffer cache
10014 like early versions of FreeBSD and possibly contemporary NetBSD.)
10015 For shared mappings, we should conversely verify that changes get
10016 propagated back to all the places they're supposed to be.
10018 Grep wants private fixed already mapped.
10019 The main things grep needs to know about mmap are:
10020 * does it exist and is it safe to write into the mmap'd area
10021 * how to use it (BSD variants) */
10024 #include <sys/mman.h>
10026 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10030 /* This mess was copied from the GNU getpagesize.h. */
10031 #ifndef HAVE_GETPAGESIZE
10032 /* Assume that all systems that can run configure have sys/param.h. */
10033 # ifndef HAVE_SYS_PARAM_H
10034 # define HAVE_SYS_PARAM_H 1
10037 # ifdef _SC_PAGESIZE
10038 # define getpagesize() sysconf(_SC_PAGESIZE)
10039 # else /* no _SC_PAGESIZE */
10040 # ifdef HAVE_SYS_PARAM_H
10041 # include <sys/param.h>
10042 # ifdef EXEC_PAGESIZE
10043 # define getpagesize() EXEC_PAGESIZE
10044 # else /* no EXEC_PAGESIZE */
10046 # define getpagesize() NBPG * CLSIZE
10049 # endif /* no CLSIZE */
10050 # else /* no NBPG */
10052 # define getpagesize() NBPC
10053 # else /* no NBPC */
10055 # define getpagesize() PAGESIZE
10056 # endif /* PAGESIZE */
10057 # endif /* no NBPC */
10058 # endif /* no NBPG */
10059 # endif /* no EXEC_PAGESIZE */
10060 # else /* no HAVE_SYS_PARAM_H */
10061 # define getpagesize() 8192 /* punt totally */
10062 # endif /* no HAVE_SYS_PARAM_H */
10063 # endif /* no _SC_PAGESIZE */
10065 #endif /* no HAVE_GETPAGESIZE */
10070 char *data, *data2, *data3;
10074 pagesize = getpagesize ();
10076 /* First, make a file with some known garbage in it. */
10077 data = (char *) malloc (pagesize);
10080 for (i = 0; i < pagesize; ++i)
10081 *(data + i) = rand ();
10083 fd = creat ("conftest.mmap", 0600);
10086 if (write (fd, data, pagesize) != pagesize)
10090 /* Next, try to mmap the file at a fixed address which already has
10091 something else allocated at it. If we can, also make sure that
10092 we see the same garbage. */
10093 fd = open ("conftest.mmap", O_RDWR);
10096 data2 = (char *) malloc (2 * pagesize);
10099 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10100 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10101 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10103 for (i = 0; i < pagesize; ++i)
10104 if (*(data + i) != *(data2 + i))
10107 /* Finally, make sure that changes to the mapped area do not
10108 percolate back to the file as seen by read(). (This is a bug on
10109 some variants of i386 svr4.0.) */
10110 for (i = 0; i < pagesize; ++i)
10111 *(data2 + i) = *(data2 + i) + 1;
10112 data3 = (char *) malloc (pagesize);
10115 if (read (fd, data3, pagesize) != pagesize)
10117 for (i = 0; i < pagesize; ++i)
10118 if (*(data + i) != *(data3 + i))
10124 rm -f conftest
$ac_exeext
10125 if { (ac_try
="$ac_link"
10126 case "(($ac_try" in
10127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10128 *) ac_try_echo=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_link") 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10135 { (case "(($ac_try" in
10136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10137 *) ac_try_echo
=$ac_try;;
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_try") 2>&5
10142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143 (exit $ac_status); }; }; then
10144 ac_cv_func_mmap_fixed_mapped
=yes
10146 echo "$as_me: program exited with status $ac_status" >&5
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.
$ac_ext >&5
10150 ( exit $ac_status )
10151 ac_cv_func_mmap_fixed_mapped
=no
10153 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10158 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10159 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10160 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10162 cat >>confdefs.h
<<\_ACEOF
10163 #define HAVE_MMAP 1
10167 rm -f conftest.mmap
10169 if test $use_mmap_for_buffers = yes; then
10173 LIBS
="$libsrc_libs $LIBS"
10176 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10177 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10178 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10179 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 ac_check_lib_save_LIBS
=$LIBS
10182 LIBS
="-ldnet $LIBS"
10183 cat >conftest.
$ac_ext <<_ACEOF
10186 cat confdefs.h
>>conftest.
$ac_ext
10187 cat >>conftest.
$ac_ext <<_ACEOF
10188 /* end confdefs.h. */
10190 /* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
10200 return dnet_ntoa ();
10205 rm -f conftest.
$ac_objext conftest
$ac_exeext
10206 if { (ac_try
="$ac_link"
10207 case "(($ac_try" in
10208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_link") 2>conftest.er1
10214 grep -v '^ *+' conftest.er1 >conftest.err
10216 cat conftest.err >&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } && {
10219 test -z "$ac_c_werror_flag" ||
10220 test ! -s conftest.err
10221 } && test -s conftest$ac_exeext &&
10222 $as_test_x conftest$ac_exeext; then
10223 ac_cv_lib_dnet_dnet_ntoa=yes
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ac_cv_lib_dnet_dnet_ntoa=no
10231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10232 conftest$ac_exeext conftest.$ac_ext
10233 LIBS=$ac_check_lib_save_LIBS
10235 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10236 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10237 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define HAVE_LIBDNET 1
10242 LIBS="-ldnet $LIBS"
10247 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10248 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10249 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10250 echo $ECHO_N "(cached) $ECHO_C" >&6
10252 ac_check_lib_save_LIBS=$LIBS
10253 LIBS="-lXbsd $LIBS"
10254 cat >conftest.$ac_ext <<_ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h. */
10270 rm -f conftest.$ac_objext conftest$ac_exeext
10271 if { (ac_try="$ac_link"
10272 case "(($ac_try" in
10273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10274 *) ac_try_echo
=$ac_try;;
10276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10277 (eval "$ac_link") 2>conftest.er1
10279 grep -v '^ *+' conftest.er1
>conftest.err
10281 cat conftest.err
>&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 (exit $ac_status); } && {
10284 test -z "$ac_c_werror_flag" ||
10285 test ! -s conftest.err
10286 } && test -s conftest
$ac_exeext &&
10287 $as_test_x conftest
$ac_exeext; then
10288 ac_cv_lib_Xbsd_main
=yes
10290 echo "$as_me: failed program was:" >&5
10291 sed 's/^/| /' conftest.
$ac_ext >&5
10293 ac_cv_lib_Xbsd_main
=no
10296 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10297 conftest
$ac_exeext conftest.
$ac_ext
10298 LIBS
=$ac_check_lib_save_LIBS
10300 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10301 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10302 if test $ac_cv_lib_Xbsd_main = yes; then
10303 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10308 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10309 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10310 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 ac_check_lib_save_LIBS
=$LIBS
10314 LIBS
="-lpthreads $LIBS"
10315 cat >conftest.
$ac_ext <<_ACEOF
10318 cat confdefs.h
>>conftest.
$ac_ext
10319 cat >>conftest.
$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10322 /* Override any GCC internal prototype to avoid an error.
10323 Use char because int might match the return type of a GCC
10324 builtin and then its argument prototype would still apply. */
10332 return cma_open ();
10337 rm -f conftest.
$ac_objext conftest
$ac_exeext
10338 if { (ac_try
="$ac_link"
10339 case "(($ac_try" in
10340 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10341 *) ac_try_echo=$ac_try;;
10343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10344 (eval "$ac_link") 2>conftest.er1
10346 grep -v '^ *+' conftest.er1 >conftest.err
10348 cat conftest.err >&5
10349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10350 (exit $ac_status); } && {
10351 test -z "$ac_c_werror_flag" ||
10352 test ! -s conftest.err
10353 } && test -s conftest$ac_exeext &&
10354 $as_test_x conftest$ac_exeext; then
10355 ac_cv_lib_pthreads_cma_open=yes
10357 echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10360 ac_cv_lib_pthreads_cma_open=no
10363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10364 conftest$ac_exeext conftest.$ac_ext
10365 LIBS=$ac_check_lib_save_LIBS
10367 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10368 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10369 if test $ac_cv_lib_pthreads_cma_open = yes; then
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_LIBPTHREADS 1
10374 LIBS="-lpthreads $LIBS"
10382 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10383 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10384 if test "${gdb_cv_bigtoc+set}" = set; then
10385 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10390 *) gdb_cv_bigtoc=-bbigtoc ;;
10393 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10409 rm -f conftest.$ac_objext conftest$ac_exeext
10410 if { (ac_try="$ac_link"
10411 case "(($ac_try" in
10412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10413 *) ac_try_echo
=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_link") 2>conftest.er1
10418 grep -v '^ *+' conftest.er1
>conftest.err
10420 cat conftest.err
>&5
10421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10422 (exit $ac_status); } && {
10423 test -z "$ac_c_werror_flag" ||
10424 test ! -s conftest.err
10425 } && test -s conftest
$ac_exeext &&
10426 $as_test_x conftest
$ac_exeext; then
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10435 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10436 conftest
$ac_exeext conftest.
$ac_ext
10439 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10440 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10444 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10445 # used for the tests that follow. We set them back to REAL_CFLAGS and
10446 # REAL_CPPFLAGS later on.
10448 REAL_CPPFLAGS
="$CPPFLAGS"
10450 if test "${HAVE_X11}" = "yes"; then
10451 DEFS
="$C_SWITCH_X_SITE $DEFS"
10452 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10454 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10455 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10457 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10458 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10459 # but it's more convenient here to set LD_RUN_PATH
10460 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10461 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10462 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10466 if test "${opsys}" = "gnu-linux"; then
10467 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10468 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10469 cat >conftest.
$ac_ext <<_ACEOF
10472 cat confdefs.h
>>conftest.
$ac_ext
10473 cat >>conftest.
$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10479 XOpenDisplay ("foo");
10484 rm -f conftest.
$ac_objext conftest
$ac_exeext
10485 if { (ac_try
="$ac_link"
10486 case "(($ac_try" in
10487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10488 *) ac_try_echo=$ac_try;;
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491 (eval "$ac_link") 2>conftest.er1
10493 grep -v '^ *+' conftest.er1 >conftest.err
10495 cat conftest.err >&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); } && {
10498 test -z "$ac_c_werror_flag" ||
10499 test ! -s conftest.err
10500 } && test -s conftest$ac_exeext &&
10501 $as_test_x conftest$ac_exeext; then
10502 xlinux_first_failure=no
10504 echo "$as_me: failed program was:" >&5
10505 sed 's/^/| /' conftest.$ac_ext >&5
10507 xlinux_first_failure=yes
10510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10511 conftest$ac_exeext conftest.$ac_ext
10512 if test "${xlinux_first_failure}" = "yes"; then
10513 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10514 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10515 OLD_CPPFLAGS="$CPPFLAGS"
10517 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10518 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10519 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10520 LIBS="$LIBS -b i486-linuxaout"
10521 cat >conftest.$ac_ext <<_ACEOF
10524 cat confdefs.h >>conftest.$ac_ext
10525 cat >>conftest.$ac_ext <<_ACEOF
10526 /* end confdefs.h. */
10531 XOpenDisplay ("foo");
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10540 *) ac_try_echo
=$ac_try;;
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543 (eval "$ac_link") 2>conftest.er1
10545 grep -v '^ *+' conftest.er1
>conftest.err
10547 cat conftest.err
>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } && {
10550 test -z "$ac_c_werror_flag" ||
10551 test ! -s conftest.err
10552 } && test -s conftest
$ac_exeext &&
10553 $as_test_x conftest
$ac_exeext; then
10554 xlinux_second_failure
=no
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.
$ac_ext >&5
10559 xlinux_second_failure
=yes
10562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10563 conftest
$ac_exeext conftest.
$ac_ext
10564 if test "${xlinux_second_failure}" = "yes"; then
10565 # If we get the same failure with -b, there is no use adding -b.
10566 # So take it out. This plays safe.
10567 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10568 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10569 CPPFLAGS
="$OLD_CPPFLAGS"
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10574 { echo "$as_me:$LINENO: result: yes" >&5
10575 echo "${ECHO_T}yes" >&6; }
10578 { echo "$as_me:$LINENO: result: no" >&5
10579 echo "${ECHO_T}no" >&6; }
10583 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10584 # header files included from there.
10585 { echo "$as_me:$LINENO: checking for Xkb" >&5
10586 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10587 cat >conftest.
$ac_ext <<_ACEOF
10590 cat confdefs.h
>>conftest.
$ac_ext
10591 cat >>conftest.
$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593 #include <X11/Xlib.h>
10594 #include <X11/XKBlib.h>
10598 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10603 rm -f conftest.
$ac_objext conftest
$ac_exeext
10604 if { (ac_try
="$ac_link"
10605 case "(($ac_try" in
10606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10607 *) ac_try_echo=$ac_try;;
10609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10610 (eval "$ac_link") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest$ac_exeext &&
10620 $as_test_x conftest$ac_exeext; then
10623 echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10630 conftest$ac_exeext conftest.$ac_ext
10631 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10632 echo "${ECHO_T}$emacs_xkb" >&6; }
10633 if test $emacs_xkb = yes; then
10635 cat >>confdefs.h <<\_ACEOF
10636 #define HAVE_XKBGETKEYBOARD 1
10645 for ac_func in XrmSetDatabase XScreenResourceString \
10646 XScreenNumberOfScreen XSetWMProtocols
10648 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10662 #define $ac_func innocuous_$ac_func
10664 /* System header to define __stub macros and hopefully few prototypes,
10665 which can conflict with char $ac_func (); below.
10666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10667 <limits.h> exists even on freestanding compilers. */
10670 # include <limits.h>
10672 # include <assert.h>
10677 /* Override any GCC internal prototype to avoid an error.
10678 Use char because int might match the return type of a GCC
10679 builtin and then its argument prototype would still apply. */
10684 /* The GNU C library defines this for functions which it implements
10685 to always fail with ENOSYS. Some functions are actually named
10686 something starting with __ and the normal name is an alias. */
10687 #if defined __stub_$ac_func || defined __stub___$ac_func
10694 return $ac_func ();
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (ac_try="$ac_link"
10701 case "(($ac_try" in
10702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10703 *) ac_try_echo
=$ac_try;;
10705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10706 (eval "$ac_link") 2>conftest.er1
10708 grep -v '^ *+' conftest.er1
>conftest.err
10710 cat conftest.err
>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } && {
10713 test -z "$ac_c_werror_flag" ||
10714 test ! -s conftest.err
10715 } && test -s conftest
$ac_exeext &&
10716 $as_test_x conftest
$ac_exeext; then
10717 eval "$as_ac_var=yes"
10719 echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.
$ac_ext >&5
10722 eval "$as_ac_var=no"
10725 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10726 conftest
$ac_exeext conftest.
$ac_ext
10728 ac_res
=`eval echo '${'$as_ac_var'}'`
10729 { echo "$as_me:$LINENO: result: $ac_res" >&5
10730 echo "${ECHO_T}$ac_res" >&6; }
10731 if test `eval echo '${'$as_ac_var'}'` = yes; then
10732 cat >>confdefs.h
<<_ACEOF
10733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10741 if test "${window_system}" = "x11"; then
10742 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10743 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10744 if test "${emacs_cv_x11_version_6+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10747 cat >conftest.
$ac_ext <<_ACEOF
10750 cat confdefs.h
>>conftest.
$ac_ext
10751 cat >>conftest.
$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <X11/Xlib.h>
10757 #if XlibSpecificationRelease < 6
10765 rm -f conftest.
$ac_objext conftest
$ac_exeext
10766 if { (ac_try
="$ac_link"
10767 case "(($ac_try" in
10768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 emacs_cv_x11_version_6=yes
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10788 emacs_cv_x11_version_6=no
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10795 if test $emacs_cv_x11_version_6 = yes; then
10796 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10797 echo "${ECHO_T}6 or newer" >&6; }
10799 cat >>confdefs.h <<\_ACEOF
10800 #define HAVE_X11R6 1
10804 { echo "$as_me:$LINENO: result: before 6" >&5
10805 echo "${ECHO_T}before 6" >&6; }
10810 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
10812 if test "${HAVE_X11}" = "yes"; then
10813 if test "${with_rsvg}" != "no"; then
10814 RSVG_REQUIRED=2.0.0
10815 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10820 # Extract the first word of "pkg-config", so it can be a program name with args.
10821 set dummy pkg-config; ac_word=$2
10822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10824 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10825 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 case $PKG_CONFIG in
10829 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10851 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10852 if test -n "$PKG_CONFIG"; then
10853 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10854 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10856 { echo "$as_me:$LINENO: result: no" >&5
10857 echo "${ECHO_T}no" >&6; }
10862 if test "$PKG_CONFIG" = "no" ; then
10865 PKG_CONFIG_MIN_VERSION=0.9.0
10866 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10867 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10868 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10870 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10871 { echo "$as_me:$LINENO: result: yes" >&5
10872 echo "${ECHO_T}yes" >&6; }
10875 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10876 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10877 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10878 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10879 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10881 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10882 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10883 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10884 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10885 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10887 { echo "$as_me:$LINENO: result: no" >&5
10888 echo "${ECHO_T}no" >&6; }
10891 ## If we have a custom action on failure, don't print errors
, but
10892 ## do set a variable so people can do so.
10893 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10900 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10901 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10905 if test $succeeded = yes; then
10914 if test ".${RSVG_CFLAGS}" != "."; then
10917 cat >>confdefs.h
<<\_ACEOF
10918 #define HAVE_RSVG 1
10921 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10922 LIBS
="$RSVG_LIBS $LIBS"
10929 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10932 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10937 # Extract the first word of "pkg-config", so it can be a program name with args.
10938 set dummy pkg-config
; ac_word
=$2
10939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10941 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 case $PKG_CONFIG in
10946 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10950 for as_dir
in $PATH
10953 test -z "$as_dir" && as_dir
=.
10954 for ac_exec_ext
in '' $ac_executable_extensions; do
10955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10964 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10968 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10969 if test -n "$PKG_CONFIG"; then
10970 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10971 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10973 { echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6; }
10979 if test "$PKG_CONFIG" = "no" ; then
10982 PKG_CONFIG_MIN_VERSION
=0.9.0
10983 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10984 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10985 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10987 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10988 { echo "$as_me:$LINENO: result: yes" >&5
10989 echo "${ECHO_T}yes" >&6; }
10992 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10993 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10994 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10995 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10996 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10998 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10999 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11000 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11001 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11002 echo "${ECHO_T}$GTK_LIBS" >&6; }
11004 { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11008 ## If we have a custom action on failure, don't print errors, but
11009 ## do set a variable so people can do so.
11010 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11017 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11018 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11022 if test $succeeded = yes; then
11028 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11029 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11030 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11031 { (exit 1); exit 1; }; }
11036 if test x
"$pkg_check_gtk" = xyes
; then
11040 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11041 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11042 LIBS
="$GTK_LIBS $LIBS"
11045 for ac_func
in gtk_main
11047 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11050 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11051 echo $ECHO_N "(cached) $ECHO_C" >&6
11053 cat >conftest.
$ac_ext <<_ACEOF
11056 cat confdefs.h
>>conftest.
$ac_ext
11057 cat >>conftest.
$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11061 #define $ac_func innocuous_$ac_func
11063 /* System header to define __stub macros and hopefully few prototypes,
11064 which can conflict with char $ac_func (); below.
11065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11066 <limits.h> exists even on freestanding compilers. */
11069 # include <limits.h>
11071 # include <assert.h>
11076 /* Override any GCC internal prototype to avoid an error.
11077 Use char because int might match the return type of a GCC
11078 builtin and then its argument prototype would still apply. */
11083 /* The GNU C library defines this for functions which it implements
11084 to always fail with ENOSYS. Some functions are actually named
11085 something starting with __ and the normal name is an alias. */
11086 #if defined __stub_$ac_func || defined __stub___$ac_func
11093 return $ac_func ();
11098 rm -f conftest.
$ac_objext conftest
$ac_exeext
11099 if { (ac_try
="$ac_link"
11100 case "(($ac_try" in
11101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11102 *) ac_try_echo=$ac_try;;
11104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11105 (eval "$ac_link") 2>conftest.er1
11107 grep -v '^ *+' conftest.er1 >conftest.err
11109 cat conftest.err >&5
11110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111 (exit $ac_status); } && {
11112 test -z "$ac_c_werror_flag" ||
11113 test ! -s conftest.err
11114 } && test -s conftest$ac_exeext &&
11115 $as_test_x conftest$ac_exeext; then
11116 eval "$as_ac_var=yes"
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11121 eval "$as_ac_var=no"
11124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11125 conftest$ac_exeext conftest.$ac_ext
11127 ac_res=`eval echo '${'$as_ac_var'}'`
11128 { echo "$as_me:$LINENO: result: $ac_res" >&5
11129 echo "${ECHO_T}$ac_res" >&6; }
11130 if test `eval echo '${'$as_ac_var'}'` = yes; then
11131 cat >>confdefs.h <<_ACEOF
11132 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11138 if test "${GTK_COMPILES}" != "yes"; then
11139 if test "$USE_X_TOOLKIT" != "maybe"; then
11140 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11141 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11142 { (exit 1); exit 1; }; };
11147 cat >>confdefs.h <<\_ACEOF
11152 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11155 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11156 closing open displays. This is no problem if you just use
11157 one display, but if you use more than one and close one of them
11158 Emacs may crash." >&5
11159 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11160 closing open displays. This is no problem if you just use
11161 one display, but if you use more than one and close one of them
11162 Emacs may crash." >&2;}
11170 if test "${HAVE_GTK}" = "yes"; then
11172 if test "$with_toolkit_scroll_bars" != no; then
11173 with_toolkit_scroll_bars=yes
11176 HAVE_GTK_MULTIDISPLAY=no
11178 for ac_func in gdk_display_open
11180 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11202 # include <limits.h>
11204 # include <assert.h>
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11226 return $ac_func ();
11231 rm -f conftest.$ac_objext conftest$ac_exeext
11232 if { (ac_try="$ac_link"
11233 case "(($ac_try" in
11234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11235 *) ac_try_echo
=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11240 grep -v '^ *+' conftest.er1
>conftest.err
11242 cat conftest.err
>&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest
$ac_exeext &&
11248 $as_test_x conftest
$ac_exeext; then
11249 eval "$as_ac_var=yes"
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.
$ac_ext >&5
11254 eval "$as_ac_var=no"
11257 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11258 conftest
$ac_exeext conftest.
$ac_ext
11260 ac_res
=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h
<<_ACEOF
11265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11267 HAVE_GTK_MULTIDISPLAY
=yes
11271 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11273 cat >>confdefs.h
<<\_ACEOF
11274 #define HAVE_GTK_MULTIDISPLAY 1
11279 HAVE_GTK_FILE_SELECTION
=no
11281 for ac_func
in gtk_file_selection_new
11283 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 cat >conftest.
$ac_ext <<_ACEOF
11292 cat confdefs.h
>>conftest.
$ac_ext
11293 cat >>conftest.
$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11305 # include <limits.h>
11307 # include <assert.h>
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11329 return $ac_func ();
11334 rm -f conftest.
$ac_objext conftest
$ac_exeext
11335 if { (ac_try
="$ac_link"
11336 case "(($ac_try" in
11337 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1 >conftest.err
11345 cat conftest.err >&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest$ac_exeext &&
11351 $as_test_x conftest$ac_exeext; then
11352 eval "$as_ac_var=yes"
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 eval "$as_ac_var=no"
11360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11361 conftest$ac_exeext conftest.$ac_ext
11363 ac_res=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h <<_ACEOF
11368 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11370 HAVE_GTK_FILE_SELECTION=yes
11375 HAVE_GTK_FILE_CHOOSER=no
11377 for ac_func in gtk_file_chooser_dialog_new
11379 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 cat >conftest.$ac_ext <<_ACEOF
11388 cat confdefs.h >>conftest.$ac_ext
11389 cat >>conftest.$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11401 # include <limits.h>
11403 # include <assert.h>
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11425 return $ac_func ();
11430 rm -f conftest.$ac_objext conftest$ac_exeext
11431 if { (ac_try="$ac_link"
11432 case "(($ac_try" in
11433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11434 *) ac_try_echo
=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1
>conftest.err
11441 cat conftest.err
>&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest
$ac_exeext &&
11447 $as_test_x conftest
$ac_exeext; then
11448 eval "$as_ac_var=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.
$ac_ext >&5
11453 eval "$as_ac_var=no"
11456 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11457 conftest
$ac_exeext conftest.
$ac_ext
11459 ac_res
=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h
<<_ACEOF
11464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11466 HAVE_GTK_FILE_CHOOSER
=yes
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 cat >>confdefs.h
<<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD
=no
11483 for ac_header
in pthread.h
11485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_res
=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.
$ac_ext <<_ACEOF
11502 cat confdefs.h
>>conftest.
$ac_ext
11503 cat >>conftest.
$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11508 rm -f conftest.
$ac_objext
11509 if { (ac_try
="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1 >conftest.err
11519 cat conftest.err >&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.$ac_objext; then
11525 ac_header_compiler=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11530 ac_header_compiler=no
11533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.$ac_ext <<_ACEOF
11543 cat confdefs.h >>conftest.$ac_ext
11544 cat >>conftest.$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11548 if { (ac_try="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11551 *) ac_try_echo
=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 grep -v '^ *+' conftest.er1
>conftest.err
11558 cat conftest.err
>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev
/null
&& {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11564 ac_header_preproc
=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.
$ac_ext >&5
11569 ac_header_preproc
=no
11572 rm -f conftest.err conftest.
$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc
=yes
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 eval "$as_ac_Header=\$ac_header_preproc"
11608 ac_res
=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h
<<_ACEOF
11615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 ac_check_lib_save_LIBS
=$LIBS
11629 LIBS
="-lpthread $LIBS"
11630 cat >conftest.
$ac_ext <<_ACEOF
11633 cat confdefs.h
>>conftest.
$ac_ext
11634 cat >>conftest.
$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11643 char pthread_self ();
11647 return pthread_self ();
11652 rm -f conftest.
$ac_objext conftest
$ac_exeext
11653 if { (ac_try
="$ac_link"
11654 case "(($ac_try" in
11655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11656 *) ac_try_echo=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1 >conftest.err
11663 cat conftest.err >&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest$ac_exeext &&
11669 $as_test_x conftest$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11675 ac_cv_lib_pthread_pthread_self=no
11678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11679 conftest$ac_exeext conftest.$ac_ext
11680 LIBS=$ac_check_lib_save_LIBS
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD=yes
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 case "${canonical}" in
11692 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11695 cat >>confdefs.h <<\_ACEOF
11696 #define HAVE_GTK_AND_PTHREAD 1
11704 if test "${with_dbus}" = "yes"; then
11708 # Extract the first word of "pkg-config", so it can be a program name with args.
11709 set dummy pkg-config; ac_word=$2
11710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11712 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11715 case $PKG_CONFIG in
11717 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721 for as_dir in $PATH
11724 test -z "$as_dir" && as_dir=.
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11727 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11739 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11740 if test -n "$PKG_CONFIG"; then
11741 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11742 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11744 { echo "$as_me:$LINENO: result: no" >&5
11745 echo "${ECHO_T}no" >&6; }
11750 if test "$PKG_CONFIG" = "no" ; then
11753 PKG_CONFIG_MIN_VERSION=0.9.0
11754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11756 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11758 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11759 { echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6; }
11763 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11764 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11765 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11766 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11767 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11769 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11770 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11771 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11772 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11773 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11793 if test $succeeded = yes; then
11799 if test "$HAVE_DBUS" = yes; then
11801 cat >>confdefs.h <<\_ACEOF
11802 #define HAVE_DBUS 1
11809 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11810 if test "$with_xaw3d" != no; then
11811 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11812 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11813 if test "${emacs_cv_xaw3d+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 cat >conftest.$ac_ext <<_ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11823 #include <X11/Intrinsic.h>
11824 #include <X11/Xaw3d/Simple.h>
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (ac_try="$ac_link"
11835 case "(($ac_try" in
11836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11837 *) ac_try_echo
=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_link") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1
>conftest.err
11844 cat conftest.err
>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest
$ac_exeext &&
11850 $as_test_x conftest
$ac_exeext; then
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.
$ac_ext >&5
11859 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11860 conftest
$ac_exeext conftest.
$ac_ext
11866 if test $emacs_cv_xaw3d = yes; then
11867 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11868 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11869 USE_X_TOOLKIT
=LUCID
11872 cat >>confdefs.h
<<\_ACEOF
11873 #define HAVE_XAW3D 1
11877 { echo "$as_me:$LINENO: result: no" >&5
11878 echo "${ECHO_T}no" >&6; }
11879 { echo "$as_me:$LINENO: checking for libXaw" >&5
11880 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11881 if test "${emacs_cv_xaw+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 cat >conftest.
$ac_ext <<_ACEOF
11887 cat confdefs.h
>>conftest.
$ac_ext
11888 cat >>conftest.
$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11891 #include <X11/Intrinsic.h>
11892 #include <X11/Xaw/Simple.h>
11901 rm -f conftest.
$ac_objext conftest
$ac_exeext
11902 if { (ac_try
="$ac_link"
11903 case "(($ac_try" in
11904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_link") 2>conftest.er1
11910 grep -v '^ *+' conftest.er1 >conftest.err
11912 cat conftest.err >&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } && {
11915 test -z "$ac_c_werror_flag" ||
11916 test ! -s conftest.err
11917 } && test -s conftest$ac_exeext &&
11918 $as_test_x conftest$ac_exeext; then
11921 echo "$as_me: failed program was:" >&5
11922 sed 's/^/| /' conftest.$ac_ext >&5
11927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11928 conftest$ac_exeext conftest.$ac_ext
11931 if test $emacs_cv_xaw = yes; then
11932 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11933 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11934 USE_X_TOOLKIT=LUCID
11935 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11936 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11937 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11938 { (exit 1); exit 1; }; }
11940 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11941 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11947 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11949 if test "${USE_X_TOOLKIT}" != "none"; then
11950 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11951 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11952 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11953 echo $ECHO_N "(cached) $ECHO_C" >&6
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961 #include <X11/Intrinsic.h>
11965 #if XtSpecificationRelease < 6
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (ac_try="$ac_link"
11975 case "(($ac_try" in
11976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11977 *) ac_try_echo
=$ac_try;;
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980 (eval "$ac_link") 2>conftest.er1
11982 grep -v '^ *+' conftest.er1
>conftest.err
11984 cat conftest.err
>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } && {
11987 test -z "$ac_c_werror_flag" ||
11988 test ! -s conftest.err
11989 } && test -s conftest
$ac_exeext &&
11990 $as_test_x conftest
$ac_exeext; then
11991 emacs_cv_x11_toolkit_version_6
=yes
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.
$ac_ext >&5
11996 emacs_cv_x11_toolkit_version_6
=no
11999 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12000 conftest
$ac_exeext conftest.
$ac_ext
12003 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12004 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12005 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12006 echo "${ECHO_T}6 or newer" >&6; }
12008 cat >>confdefs.h
<<\_ACEOF
12009 #define HAVE_X11XTR6 1
12013 { echo "$as_me:$LINENO: result: before 6" >&5
12014 echo "${ECHO_T}before 6" >&6; }
12018 if test x
$HAVE_X11XTR6 = xyes
; then
12019 LIBS
="-lXt -lSM -lICE $LIBS"
12024 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12025 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_check_lib_save_LIBS
=$LIBS
12031 cat >conftest.
$ac_ext <<_ACEOF
12034 cat confdefs.h
>>conftest.
$ac_ext
12035 cat >>conftest.
$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12044 char XmuConvertStandardSelection ();
12048 return XmuConvertStandardSelection ();
12053 rm -f conftest.
$ac_objext conftest
$ac_exeext
12054 if { (ac_try
="$ac_link"
12055 case "(($ac_try" in
12056 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } && {
12067 test -z "$ac_c_werror_flag" ||
12068 test ! -s conftest.err
12069 } && test -s conftest$ac_exeext &&
12070 $as_test_x conftest$ac_exeext; then
12071 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12084 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12085 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12086 cat >>confdefs.h <<_ACEOF
12087 #define HAVE_LIBXMU 1
12094 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12097 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12098 if test "${HAVE_X11}" = "yes"; then
12099 if test "${USE_X_TOOLKIT}" != "none"; then
12101 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12102 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12103 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 ac_check_lib_save_LIBS=$LIBS
12107 LIBS="-lXext $LIBS"
12108 cat >conftest.$ac_ext <<_ACEOF
12111 cat confdefs.h >>conftest.$ac_ext
12112 cat >>conftest.$ac_ext <<_ACEOF
12113 /* end confdefs.h. */
12115 /* Override any GCC internal prototype to avoid an error.
12116 Use char because int might match the return type of a GCC
12117 builtin and then its argument prototype would still apply. */
12121 char XShapeQueryExtension ();
12125 return XShapeQueryExtension ();
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (ac_try="$ac_link"
12132 case "(($ac_try" in
12133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12134 *) ac_try_echo
=$ac_try;;
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_link") 2>conftest.er1
12139 grep -v '^ *+' conftest.er1
>conftest.err
12141 cat conftest.err
>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest
$ac_exeext &&
12147 $as_test_x conftest
$ac_exeext; then
12148 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.
$ac_ext >&5
12153 ac_cv_lib_Xext_XShapeQueryExtension
=no
12156 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12157 conftest
$ac_exeext conftest.
$ac_ext
12158 LIBS
=$ac_check_lib_save_LIBS
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12161 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12162 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12163 cat >>confdefs.h
<<_ACEOF
12164 #define HAVE_LIBXEXT 1
12167 LIBS
="-lXext $LIBS"
12174 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12175 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12176 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12177 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 cat >conftest.
$ac_ext <<_ACEOF
12183 cat confdefs.h
>>conftest.
$ac_ext
12184 cat >>conftest.
$ac_ext <<_ACEOF
12185 /* end confdefs.h. */
12190 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12193 Motif version prior to 2.1.
12199 rm -f conftest.
$ac_objext
12200 if { (ac_try
="$ac_compile"
12201 case "(($ac_try" in
12202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12203 *) ac_try_echo=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_compile") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1 >conftest.err
12210 cat conftest.err >&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest.$ac_objext; then
12216 emacs_cv_motif_version_2_1=yes
12218 echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12221 emacs_cv_motif_version_2_1=no
12224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12227 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12228 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12229 if test $emacs_cv_motif_version_2_1 = yes; then
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_MOTIF_2_1 1
12236 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12237 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12238 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12241 ac_check_lib_save_LIBS=$LIBS
12243 cat >conftest.$ac_ext <<_ACEOF
12246 cat confdefs.h >>conftest.$ac_ext
12247 cat >>conftest.$ac_ext <<_ACEOF
12248 /* end confdefs.h. */
12250 /* Override any GCC internal prototype to avoid an error.
12251 Use char because int might match the return type of a GCC
12252 builtin and then its argument prototype would still apply. */
12256 char XpCreateContext ();
12260 return XpCreateContext ();
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12269 *) ac_try_echo
=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1
>conftest.err
12276 cat conftest.err
>&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest
$ac_exeext &&
12282 $as_test_x conftest
$ac_exeext; then
12283 ac_cv_lib_Xp_XpCreateContext
=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12288 ac_cv_lib_Xp_XpCreateContext
=no
12291 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12292 conftest
$ac_exeext conftest.
$ac_ext
12293 LIBS
=$ac_check_lib_save_LIBS
12295 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12296 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12297 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12301 if test ${HAVE_LIBXP} = yes; then
12303 cat >>confdefs.h
<<\_ACEOF
12304 #define HAVE_LIBXP 1
12309 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12310 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12311 if test "${emacs_cv_lesstif+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 # We put this in CFLAGS temporarily to precede other -I options
12315 # that might be in CFLAGS temporarily.
12316 # We put this in CPPFLAGS where it precedes the other -I options.
12317 OLD_CPPFLAGS
=$CPPFLAGS
12319 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12320 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12321 cat >conftest.
$ac_ext <<_ACEOF
12324 cat confdefs.h
>>conftest.
$ac_ext
12325 cat >>conftest.
$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12327 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12336 rm -f conftest.
$ac_objext
12337 if { (ac_try
="$ac_compile"
12338 case "(($ac_try" in
12339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_compile") 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } && {
12350 test -z "$ac_c_werror_flag" ||
12351 test ! -s conftest.err
12352 } && test -s conftest.$ac_objext; then
12353 emacs_cv_lesstif=yes
12355 echo "$as_me: failed program was:" >&5
12356 sed 's/^/| /' conftest.$ac_ext >&5
12358 emacs_cv_lesstif=no
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12364 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12365 if test $emacs_cv_lesstif = yes; then
12366 # Make sure this -I option remains in CPPFLAGS after it is set
12367 # back to REAL_CPPFLAGS.
12368 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12369 # have those other -I options anyway. Ultimately, having this
12370 # directory ultimately in CPPFLAGS will be enough.
12371 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12372 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12375 CPPFLAGS=$OLD_CPPFLAGS
12382 USE_TOOLKIT_SCROLL_BARS=no
12383 if test "${with_toolkit_scroll_bars}" != "no"; then
12384 if test "${USE_X_TOOLKIT}" != "none"; then
12385 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define USE_TOOLKIT_SCROLL_BARS 1
12391 USE_TOOLKIT_SCROLL_BARS=yes
12392 elif test "${HAVE_XAW3D}" = "yes"; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define USE_TOOLKIT_SCROLL_BARS 1
12397 USE_TOOLKIT_SCROLL_BARS=yes
12399 elif test "${HAVE_GTK}" = "yes"; then
12400 cat >>confdefs.h <<\_ACEOF
12401 #define USE_TOOLKIT_SCROLL_BARS 1
12404 USE_TOOLKIT_SCROLL_BARS=yes
12405 elif test "${HAVE_NS}" = "yes"; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define USE_TOOLKIT_SCROLL_BARS 1
12410 USE_TOOLKIT_SCROLL_BARS=yes
12414 cat >conftest.$ac_ext <<_ACEOF
12417 cat confdefs.h >>conftest.$ac_ext
12418 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */
12421 #include <X11/Xlib.h>
12422 #include <X11/Xresource.h>
12431 rm -f conftest.$ac_objext
12432 if { (ac_try="$ac_compile"
12433 case "(($ac_try" in
12434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12435 *) ac_try_echo
=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_compile") 2>conftest.er1
12440 grep -v '^ *+' conftest.er1
>conftest.err
12442 cat conftest.err
>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } && {
12445 test -z "$ac_c_werror_flag" ||
12446 test ! -s conftest.err
12447 } && test -s conftest.
$ac_objext; then
12450 cat >>confdefs.h
<<\_ACEOF
12455 echo "$as_me: failed program was:" >&5
12456 sed 's/^/| /' conftest.
$ac_ext >&5
12461 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12464 if test "${with_xim}" != "no"; then
12466 cat >>confdefs.h
<<\_ACEOF
12473 if test "${HAVE_XIM}" != "no"; then
12474 late_CFLAGS
=$CFLAGS
12475 if test "$GCC" = yes; then
12476 CFLAGS
="$CFLAGS --pedantic-errors"
12478 cat >conftest.
$ac_ext <<_ACEOF
12481 cat confdefs.h
>>conftest.
$ac_ext
12482 cat >>conftest.
$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12485 #include <X11/Xlib.h>
12486 #include <X11/Xresource.h>
12495 XPointer *client_data;
12497 /* If we're not using GCC, it's probably not XFree86, and this is
12498 probably right, but we can't use something like --pedantic-errors. */
12499 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12500 char*, XIMProc, XPointer*);
12502 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12508 rm -f conftest.
$ac_objext
12509 if { (ac_try
="$ac_compile"
12510 case "(($ac_try" in
12511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12512 *) ac_try_echo=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12517 grep -v '^ *+' conftest.er1 >conftest.err
12519 cat conftest.err >&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.$ac_objext; then
12525 emacs_cv_arg6_star=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12535 if test "$emacs_cv_arg6_star" = yes; then
12536 cat >>confdefs.h <<\_ACEOF
12537 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12541 cat >>confdefs.h <<\_ACEOF
12542 #define XRegisterIMInstantiateCallback_arg6 XPointer
12546 CFLAGS=$late_CFLAGS
12549 ### Start of font-backend section.
12551 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12553 if test "x${with_freetype}" = "xno" ||
test "x${with_x}" = "xno"; then
12556 if test "x${with_xft}" != "xno"; then
12561 # Extract the first word of "pkg-config", so it can be a program name with args.
12562 set dummy pkg-config
; ac_word
=$2
12563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12565 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12566 echo $ECHO_N "(cached) $ECHO_C" >&6
12568 case $PKG_CONFIG in
12570 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12574 for as_dir
in $PATH
12577 test -z "$as_dir" && as_dir
=.
12578 for ac_exec_ext
in '' $ac_executable_extensions; do
12579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12580 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12588 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12592 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12593 if test -n "$PKG_CONFIG"; then
12594 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12595 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12597 { echo "$as_me:$LINENO: result: no" >&5
12598 echo "${ECHO_T}no" >&6; }
12603 if test "$PKG_CONFIG" = "no" ; then
12606 PKG_CONFIG_MIN_VERSION
=0.9.0
12607 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12608 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12609 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12611 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12612 { echo "$as_me:$LINENO: result: yes" >&5
12613 echo "${ECHO_T}yes" >&6; }
12616 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12617 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12618 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12619 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12620 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12622 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12623 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12624 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12625 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12626 echo "${ECHO_T}$XFT_LIBS" >&6; }
12628 { echo "$as_me:$LINENO: result: no" >&5
12629 echo "${ECHO_T}no" >&6; }
12632 ## If we have a custom action on failure, don't print errors, but
12633 ## do set a variable so people can do so.
12634 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12641 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12642 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12646 if test $succeeded = yes; then
12652 if test "$HAVE_XFT" != no
; then
12653 OLD_CPPFLAGS
="$CPPFLAGS"
12654 OLD_CFLAGS
="$CFLAGS"
12656 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12657 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12658 LIBS
="$XFT_LIBS $LIBS"
12659 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12660 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12661 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12662 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12666 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12668 # Is the header compilable?
12669 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12670 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12671 cat >conftest.
$ac_ext <<_ACEOF
12674 cat confdefs.h
>>conftest.
$ac_ext
12675 cat >>conftest.
$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 $ac_includes_default
12678 #include <X11/Xft/Xft.h>
12680 rm -f conftest.
$ac_objext
12681 if { (ac_try
="$ac_compile"
12682 case "(($ac_try" in
12683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12684 *) ac_try_echo=$ac_try;;
12686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12687 (eval "$ac_compile") 2>conftest.er1
12689 grep -v '^ *+' conftest.er1 >conftest.err
12691 cat conftest.err >&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); } && {
12694 test -z "$ac_c_werror_flag" ||
12695 test ! -s conftest.err
12696 } && test -s conftest.$ac_objext; then
12697 ac_header_compiler=yes
12699 echo "$as_me: failed program was:" >&5
12700 sed 's/^/| /' conftest.$ac_ext >&5
12702 ac_header_compiler=no
12705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12707 echo "${ECHO_T}$ac_header_compiler" >&6; }
12709 # Is the header present?
12710 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12711 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12712 cat >conftest.$ac_ext <<_ACEOF
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 #include <X11/Xft/Xft.h>
12720 if { (ac_try="$ac_cpp conftest.$ac_ext"
12721 case "(($ac_try" in
12722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12723 *) ac_try_echo
=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1
>conftest.err
12730 cat conftest.err
>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } >/dev
/null
&& {
12733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12734 test ! -s conftest.err
12736 ac_header_preproc
=yes
12738 echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.
$ac_ext >&5
12741 ac_header_preproc
=no
12744 rm -f conftest.err conftest.
$ac_ext
12745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12746 echo "${ECHO_T}$ac_header_preproc" >&6; }
12748 # So? What about this header?
12749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12755 ac_header_preproc
=yes
12758 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12759 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12761 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12762 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12763 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12764 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12765 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12766 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12767 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12768 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12769 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12773 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12774 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12780 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12781 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12784 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12785 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12786 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12787 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12788 echo $ECHO_N "(cached) $ECHO_C" >&6
12790 ac_check_lib_save_LIBS
=$LIBS
12791 LIBS
="-lXft $XFT_LIBS $LIBS"
12792 cat >conftest.
$ac_ext <<_ACEOF
12795 cat confdefs.h
>>conftest.
$ac_ext
12796 cat >>conftest.
$ac_ext <<_ACEOF
12797 /* end confdefs.h. */
12799 /* Override any GCC internal prototype to avoid an error.
12800 Use char because int might match the return type of a GCC
12801 builtin and then its argument prototype would still apply. */
12805 char XftFontOpen ();
12809 return XftFontOpen ();
12814 rm -f conftest.
$ac_objext conftest
$ac_exeext
12815 if { (ac_try
="$ac_link"
12816 case "(($ac_try" in
12817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_link") 2>conftest.er1
12823 grep -v '^ *+' conftest.er1 >conftest.err
12825 cat conftest.err >&5
12826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest$ac_exeext &&
12831 $as_test_x conftest$ac_exeext; then
12832 ac_cv_lib_Xft_XftFontOpen=yes
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_cv_lib_Xft_XftFontOpen=no
12840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12841 conftest$ac_exeext conftest.$ac_ext
12842 LIBS=$ac_check_lib_save_LIBS
12844 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12845 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12846 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12854 if test "${HAVE_XFT}" = "yes"; then
12856 cat >>confdefs.h <<\_ACEOF
12861 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12863 CPPFLAGS="$OLD_CPPFLAGS"
12864 CFLAGS="$OLD_CFLAGS"
12866 fi # "${HAVE_XFT}" = "yes"
12867 fi # "$HAVE_XFT" != no
12868 fi # "x${with_xft}" != "xno"
12870 if test "$HAVE_XFT" != "yes"; then
12876 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12877 if test "${HAVE_XFT}" = "yes"; then
12879 elif test "x${with_freetype}" != "xno" && test "x${with_x}" != "xno"; then
12884 # Extract the first word of "pkg-config", so it can be a program name with args.
12885 set dummy pkg-config; ac_word=$2
12886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12888 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 case $PKG_CONFIG in
12893 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12897 for as_dir in $PATH
12900 test -z "$as_dir" && as_dir=.
12901 for ac_exec_ext in '' $ac_executable_extensions; do
12902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12903 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12911 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12915 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12916 if test -n "$PKG_CONFIG"; then
12917 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12918 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12926 if test "$PKG_CONFIG" = "no" ; then
12929 PKG_CONFIG_MIN_VERSION=0.9.0
12930 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12931 { echo "$as_me:$LINENO: checking for freetype2" >&5
12932 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12934 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12935 { echo "$as_me:$LINENO: result: yes" >&5
12936 echo "${ECHO_T}yes" >&6; }
12939 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12940 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12941 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12943 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12945 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12946 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12947 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12948 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12949 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12951 { echo "$as_me:$LINENO: result: no" >&5
12952 echo "${ECHO_T}no" >&6; }
12955 ## If we have a custom action on failure, don't print errors
, but
12956 ## do set a variable so people can do so.
12957 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12964 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12965 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12969 if test $succeeded = yes; then
12975 if test "${HAVE_FREETYPE}" = "yes"; then
12979 # Extract the first word of "pkg-config", so it can be a program name with args.
12980 set dummy pkg-config
; ac_word
=$2
12981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12983 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12984 echo $ECHO_N "(cached) $ECHO_C" >&6
12986 case $PKG_CONFIG in
12988 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12992 for as_dir
in $PATH
12995 test -z "$as_dir" && as_dir
=.
12996 for ac_exec_ext
in '' $ac_executable_extensions; do
12997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12998 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13006 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13010 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13011 if test -n "$PKG_CONFIG"; then
13012 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13013 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13015 { echo "$as_me:$LINENO: result: no" >&5
13016 echo "${ECHO_T}no" >&6; }
13021 if test "$PKG_CONFIG" = "no" ; then
13024 PKG_CONFIG_MIN_VERSION
=0.9.0
13025 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13026 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13027 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13029 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13030 { echo "$as_me:$LINENO: result: yes" >&5
13031 echo "${ECHO_T}yes" >&6; }
13034 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13035 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13036 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13037 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13038 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13040 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13041 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13042 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13043 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13044 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13046 { echo "$as_me:$LINENO: result: no" >&5
13047 echo "${ECHO_T}no" >&6; }
13048 FONTCONFIG_CFLAGS
=""
13050 ## If we have a custom action on failure, don't print errors, but
13051 ## do set a variable so people can do so.
13052 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13059 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13060 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13064 if test $succeeded = yes; then
13070 if test "${HAVE_FC}" = "no"; then
13077 if test "${HAVE_FREETYPE}" = "yes"; then
13079 cat >>confdefs.h
<<\_ACEOF
13080 #define HAVE_FREETYPE 1
13083 if test "${with_libotf}" != "no"; then
13087 # Extract the first word of "pkg-config", so it can be a program name with args.
13088 set dummy pkg-config
; ac_word
=$2
13089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13091 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13094 case $PKG_CONFIG in
13096 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13099 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13100 for as_dir
in $PATH
13103 test -z "$as_dir" && as_dir
=.
13104 for ac_exec_ext
in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13106 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13118 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13119 if test -n "$PKG_CONFIG"; then
13120 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13121 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13123 { echo "$as_me:$LINENO: result: no" >&5
13124 echo "${ECHO_T}no" >&6; }
13129 if test "$PKG_CONFIG" = "no" ; then
13132 PKG_CONFIG_MIN_VERSION
=0.9.0
13133 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13134 { echo "$as_me:$LINENO: checking for libotf" >&5
13135 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13137 if $PKG_CONFIG --exists "libotf" 2>&5; then
13138 { echo "$as_me:$LINENO: result: yes" >&5
13139 echo "${ECHO_T}yes" >&6; }
13142 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13143 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13144 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13145 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13146 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13148 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13149 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13150 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13151 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13152 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13154 { echo "$as_me:$LINENO: result: no" >&5
13155 echo "${ECHO_T}no" >&6; }
13158 ## If we have a custom action on failure, don't print errors, but
13159 ## do set a variable so people can do so.
13160 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13167 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13168 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13172 if test $succeeded = yes; then
13178 if test "$HAVE_LIBOTF" = "yes"; then
13180 cat >>confdefs.h
<<\_ACEOF
13181 #define HAVE_LIBOTF 1
13189 if test "${HAVE_LIBOTF}" = yes; then
13190 if test "${with_m17n_flt}" != "no"; then
13194 # Extract the first word of "pkg-config", so it can be a program name with args.
13195 set dummy pkg-config
; ac_word
=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 case $PKG_CONFIG in
13203 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13207 for as_dir
in $PATH
13210 test -z "$as_dir" && as_dir
=.
13211 for ac_exec_ext
in '' $ac_executable_extensions; do
13212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13213 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13225 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13226 if test -n "$PKG_CONFIG"; then
13227 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13228 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13230 { echo "$as_me:$LINENO: result: no" >&5
13231 echo "${ECHO_T}no" >&6; }
13236 if test "$PKG_CONFIG" = "no" ; then
13239 PKG_CONFIG_MIN_VERSION
=0.9.0
13240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13241 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13242 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13244 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13245 { echo "$as_me:$LINENO: result: yes" >&5
13246 echo "${ECHO_T}yes" >&6; }
13249 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13250 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13251 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13252 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13253 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13255 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13256 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13257 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13258 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13259 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13261 { echo "$as_me:$LINENO: result: no" >&5
13262 echo "${ECHO_T}no" >&6; }
13265 ## If we have a custom action on failure, don't print errors, but
13266 ## do set a variable so people can do so.
13267 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13274 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13275 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13279 if test $succeeded = yes; then
13285 if test "$HAVE_M17N_FLT" = "yes"; then
13287 cat >>confdefs.h
<<\_ACEOF
13288 #define HAVE_M17N_FLT 1
13304 ### End of font-backend section.
13306 ### Use -lXpm if available, unless `--with-xpm=no'.
13308 if test "${HAVE_X11}" = "yes"; then
13309 if test "${with_xpm}" != "no"; then
13310 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13311 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13312 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13313 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13317 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13319 # Is the header compilable?
13320 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13321 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13322 cat >conftest.
$ac_ext <<_ACEOF
13325 cat confdefs.h
>>conftest.
$ac_ext
13326 cat >>conftest.
$ac_ext <<_ACEOF
13327 /* end confdefs.h. */
13328 $ac_includes_default
13329 #include <X11/xpm.h>
13331 rm -f conftest.
$ac_objext
13332 if { (ac_try
="$ac_compile"
13333 case "(($ac_try" in
13334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13335 *) ac_try_echo=$ac_try;;
13337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13338 (eval "$ac_compile") 2>conftest.er1
13340 grep -v '^ *+' conftest.er1 >conftest.err
13342 cat conftest.err >&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && {
13345 test -z "$ac_c_werror_flag" ||
13346 test ! -s conftest.err
13347 } && test -s conftest.$ac_objext; then
13348 ac_header_compiler=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 ac_header_compiler=no
13356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13358 echo "${ECHO_T}$ac_header_compiler" >&6; }
13360 # Is the header present?
13361 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13362 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13363 cat >conftest.$ac_ext <<_ACEOF
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 #include <X11/xpm.h>
13371 if { (ac_try="$ac_cpp conftest.$ac_ext"
13372 case "(($ac_try" in
13373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13374 *) ac_try_echo
=$ac_try;;
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1
>conftest.err
13381 cat conftest.err
>&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } >/dev
/null
&& {
13384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13387 ac_header_preproc
=yes
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.
$ac_ext >&5
13392 ac_header_preproc
=no
13395 rm -f conftest.err conftest.
$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397 echo "${ECHO_T}$ac_header_preproc" >&6; }
13399 # So? What about this header?
13400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc
=yes
13409 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13410 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13412 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13414 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13416 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13418 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13420 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13424 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13425 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13426 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13427 echo $ECHO_N "(cached) $ECHO_C" >&6
13429 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13431 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13432 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13435 if test $ac_cv_header_X11_xpm_h = yes; then
13436 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13437 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13438 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 ac_check_lib_save_LIBS
=$LIBS
13442 LIBS
="-lXpm -lX11 $LIBS"
13443 cat >conftest.
$ac_ext <<_ACEOF
13446 cat confdefs.h
>>conftest.
$ac_ext
13447 cat >>conftest.
$ac_ext <<_ACEOF
13448 /* end confdefs.h. */
13450 /* Override any GCC internal prototype to avoid an error.
13451 Use char because int might match the return type of a GCC
13452 builtin and then its argument prototype would still apply. */
13456 char XpmReadFileToPixmap ();
13460 return XpmReadFileToPixmap ();
13465 rm -f conftest.
$ac_objext conftest
$ac_exeext
13466 if { (ac_try
="$ac_link"
13467 case "(($ac_try" in
13468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_link") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest$ac_exeext &&
13482 $as_test_x conftest$ac_exeext; then
13483 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13485 echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13488 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13496 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13497 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13504 if test "${HAVE_XPM}" = "yes"; then
13505 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13506 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include "X11/xpm.h"
13514 #ifndef XpmReturnAllocPixels
13515 no_return_alloc_pixels
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13528 if test "${HAVE_XPM}" = "yes"; then
13529 { echo "$as_me:$LINENO: result: yes" >&5
13530 echo "${ECHO_T}yes" >&6; }
13532 { echo "$as_me:$LINENO: result: no" >&5
13533 echo "${ECHO_T}no" >&6; }
13538 if test "${HAVE_XPM}" = "yes"; then
13540 cat >>confdefs.h <<\_ACEOF
13547 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13549 if test "${HAVE_X11}" = "yes"; then
13550 if test "${with_jpeg}" != "no"; then
13551 if test "${ac_cv_header_jerror_h+set}" = set; then
13552 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13553 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13554 if test "${ac_cv_header_jerror_h+set}" = set; then
13555 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13558 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13560 # Is the header compilable?
13561 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13562 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13570 #include <jerror.h>
13572 rm -f conftest.$ac_objext
13573 if { (ac_try="$ac_compile"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_compile") 2>conftest.er1
13581 grep -v '^
*+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } && {
13586 test -z "$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13588 } && test -s conftest.$ac_objext; then
13589 ac_header_compiler=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's
/^
/|
/' conftest.$ac_ext >&5
13594 ac_header_compiler=no
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13599 echo "${ECHO_T}$ac_header_compiler" >&6; }
13601 # Is the header present?
13602 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13603 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13604 cat >conftest.$ac_ext <<_ACEOF
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 #include <jerror.h>
13612 if { (ac_try="$ac_cpp conftest.$ac_ext"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13620 grep -v '^
*+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } >/dev/null && {
13625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13628 ac_header_preproc=yes
13630 echo "$as_me: failed program was:" >&5
13631 sed 's
/^
/|
/' conftest.$ac_ext >&5
13633 ac_header_preproc=no
13636 rm -f conftest.err conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13638 echo "${ECHO_T}$ac_header_preproc" >&6; }
13640 # So? What about this header?
13641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13644 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13646 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13647 ac_header_preproc=yes
13650 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13651 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13653 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13655 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13657 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13658 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13659 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13660 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13661 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13665 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13666 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13667 if test "${ac_cv_header_jerror_h+set}" = set; then
13668 echo $ECHO_N "(cached) $ECHO_C" >&6
13670 ac_cv_header_jerror_h=$ac_header_preproc
13672 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13673 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13676 if test $ac_cv_header_jerror_h = yes; then
13677 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13678 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13679 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13680 echo $ECHO_N "(cached) $ECHO_C" >&6
13682 ac_check_lib_save_LIBS=$LIBS
13683 LIBS="-ljpeg $LIBS"
13684 cat >conftest.$ac_ext <<_ACEOF
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13691 /* Override any GCC internal prototype to avoid an error.
13692 Use char because int might match the return type of a GCC
13693 builtin and then its argument prototype would still apply. */
13697 char jpeg_destroy_compress ();
13701 return jpeg_destroy_compress ();
13706 rm -f conftest.$ac_objext conftest$ac_exeext
13707 if { (ac_try="$ac_link"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_link") 2>conftest.er1
13715 grep -v '^
*+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest$ac_exeext &&
13723 $as_test_x conftest$ac_exeext; then
13724 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13726 echo "$as_me: failed program was:" >&5
13727 sed 's
/^
/|
/' conftest.$ac_ext >&5
13729 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13733 conftest$ac_exeext conftest.$ac_ext
13734 LIBS=$ac_check_lib_save_LIBS
13736 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13737 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13738 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13748 if test "${HAVE_JPEG}" = "yes"; then
13749 cat >>confdefs.h <<\_ACEOF
13750 #define HAVE_JPEG 1
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 #include <jpeglib.h>
13760 version=JPEG_LIB_VERSION
13763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13764 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13765 cat >>confdefs.h <<\_ACEOF
13766 #define HAVE_JPEG 1
13770 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13771 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13779 ### Use -lpng if available, unless `--with-png=no'.
13781 if test "${HAVE_X11}" = "yes"; then
13782 if test "${with_png}" != "no"; then
13783 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13784 # in /usr/include/libpng.
13787 for ac_header
in png.h libpng
/png.h
13789 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13790 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_res
=`eval echo '${'$as_ac_Header'}'`
13797 { echo "$as_me:$LINENO: result: $ac_res" >&5
13798 echo "${ECHO_T}$ac_res" >&6; }
13800 # Is the header compilable?
13801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13803 cat >conftest.
$ac_ext <<_ACEOF
13806 cat confdefs.h
>>conftest.
$ac_ext
13807 cat >>conftest.
$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13810 #include <$ac_header>
13812 rm -f conftest.
$ac_objext
13813 if { (ac_try
="$ac_compile"
13814 case "(($ac_try" in
13815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_compile") 2>conftest.er1
13821 grep -v '^ *+' conftest.er1 >conftest.err
13823 cat conftest.err >&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } && {
13826 test -z "$ac_c_werror_flag" ||
13827 test ! -s conftest.err
13828 } && test -s conftest.$ac_objext; then
13829 ac_header_compiler=yes
13831 echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13834 ac_header_compiler=no
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13839 echo "${ECHO_T}$ac_header_compiler" >&6; }
13841 # Is the header present?
13842 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13843 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13844 cat >conftest.$ac_ext <<_ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */
13850 #include <$ac_header>
13852 if { (ac_try="$ac_cpp conftest.$ac_ext"
13853 case "(($ac_try" in
13854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13855 *) ac_try_echo
=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1
>conftest.err
13862 cat conftest.err
>&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } >/dev
/null
&& {
13865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13868 ac_header_preproc
=yes
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.
$ac_ext >&5
13873 ac_header_preproc
=no
13876 rm -f conftest.err conftest.
$ac_ext
13877 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13878 echo "${ECHO_T}$ac_header_preproc" >&6; }
13880 # So? What about this header?
13881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13887 ac_header_preproc
=yes
13890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13907 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13908 echo $ECHO_N "(cached) $ECHO_C" >&6
13910 eval "$as_ac_Header=\$ac_header_preproc"
13912 ac_res
=`eval echo '${'$as_ac_Header'}'`
13913 { echo "$as_me:$LINENO: result: $ac_res" >&5
13914 echo "${ECHO_T}$ac_res" >&6; }
13917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13918 cat >>confdefs.h
<<_ACEOF
13919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13926 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13927 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13928 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13929 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13930 echo $ECHO_N "(cached) $ECHO_C" >&6
13932 ac_check_lib_save_LIBS
=$LIBS
13933 LIBS
="-lpng -lz -lm $LIBS"
13934 cat >conftest.
$ac_ext <<_ACEOF
13937 cat confdefs.h
>>conftest.
$ac_ext
13938 cat >>conftest.
$ac_ext <<_ACEOF
13939 /* end confdefs.h. */
13941 /* Override any GCC internal prototype to avoid an error.
13942 Use char because int might match the return type of a GCC
13943 builtin and then its argument prototype would still apply. */
13947 char png_get_channels ();
13951 return png_get_channels ();
13956 rm -f conftest.
$ac_objext conftest
$ac_exeext
13957 if { (ac_try
="$ac_link"
13958 case "(($ac_try" in
13959 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_link") 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && {
13970 test -z "$ac_c_werror_flag" ||
13971 test ! -s conftest.err
13972 } && test -s conftest$ac_exeext &&
13973 $as_test_x conftest$ac_exeext; then
13974 ac_cv_lib_png_png_get_channels=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_lib_png_png_get_channels=no
13982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13983 conftest$ac_exeext conftest.$ac_ext
13984 LIBS=$ac_check_lib_save_LIBS
13986 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13987 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13988 if test $ac_cv_lib_png_png_get_channels = yes; then
13995 if test "${HAVE_PNG}" = "yes"; then
13997 cat >>confdefs.h <<\_ACEOF
14004 ### Use -ltiff if available, unless `--with-tiff=no
'.
14006 if test "${HAVE_X11}" = "yes"; then
14007 if test "${with_tiff}" != "no"; then
14008 if test "${ac_cv_header_tiffio_h+set}" = set; then
14009 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14010 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14011 if test "${ac_cv_header_tiffio_h+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14014 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14015 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14017 # Is the header compilable?
14018 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14019 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14020 cat >conftest.$ac_ext <<_ACEOF
14023 cat confdefs.h >>conftest.$ac_ext
14024 cat >>conftest.$ac_ext <<_ACEOF
14025 /* end confdefs.h. */
14026 $ac_includes_default
14027 #include <tiffio.h>
14029 rm -f conftest.$ac_objext
14030 if { (ac_try="$ac_compile"
14031 case "(($ac_try" in
14032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14033 *) ac_try_echo=$ac_try;;
14035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14036 (eval "$ac_compile") 2>conftest.er1
14038 grep -v '^
*+' conftest.er1 >conftest.err
14040 cat conftest.err >&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); } && {
14043 test -z "$ac_c_werror_flag" ||
14044 test ! -s conftest.err
14045 } && test -s conftest.$ac_objext; then
14046 ac_header_compiler=yes
14048 echo "$as_me: failed program was:" >&5
14049 sed 's
/^
/|
/' conftest.$ac_ext >&5
14051 ac_header_compiler=no
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14056 echo "${ECHO_T}$ac_header_compiler" >&6; }
14058 # Is the header present?
14059 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14060 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14067 #include <tiffio.h>
14069 if { (ac_try="$ac_cpp conftest.$ac_ext"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14077 grep -v '^
*+' conftest.er1 >conftest.err
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } >/dev/null && {
14082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14083 test ! -s conftest.err
14085 ac_header_preproc=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's
/^
/|
/' conftest.$ac_ext >&5
14090 ac_header_preproc=no
14093 rm -f conftest.err conftest.$ac_ext
14094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14095 echo "${ECHO_T}$ac_header_preproc" >&6; }
14097 # So? What about this header?
14098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14101 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14103 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14104 ac_header_preproc=yes
14107 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14108 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14110 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14111 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14112 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14114 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14115 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14116 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14117 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14118 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14122 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14123 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14124 if test "${ac_cv_header_tiffio_h+set}" = set; then
14125 echo $ECHO_N "(cached) $ECHO_C" >&6
14127 ac_cv_header_tiffio_h=$ac_header_preproc
14129 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14130 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14133 if test $ac_cv_header_tiffio_h = yes; then
14135 # At least one tiff package requires the jpeg library.
14136 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14137 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14138 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14139 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 ac_check_lib_save_LIBS=$LIBS
14143 LIBS="-ltiff $tifflibs $LIBS"
14144 cat >conftest.$ac_ext <<_ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14151 /* Override any GCC internal prototype to avoid an error.
14152 Use char because int might match the return type of a GCC
14153 builtin and then its argument prototype would still apply. */
14157 char TIFFGetVersion ();
14161 return TIFFGetVersion ();
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (ac_try="$ac_link"
14168 case "(($ac_try" in
14169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14170 *) ac_try_echo=$ac_try;;
14172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14173 (eval "$ac_link") 2>conftest.er1
14175 grep -v '^
*+' conftest.er1 >conftest.err
14177 cat conftest.err >&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && {
14180 test -z "$ac_c_werror_flag" ||
14181 test ! -s conftest.err
14182 } && test -s conftest$ac_exeext &&
14183 $as_test_x conftest$ac_exeext; then
14184 ac_cv_lib_tiff_TIFFGetVersion=yes
14186 echo "$as_me: failed program was:" >&5
14187 sed 's
/^
/|
/' conftest.$ac_ext >&5
14189 ac_cv_lib_tiff_TIFFGetVersion=no
14192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14193 conftest$ac_exeext conftest.$ac_ext
14194 LIBS=$ac_check_lib_save_LIBS
14196 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14197 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14198 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14207 if test "${HAVE_TIFF}" = "yes"; then
14209 cat >>confdefs.h <<\_ACEOF
14210 #define HAVE_TIFF 1
14216 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14218 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14219 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14220 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14221 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14222 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14228 # Is the header compilable?
14229 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14230 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14231 cat >conftest.
$ac_ext <<_ACEOF
14234 cat confdefs.h
>>conftest.
$ac_ext
14235 cat >>conftest.
$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 $ac_includes_default
14238 #include <gif_lib.h>
14240 rm -f conftest.
$ac_objext
14241 if { (ac_try
="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_compile") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1 >conftest.err
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest.$ac_objext; then
14257 ac_header_compiler=yes
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_header_compiler=no
14265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14267 echo "${ECHO_T}$ac_header_compiler" >&6; }
14269 # Is the header present?
14270 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14271 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14272 cat >conftest.$ac_ext <<_ACEOF
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <gif_lib.h>
14280 if { (ac_try="$ac_cpp conftest.$ac_ext"
14281 case "(($ac_try" in
14282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14283 *) ac_try_echo
=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14288 grep -v '^ *+' conftest.er1
>conftest.err
14290 cat conftest.err
>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } >/dev
/null
&& {
14293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14294 test ! -s conftest.err
14296 ac_header_preproc
=yes
14298 echo "$as_me: failed program was:" >&5
14299 sed 's/^/| /' conftest.
$ac_ext >&5
14301 ac_header_preproc
=no
14304 rm -f conftest.err conftest.
$ac_ext
14305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14306 echo "${ECHO_T}$ac_header_preproc" >&6; }
14308 # So? What about this header?
14309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14312 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14314 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14315 ac_header_preproc
=yes
14318 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14319 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14321 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14323 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14325 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14326 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14327 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14328 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14329 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14333 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14334 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14335 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 ac_cv_header_gif_lib_h
=$ac_header_preproc
14340 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14341 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14344 if test $ac_cv_header_gif_lib_h = yes; then
14345 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14346 # Earlier versions can crash Emacs.
14347 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14348 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14349 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14354 cat >conftest.
$ac_ext <<_ACEOF
14357 cat confdefs.h
>>conftest.
$ac_ext
14358 cat >>conftest.
$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14367 char EGifPutExtensionLast ();
14371 return EGifPutExtensionLast ();
14376 rm -f conftest.
$ac_objext conftest
$ac_exeext
14377 if { (ac_try
="$ac_link"
14378 case "(($ac_try" in
14379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14380 *) ac_try_echo=$ac_try;;
14382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14383 (eval "$ac_link") 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } && {
14390 test -z "$ac_c_werror_flag" ||
14391 test ! -s conftest.err
14392 } && test -s conftest$ac_exeext &&
14393 $as_test_x conftest$ac_exeext; then
14394 ac_cv_lib_gif_EGifPutExtensionLast=yes
14396 echo "$as_me: failed program was:" >&5
14397 sed 's/^/| /' conftest.$ac_ext >&5
14399 ac_cv_lib_gif_EGifPutExtensionLast=no
14402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14403 conftest$ac_exeext conftest.$ac_ext
14404 LIBS=$ac_check_lib_save_LIBS
14406 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14407 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14408 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14418 if test "$HAVE_GIF" = yes; then
14419 ac_gif_lib_name="-lgif"
14422 # If gif_lib.h but no libgif, try libungif.
14423 if test x"$try_libungif" = xyes; then
14424 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14425 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14426 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 ac_check_lib_save_LIBS=$LIBS
14430 LIBS="-lungif $LIBS"
14431 cat >conftest.$ac_ext <<_ACEOF
14434 cat confdefs.h >>conftest.$ac_ext
14435 cat >>conftest.$ac_ext <<_ACEOF
14436 /* end confdefs.h. */
14438 /* Override any GCC internal prototype to avoid an error.
14439 Use char because int might match the return type of a GCC
14440 builtin and then its argument prototype would still apply. */
14444 char EGifPutExtensionLast ();
14448 return EGifPutExtensionLast ();
14453 rm -f conftest.$ac_objext conftest$ac_exeext
14454 if { (ac_try="$ac_link"
14455 case "(($ac_try" in
14456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14457 *) ac_try_echo
=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_link") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1
>conftest.err
14464 cat conftest.err
>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } && {
14467 test -z "$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14469 } && test -s conftest
$ac_exeext &&
14470 $as_test_x conftest
$ac_exeext; then
14471 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.
$ac_ext >&5
14476 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14479 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14480 conftest
$ac_exeext conftest.
$ac_ext
14481 LIBS
=$ac_check_lib_save_LIBS
14483 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14484 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14485 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14490 if test "$HAVE_GIF" = yes; then
14492 cat >>confdefs.h
<<\_ACEOF
14493 #define LIBGIF -lungif
14496 ac_gif_lib_name
="-lungif"
14500 if test "${HAVE_GIF}" = "yes"; then
14502 cat >>confdefs.h
<<\_ACEOF
14509 if test "${HAVE_X11}" = "yes"; then
14512 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14513 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14514 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14515 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14516 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14517 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14518 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14519 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14520 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14521 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14523 if test "X${MISSING}" != X
; then
14524 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14526 Maybe some development libraries/packages are missing?
14527 If you don't want to link with them give
14529 as options to configure" >&5
14530 echo "$as_me: error: The following required libraries were not found:
14532 Maybe some development libraries/packages are missing?
14533 If you don't want to link with them give
14535 as options to configure" >&2;}
14536 { (exit 1); exit 1; }; }
14540 ### Use -lgpm if available, unless `--with-gpm=no'.
14542 if test "${with_gpm}" != "no"; then
14543 if test "${ac_cv_header_gpm_h+set}" = set; then
14544 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14545 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14546 if test "${ac_cv_header_gpm_h+set}" = set; then
14547 echo $ECHO_N "(cached) $ECHO_C" >&6
14549 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14550 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14552 # Is the header compilable?
14553 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14554 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14555 cat >conftest.
$ac_ext <<_ACEOF
14558 cat confdefs.h
>>conftest.
$ac_ext
14559 cat >>conftest.
$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 $ac_includes_default
14564 rm -f conftest.
$ac_objext
14565 if { (ac_try
="$ac_compile"
14566 case "(($ac_try" in
14567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_header_compiler=yes
14583 echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.$ac_ext >&5
14586 ac_header_compiler=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14591 echo "${ECHO_T}$ac_header_compiler" >&6; }
14593 # Is the header present?
14594 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14595 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14604 if { (ac_try="$ac_cpp conftest.$ac_ext"
14605 case "(($ac_try" in
14606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14607 *) ac_try_echo
=$ac_try;;
14609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1
>conftest.err
14614 cat conftest.err
>&5
14615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } >/dev
/null
&& {
14617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14620 ac_header_preproc
=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.
$ac_ext >&5
14625 ac_header_preproc
=no
14628 rm -f conftest.err conftest.
$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14630 echo "${ECHO_T}$ac_header_preproc" >&6; }
14632 # So? What about this header?
14633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14636 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14638 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14639 ac_header_preproc
=yes
14642 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14643 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14645 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14647 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14648 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14649 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14650 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14651 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14652 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14653 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14657 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14658 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14659 if test "${ac_cv_header_gpm_h+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 ac_cv_header_gpm_h
=$ac_header_preproc
14664 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14665 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14668 if test $ac_cv_header_gpm_h = yes; then
14669 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14670 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14671 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 ac_check_lib_save_LIBS
=$LIBS
14676 cat >conftest.
$ac_ext <<_ACEOF
14679 cat confdefs.h
>>conftest.
$ac_ext
14680 cat >>conftest.
$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14683 /* Override any GCC internal prototype to avoid an error.
14684 Use char because int might match the return type of a GCC
14685 builtin and then its argument prototype would still apply. */
14693 return Gpm_Open ();
14698 rm -f conftest.
$ac_objext conftest
$ac_exeext
14699 if { (ac_try
="$ac_link"
14700 case "(($ac_try" in
14701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_link") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext &&
14715 $as_test_x conftest$ac_exeext; then
14716 ac_cv_lib_gpm_Gpm_Open=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_cv_lib_gpm_Gpm_Open=no
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725 conftest$ac_exeext conftest.$ac_ext
14726 LIBS=$ac_check_lib_save_LIBS
14728 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14729 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14730 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14739 if test "${HAVE_GPM}" = "yes"; then
14741 cat >>confdefs.h <<\_ACEOF
14747 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14748 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14749 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14750 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14751 echo $ECHO_N "(cached) $ECHO_C" >&6
14753 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14754 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14756 # Is the header compilable?
14757 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14758 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14759 cat >conftest.$ac_ext <<_ACEOF
14762 cat confdefs.h >>conftest.$ac_ext
14763 cat >>conftest.$ac_ext <<_ACEOF
14764 /* end confdefs.h. */
14765 $ac_includes_default
14766 #include <malloc/malloc.h>
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14772 *) ac_try_echo
=$ac_try;;
14774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14775 (eval "$ac_compile") 2>conftest.er1
14777 grep -v '^ *+' conftest.er1
>conftest.err
14779 cat conftest.err
>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } && {
14782 test -z "$ac_c_werror_flag" ||
14783 test ! -s conftest.err
14784 } && test -s conftest.
$ac_objext; then
14785 ac_header_compiler
=yes
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.
$ac_ext >&5
14790 ac_header_compiler
=no
14793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14795 echo "${ECHO_T}$ac_header_compiler" >&6; }
14797 # Is the header present?
14798 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14799 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14800 cat >conftest.
$ac_ext <<_ACEOF
14803 cat confdefs.h
>>conftest.
$ac_ext
14804 cat >>conftest.
$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 #include <malloc/malloc.h>
14808 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14809 case "(($ac_try" in
14810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14811 *) ac_try_echo=$ac_try;;
14813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14816 grep -v '^ *+' conftest.er1 >conftest.err
14818 cat conftest.err >&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); } >/dev/null && {
14821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14822 test ! -s conftest.err
14824 ac_header_preproc=yes
14826 echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14829 ac_header_preproc=no
14832 rm -f conftest.err conftest.$ac_ext
14833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14834 echo "${ECHO_T}$ac_header_preproc" >&6; }
14836 # So? What about this header?
14837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14843 ac_header_preproc=yes
14846 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14847 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14849 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14851 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14853 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14855 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14856 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14857 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14861 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14862 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14863 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14868 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14869 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14872 if test $ac_cv_header_malloc_malloc_h = yes; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_MALLOC_MALLOC_H 1
14882 ### Use NeXTstep API to implement GUI.
14883 if test "${HAVE_NS}" = "yes"; then
14885 cat >>confdefs.h <<\_ACEOF
14889 if test "${NS_IMPL_COCOA}" = "yes"; then
14891 cat >>confdefs.h <<\_ACEOF
14892 #define NS_IMPL_COCOA 1
14896 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14898 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14900 cat >>confdefs.h <<\_ACEOF
14901 #define COCOA_EXPERIMENTAL_CTRL_G 1
14905 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define NS_IMPL_GNUSTEP 1
14911 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14913 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define NS_HAVE_NSINTEGER 1
14920 # We also have mouse menus.
14925 ### Use session management (-lSM -lICE) if available
14927 if test "${HAVE_X11}" = "yes"; then
14928 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14929 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14930 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14931 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14935 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14937 # Is the header compilable?
14938 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14939 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14940 cat >conftest.$ac_ext <<_ACEOF
14943 cat confdefs.h >>conftest.$ac_ext
14944 cat >>conftest.$ac_ext <<_ACEOF
14945 /* end confdefs.h. */
14946 $ac_includes_default
14947 #include <X11/SM/SMlib.h>
14949 rm -f conftest.$ac_objext
14950 if { (ac_try="$ac_compile"
14951 case "(($ac_try" in
14952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14953 *) ac_try_echo
=$ac_try;;
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_compile") 2>conftest.er1
14958 grep -v '^ *+' conftest.er1
>conftest.err
14960 cat conftest.err
>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_c_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest.
$ac_objext; then
14966 ac_header_compiler
=yes
14968 echo "$as_me: failed program was:" >&5
14969 sed 's/^/| /' conftest.
$ac_ext >&5
14971 ac_header_compiler
=no
14974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14976 echo "${ECHO_T}$ac_header_compiler" >&6; }
14978 # Is the header present?
14979 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14980 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14981 cat >conftest.
$ac_ext <<_ACEOF
14984 cat confdefs.h
>>conftest.
$ac_ext
14985 cat >>conftest.
$ac_ext <<_ACEOF
14986 /* end confdefs.h. */
14987 #include <X11/SM/SMlib.h>
14989 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14990 case "(($ac_try" in
14991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14992 *) ac_try_echo=$ac_try;;
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14997 grep -v '^ *+' conftest.er1 >conftest.err
14999 cat conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 (exit $ac_status); } >/dev/null && {
15002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15003 test ! -s conftest.err
15005 ac_header_preproc=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_header_preproc=no
15013 rm -f conftest.err conftest.$ac_ext
15014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15015 echo "${ECHO_T}$ac_header_preproc" >&6; }
15017 # So? What about this header?
15018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15021 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15024 ac_header_preproc=yes
15027 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15028 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15030 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15032 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15034 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15035 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15036 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15037 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15038 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15042 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15043 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15047 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15049 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15050 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15053 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15054 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15055 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15056 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15057 echo $ECHO_N "(cached) $ECHO_C" >&6
15059 ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lSM -lICE $LIBS"
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15068 /* Override any GCC internal prototype to avoid an error.
15069 Use char because int might match the return type of a GCC
15070 builtin and then its argument prototype would still apply. */
15074 char SmcOpenConnection ();
15078 return SmcOpenConnection ();
15083 rm -f conftest.$ac_objext conftest$ac_exeext
15084 if { (ac_try="$ac_link"
15085 case "(($ac_try" in
15086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15087 *) ac_try_echo
=$ac_try;;
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090 (eval "$ac_link") 2>conftest.er1
15092 grep -v '^ *+' conftest.er1
>conftest.err
15094 cat conftest.err
>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } && {
15097 test -z "$ac_c_werror_flag" ||
15098 test ! -s conftest.err
15099 } && test -s conftest
$ac_exeext &&
15100 $as_test_x conftest
$ac_exeext; then
15101 ac_cv_lib_SM_SmcOpenConnection
=yes
15103 echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.
$ac_ext >&5
15106 ac_cv_lib_SM_SmcOpenConnection
=no
15109 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15110 conftest
$ac_exeext conftest.
$ac_ext
15111 LIBS
=$ac_check_lib_save_LIBS
15113 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15114 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15115 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15123 if test "${HAVE_X_SM}" = "yes"; then
15125 cat >>confdefs.h
<<\_ACEOF
15126 #define HAVE_X_SM 1
15131 *) LIBS
="-lSM -lICE $LIBS" ;;
15136 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15137 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15138 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15139 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 cat >conftest.
$ac_ext <<_ACEOF
15145 cat confdefs.h
>>conftest.
$ac_ext
15146 cat >>conftest.
$ac_ext <<_ACEOF
15147 /* end confdefs.h. */
15157 rm -f conftest.
$ac_objext conftest
$ac_exeext
15158 if { (ac_try
="$ac_link"
15159 case "(($ac_try" in
15160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15161 *) ac_try_echo=$ac_try;;
15163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15164 (eval "$ac_link") 2>conftest.er1
15166 grep -v '^ *+' conftest.er1 >conftest.err
15168 cat conftest.err >&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } && {
15171 test -z "$ac_c_werror_flag" ||
15172 test ! -s conftest.err
15173 } && test -s conftest$ac_exeext &&
15174 $as_test_x conftest$ac_exeext; then
15175 emacs_cv_netdb_declares_h_errno=yes
15177 echo "$as_me: failed program was:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 emacs_cv_netdb_declares_h_errno=no
15183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15184 conftest$ac_exeext conftest.$ac_ext
15186 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15187 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15188 if test $emacs_cv_netdb_declares_h_errno = yes; then
15190 cat >>confdefs.h <<\_ACEOF
15191 #define HAVE_H_ERRNO 1
15196 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15197 # for constant arguments. Useless!
15198 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15199 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15200 if test "${ac_cv_working_alloca_h+set}" = set; then
15201 echo $ECHO_N "(cached) $ECHO_C" >&6
15203 cat >conftest.$ac_ext <<_ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h. */
15209 #include <alloca.h>
15213 char *p = (char *) alloca (2 * sizeof (int));
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (ac_try="$ac_link"
15221 case "(($ac_try" in
15222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15223 *) ac_try_echo
=$ac_try;;
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_link") 2>conftest.er1
15228 grep -v '^ *+' conftest.er1
>conftest.err
15230 cat conftest.err
>&5
15231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && {
15233 test -z "$ac_c_werror_flag" ||
15234 test ! -s conftest.err
15235 } && test -s conftest
$ac_exeext &&
15236 $as_test_x conftest
$ac_exeext; then
15237 ac_cv_working_alloca_h
=yes
15239 echo "$as_me: failed program was:" >&5
15240 sed 's/^/| /' conftest.
$ac_ext >&5
15242 ac_cv_working_alloca_h
=no
15245 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15246 conftest
$ac_exeext conftest.
$ac_ext
15248 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15249 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15250 if test $ac_cv_working_alloca_h = yes; then
15252 cat >>confdefs.h
<<\_ACEOF
15253 #define HAVE_ALLOCA_H 1
15258 { echo "$as_me:$LINENO: checking for alloca" >&5
15259 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15260 if test "${ac_cv_func_alloca_works+set}" = set; then
15261 echo $ECHO_N "(cached) $ECHO_C" >&6
15263 cat >conftest.
$ac_ext <<_ACEOF
15266 cat confdefs.h
>>conftest.
$ac_ext
15267 cat >>conftest.
$ac_ext <<_ACEOF
15268 /* end confdefs.h. */
15270 # define alloca __builtin_alloca
15273 # include <malloc.h>
15274 # define alloca _alloca
15276 # ifdef HAVE_ALLOCA_H
15277 # include <alloca.h>
15282 # ifndef alloca /* predefined by HP cc +Olibcalls */
15293 char *p = (char *) alloca (1);
15299 rm -f conftest.
$ac_objext conftest
$ac_exeext
15300 if { (ac_try
="$ac_link"
15301 case "(($ac_try" in
15302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_c_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15317 ac_cv_func_alloca_works=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_func_alloca_works=no
15325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15326 conftest$ac_exeext conftest.$ac_ext
15328 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15329 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15331 if test $ac_cv_func_alloca_works = yes; then
15333 cat >>confdefs.h <<\_ACEOF
15334 #define HAVE_ALLOCA 1
15338 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15339 # that cause trouble. Some versions do not even contain alloca or
15340 # contain a buggy version. If you still want to use their alloca,
15341 # use ar to extract alloca.o from them instead of compiling alloca.c.
15343 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15345 cat >>confdefs.h <<\_ACEOF
15350 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15351 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15352 if test "${ac_cv_os_cray+set}" = set; then
15353 echo $ECHO_N "(cached
) $ECHO_C" >&6
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 #if defined CRAY && ! defined CRAY2
15368 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15369 $EGREP "webecray
" >/dev/null 2>&1; then
15377 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15378 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15379 if test $ac_cv_os_cray = yes; then
15380 for ac_func in _getb67 GETB67 getb67; do
15381 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15382 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15383 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15384 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15385 echo $ECHO_N "(cached
) $ECHO_C" >&6
15387 cat >conftest.$ac_ext <<_ACEOF
15390 cat confdefs.h >>conftest.$ac_ext
15391 cat >>conftest.$ac_ext <<_ACEOF
15392 /* end confdefs.h. */
15393 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15395 #define $ac_func innocuous_$ac_func
15397 /* System header to define __stub macros and hopefully few prototypes,
15398 which can conflict with char $ac_func (); below.
15399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15400 <limits.h> exists even on freestanding compilers. */
15403 # include <limits.h>
15405 # include <assert.h>
15410 /* Override any GCC internal prototype to avoid an error.
15411 Use char because int might match the return type of a GCC
15412 builtin and then its argument prototype would still apply. */
15417 /* The GNU C library defines this for functions which it implements
15418 to always fail with ENOSYS. Some functions are actually named
15419 something starting with __ and the normal name is an alias. */
15420 #if defined __stub_$ac_func || defined __stub___$ac_func
15427 return $ac_func ();
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (ac_try="$ac_link"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_link") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest$ac_exeext &&
15449 $as_test_x conftest$ac_exeext; then
15450 eval "$as_ac_var=yes"
15452 echo "$as_me: failed program was
:" >&5
15453 sed 's/^/| /' conftest.$ac_ext >&5
15455 eval "$as_ac_var=no
"
15458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15459 conftest$ac_exeext conftest.$ac_ext
15461 ac_res=`eval echo '${'$as_ac_var'}'`
15462 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15463 echo "${ECHO_T}$ac_res" >&6; }
15464 if test `eval echo '${'$as_ac_var'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define CRAY_STACKSEG_END $ac_func
15476 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15477 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15478 if test "${ac_cv_c_stack_direction+set}" = set; then
15479 echo $ECHO_N "(cached
) $ECHO_C" >&6
15481 if test "$cross_compiling" = yes; then
15482 ac_cv_c_stack_direction=0
15484 cat >conftest.$ac_ext <<_ACEOF
15487 cat confdefs.h >>conftest.$ac_ext
15488 cat >>conftest.$ac_ext <<_ACEOF
15489 /* end confdefs.h. */
15490 $ac_includes_default
15492 find_stack_direction ()
15494 static char *addr = 0;
15499 return find_stack_direction ();
15502 return (&dummy > addr) ? 1 : -1;
15508 return find_stack_direction () < 0;
15511 rm -f conftest$ac_exeext
15512 if { (ac_try="$ac_link"
15513 case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_link") 2>&5
15520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15522 { (case "(($ac_try" in
15523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15524 *) ac_try_echo=$ac_try;;
15526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15527 (eval "$ac_try") 2>&5
15529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15530 (exit $ac_status); }; }; then
15531 ac_cv_c_stack_direction=1
15533 echo "$as_me: program exited with status
$ac_status" >&5
15534 echo "$as_me: failed program was
:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15537 ( exit $ac_status )
15538 ac_cv_c_stack_direction=-1
15540 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15545 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15546 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15548 cat >>confdefs.h <<_ACEOF
15549 #define STACK_DIRECTION $ac_cv_c_stack_direction
15556 if test x"$ac_cv_func_alloca_works" != xyes; then
15557 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15558 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15559 { (exit 1); exit 1; }; }
15562 # fmod, logb, and frexp are found in -lm on most systems.
15563 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15565 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15566 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15567 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15568 echo $ECHO_N "(cached
) $ECHO_C" >&6
15570 ac_check_lib_save_LIBS=$LIBS
15572 cat >conftest.$ac_ext <<_ACEOF
15575 cat confdefs.h >>conftest.$ac_ext
15576 cat >>conftest.$ac_ext <<_ACEOF
15577 /* end confdefs.h. */
15579 /* Override any GCC internal prototype to avoid an error.
15580 Use char because int might match the return type of a GCC
15581 builtin and then its argument prototype would still apply. */
15594 rm -f conftest.$ac_objext conftest$ac_exeext
15595 if { (ac_try="$ac_link"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_link") 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15607 (exit $ac_status); } && {
15608 test -z "$ac_c_werror_flag" ||
15609 test ! -s conftest.err
15610 } && test -s conftest$ac_exeext &&
15611 $as_test_x conftest$ac_exeext; then
15612 ac_cv_lib_m_sqrt=yes
15614 echo "$as_me: failed program was
:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15617 ac_cv_lib_m_sqrt=no
15620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15621 conftest$ac_exeext conftest.$ac_ext
15622 LIBS=$ac_check_lib_save_LIBS
15624 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15625 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15626 if test $ac_cv_lib_m_sqrt = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define HAVE_LIBM 1
15636 # Check for mail-locking functions in a "mail" library. Probably this should
15637 # have the same check as for liblockfile below.
15639 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15640 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15641 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15642 echo $ECHO_N "(cached
) $ECHO_C" >&6
15644 ac_check_lib_save_LIBS=$LIBS
15645 LIBS="-lmail $LIBS"
15646 cat >conftest.$ac_ext <<_ACEOF
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 /* Override any GCC internal prototype to avoid an error.
15654 Use char because int might match the return type of a GCC
15655 builtin and then its argument prototype would still apply. */
15663 return maillock ();
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (ac_try="$ac_link"
15670 case "(($ac_try" in
15671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15672 *) ac_try_echo=$ac_try;;
15674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15675 (eval "$ac_link") 2>conftest.er1
15677 grep -v '^ *+' conftest.er1 >conftest.err
15679 cat conftest.err >&5
15680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15681 (exit $ac_status); } && {
15682 test -z "$ac_c_werror_flag" ||
15683 test ! -s conftest.err
15684 } && test -s conftest$ac_exeext &&
15685 $as_test_x conftest$ac_exeext; then
15686 ac_cv_lib_mail_maillock=yes
15688 echo "$as_me: failed program was
:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_lib_mail_maillock=no
15694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15695 conftest$ac_exeext conftest.$ac_ext
15696 LIBS=$ac_check_lib_save_LIBS
15698 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15699 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15700 if test $ac_cv_lib_mail_maillock = yes; then
15701 cat >>confdefs.h <<_ACEOF
15702 #define HAVE_LIBMAIL 1
15705 LIBS="-lmail $LIBS"
15710 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15711 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15712 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15713 echo $ECHO_N "(cached
) $ECHO_C" >&6
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-llockfile $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15734 return maillock ();
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext &&
15756 $as_test_x conftest$ac_exeext; then
15757 ac_cv_lib_lockfile_maillock=yes
15759 echo "$as_me: failed program was
:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_lib_lockfile_maillock=no
15765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15770 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15771 if test $ac_cv_lib_lockfile_maillock = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_LIBLOCKFILE 1
15776 LIBS="-llockfile $LIBS"
15780 # If we have the shared liblockfile, assume we must use it for mail
15781 # locking (e.g. Debian). If we couldn't link against liblockfile
15782 # (no liblockfile.a installed), ensure that we don't need to.
15783 if test "$ac_cv_lib_lockfile_maillock" = no; then
15784 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15785 set dummy liblockfile.so; ac_word=$2
15786 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15787 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15788 if test "${ac_cv_prog_liblockfile+set}" = set; then
15789 echo $ECHO_N "(cached
) $ECHO_C" >&6
15791 if test -n "$liblockfile"; then
15792 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15795 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15796 for as_dir in $as_dummy
15799 test -z "$as_dir" && as_dir=.
15800 for ac_exec_ext in '' $ac_executable_extensions; do
15801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15802 ac_cv_prog_liblockfile="yes"
15803 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15810 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15813 liblockfile=$ac_cv_prog_liblockfile
15814 if test -n "$liblockfile"; then
15815 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15816 echo "${ECHO_T}$liblockfile" >&6; }
15818 { echo "$as_me:$LINENO: result
: no
" >&5
15819 echo "${ECHO_T}no
" >&6; }
15823 if test $ac_cv_prog_liblockfile = yes; then
15824 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15825 This probably means that movemail could lose mail.
15826 There may be a \`development' package to
install containing liblockfile.
" >&5
15827 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15828 This probably means that movemail could lose mail.
15829 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15830 { (exit 1); exit 1; }; }
15835 for ac_func in touchlock
15837 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15838 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15839 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15840 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached
) $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15846 cat confdefs.h >>conftest.$ac_ext
15847 cat >>conftest.$ac_ext <<_ACEOF
15848 /* end confdefs.h. */
15849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15851 #define $ac_func innocuous_$ac_func
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char $ac_func (); below.
15855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15856 <limits.h> exists even on freestanding compilers. */
15859 # include <limits.h>
15861 # include <assert.h>
15866 /* Override any GCC internal prototype to avoid an error.
15867 Use char because int might match the return type of a GCC
15868 builtin and then its argument prototype would still apply. */
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined __stub_$ac_func || defined __stub___$ac_func
15883 return $ac_func ();
15888 rm -f conftest.$ac_objext conftest$ac_exeext
15889 if { (ac_try="$ac_link"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_link") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest$ac_exeext &&
15905 $as_test_x conftest$ac_exeext; then
15906 eval "$as_ac_var=yes"
15908 echo "$as_me: failed program was
:" >&5
15909 sed 's/^/| /' conftest.$ac_ext >&5
15911 eval "$as_ac_var=no
"
15914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15915 conftest$ac_exeext conftest.$ac_ext
15917 ac_res=`eval echo '${'$as_ac_var'}'`
15918 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15919 echo "${ECHO_T}$ac_res" >&6; }
15920 if test `eval echo '${'$as_ac_var'}'` = yes; then
15921 cat >>confdefs.h <<_ACEOF
15922 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15929 for ac_header in maillock.h
15931 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15932 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15936 echo $ECHO_N "(cached
) $ECHO_C" >&6
15938 ac_res=`eval echo '${'$as_ac_Header'}'`
15939 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15940 echo "${ECHO_T}$ac_res" >&6; }
15942 # Is the header compilable?
15943 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15944 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 $ac_includes_default
15952 #include <$ac_header>
15954 rm -f conftest.$ac_objext
15955 if { (ac_try="$ac_compile"
15956 case "(($ac_try" in
15957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15958 *) ac_try_echo=$ac_try;;
15960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15961 (eval "$ac_compile") 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15967 (exit $ac_status); } && {
15968 test -z "$ac_c_werror_flag" ||
15969 test ! -s conftest.err
15970 } && test -s conftest.$ac_objext; then
15971 ac_header_compiler=yes
15973 echo "$as_me: failed program was
:" >&5
15974 sed 's/^/| /' conftest.$ac_ext >&5
15976 ac_header_compiler=no
15979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15980 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15981 echo "${ECHO_T}$ac_header_compiler" >&6; }
15983 # Is the header present?
15984 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15985 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15986 cat >conftest.$ac_ext <<_ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15992 #include <$ac_header>
15994 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16006 (exit $ac_status); } >/dev/null && {
16007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16010 ac_header_preproc=yes
16012 echo "$as_me: failed program was
:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_preproc=no
16018 rm -f conftest.err conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16020 echo "${ECHO_T}$ac_header_preproc" >&6; }
16022 # So? What about this header?
16023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16025 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16026 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16027 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16029 ac_header_preproc=yes
16032 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16033 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16034 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16035 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16036 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16037 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16038 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16039 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16040 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16042 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16043 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16047 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16048 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16050 echo $ECHO_N "(cached
) $ECHO_C" >&6
16052 eval "$as_ac_Header=\
$ac_header_preproc"
16054 ac_res=`eval echo '${'$as_ac_Header'}'`
16055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16056 echo "${ECHO_T}$ac_res" >&6; }
16059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16060 cat >>confdefs.h <<_ACEOF
16061 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16140 for ac_func in gethostname getdomainname dup2 \
16141 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16142 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16143 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16144 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16145 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16146 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16147 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16148 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16149 cfmakeraw cfsetspeed
16151 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16152 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16153 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16154 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16155 echo $ECHO_N "(cached
) $ECHO_C" >&6
16157 cat >conftest.$ac_ext <<_ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16164 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16165 #define $ac_func innocuous_$ac_func
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16173 # include <limits.h>
16175 # include <assert.h>
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16187 /* The GNU C library defines this for functions which it implements
16188 to always fail with ENOSYS. Some functions are actually named
16189 something starting with __ and the normal name is an alias. */
16190 #if defined __stub_$ac_func || defined __stub___$ac_func
16197 return $ac_func ();
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext &&
16219 $as_test_x conftest$ac_exeext; then
16220 eval "$as_ac_var=yes"
16222 echo "$as_me: failed program was
:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16225 eval "$as_ac_var=no
"
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16229 conftest$ac_exeext conftest.$ac_ext
16231 ac_res=`eval echo '${'$as_ac_var'}'`
16232 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16244 for ac_header in sys/un.h
16246 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16248 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16249 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16250 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16251 echo $ECHO_N "(cached
) $ECHO_C" >&6
16253 ac_res=`eval echo '${'$as_ac_Header'}'`
16254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16255 echo "${ECHO_T}$ac_res" >&6; }
16257 # Is the header compilable?
16258 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16259 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16260 cat >conftest.$ac_ext <<_ACEOF
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16266 $ac_includes_default
16267 #include <$ac_header>
16269 rm -f conftest.$ac_objext
16270 if { (ac_try="$ac_compile"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_compile") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest.$ac_objext; then
16286 ac_header_compiler=yes
16288 echo "$as_me: failed program was
:" >&5
16289 sed 's/^/| /' conftest.$ac_ext >&5
16291 ac_header_compiler=no
16294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16296 echo "${ECHO_T}$ac_header_compiler" >&6; }
16298 # Is the header present?
16299 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16300 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16301 cat >conftest.$ac_ext <<_ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 #include <$ac_header>
16309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16310 case "(($ac_try" in
16311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312 *) ac_try_echo=$ac_try;;
16314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16317 grep -v '^ *+' conftest.er1 >conftest.err
16319 cat conftest.err >&5
16320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16321 (exit $ac_status); } >/dev/null && {
16322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16323 test ! -s conftest.err
16325 ac_header_preproc=yes
16327 echo "$as_me: failed program was
:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_header_preproc=no
16333 rm -f conftest.err conftest.$ac_ext
16334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16335 echo "${ECHO_T}$ac_header_preproc" >&6; }
16337 # So? What about this header?
16338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16340 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16341 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16342 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16344 ac_header_preproc=yes
16347 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16348 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16349 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16350 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16351 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16352 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16353 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16354 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16355 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16357 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16358 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16365 echo $ECHO_N "(cached
) $ECHO_C" >&6
16367 eval "$as_ac_Header=\
$ac_header_preproc"
16369 ac_res=`eval echo '${'$as_ac_Header'}'`
16370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16371 echo "${ECHO_T}$ac_res" >&6; }
16374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16375 cat >>confdefs.h <<_ACEOF
16376 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16388 for ac_header in $ac_header_list
16390 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16392 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16393 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16394 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16395 echo $ECHO_N "(cached
) $ECHO_C" >&6
16397 ac_res=`eval echo '${'$as_ac_Header'}'`
16398 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16399 echo "${ECHO_T}$ac_res" >&6; }
16401 # Is the header compilable?
16402 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16403 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 $ac_includes_default
16411 #include <$ac_header>
16413 rm -f conftest.$ac_objext
16414 if { (ac_try="$ac_compile"
16415 case "(($ac_try" in
16416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16417 *) ac_try_echo=$ac_try;;
16419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_compile") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1 >conftest.err
16424 cat conftest.err >&5
16425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16426 (exit $ac_status); } && {
16427 test -z "$ac_c_werror_flag" ||
16428 test ! -s conftest.err
16429 } && test -s conftest.$ac_objext; then
16430 ac_header_compiler=yes
16432 echo "$as_me: failed program was
:" >&5
16433 sed 's/^/| /' conftest.$ac_ext >&5
16435 ac_header_compiler=no
16438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16439 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16440 echo "${ECHO_T}$ac_header_compiler" >&6; }
16442 # Is the header present?
16443 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16444 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16445 cat >conftest.$ac_ext <<_ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h. */
16451 #include <$ac_header>
16453 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16454 case "(($ac_try" in
16455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16456 *) ac_try_echo=$ac_try;;
16458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16459 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16461 grep -v '^ *+' conftest.er1 >conftest.err
16463 cat conftest.err >&5
16464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16465 (exit $ac_status); } >/dev/null && {
16466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16467 test ! -s conftest.err
16469 ac_header_preproc=yes
16471 echo "$as_me: failed program was
:" >&5
16472 sed 's/^/| /' conftest.$ac_ext >&5
16474 ac_header_preproc=no
16477 rm -f conftest.err conftest.$ac_ext
16478 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16479 echo "${ECHO_T}$ac_header_preproc" >&6; }
16481 # So? What about this header?
16482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16484 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16485 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16486 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16488 ac_header_preproc=yes
16491 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16492 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16493 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16494 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16495 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16496 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16497 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16498 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16499 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16501 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16502 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16506 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16507 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16508 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16509 echo $ECHO_N "(cached
) $ECHO_C" >&6
16511 eval "$as_ac_Header=\
$ac_header_preproc"
16513 ac_res=`eval echo '${'$as_ac_Header'}'`
16514 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16515 echo "${ECHO_T}$ac_res" >&6; }
16518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16519 cat >>confdefs.h <<_ACEOF
16520 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16535 for ac_func in $ac_func_list
16537 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16538 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16539 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16540 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16541 echo $ECHO_N "(cached
) $ECHO_C" >&6
16543 cat >conftest.$ac_ext <<_ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16550 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16551 #define $ac_func innocuous_$ac_func
16553 /* System header to define __stub macros and hopefully few prototypes,
16554 which can conflict with char $ac_func (); below.
16555 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16556 <limits.h> exists even on freestanding compilers. */
16559 # include <limits.h>
16561 # include <assert.h>
16566 /* Override any GCC internal prototype to avoid an error.
16567 Use char because int might match the return type of a GCC
16568 builtin and then its argument prototype would still apply. */
16573 /* The GNU C library defines this for functions which it implements
16574 to always fail with ENOSYS. Some functions are actually named
16575 something starting with __ and the normal name is an alias. */
16576 #if defined __stub_$ac_func || defined __stub___$ac_func
16583 return $ac_func ();
16588 rm -f conftest.$ac_objext conftest$ac_exeext
16589 if { (ac_try="$ac_link"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_link") 2>conftest.er1
16597 grep -v '^ *+' conftest.er1 >conftest.err
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest$ac_exeext &&
16605 $as_test_x conftest$ac_exeext; then
16606 eval "$as_ac_var=yes"
16608 echo "$as_me: failed program was
:" >&5
16609 sed 's/^/| /' conftest.$ac_ext >&5
16611 eval "$as_ac_var=no
"
16614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16615 conftest$ac_exeext conftest.$ac_ext
16617 ac_res=`eval echo '${'$as_ac_var'}'`
16618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16619 echo "${ECHO_T}$ac_res" >&6; }
16620 if test `eval echo '${'$as_ac_var'}'` = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16644 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16645 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16646 if test "${ac_cv_func_working_mktime+set}" = set; then
16647 echo $ECHO_N "(cached
) $ECHO_C" >&6
16649 if test "$cross_compiling" = yes; then
16650 ac_cv_func_working_mktime=no
16652 cat >conftest.$ac_ext <<_ACEOF
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 /* Test program from Paul Eggert and Tony Leneis. */
16659 #ifdef TIME_WITH_SYS_TIME
16660 # include <sys/time.h>
16663 # ifdef HAVE_SYS_TIME_H
16664 # include <sys/time.h>
16670 #include <limits.h>
16671 #include <stdlib.h>
16673 #ifdef HAVE_UNISTD_H
16674 # include <unistd.h>
16678 # define alarm(X) /* empty */
16681 /* Work around redefinition to rpl_putenv by other config tests. */
16684 static time_t time_t_max;
16685 static time_t time_t_min;
16687 /* Values we'll use to set the TZ environment variable. */
16688 static char *tz_strings[] = {
16689 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16690 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16692 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16694 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16695 Based on a problem report from Andreas Jaeger. */
16697 spring_forward_gap ()
16699 /* glibc (up to about 1998-10-07) failed this test. */
16702 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16703 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16704 on systems that don't support the Olson extension, or don't have the
16705 full zoneinfo tables installed. */
16706 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16715 return mktime (&tm) != (time_t) -1;
16723 return ! (lt = localtime (&now)) || mktime (lt) == now;
16730 return (mktime_test1 (now)
16731 && mktime_test1 ((time_t) (time_t_max - now))
16732 && mktime_test1 ((time_t) (time_t_min + now)));
16738 /* Based on code from Ariel Faigon. */
16748 return tm.tm_mon == 2 && tm.tm_mday == 31;
16757 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16758 now = mktime (&tm);
16759 if (now != (time_t) -1)
16761 struct tm *lt = localtime (&now);
16763 && lt->tm_year == tm.tm_year
16764 && lt->tm_mon == tm.tm_mon
16765 && lt->tm_mday == tm.tm_mday
16766 && lt->tm_hour == tm.tm_hour
16767 && lt->tm_min == tm.tm_min
16768 && lt->tm_sec == tm.tm_sec
16769 && lt->tm_yday == tm.tm_yday
16770 && lt->tm_wday == tm.tm_wday
16771 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16772 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16781 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16782 ignoring leap seconds. */
16783 unsigned long int answer = 2527315200UL;
16787 tm.tm_year = 2050 - 1900;
16790 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16793 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16794 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16795 on systems that don't support the Olson extension, or don't have the
16796 full zoneinfo tables installed. */
16797 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16801 /* Check that the result is either a failure, or close enough
16802 to the correct answer that we can assume the discrepancy is
16803 due to leap seconds. */
16804 return (t == (time_t) -1
16805 || (0 < t && answer - 120 <= t && t <= answer + 120));
16814 /* This test makes some buggy mktime implementations loop.
16815 Give up after 60 seconds; a mktime slower than that
16816 isn't worth using anyway. */
16821 t = (time_t_max << 1) + 1;
16822 if (t <= time_t_max)
16826 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16828 delta = time_t_max / 997; /* a suitable prime number */
16829 for (i = 0; i < N_STRINGS; i++)
16832 putenv (tz_strings[i]);
16834 for (t = 0; t <= time_t_max - delta; t += delta)
16835 if (! mktime_test (t))
16837 if (! (mktime_test ((time_t) 1)
16838 && mktime_test ((time_t) (60 * 60))
16839 && mktime_test ((time_t) (60 * 60 * 24))))
16842 for (j = 1; ; j <<= 1)
16843 if (! bigtime_test (j))
16845 else if (INT_MAX / 2 < j)
16847 if (! bigtime_test (INT_MAX))
16850 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16853 rm -f conftest$ac_exeext
16854 if { (ac_try="$ac_link"
16855 case "(($ac_try" in
16856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16857 *) ac_try_echo=$ac_try;;
16859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16860 (eval "$ac_link") 2>&5
16862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16864 { (case "(($ac_try" in
16865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16866 *) ac_try_echo=$ac_try;;
16868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16869 (eval "$ac_try") 2>&5
16871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16872 (exit $ac_status); }; }; then
16873 ac_cv_func_working_mktime=yes
16875 echo "$as_me: program exited with status
$ac_status" >&5
16876 echo "$as_me: failed program was
:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ( exit $ac_status )
16880 ac_cv_func_working_mktime=no
16882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16888 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16889 if test $ac_cv_func_working_mktime = no; then
16890 case " $LIBOBJS " in
16891 *" mktime.
$ac_objext "* ) ;;
16892 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16898 if test "$ac_cv_func_working_mktime" = no; then
16900 cat >>confdefs.h <<\_ACEOF
16901 #define BROKEN_MKTIME 1
16906 ac_have_func=no # yes means we've found a way to get the load average.
16908 # Make sure getloadavg.c is where it belongs, at configure-time.
16909 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16910 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16911 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16912 { (exit 1); exit 1; }; }
16916 # Check for getloadavg, but be sure not to touch the cache variable.
16917 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16918 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16919 if test "${ac_cv_func_getloadavg+set}" = set; then
16920 echo $ECHO_N "(cached
) $ECHO_C" >&6
16922 cat >conftest.$ac_ext <<_ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16928 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16930 #define getloadavg innocuous_getloadavg
16932 /* System header to define __stub macros and hopefully few prototypes,
16933 which can conflict with char getloadavg (); below.
16934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16935 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16945 /* Override any GCC internal prototype to avoid an error.
16946 Use char because int might match the return type of a GCC
16947 builtin and then its argument prototype would still apply. */
16951 char getloadavg ();
16952 /* The GNU C library defines this for functions which it implements
16953 to always fail with ENOSYS. Some functions are actually named
16954 something starting with __ and the normal name is an alias. */
16955 #if defined __stub_getloadavg || defined __stub___getloadavg
16962 return getloadavg ();
16967 rm -f conftest.$ac_objext conftest$ac_exeext
16968 if { (ac_try="$ac_link"
16969 case "(($ac_try" in
16970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16971 *) ac_try_echo=$ac_try;;
16973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16974 (eval "$ac_link") 2>conftest.er1
16976 grep -v '^ *+' conftest.er1 >conftest.err
16978 cat conftest.err >&5
16979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16980 (exit $ac_status); } && {
16981 test -z "$ac_c_werror_flag" ||
16982 test ! -s conftest.err
16983 } && test -s conftest$ac_exeext &&
16984 $as_test_x conftest$ac_exeext; then
16985 ac_cv_func_getloadavg=yes
16987 echo "$as_me: failed program was
:" >&5
16988 sed 's/^/| /' conftest.$ac_ext >&5
16990 ac_cv_func_getloadavg=no
16993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16994 conftest$ac_exeext conftest.$ac_ext
16996 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16997 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16998 if test $ac_cv_func_getloadavg = yes; then
17003 ) && ac_have_func=yes
17005 # On HPUX9, an unprivileged user can get load averages through this function.
17007 for ac_func in pstat_getdynamic
17009 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17010 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17011 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17012 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17013 echo $ECHO_N "(cached
) $ECHO_C" >&6
17015 cat >conftest.$ac_ext <<_ACEOF
17018 cat confdefs.h >>conftest.$ac_ext
17019 cat >>conftest.$ac_ext <<_ACEOF
17020 /* end confdefs.h. */
17021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17023 #define $ac_func innocuous_$ac_func
17025 /* System header to define __stub macros and hopefully few prototypes,
17026 which can conflict with char $ac_func (); below.
17027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17028 <limits.h> exists even on freestanding compilers. */
17031 # include <limits.h>
17033 # include <assert.h>
17038 /* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17045 /* The GNU C library defines this for functions which it implements
17046 to always fail with ENOSYS. Some functions are actually named
17047 something starting with __ and the normal name is an alias. */
17048 #if defined __stub_$ac_func || defined __stub___$ac_func
17055 return $ac_func ();
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest$ac_exeext &&
17077 $as_test_x conftest$ac_exeext; then
17078 eval "$as_ac_var=yes"
17080 echo "$as_me: failed program was
:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 eval "$as_ac_var=no
"
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17089 ac_res=`eval echo '${'$as_ac_var'}'`
17090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17091 echo "${ECHO_T}$ac_res" >&6; }
17092 if test `eval echo '${'$as_ac_var'}'` = yes; then
17093 cat >>confdefs.h <<_ACEOF
17094 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17101 # Solaris has libkstat which does not require root.
17103 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17104 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17105 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17106 echo $ECHO_N "(cached
) $ECHO_C" >&6
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lkstat $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17117 /* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17123 char kstat_open ();
17127 return kstat_open ();
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 ac_cv_lib_kstat_kstat_open=yes
17152 echo "$as_me: failed program was
:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_cv_lib_kstat_kstat_open=no
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17163 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17164 if test $ac_cv_lib_kstat_kstat_open = yes; then
17165 cat >>confdefs.h <<_ACEOF
17166 #define HAVE_LIBKSTAT 1
17169 LIBS="-lkstat $LIBS"
17173 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17175 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17176 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17177 # to get the right answer into the cache.
17178 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17179 if test $ac_have_func = no; then
17180 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17181 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17182 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17183 echo $ECHO_N "(cached
) $ECHO_C" >&6
17185 ac_check_lib_save_LIBS=$LIBS
17187 cat >conftest.$ac_ext <<_ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17194 /* Override any GCC internal prototype to avoid an error.
17195 Use char because int might match the return type of a GCC
17196 builtin and then its argument prototype would still apply. */
17204 return elf_begin ();
17209 rm -f conftest.$ac_objext conftest$ac_exeext
17210 if { (ac_try="$ac_link"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17216 (eval "$ac_link") 2>conftest.er1
17218 grep -v '^ *+' conftest.er1 >conftest.err
17220 cat conftest.err >&5
17221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17222 (exit $ac_status); } && {
17223 test -z "$ac_c_werror_flag" ||
17224 test ! -s conftest.err
17225 } && test -s conftest$ac_exeext &&
17226 $as_test_x conftest$ac_exeext; then
17227 ac_cv_lib_elf_elf_begin=yes
17229 echo "$as_me: failed program was
:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17232 ac_cv_lib_elf_elf_begin=no
17235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LIBS=$ac_check_lib_save_LIBS
17239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17240 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17241 if test $ac_cv_lib_elf_elf_begin = yes; then
17246 if test $ac_have_func = no; then
17247 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17248 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17249 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17250 echo $ECHO_N "(cached
) $ECHO_C" >&6
17252 ac_check_lib_save_LIBS=$LIBS
17254 cat >conftest.$ac_ext <<_ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any GCC internal prototype to avoid an error.
17262 Use char because int might match the return type of a GCC
17263 builtin and then its argument prototype would still apply. */
17271 return kvm_open ();
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
17294 ac_cv_lib_kvm_kvm_open=yes
17296 echo "$as_me: failed program was
:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_lib_kvm_kvm_open=no
17302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17306 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17307 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17308 if test $ac_cv_lib_kvm_kvm_open = yes; then
17312 # Check for the 4.4BSD definition of getloadavg.
17313 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17314 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17315 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17316 echo $ECHO_N "(cached
) $ECHO_C" >&6
17318 ac_check_lib_save_LIBS=$LIBS
17319 LIBS="-lutil $LIBS"
17320 cat >conftest.$ac_ext <<_ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h. */
17327 /* Override any GCC internal prototype to avoid an error.
17328 Use char because int might match the return type of a GCC
17329 builtin and then its argument prototype would still apply. */
17333 char getloadavg ();
17337 return getloadavg ();
17342 rm -f conftest.$ac_objext conftest$ac_exeext
17343 if { (ac_try="$ac_link"
17344 case "(($ac_try" in
17345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346 *) ac_try_echo=$ac_try;;
17348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17349 (eval "$ac_link") 2>conftest.er1
17351 grep -v '^ *+' conftest.er1 >conftest.err
17353 cat conftest.err >&5
17354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17355 (exit $ac_status); } && {
17356 test -z "$ac_c_werror_flag" ||
17357 test ! -s conftest.err
17358 } && test -s conftest$ac_exeext &&
17359 $as_test_x conftest$ac_exeext; then
17360 ac_cv_lib_util_getloadavg=yes
17362 echo "$as_me: failed program was
:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17365 ac_cv_lib_util_getloadavg=no
17368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17369 conftest$ac_exeext conftest.$ac_ext
17370 LIBS=$ac_check_lib_save_LIBS
17372 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17373 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17374 if test $ac_cv_lib_util_getloadavg = yes; then
17375 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17380 if test $ac_have_func = no; then
17381 # There is a commonly available library for RS/6000 AIX.
17382 # Since it is not a standard part of AIX, it might be installed locally.
17383 ac_getloadavg_LIBS=$LIBS
17384 LIBS="-L/usr
/local
/lib
$LIBS"
17385 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17386 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17387 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17388 echo $ECHO_N "(cached
) $ECHO_C" >&6
17390 ac_check_lib_save_LIBS=$LIBS
17391 LIBS="-lgetloadavg $LIBS"
17392 cat >conftest.$ac_ext <<_ACEOF
17395 cat confdefs.h >>conftest.$ac_ext
17396 cat >>conftest.$ac_ext <<_ACEOF
17397 /* end confdefs.h. */
17399 /* Override any GCC internal prototype to avoid an error.
17400 Use char because int might match the return type of a GCC
17401 builtin and then its argument prototype would still apply. */
17405 char getloadavg ();
17409 return getloadavg ();
17414 rm -f conftest.$ac_objext conftest$ac_exeext
17415 if { (ac_try="$ac_link"
17416 case "(($ac_try" in
17417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418 *) ac_try_echo=$ac_try;;
17420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17421 (eval "$ac_link") 2>conftest.er1
17423 grep -v '^ *+' conftest.er1 >conftest.err
17425 cat conftest.err >&5
17426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17427 (exit $ac_status); } && {
17428 test -z "$ac_c_werror_flag" ||
17429 test ! -s conftest.err
17430 } && test -s conftest$ac_exeext &&
17431 $as_test_x conftest$ac_exeext; then
17432 ac_cv_lib_getloadavg_getloadavg=yes
17434 echo "$as_me: failed program was
:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17437 ac_cv_lib_getloadavg_getloadavg=no
17440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17441 conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17445 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17446 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17447 LIBS="-lgetloadavg $LIBS"
17449 LIBS=$ac_getloadavg_LIBS
17454 # Make sure it is really in the library, if we think we found it,
17455 # otherwise set up the replacement function.
17457 for ac_func in getloadavg
17459 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17460 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17461 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17462 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17463 echo $ECHO_N "(cached
) $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17473 #define $ac_func innocuous_$ac_func
17475 /* System header to define __stub macros and hopefully few prototypes,
17476 which can conflict with char $ac_func (); below.
17477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17478 <limits.h> exists even on freestanding compilers. */
17481 # include <limits.h>
17483 # include <assert.h>
17488 /* Override any GCC internal prototype to avoid an error.
17489 Use char because int might match the return type of a GCC
17490 builtin and then its argument prototype would still apply. */
17495 /* The GNU C library defines this for functions which it implements
17496 to always fail with ENOSYS. Some functions are actually named
17497 something starting with __ and the normal name is an alias. */
17498 #if defined __stub_$ac_func || defined __stub___$ac_func
17505 return $ac_func ();
17510 rm -f conftest.$ac_objext conftest$ac_exeext
17511 if { (ac_try="$ac_link"
17512 case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_link") 2>conftest.er1
17519 grep -v '^ *+' conftest.er1 >conftest.err
17521 cat conftest.err >&5
17522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17523 (exit $ac_status); } && {
17524 test -z "$ac_c_werror_flag" ||
17525 test ! -s conftest.err
17526 } && test -s conftest$ac_exeext &&
17527 $as_test_x conftest$ac_exeext; then
17528 eval "$as_ac_var=yes"
17530 echo "$as_me: failed program was
:" >&5
17531 sed 's/^/| /' conftest.$ac_ext >&5
17533 eval "$as_ac_var=no
"
17536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17537 conftest$ac_exeext conftest.$ac_ext
17539 ac_res=`eval echo '${'$as_ac_var'}'`
17540 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17541 echo "${ECHO_T}$ac_res" >&6; }
17542 if test `eval echo '${'$as_ac_var'}'` = yes; then
17543 cat >>confdefs.h <<_ACEOF
17544 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17548 case " $LIBOBJS " in
17549 *" getloadavg.
$ac_objext "* ) ;;
17550 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17555 cat >>confdefs.h <<\_ACEOF
17556 #define C_GETLOADAVG 1
17559 # Figure out what our getloadavg.c needs.
17561 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17562 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17563 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17564 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17565 echo $ECHO_N "(cached
) $ECHO_C" >&6
17567 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17568 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17570 # Is the header compilable?
17571 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17572 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17573 cat >conftest.$ac_ext <<_ACEOF
17576 cat confdefs.h >>conftest.$ac_ext
17577 cat >>conftest.$ac_ext <<_ACEOF
17578 /* end confdefs.h. */
17579 $ac_includes_default
17580 #include <sys/dg_sys_info.h>
17582 rm -f conftest.$ac_objext
17583 if { (ac_try="$ac_compile"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_compile") 2>conftest.er1
17591 grep -v '^ *+' conftest.er1 >conftest.err
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest.$ac_objext; then
17599 ac_header_compiler=yes
17601 echo "$as_me: failed program was
:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17604 ac_header_compiler=no
17607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17608 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17609 echo "${ECHO_T}$ac_header_compiler" >&6; }
17611 # Is the header present?
17612 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17613 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17614 cat >conftest.$ac_ext <<_ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 #include <sys/dg_sys_info.h>
17622 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17634 (exit $ac_status); } >/dev/null && {
17635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17636 test ! -s conftest.err
17638 ac_header_preproc=yes
17640 echo "$as_me: failed program was
:" >&5
17641 sed 's/^/| /' conftest.$ac_ext >&5
17643 ac_header_preproc=no
17646 rm -f conftest.err conftest.$ac_ext
17647 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17648 echo "${ECHO_T}$ac_header_preproc" >&6; }
17650 # So? What about this header?
17651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17653 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17654 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17655 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17656 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17657 ac_header_preproc=yes
17660 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17661 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17662 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17663 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17664 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17665 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17666 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17667 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17668 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17669 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17670 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17671 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17675 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17676 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17677 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17678 echo $ECHO_N "(cached
) $ECHO_C" >&6
17680 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17682 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17683 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17686 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17689 cat >>confdefs.h <<\_ACEOF
17694 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17695 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17696 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17697 echo $ECHO_N "(cached
) $ECHO_C" >&6
17699 ac_check_lib_save_LIBS=$LIBS
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17708 /* Override any GCC internal prototype to avoid an error.
17709 Use char because int might match the return type of a GCC
17710 builtin and then its argument prototype would still apply. */
17714 char dg_sys_info ();
17718 return dg_sys_info ();
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_link") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17736 (exit $ac_status); } && {
17737 test -z "$ac_c_werror_flag" ||
17738 test ! -s conftest.err
17739 } && test -s conftest$ac_exeext &&
17740 $as_test_x conftest$ac_exeext; then
17741 ac_cv_lib_dgc_dg_sys_info=yes
17743 echo "$as_me: failed program was
:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_lib_dgc_dg_sys_info=no
17749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17750 conftest$ac_exeext conftest.$ac_ext
17751 LIBS=$ac_check_lib_save_LIBS
17753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17754 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17755 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17756 cat >>confdefs.h <<_ACEOF
17757 #define HAVE_LIBDGC 1
17768 if test "${ac_cv_header_locale_h+set}" = set; then
17769 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17770 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17771 if test "${ac_cv_header_locale_h+set}" = set; then
17772 echo $ECHO_N "(cached
) $ECHO_C" >&6
17774 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17775 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17777 # Is the header compilable?
17778 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17779 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 $ac_includes_default
17787 #include <locale.h>
17789 rm -f conftest.$ac_objext
17790 if { (ac_try="$ac_compile"
17791 case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_compile") 2>conftest.er1
17798 grep -v '^ *+' conftest.er1 >conftest.err
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest.$ac_objext; then
17806 ac_header_compiler=yes
17808 echo "$as_me: failed program was
:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17811 ac_header_compiler=no
17814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17815 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17816 echo "${ECHO_T}$ac_header_compiler" >&6; }
17818 # Is the header present?
17819 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17820 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17821 cat >conftest.$ac_ext <<_ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h. */
17827 #include <locale.h>
17829 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17841 (exit $ac_status); } >/dev/null && {
17842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17843 test ! -s conftest.err
17845 ac_header_preproc=yes
17847 echo "$as_me: failed program was
:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ac_header_preproc=no
17853 rm -f conftest.err conftest.$ac_ext
17854 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17855 echo "${ECHO_T}$ac_header_preproc" >&6; }
17857 # So? What about this header?
17858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17860 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17861 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17862 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17863 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17864 ac_header_preproc=yes
17867 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17868 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17869 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17870 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17871 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17872 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17873 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17874 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17875 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17876 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17877 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17878 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17882 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17883 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17884 if test "${ac_cv_header_locale_h+set}" = set; then
17885 echo $ECHO_N "(cached
) $ECHO_C" >&6
17887 ac_cv_header_locale_h=$ac_header_preproc
17889 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17890 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17896 for ac_func in setlocale
17898 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17899 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17900 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17901 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17902 echo $ECHO_N "(cached
) $ECHO_C" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912 #define $ac_func innocuous_$ac_func
17914 /* System header to define __stub macros and hopefully few prototypes,
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17920 # include <limits.h>
17922 # include <assert.h>
17927 /* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17934 /* The GNU C library defines this for functions which it implements
17935 to always fail with ENOSYS. Some functions are actually named
17936 something starting with __ and the normal name is an alias. */
17937 #if defined __stub_$ac_func || defined __stub___$ac_func
17944 return $ac_func ();
17949 rm -f conftest.$ac_objext conftest$ac_exeext
17950 if { (ac_try="$ac_link"
17951 case "(($ac_try" in
17952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17953 *) ac_try_echo=$ac_try;;
17955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17956 (eval "$ac_link") 2>conftest.er1
17958 grep -v '^ *+' conftest.er1 >conftest.err
17960 cat conftest.err >&5
17961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17962 (exit $ac_status); } && {
17963 test -z "$ac_c_werror_flag" ||
17964 test ! -s conftest.err
17965 } && test -s conftest$ac_exeext &&
17966 $as_test_x conftest$ac_exeext; then
17967 eval "$as_ac_var=yes"
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 eval "$as_ac_var=no
"
17975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17976 conftest$ac_exeext conftest.$ac_ext
17978 ac_res=`eval echo '${'$as_ac_var'}'`
17979 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17980 echo "${ECHO_T}$ac_res" >&6; }
17981 if test `eval echo '${'$as_ac_var'}'` = yes; then
17982 cat >>confdefs.h <<_ACEOF
17983 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17990 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17991 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17992 # Irix 4.0.5F has the header but not the library.
17993 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17996 cat >>confdefs.h <<\_ACEOF
18002 if test $ac_have_func = no; then
18003 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18004 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18005 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18006 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18007 echo $ECHO_N "(cached
) $ECHO_C" >&6
18009 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18010 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18012 # Is the header compilable?
18013 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18014 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 $ac_includes_default
18022 #include <inq_stats/cpustats.h>
18024 rm -f conftest.$ac_objext
18025 if { (ac_try="$ac_compile"
18026 case "(($ac_try" in
18027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028 *) ac_try_echo=$ac_try;;
18030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18031 (eval "$ac_compile") 2>conftest.er1
18033 grep -v '^ *+' conftest.er1 >conftest.err
18035 cat conftest.err >&5
18036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18037 (exit $ac_status); } && {
18038 test -z "$ac_c_werror_flag" ||
18039 test ! -s conftest.err
18040 } && test -s conftest.$ac_objext; then
18041 ac_header_compiler=yes
18043 echo "$as_me: failed program was
:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 ac_header_compiler=no
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18051 echo "${ECHO_T}$ac_header_compiler" >&6; }
18053 # Is the header present?
18054 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18055 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18062 #include <inq_stats/cpustats.h>
18064 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18065 case "(($ac_try" in
18066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067 *) ac_try_echo=$ac_try;;
18069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18070 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18072 grep -v '^ *+' conftest.er1 >conftest.err
18074 cat conftest.err >&5
18075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18076 (exit $ac_status); } >/dev/null && {
18077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18078 test ! -s conftest.err
18080 ac_header_preproc=yes
18082 echo "$as_me: failed program was
:" >&5
18083 sed 's/^/| /' conftest.$ac_ext >&5
18085 ac_header_preproc=no
18088 rm -f conftest.err conftest.$ac_ext
18089 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18090 echo "${ECHO_T}$ac_header_preproc" >&6; }
18092 # So? What about this header?
18093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18095 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18096 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18097 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18098 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18099 ac_header_preproc=yes
18102 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18103 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18104 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18105 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18106 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18107 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18108 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18109 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18110 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18111 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18112 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18113 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18117 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18118 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18119 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18120 echo $ECHO_N "(cached
) $ECHO_C" >&6
18122 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18124 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18125 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18128 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18131 cat >>confdefs.h <<\_ACEOF
18136 cat >>confdefs.h <<\_ACEOF
18145 if test $ac_have_func = no; then
18146 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18147 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18148 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18149 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18150 echo $ECHO_N "(cached
) $ECHO_C" >&6
18152 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18155 # Is the header compilable?
18156 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18157 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18158 cat >conftest.$ac_ext <<_ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h. */
18164 $ac_includes_default
18165 #include <sys/cpustats.h>
18167 rm -f conftest.$ac_objext
18168 if { (ac_try="$ac_compile"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_compile") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest.$ac_objext; then
18184 ac_header_compiler=yes
18186 echo "$as_me: failed program was
:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18189 ac_header_compiler=no
18192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18193 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18194 echo "${ECHO_T}$ac_header_compiler" >&6; }
18196 # Is the header present?
18197 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18198 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18199 cat >conftest.$ac_ext <<_ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h. */
18205 #include <sys/cpustats.h>
18207 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18219 (exit $ac_status); } >/dev/null && {
18220 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18223 ac_header_preproc=yes
18225 echo "$as_me: failed program was
:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18228 ac_header_preproc=no
18231 rm -f conftest.err conftest.$ac_ext
18232 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18233 echo "${ECHO_T}$ac_header_preproc" >&6; }
18235 # So? What about this header?
18236 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18238 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18239 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18240 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18241 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18242 ac_header_preproc=yes
18245 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18246 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18247 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18248 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18249 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18250 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18251 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18252 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18253 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18254 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18255 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18256 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18260 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18261 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18262 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18263 echo $ECHO_N "(cached
) $ECHO_C" >&6
18265 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18267 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18268 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18271 if test $ac_cv_header_sys_cpustats_h = yes; then
18272 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18281 if test $ac_have_func = no; then
18283 for ac_header in mach/mach.h
18285 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18287 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18288 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18290 echo $ECHO_N "(cached
) $ECHO_C" >&6
18292 ac_res=`eval echo '${'$as_ac_Header'}'`
18293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18294 echo "${ECHO_T}$ac_res" >&6; }
18296 # Is the header compilable?
18297 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18298 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 $ac_includes_default
18306 #include <$ac_header>
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_header_compiler=yes
18327 echo "$as_me: failed program was
:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_header_compiler=no
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18335 echo "${ECHO_T}$ac_header_compiler" >&6; }
18337 # Is the header present?
18338 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18339 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18346 #include <$ac_header>
18348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18349 case "(($ac_try" in
18350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351 *) ac_try_echo=$ac_try;;
18353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18356 grep -v '^ *+' conftest.er1 >conftest.err
18358 cat conftest.err >&5
18359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18360 (exit $ac_status); } >/dev/null && {
18361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18362 test ! -s conftest.err
18364 ac_header_preproc=yes
18366 echo "$as_me: failed program was
:" >&5
18367 sed 's/^/| /' conftest.$ac_ext >&5
18369 ac_header_preproc=no
18372 rm -f conftest.err conftest.$ac_ext
18373 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18374 echo "${ECHO_T}$ac_header_preproc" >&6; }
18376 # So? What about this header?
18377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18379 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18380 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18381 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18383 ac_header_preproc=yes
18386 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18387 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18388 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18389 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18390 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18391 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18392 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18393 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18394 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18396 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18397 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18401 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18402 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18404 echo $ECHO_N "(cached
) $ECHO_C" >&6
18406 eval "$as_ac_Header=\
$ac_header_preproc"
18408 ac_res=`eval echo '${'$as_ac_Header'}'`
18409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18410 echo "${ECHO_T}$ac_res" >&6; }
18413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18414 cat >>confdefs.h <<_ACEOF
18415 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18425 for ac_header in nlist.h
18427 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18429 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18430 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18431 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18432 echo $ECHO_N "(cached
) $ECHO_C" >&6
18434 ac_res=`eval echo '${'$as_ac_Header'}'`
18435 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18436 echo "${ECHO_T}$ac_res" >&6; }
18438 # Is the header compilable?
18439 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18440 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18447 $ac_includes_default
18448 #include <$ac_header>
18450 rm -f conftest.$ac_objext
18451 if { (ac_try="$ac_compile"
18452 case "(($ac_try" in
18453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18454 *) ac_try_echo=$ac_try;;
18456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18457 (eval "$ac_compile") 2>conftest.er1
18459 grep -v '^ *+' conftest.er1 >conftest.err
18461 cat conftest.err >&5
18462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18463 (exit $ac_status); } && {
18464 test -z "$ac_c_werror_flag" ||
18465 test ! -s conftest.err
18466 } && test -s conftest.$ac_objext; then
18467 ac_header_compiler=yes
18469 echo "$as_me: failed program was
:" >&5
18470 sed 's/^/| /' conftest.$ac_ext >&5
18472 ac_header_compiler=no
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18477 echo "${ECHO_T}$ac_header_compiler" >&6; }
18479 # Is the header present?
18480 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18481 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18482 cat >conftest.$ac_ext <<_ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 #include <$ac_header>
18490 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18491 case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18496 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18498 grep -v '^ *+' conftest.er1 >conftest.err
18500 cat conftest.err >&5
18501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18502 (exit $ac_status); } >/dev/null && {
18503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18504 test ! -s conftest.err
18506 ac_header_preproc=yes
18508 echo "$as_me: failed program was
:" >&5
18509 sed 's/^/| /' conftest.$ac_ext >&5
18511 ac_header_preproc=no
18514 rm -f conftest.err conftest.$ac_ext
18515 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18516 echo "${ECHO_T}$ac_header_preproc" >&6; }
18518 # So? What about this header?
18519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18521 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18522 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18523 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18525 ac_header_preproc=yes
18528 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18529 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18530 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18531 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18532 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18533 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18534 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18535 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18536 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18538 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18539 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18543 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18544 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18545 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18546 echo $ECHO_N "(cached
) $ECHO_C" >&6
18548 eval "$as_ac_Header=\
$ac_header_preproc"
18550 ac_res=`eval echo '${'$as_ac_Header'}'`
18551 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18552 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18559 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18560 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18561 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18562 echo $ECHO_N "(cached
) $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18575 static struct nlist ac_aggr;
18576 if (ac_aggr.n_un.n_name)
18582 rm -f conftest.$ac_objext
18583 if { (ac_try="$ac_compile"
18584 case "(($ac_try" in
18585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_compile") 2>conftest.er1
18591 grep -v '^ *+' conftest.er1 >conftest.err
18593 cat conftest.err >&5
18594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18595 (exit $ac_status); } && {
18596 test -z "$ac_c_werror_flag" ||
18597 test ! -s conftest.err
18598 } && test -s conftest.$ac_objext; then
18599 ac_cv_member_struct_nlist_n_un_n_name=yes
18601 echo "$as_me: failed program was
:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18615 static struct nlist ac_aggr;
18616 if (sizeof ac_aggr.n_un.n_name)
18622 rm -f conftest.$ac_objext
18623 if { (ac_try="$ac_compile"
18624 case "(($ac_try" in
18625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18626 *) ac_try_echo=$ac_try;;
18628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_compile") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1 >conftest.err
18633 cat conftest.err >&5
18634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18635 (exit $ac_status); } && {
18636 test -z "$ac_c_werror_flag" ||
18637 test ! -s conftest.err
18638 } && test -s conftest.$ac_objext; then
18639 ac_cv_member_struct_nlist_n_un_n_name=yes
18641 echo "$as_me: failed program was
:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18644 ac_cv_member_struct_nlist_n_un_n_name=no
18647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18653 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18654 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18656 cat >>confdefs.h <<_ACEOF
18657 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18661 cat >>confdefs.h <<\_ACEOF
18662 #define NLIST_NAME_UNION 1
18676 # Some definitions of getloadavg require that the program be installed setgid.
18677 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18678 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18679 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18680 echo $ECHO_N "(cached
) $ECHO_C" >&6
18682 cat >conftest.$ac_ext <<_ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h. */
18688 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18689 #ifdef LDAV_PRIVILEGED
18690 Yowza Am I SETGID yet
18693 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18694 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18695 ac_cv_func_getloadavg_setgid=yes
18697 ac_cv_func_getloadavg_setgid=no
18702 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18703 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18704 if test $ac_cv_func_getloadavg_setgid = yes; then
18707 cat >>confdefs.h <<\_ACEOF
18708 #define GETLOADAVG_PRIVILEGED 1
18715 if test $ac_cv_func_getloadavg_setgid = yes; then
18716 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18717 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18718 if test "${ac_cv_group_kmem+set}" = set; then
18719 echo $ECHO_N "(cached
) $ECHO_C" >&6
18721 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18722 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18723 # If we got an error (system does not support symlinks), try without -L.
18724 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18725 ac_cv_group_kmem=`echo $ac_ls_output \
18726 | sed -ne 's/[ ][ ]*/ /g;
18727 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18731 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18732 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18733 KMEM_GROUP=$ac_cv_group_kmem
18735 if test "x
$ac_save_LIBS" = x; then
18736 GETLOADAVG_LIBS=$LIBS
18738 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18744 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18745 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18746 if test "${ac_cv_sys_largefile_source+set}" = set; then
18747 echo $ECHO_N "(cached
) $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18760 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18765 rm -f conftest.$ac_objext conftest$ac_exeext
18766 if { (ac_try="$ac_link"
18767 case "(($ac_try" in
18768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18769 *) ac_try_echo=$ac_try;;
18771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18772 (eval "$ac_link") 2>conftest.er1
18774 grep -v '^ *+' conftest.er1 >conftest.err
18776 cat conftest.err >&5
18777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18778 (exit $ac_status); } && {
18779 test -z "$ac_c_werror_flag" ||
18780 test ! -s conftest.err
18781 } && test -s conftest$ac_exeext &&
18782 $as_test_x conftest$ac_exeext; then
18783 ac_cv_sys_largefile_source=no; break
18785 echo "$as_me: failed program was
:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18792 conftest$ac_exeext conftest.$ac_ext
18793 cat >conftest.$ac_ext <<_ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h. */
18799 #define _LARGEFILE_SOURCE 1
18804 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18809 rm -f conftest.$ac_objext conftest$ac_exeext
18810 if { (ac_try="$ac_link"
18811 case "(($ac_try" in
18812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813 *) ac_try_echo=$ac_try;;
18815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18816 (eval "$ac_link") 2>conftest.er1
18818 grep -v '^ *+' conftest.er1 >conftest.err
18820 cat conftest.err >&5
18821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18822 (exit $ac_status); } && {
18823 test -z "$ac_c_werror_flag" ||
18824 test ! -s conftest.err
18825 } && test -s conftest$ac_exeext &&
18826 $as_test_x conftest$ac_exeext; then
18827 ac_cv_sys_largefile_source=1; break
18829 echo "$as_me: failed program was
:" >&5
18830 sed 's/^/| /' conftest.$ac_ext >&5
18835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18836 conftest$ac_exeext conftest.$ac_ext
18837 ac_cv_sys_largefile_source=unknown
18841 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18842 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18843 case $ac_cv_sys_largefile_source in #(
18846 cat >>confdefs.h <<_ACEOF
18847 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18853 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18854 # in glibc 2.1.3, but that breaks too many other things.
18855 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18856 if test $ac_cv_sys_largefile_source != unknown; then
18858 cat >>confdefs.h <<\_ACEOF
18859 #define HAVE_FSEEKO 1
18865 # Configure getopt.
18866 # getopt.m4 serial 10
18868 # The getopt module assume you want GNU getopt, with getopt_long etc,
18869 # rather than vanilla POSIX getopt. This means your your code should
18870 # always include <getopt.h> for the getopt prototypes.
18882 # Prerequisites of lib/getopt*.
18889 for ac_header in getopt.h
18891 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18896 echo $ECHO_N "(cached
) $ECHO_C" >&6
18898 ac_res=`eval echo '${'$as_ac_Header'}'`
18899 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18900 echo "${ECHO_T}$ac_res" >&6; }
18902 # Is the header compilable?
18903 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18904 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18905 cat >conftest.$ac_ext <<_ACEOF
18908 cat confdefs.h >>conftest.$ac_ext
18909 cat >>conftest.$ac_ext <<_ACEOF
18910 /* end confdefs.h. */
18911 $ac_includes_default
18912 #include <$ac_header>
18914 rm -f conftest.$ac_objext
18915 if { (ac_try="$ac_compile"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_compile") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest.$ac_objext; then
18931 ac_header_compiler=yes
18933 echo "$as_me: failed program was
:" >&5
18934 sed 's/^/| /' conftest.$ac_ext >&5
18936 ac_header_compiler=no
18939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18941 echo "${ECHO_T}$ac_header_compiler" >&6; }
18943 # Is the header present?
18944 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18945 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18946 cat >conftest.$ac_ext <<_ACEOF
18949 cat confdefs.h >>conftest.$ac_ext
18950 cat >>conftest.$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 #include <$ac_header>
18954 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18955 case "(($ac_try" in
18956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18957 *) ac_try_echo=$ac_try;;
18959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18960 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18962 grep -v '^ *+' conftest.er1 >conftest.err
18964 cat conftest.err >&5
18965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18966 (exit $ac_status); } >/dev/null && {
18967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18968 test ! -s conftest.err
18970 ac_header_preproc=yes
18972 echo "$as_me: failed program was
:" >&5
18973 sed 's/^/| /' conftest.$ac_ext >&5
18975 ac_header_preproc=no
18978 rm -f conftest.err conftest.$ac_ext
18979 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18980 echo "${ECHO_T}$ac_header_preproc" >&6; }
18982 # So? What about this header?
18983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18985 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18986 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18987 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18989 ac_header_preproc=yes
18992 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18993 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18994 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18995 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18996 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18997 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18998 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18999 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19000 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19002 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19003 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19007 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19008 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19010 echo $ECHO_N "(cached
) $ECHO_C" >&6
19012 eval "$as_ac_Header=\
$ac_header_preproc"
19014 ac_res=`eval echo '${'$as_ac_Header'}'`
19015 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19016 echo "${ECHO_T}$ac_res" >&6; }
19019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19020 cat >>confdefs.h <<_ACEOF
19021 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19030 if test -z "$GETOPT_H"; then
19032 for ac_func in getopt_long_only
19034 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19035 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19036 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19037 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19038 echo $ECHO_N "(cached
) $ECHO_C" >&6
19040 cat >conftest.$ac_ext <<_ACEOF
19043 cat confdefs.h >>conftest.$ac_ext
19044 cat >>conftest.$ac_ext <<_ACEOF
19045 /* end confdefs.h. */
19046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19048 #define $ac_func innocuous_$ac_func
19050 /* System header to define __stub macros and hopefully few prototypes,
19051 which can conflict with char $ac_func (); below.
19052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19053 <limits.h> exists even on freestanding compilers. */
19056 # include <limits.h>
19058 # include <assert.h>
19063 /* Override any GCC internal prototype to avoid an error.
19064 Use char because int might match the return type of a GCC
19065 builtin and then its argument prototype would still apply. */
19070 /* The GNU C library defines this for functions which it implements
19071 to always fail with ENOSYS. Some functions are actually named
19072 something starting with __ and the normal name is an alias. */
19073 #if defined __stub_$ac_func || defined __stub___$ac_func
19080 return $ac_func ();
19085 rm -f conftest.$ac_objext conftest$ac_exeext
19086 if { (ac_try="$ac_link"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_link") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest$ac_exeext &&
19102 $as_test_x conftest$ac_exeext; then
19103 eval "$as_ac_var=yes"
19105 echo "$as_me: failed program was
:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 eval "$as_ac_var=no
"
19111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19112 conftest$ac_exeext conftest.$ac_ext
19114 ac_res=`eval echo '${'$as_ac_var'}'`
19115 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19116 echo "${ECHO_T}$ac_res" >&6; }
19117 if test `eval echo '${'$as_ac_var'}'` = yes; then
19118 cat >>confdefs.h <<_ACEOF
19119 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19129 if test -z "$GETOPT_H"; then
19130 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19131 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19132 if test "${ac_cv_have_decl_optreset+set}" = set; then
19133 echo $ECHO_N "(cached
) $ECHO_C" >&6
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <getopt.h>
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_cv_have_decl_optreset=yes
19173 echo "$as_me: failed program was
:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_cv_have_decl_optreset=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19181 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19182 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19183 if test $ac_cv_have_decl_optreset = yes; then
19189 if test -z "$GETOPT_H"; then
19190 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19191 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19192 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19193 echo $ECHO_N "(cached
) $ECHO_C" >&6
19195 if test "$cross_compiling" = yes; then
19196 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19197 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19198 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19199 echo $ECHO_N "(cached
) $ECHO_C" >&6
19201 cat >conftest.$ac_ext <<_ACEOF
19204 cat confdefs.h >>conftest.$ac_ext
19205 cat >>conftest.$ac_ext <<_ACEOF
19206 /* end confdefs.h. */
19207 #include <getopt.h>
19212 #ifndef getopt_clip
19213 (void) getopt_clip;
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19237 ac_cv_have_decl_getopt_clip=yes
19239 echo "$as_me: failed program was
:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19242 ac_cv_have_decl_getopt_clip=no
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19248 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19249 if test $ac_cv_have_decl_getopt_clip = yes; then
19250 gl_cv_func_gnu_getopt=no
19252 gl_cv_func_gnu_getopt=yes
19256 cat >conftest.$ac_ext <<_ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <getopt.h>
19268 myargv[0] = "conftest
";
19271 return getopt (2, myargv, "+a
") != '?';
19277 rm -f conftest$ac_exeext
19278 if { (ac_try="$ac_link"
19279 case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_link") 2>&5
19286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19288 { (case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_try") 2>&5
19295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 gl_cv_func_gnu_getopt=yes
19299 echo "$as_me: program exited with status
$ac_status" >&5
19300 echo "$as_me: failed program was
:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ( exit $ac_status )
19304 gl_cv_func_gnu_getopt=no
19306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19312 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19313 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19320 if test -n "$GETOPT_H"; then
19325 cat >>confdefs.h <<\_ACEOF
19326 #define __GETOPT_PREFIX rpl_
19332 GETOPTOBJS='getopt.o getopt1.o'
19339 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19340 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19341 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19342 echo $ECHO_N "(cached
) $ECHO_C" >&6
19344 # Use it with a single arg.
19345 cat >conftest.$ac_ext <<_ACEOF
19348 cat confdefs.h >>conftest.$ac_ext
19349 cat >>conftest.$ac_ext <<_ACEOF
19350 /* end confdefs.h. */
19351 $ac_includes_default
19360 rm -f conftest.$ac_objext
19361 if { (ac_try="$ac_compile"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_compile") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest.$ac_objext; then
19377 ac_cv_func_getpgrp_void=no
19379 echo "$as_me: failed program was
:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19382 ac_cv_func_getpgrp_void=yes
19385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19388 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19389 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19390 if test $ac_cv_func_getpgrp_void = yes; then
19392 cat >>confdefs.h <<\_ACEOF
19393 #define GETPGRP_VOID 1
19400 for ac_func in strftime
19402 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19403 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19404 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19405 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19406 echo $ECHO_N "(cached
) $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19416 #define $ac_func innocuous_$ac_func
19418 /* System header to define __stub macros and hopefully few prototypes,
19419 which can conflict with char $ac_func (); below.
19420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19421 <limits.h> exists even on freestanding compilers. */
19424 # include <limits.h>
19426 # include <assert.h>
19431 /* Override any GCC internal prototype to avoid an error.
19432 Use char because int might match the return type of a GCC
19433 builtin and then its argument prototype would still apply. */
19438 /* The GNU C library defines this for functions which it implements
19439 to always fail with ENOSYS. Some functions are actually named
19440 something starting with __ and the normal name is an alias. */
19441 #if defined __stub_$ac_func || defined __stub___$ac_func
19448 return $ac_func ();
19453 rm -f conftest.$ac_objext conftest$ac_exeext
19454 if { (ac_try="$ac_link"
19455 case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19459 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_link") 2>conftest.er1
19462 grep -v '^ *+' conftest.er1 >conftest.err
19464 cat conftest.err >&5
19465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19466 (exit $ac_status); } && {
19467 test -z "$ac_c_werror_flag" ||
19468 test ! -s conftest.err
19469 } && test -s conftest$ac_exeext &&
19470 $as_test_x conftest$ac_exeext; then
19471 eval "$as_ac_var=yes"
19473 echo "$as_me: failed program was
:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 eval "$as_ac_var=no
"
19479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19480 conftest$ac_exeext conftest.$ac_ext
19482 ac_res=`eval echo '${'$as_ac_var'}'`
19483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19484 echo "${ECHO_T}$ac_res" >&6; }
19485 if test `eval echo '${'$as_ac_var'}'` = yes; then
19486 cat >>confdefs.h <<_ACEOF
19487 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19491 # strftime is in -lintl on SCO UNIX.
19492 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19493 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19494 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19495 echo $ECHO_N "(cached
) $ECHO_C" >&6
19497 ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lintl $LIBS"
19499 cat >conftest.$ac_ext <<_ACEOF
19502 cat confdefs.h >>conftest.$ac_ext
19503 cat >>conftest.$ac_ext <<_ACEOF
19504 /* end confdefs.h. */
19506 /* Override any GCC internal prototype to avoid an error.
19507 Use char because int might match the return type of a GCC
19508 builtin and then its argument prototype would still apply. */
19516 return strftime ();
19521 rm -f conftest.$ac_objext conftest$ac_exeext
19522 if { (ac_try="$ac_link"
19523 case "(($ac_try" in
19524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_link") 2>conftest.er1
19530 grep -v '^ *+' conftest.er1 >conftest.err
19532 cat conftest.err >&5
19533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19534 (exit $ac_status); } && {
19535 test -z "$ac_c_werror_flag" ||
19536 test ! -s conftest.err
19537 } && test -s conftest$ac_exeext &&
19538 $as_test_x conftest$ac_exeext; then
19539 ac_cv_lib_intl_strftime=yes
19541 echo "$as_me: failed program was
:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19544 ac_cv_lib_intl_strftime=no
19547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19548 conftest$ac_exeext conftest.$ac_ext
19549 LIBS=$ac_check_lib_save_LIBS
19551 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19552 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19553 if test $ac_cv_lib_intl_strftime = yes; then
19554 cat >>confdefs.h <<\_ACEOF
19555 #define HAVE_STRFTIME 1
19558 LIBS="-lintl $LIBS"
19567 for ac_func in grantpt
19569 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19570 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19571 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19572 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19573 echo $ECHO_N "(cached
) $ECHO_C" >&6
19575 cat >conftest.$ac_ext <<_ACEOF
19578 cat confdefs.h >>conftest.$ac_ext
19579 cat >>conftest.$ac_ext <<_ACEOF
19580 /* end confdefs.h. */
19581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19583 #define $ac_func innocuous_$ac_func
19585 /* System header to define __stub macros and hopefully few prototypes,
19586 which can conflict with char $ac_func (); below.
19587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19588 <limits.h> exists even on freestanding compilers. */
19591 # include <limits.h>
19593 # include <assert.h>
19598 /* Override any GCC internal prototype to avoid an error.
19599 Use char because int might match the return type of a GCC
19600 builtin and then its argument prototype would still apply. */
19605 /* The GNU C library defines this for functions which it implements
19606 to always fail with ENOSYS. Some functions are actually named
19607 something starting with __ and the normal name is an alias. */
19608 #if defined __stub_$ac_func || defined __stub___$ac_func
19615 return $ac_func ();
19620 rm -f conftest.$ac_objext conftest$ac_exeext
19621 if { (ac_try="$ac_link"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_link") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest$ac_exeext &&
19637 $as_test_x conftest$ac_exeext; then
19638 eval "$as_ac_var=yes"
19640 echo "$as_me: failed program was
:" >&5
19641 sed 's/^/| /' conftest.$ac_ext >&5
19643 eval "$as_ac_var=no
"
19646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19647 conftest$ac_exeext conftest.$ac_ext
19649 ac_res=`eval echo '${'$as_ac_var'}'`
19650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19651 echo "${ECHO_T}$ac_res" >&6; }
19652 if test `eval echo '${'$as_ac_var'}'` = yes; then
19653 cat >>confdefs.h <<_ACEOF
19654 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19661 # PTY-related GNU extensions.
19663 for ac_func in getpt
19665 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19666 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19667 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19668 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19669 echo $ECHO_N "(cached
) $ECHO_C" >&6
19671 cat >conftest.$ac_ext <<_ACEOF
19674 cat confdefs.h >>conftest.$ac_ext
19675 cat >>conftest.$ac_ext <<_ACEOF
19676 /* end confdefs.h. */
19677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19679 #define $ac_func innocuous_$ac_func
19681 /* System header to define __stub macros and hopefully few prototypes,
19682 which can conflict with char $ac_func (); below.
19683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19684 <limits.h> exists even on freestanding compilers. */
19687 # include <limits.h>
19689 # include <assert.h>
19694 /* Override any GCC internal prototype to avoid an error.
19695 Use char because int might match the return type of a GCC
19696 builtin and then its argument prototype would still apply. */
19701 /* The GNU C library defines this for functions which it implements
19702 to always fail with ENOSYS. Some functions are actually named
19703 something starting with __ and the normal name is an alias. */
19704 #if defined __stub_$ac_func || defined __stub___$ac_func
19711 return $ac_func ();
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720 *) ac_try_echo=$ac_try;;
19722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19723 (eval "$ac_link") 2>conftest.er1
19725 grep -v '^ *+' conftest.er1 >conftest.err
19727 cat conftest.err >&5
19728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19729 (exit $ac_status); } && {
19730 test -z "$ac_c_werror_flag" ||
19731 test ! -s conftest.err
19732 } && test -s conftest$ac_exeext &&
19733 $as_test_x conftest$ac_exeext; then
19734 eval "$as_ac_var=yes"
19736 echo "$as_me: failed program was
:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19739 eval "$as_ac_var=no
"
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743 conftest$ac_exeext conftest.$ac_ext
19745 ac_res=`eval echo '${'$as_ac_var'}'`
19746 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19747 echo "${ECHO_T}$ac_res" >&6; }
19748 if test `eval echo '${'$as_ac_var'}'` = yes; then
19749 cat >>confdefs.h <<_ACEOF
19750 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19757 # Check this now, so that we will NOT find the above functions in ncurses.
19758 # That is because we have not set up to link ncurses in lib-src.
19759 # It's better to believe a function is not available
19760 # than to expect to find it in ncurses.
19762 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19763 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19764 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19765 echo $ECHO_N "(cached
) $ECHO_C" >&6
19767 ac_check_lib_save_LIBS=$LIBS
19768 LIBS="-lncurses $LIBS"
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19776 /* Override any GCC internal prototype to avoid an error.
19777 Use char because int might match the return type of a GCC
19778 builtin and then its argument prototype would still apply. */
19791 rm -f conftest.$ac_objext conftest$ac_exeext
19792 if { (ac_try="$ac_link"
19793 case "(($ac_try" in
19794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19795 *) ac_try_echo=$ac_try;;
19797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19798 (eval "$ac_link") 2>conftest.er1
19800 grep -v '^ *+' conftest.er1 >conftest.err
19802 cat conftest.err >&5
19803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19804 (exit $ac_status); } && {
19805 test -z "$ac_c_werror_flag" ||
19806 test ! -s conftest.err
19807 } && test -s conftest$ac_exeext &&
19808 $as_test_x conftest$ac_exeext; then
19809 ac_cv_lib_ncurses_tparm=yes
19811 echo "$as_me: failed program was
:" >&5
19812 sed 's/^/| /' conftest.$ac_ext >&5
19814 ac_cv_lib_ncurses_tparm=no
19817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19818 conftest$ac_exeext conftest.$ac_ext
19819 LIBS=$ac_check_lib_save_LIBS
19821 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19822 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19823 if test $ac_cv_lib_ncurses_tparm = yes; then
19824 cat >>confdefs.h <<_ACEOF
19825 #define HAVE_LIBNCURSES 1
19828 LIBS="-lncurses $LIBS"
19833 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19836 cat >conftest.$ac_ext <<_ACEOF
19839 cat confdefs.h >>conftest.$ac_ext
19840 cat >>conftest.$ac_ext <<_ACEOF
19841 /* end confdefs.h. */
19842 #include <netinet/in.h>
19843 #include <arpa/nameser.h>
19844 #include <resolv.h>
19853 rm -f conftest.$ac_objext conftest$ac_exeext
19854 if { (ac_try="$ac_link"
19855 case "(($ac_try" in
19856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19857 *) ac_try_echo=$ac_try;;
19859 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19860 (eval "$ac_link") 2>conftest.er1
19862 grep -v '^ *+' conftest.er1 >conftest.err
19864 cat conftest.err >&5
19865 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19866 (exit $ac_status); } && {
19867 test -z "$ac_c_werror_flag" ||
19868 test ! -s conftest.err
19869 } && test -s conftest$ac_exeext &&
19870 $as_test_x conftest$ac_exeext; then
19873 echo "$as_me: failed program was
:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19880 conftest$ac_exeext conftest.$ac_ext
19881 if test "$have_res_init" = no; then
19883 LIBS="$LIBS -lresolv"
19884 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19885 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19892 #include <netinet/in.h>
19893 #include <arpa/nameser.h>
19894 #include <resolv.h>
19903 rm -f conftest.$ac_objext conftest$ac_exeext
19904 if { (ac_try="$ac_link"
19905 case "(($ac_try" in
19906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19907 *) ac_try_echo=$ac_try;;
19909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19910 (eval "$ac_link") 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19916 (exit $ac_status); } && {
19917 test -z "$ac_c_werror_flag" ||
19918 test ! -s conftest.err
19919 } && test -s conftest$ac_exeext &&
19920 $as_test_x conftest$ac_exeext; then
19923 echo "$as_me: failed program was
:" >&5
19924 sed 's/^/| /' conftest.$ac_ext >&5
19929 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19930 conftest$ac_exeext conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19932 echo "${ECHO_T}$have_res_init" >&6; }
19933 if test "$have_res_init" = yes ; then
19939 if test "$have_res_init" = yes; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_RES_INIT 1
19947 # Do we need the Hesiod library to provide the support routines?
19948 if test "$with_hesiod" != no ; then
19949 # Don't set $LIBS here -- see comments above.
19950 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19951 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19952 if test "${ac_cv_func_res_send+set}" = set; then
19953 echo $ECHO_N "(cached
) $ECHO_C" >&6
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19963 #define res_send innocuous_res_send
19965 /* System header to define __stub macros and hopefully few prototypes,
19966 which can conflict with char res_send (); below.
19967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19968 <limits.h> exists even on freestanding compilers. */
19971 # include <limits.h>
19973 # include <assert.h>
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined __stub_res_send || defined __stub___res_send
19995 return res_send ();
20000 rm -f conftest.$ac_objext conftest$ac_exeext
20001 if { (ac_try="$ac_link"
20002 case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_link") 2>conftest.er1
20009 grep -v '^ *+' conftest.er1 >conftest.err
20011 cat conftest.err >&5
20012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest$ac_exeext &&
20017 $as_test_x conftest$ac_exeext; then
20018 ac_cv_func_res_send=yes
20020 echo "$as_me: failed program was
:" >&5
20021 sed 's/^/| /' conftest.$ac_ext >&5
20023 ac_cv_func_res_send=no
20026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20027 conftest$ac_exeext conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20030 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20031 if test $ac_cv_func_res_send = yes; then
20034 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20035 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20036 if test "${ac_cv_func___res_send+set}" = set; then
20037 echo $ECHO_N "(cached
) $ECHO_C" >&6
20039 cat >conftest.$ac_ext <<_ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h. */
20045 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20047 #define __res_send innocuous___res_send
20049 /* System header to define __stub macros and hopefully few prototypes,
20050 which can conflict with char __res_send (); below.
20051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20052 <limits.h> exists even on freestanding compilers. */
20055 # include <limits.h>
20057 # include <assert.h>
20062 /* Override any GCC internal prototype to avoid an error.
20063 Use char because int might match the return type of a GCC
20064 builtin and then its argument prototype would still apply. */
20068 char __res_send ();
20069 /* The GNU C library defines this for functions which it implements
20070 to always fail with ENOSYS. Some functions are actually named
20071 something starting with __ and the normal name is an alias. */
20072 #if defined __stub___res_send || defined __stub_____res_send
20079 return __res_send ();
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_link") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1 >conftest.err
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest$ac_exeext &&
20101 $as_test_x conftest$ac_exeext; then
20102 ac_cv_func___res_send=yes
20104 echo "$as_me: failed program was
:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_func___res_send=no
20110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111 conftest$ac_exeext conftest.$ac_ext
20113 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20114 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20115 if test $ac_cv_func___res_send = yes; then
20118 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20119 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20120 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20121 echo $ECHO_N "(cached
) $ECHO_C" >&6
20123 ac_check_lib_save_LIBS=$LIBS
20124 LIBS="-lresolv $LIBS"
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20132 /* Override any GCC internal prototype to avoid an error.
20133 Use char because int might match the return type of a GCC
20134 builtin and then its argument prototype would still apply. */
20142 return res_send ();
20147 rm -f conftest.$ac_objext conftest$ac_exeext
20148 if { (ac_try="$ac_link"
20149 case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_link") 2>conftest.er1
20156 grep -v '^ *+' conftest.er1 >conftest.err
20158 cat conftest.err >&5
20159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20160 (exit $ac_status); } && {
20161 test -z "$ac_c_werror_flag" ||
20162 test ! -s conftest.err
20163 } && test -s conftest$ac_exeext &&
20164 $as_test_x conftest$ac_exeext; then
20165 ac_cv_lib_resolv_res_send=yes
20167 echo "$as_me: failed program was
:" >&5
20168 sed 's/^/| /' conftest.$ac_ext >&5
20170 ac_cv_lib_resolv_res_send=no
20173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20174 conftest$ac_exeext conftest.$ac_ext
20175 LIBS=$ac_check_lib_save_LIBS
20177 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20178 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20179 if test $ac_cv_lib_resolv_res_send = yes; then
20182 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20183 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20184 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20185 echo $ECHO_N "(cached
) $ECHO_C" >&6
20187 ac_check_lib_save_LIBS=$LIBS
20188 LIBS="-lresolv $LIBS"
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20196 /* Override any GCC internal prototype to avoid an error.
20197 Use char because int might match the return type of a GCC
20198 builtin and then its argument prototype would still apply. */
20202 char __res_send ();
20206 return __res_send ();
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215 *) ac_try_echo=$ac_try;;
20217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20218 (eval "$ac_link") 2>conftest.er1
20220 grep -v '^ *+' conftest.er1 >conftest.err
20222 cat conftest.err >&5
20223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20224 (exit $ac_status); } && {
20225 test -z "$ac_c_werror_flag" ||
20226 test ! -s conftest.err
20227 } && test -s conftest$ac_exeext &&
20228 $as_test_x conftest$ac_exeext; then
20229 ac_cv_lib_resolv___res_send=yes
20231 echo "$as_me: failed program was
:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_cv_lib_resolv___res_send=no
20237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20242 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20243 if test $ac_cv_lib_resolv___res_send = yes; then
20253 if test "$resolv" = yes ; then
20258 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20259 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20260 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20261 echo $ECHO_N "(cached
) $ECHO_C" >&6
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20270 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20271 #define hes_getmailhost innocuous_hes_getmailhost
20273 /* System header to define __stub macros and hopefully few prototypes,
20274 which can conflict with char hes_getmailhost (); below.
20275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20276 <limits.h> exists even on freestanding compilers. */
20279 # include <limits.h>
20281 # include <assert.h>
20284 #undef hes_getmailhost
20286 /* Override any GCC internal prototype to avoid an error.
20287 Use char because int might match the return type of a GCC
20288 builtin and then its argument prototype would still apply. */
20292 char hes_getmailhost ();
20293 /* The GNU C library defines this for functions which it implements
20294 to always fail with ENOSYS. Some functions are actually named
20295 something starting with __ and the normal name is an alias. */
20296 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20303 return hes_getmailhost ();
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext &&
20325 $as_test_x conftest$ac_exeext; then
20326 ac_cv_func_hes_getmailhost=yes
20328 echo "$as_me: failed program was
:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_cv_func_hes_getmailhost=no
20334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335 conftest$ac_exeext conftest.$ac_ext
20337 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20338 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20339 if test $ac_cv_func_hes_getmailhost = yes; then
20342 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20343 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20344 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20345 echo $ECHO_N "(cached
) $ECHO_C" >&6
20347 ac_check_lib_save_LIBS=$LIBS
20348 LIBS="-lhesiod $RESOLVLIB $LIBS"
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20356 /* Override any GCC internal prototype to avoid an error.
20357 Use char because int might match the return type of a GCC
20358 builtin and then its argument prototype would still apply. */
20362 char hes_getmailhost ();
20366 return hes_getmailhost ();
20371 rm -f conftest.$ac_objext conftest$ac_exeext
20372 if { (ac_try="$ac_link"
20373 case "(($ac_try" in
20374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375 *) ac_try_echo=$ac_try;;
20377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20378 (eval "$ac_link") 2>conftest.er1
20380 grep -v '^ *+' conftest.er1 >conftest.err
20382 cat conftest.err >&5
20383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20384 (exit $ac_status); } && {
20385 test -z "$ac_c_werror_flag" ||
20386 test ! -s conftest.err
20387 } && test -s conftest$ac_exeext &&
20388 $as_test_x conftest$ac_exeext; then
20389 ac_cv_lib_hesiod_hes_getmailhost=yes
20391 echo "$as_me: failed program was
:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_cv_lib_hesiod_hes_getmailhost=no
20397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20398 conftest$ac_exeext conftest.$ac_ext
20399 LIBS=$ac_check_lib_save_LIBS
20401 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20402 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20403 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_LIBHESIOD 1
20417 # Do we need libresolv (due to res_init or Hesiod)?
20418 if test "$resolv" = yes ; then
20420 cat >>confdefs.h <<\_ACEOF
20421 #define HAVE_LIBRESOLV 1
20426 # These tell us which Kerberos-related libraries to use.
20427 if test "${with_kerberos}" != no; then
20429 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20430 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20431 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20432 echo $ECHO_N "(cached
) $ECHO_C" >&6
20434 ac_check_lib_save_LIBS=$LIBS
20435 LIBS="-lcom_err $LIBS"
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20443 /* Override any GCC internal prototype to avoid an error.
20444 Use char because int might match the return type of a GCC
20445 builtin and then its argument prototype would still apply. */
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20465 (eval "$ac_link") 2>conftest.er1
20467 grep -v '^ *+' conftest.er1 >conftest.err
20469 cat conftest.err >&5
20470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20471 (exit $ac_status); } && {
20472 test -z "$ac_c_werror_flag" ||
20473 test ! -s conftest.err
20474 } && test -s conftest$ac_exeext &&
20475 $as_test_x conftest$ac_exeext; then
20476 ac_cv_lib_com_err_com_err=yes
20478 echo "$as_me: failed program was
:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_cv_lib_com_err_com_err=no
20484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20485 conftest$ac_exeext conftest.$ac_ext
20486 LIBS=$ac_check_lib_save_LIBS
20488 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20489 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20490 if test $ac_cv_lib_com_err_com_err = yes; then
20491 cat >>confdefs.h <<_ACEOF
20492 #define HAVE_LIBCOM_ERR 1
20495 LIBS="-lcom_err $LIBS"
20500 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20501 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20502 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20503 echo $ECHO_N "(cached
) $ECHO_C" >&6
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lk5crypto $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20520 char mit_des_cbc_encrypt ();
20524 return mit_des_cbc_encrypt ();
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20549 echo "$as_me: failed program was
:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20560 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20561 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBK5CRYPTO 1
20566 LIBS="-lk5crypto $LIBS"
20571 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20572 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20573 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20574 echo $ECHO_N "(cached
) $ECHO_C" >&6
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lcrypto $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20591 char mit_des_cbc_encrypt ();
20595 return mit_des_cbc_encrypt ();
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20620 echo "$as_me: failed program was
:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20631 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20632 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBCRYPTO 1
20637 LIBS="-lcrypto $LIBS"
20642 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20643 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20644 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20645 echo $ECHO_N "(cached
) $ECHO_C" >&6
20647 ac_check_lib_save_LIBS=$LIBS
20648 LIBS="-lkrb5 $LIBS"
20649 cat >conftest.$ac_ext <<_ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20662 char krb5_init_context ();
20666 return krb5_init_context ();
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_link") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext &&
20688 $as_test_x conftest$ac_exeext; then
20689 ac_cv_lib_krb5_krb5_init_context=yes
20691 echo "$as_me: failed program was
:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_lib_krb5_krb5_init_context=no
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20702 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20703 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_LIBKRB5 1
20708 LIBS="-lkrb5 $LIBS"
20712 if test "${with_kerberos5}" = no; then
20714 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20715 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20716 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20717 echo $ECHO_N "(cached
) $ECHO_C" >&6
20719 ac_check_lib_save_LIBS=$LIBS
20720 LIBS="-ldes425 $LIBS"
20721 cat >conftest.$ac_ext <<_ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h. */
20728 /* Override any GCC internal prototype to avoid an error.
20729 Use char because int might match the return type of a GCC
20730 builtin and then its argument prototype would still apply. */
20734 char des_cbc_encrypt ();
20738 return des_cbc_encrypt ();
20743 rm -f conftest.$ac_objext conftest$ac_exeext
20744 if { (ac_try="$ac_link"
20745 case "(($ac_try" in
20746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20747 *) ac_try_echo=$ac_try;;
20749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20750 (eval "$ac_link") 2>conftest.er1
20752 grep -v '^ *+' conftest.er1 >conftest.err
20754 cat conftest.err >&5
20755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20756 (exit $ac_status); } && {
20757 test -z "$ac_c_werror_flag" ||
20758 test ! -s conftest.err
20759 } && test -s conftest$ac_exeext &&
20760 $as_test_x conftest$ac_exeext; then
20761 ac_cv_lib_des425_des_cbc_encrypt=yes
20763 echo "$as_me: failed program was
:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_lib_des425_des_cbc_encrypt=no
20769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20770 conftest$ac_exeext conftest.$ac_ext
20771 LIBS=$ac_check_lib_save_LIBS
20773 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20774 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20775 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define HAVE_LIBDES425 1
20780 LIBS="-ldes425 $LIBS"
20784 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20785 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20786 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20787 echo $ECHO_N "(cached
) $ECHO_C" >&6
20789 ac_check_lib_save_LIBS=$LIBS
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 /* Override any GCC internal prototype to avoid an error.
20799 Use char because int might match the return type of a GCC
20800 builtin and then its argument prototype would still apply. */
20804 char des_cbc_encrypt ();
20808 return des_cbc_encrypt ();
20813 rm -f conftest.$ac_objext conftest$ac_exeext
20814 if { (ac_try="$ac_link"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_link") 2>conftest.er1
20822 grep -v '^ *+' conftest.er1 >conftest.err
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest$ac_exeext &&
20830 $as_test_x conftest$ac_exeext; then
20831 ac_cv_lib_des_des_cbc_encrypt=yes
20833 echo "$as_me: failed program was
:" >&5
20834 sed 's/^/| /' conftest.$ac_ext >&5
20836 ac_cv_lib_des_des_cbc_encrypt=no
20839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20844 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20845 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20846 cat >>confdefs.h <<_ACEOF
20847 #define HAVE_LIBDES 1
20857 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20858 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20859 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20860 echo $ECHO_N "(cached
) $ECHO_C" >&6
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lkrb4 $LIBS"
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20871 /* Override any GCC internal prototype to avoid an error.
20872 Use char because int might match the return type of a GCC
20873 builtin and then its argument prototype would still apply. */
20877 char krb_get_cred ();
20881 return krb_get_cred ();
20886 rm -f conftest.$ac_objext conftest$ac_exeext
20887 if { (ac_try="$ac_link"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_link") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest$ac_exeext &&
20903 $as_test_x conftest$ac_exeext; then
20904 ac_cv_lib_krb4_krb_get_cred=yes
20906 echo "$as_me: failed program was
:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_lib_krb4_krb_get_cred=no
20912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20913 conftest$ac_exeext conftest.$ac_ext
20914 LIBS=$ac_check_lib_save_LIBS
20916 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20917 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20918 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_LIBKRB4 1
20923 LIBS="-lkrb4 $LIBS"
20927 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20928 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20929 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20930 echo $ECHO_N "(cached
) $ECHO_C" >&6
20932 ac_check_lib_save_LIBS=$LIBS
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20941 /* Override any GCC internal prototype to avoid an error.
20942 Use char because int might match the return type of a GCC
20943 builtin and then its argument prototype would still apply. */
20947 char krb_get_cred ();
20951 return krb_get_cred ();
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960 *) ac_try_echo=$ac_try;;
20962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20963 (eval "$ac_link") 2>conftest.er1
20965 grep -v '^ *+' conftest.er1 >conftest.err
20967 cat conftest.err >&5
20968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20969 (exit $ac_status); } && {
20970 test -z "$ac_c_werror_flag" ||
20971 test ! -s conftest.err
20972 } && test -s conftest$ac_exeext &&
20973 $as_test_x conftest$ac_exeext; then
20974 ac_cv_lib_krb_krb_get_cred=yes
20976 echo "$as_me: failed program was
:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20979 ac_cv_lib_krb_krb_get_cred=no
20982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20983 conftest$ac_exeext conftest.$ac_ext
20984 LIBS=$ac_check_lib_save_LIBS
20986 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20987 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20988 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20989 cat >>confdefs.h <<_ACEOF
20990 #define HAVE_LIBKRB 1
21001 if test "${with_kerberos5}" != no; then
21003 for ac_header in krb5.h
21005 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21007 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21008 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21009 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached
) $ECHO_C" >&6
21012 ac_res=`eval echo '${'$as_ac_Header'}'`
21013 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21014 echo "${ECHO_T}$ac_res" >&6; }
21016 # Is the header compilable?
21017 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21018 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21019 cat >conftest.$ac_ext <<_ACEOF
21022 cat confdefs.h >>conftest.$ac_ext
21023 cat >>conftest.$ac_ext <<_ACEOF
21024 /* end confdefs.h. */
21025 $ac_includes_default
21026 #include <$ac_header>
21028 rm -f conftest.$ac_objext
21029 if { (ac_try="$ac_compile"
21030 case "(($ac_try" in
21031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21032 *) ac_try_echo=$ac_try;;
21034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21035 (eval "$ac_compile") 2>conftest.er1
21037 grep -v '^ *+' conftest.er1 >conftest.err
21039 cat conftest.err >&5
21040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21041 (exit $ac_status); } && {
21042 test -z "$ac_c_werror_flag" ||
21043 test ! -s conftest.err
21044 } && test -s conftest.$ac_objext; then
21045 ac_header_compiler=yes
21047 echo "$as_me: failed program was
:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_header_compiler=no
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21055 echo "${ECHO_T}$ac_header_compiler" >&6; }
21057 # Is the header present?
21058 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21059 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21060 cat >conftest.$ac_ext <<_ACEOF
21063 cat confdefs.h >>conftest.$ac_ext
21064 cat >>conftest.$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 #include <$ac_header>
21068 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21069 case "(($ac_try" in
21070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21071 *) ac_try_echo=$ac_try;;
21073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21074 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21080 (exit $ac_status); } >/dev/null && {
21081 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21082 test ! -s conftest.err
21084 ac_header_preproc=yes
21086 echo "$as_me: failed program was
:" >&5
21087 sed 's/^/| /' conftest.$ac_ext >&5
21089 ac_header_preproc=no
21092 rm -f conftest.err conftest.$ac_ext
21093 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21094 echo "${ECHO_T}$ac_header_preproc" >&6; }
21096 # So? What about this header?
21097 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21099 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21100 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21101 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21102 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21103 ac_header_preproc=yes
21106 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21107 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21108 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21109 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21110 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21111 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21112 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21113 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21114 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21115 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21116 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21117 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21121 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21122 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21123 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21124 echo $ECHO_N "(cached
) $ECHO_C" >&6
21126 eval "$as_ac_Header=\
$ac_header_preproc"
21128 ac_res=`eval echo '${'$as_ac_Header'}'`
21129 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21130 echo "${ECHO_T}$ac_res" >&6; }
21133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21134 cat >>confdefs.h <<_ACEOF
21135 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21137 { echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
21138 echo $ECHO_N "checking
for krb5_error.text...
$ECHO_C" >&6; }
21139 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21140 echo $ECHO_N "(cached
) $ECHO_C" >&6
21142 cat >conftest.$ac_ext <<_ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h. */
21153 static krb5_error ac_aggr;
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21177 ac_cv_member_krb5_error_text=yes
21179 echo "$as_me: failed program was
:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21182 cat >conftest.$ac_ext <<_ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21193 static krb5_error ac_aggr;
21194 if (sizeof ac_aggr.text)
21200 rm -f conftest.$ac_objext
21201 if { (ac_try="$ac_compile"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_compile") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21213 (exit $ac_status); } && {
21214 test -z "$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21216 } && test -s conftest.$ac_objext; then
21217 ac_cv_member_krb5_error_text=yes
21219 echo "$as_me: failed program was
:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_cv_member_krb5_error_text=no
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
21231 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21232 if test $ac_cv_member_krb5_error_text = yes; then
21234 cat >>confdefs.h <<_ACEOF
21235 #define HAVE_KRB5_ERROR_TEXT 1
21240 { echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
21241 echo $ECHO_N "checking
for krb5_error.e_text...
$ECHO_C" >&6; }
21242 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21243 echo $ECHO_N "(cached
) $ECHO_C" >&6
21245 cat >conftest.$ac_ext <<_ACEOF
21248 cat confdefs.h >>conftest.$ac_ext
21249 cat >>conftest.$ac_ext <<_ACEOF
21250 /* end confdefs.h. */
21256 static krb5_error ac_aggr;
21257 if (ac_aggr.e_text)
21263 rm -f conftest.$ac_objext
21264 if { (ac_try="$ac_compile"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_compile") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21276 (exit $ac_status); } && {
21277 test -z "$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21279 } && test -s conftest.$ac_objext; then
21280 ac_cv_member_krb5_error_e_text=yes
21282 echo "$as_me: failed program was
:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21296 static krb5_error ac_aggr;
21297 if (sizeof ac_aggr.e_text)
21303 rm -f conftest.$ac_objext
21304 if { (ac_try="$ac_compile"
21305 case "(($ac_try" in
21306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21307 *) ac_try_echo=$ac_try;;
21309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21310 (eval "$ac_compile") 2>conftest.er1
21312 grep -v '^ *+' conftest.er1 >conftest.err
21314 cat conftest.err >&5
21315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21316 (exit $ac_status); } && {
21317 test -z "$ac_c_werror_flag" ||
21318 test ! -s conftest.err
21319 } && test -s conftest.$ac_objext; then
21320 ac_cv_member_krb5_error_e_text=yes
21322 echo "$as_me: failed program was
:" >&5
21323 sed 's/^/| /' conftest.$ac_ext >&5
21325 ac_cv_member_krb5_error_e_text=no
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21333 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
21334 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21335 if test $ac_cv_member_krb5_error_e_text = yes; then
21337 cat >>confdefs.h <<_ACEOF
21338 #define HAVE_KRB5_ERROR_E_TEXT 1
21350 for ac_header in des.h
21352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21357 echo $ECHO_N "(cached
) $ECHO_C" >&6
21359 ac_res=`eval echo '${'$as_ac_Header'}'`
21360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21361 echo "${ECHO_T}$ac_res" >&6; }
21363 # Is the header compilable?
21364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21366 cat >conftest.$ac_ext <<_ACEOF
21369 cat confdefs.h >>conftest.$ac_ext
21370 cat >>conftest.$ac_ext <<_ACEOF
21371 /* end confdefs.h. */
21372 $ac_includes_default
21373 #include <$ac_header>
21375 rm -f conftest.$ac_objext
21376 if { (ac_try="$ac_compile"
21377 case "(($ac_try" in
21378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379 *) ac_try_echo=$ac_try;;
21381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21382 (eval "$ac_compile") 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21388 (exit $ac_status); } && {
21389 test -z "$ac_c_werror_flag" ||
21390 test ! -s conftest.err
21391 } && test -s conftest.$ac_objext; then
21392 ac_header_compiler=yes
21394 echo "$as_me: failed program was
:" >&5
21395 sed 's/^/| /' conftest.$ac_ext >&5
21397 ac_header_compiler=no
21400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21402 echo "${ECHO_T}$ac_header_compiler" >&6; }
21404 # Is the header present?
21405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21407 cat >conftest.$ac_ext <<_ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h. */
21413 #include <$ac_header>
21415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21416 case "(($ac_try" in
21417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21418 *) ac_try_echo=$ac_try;;
21420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21423 grep -v '^ *+' conftest.er1 >conftest.err
21425 cat conftest.err >&5
21426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21427 (exit $ac_status); } >/dev/null && {
21428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21429 test ! -s conftest.err
21431 ac_header_preproc=yes
21433 echo "$as_me: failed program was
:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_header_preproc=no
21439 rm -f conftest.err conftest.$ac_ext
21440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21441 echo "${ECHO_T}$ac_header_preproc" >&6; }
21443 # So? What about this header?
21444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21450 ac_header_preproc=yes
21453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21468 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21469 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21471 echo $ECHO_N "(cached
) $ECHO_C" >&6
21473 eval "$as_ac_Header=\
$ac_header_preproc"
21475 ac_res=`eval echo '${'$as_ac_Header'}'`
21476 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21477 echo "${ECHO_T}$ac_res" >&6; }
21480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21481 cat >>confdefs.h <<_ACEOF
21482 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21487 for ac_header in kerberosIV/des.h
21489 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21490 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21491 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21492 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21493 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21494 echo $ECHO_N "(cached
) $ECHO_C" >&6
21496 ac_res=`eval echo '${'$as_ac_Header'}'`
21497 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21498 echo "${ECHO_T}$ac_res" >&6; }
21500 # Is the header compilable?
21501 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21502 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21503 cat >conftest.$ac_ext <<_ACEOF
21506 cat confdefs.h >>conftest.$ac_ext
21507 cat >>conftest.$ac_ext <<_ACEOF
21508 /* end confdefs.h. */
21509 $ac_includes_default
21510 #include <$ac_header>
21512 rm -f conftest.$ac_objext
21513 if { (ac_try="$ac_compile"
21514 case "(($ac_try" in
21515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21516 *) ac_try_echo=$ac_try;;
21518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21519 (eval "$ac_compile") 2>conftest.er1
21521 grep -v '^ *+' conftest.er1 >conftest.err
21523 cat conftest.err >&5
21524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21525 (exit $ac_status); } && {
21526 test -z "$ac_c_werror_flag" ||
21527 test ! -s conftest.err
21528 } && test -s conftest.$ac_objext; then
21529 ac_header_compiler=yes
21531 echo "$as_me: failed program was
:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21534 ac_header_compiler=no
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21538 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21539 echo "${ECHO_T}$ac_header_compiler" >&6; }
21541 # Is the header present?
21542 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21543 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21544 cat >conftest.$ac_ext <<_ACEOF
21547 cat confdefs.h >>conftest.$ac_ext
21548 cat >>conftest.$ac_ext <<_ACEOF
21549 /* end confdefs.h. */
21550 #include <$ac_header>
21552 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21564 (exit $ac_status); } >/dev/null && {
21565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21568 ac_header_preproc=yes
21570 echo "$as_me: failed program was
:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21573 ac_header_preproc=no
21576 rm -f conftest.err conftest.$ac_ext
21577 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21578 echo "${ECHO_T}$ac_header_preproc" >&6; }
21580 # So? What about this header?
21581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21583 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21584 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21585 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21587 ac_header_preproc=yes
21590 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21591 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21592 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21593 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21595 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21596 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21597 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21598 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21600 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21601 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21605 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21606 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21607 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21608 echo $ECHO_N "(cached
) $ECHO_C" >&6
21610 eval "$as_ac_Header=\
$ac_header_preproc"
21612 ac_res=`eval echo '${'$as_ac_Header'}'`
21613 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21614 echo "${ECHO_T}$ac_res" >&6; }
21617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21618 cat >>confdefs.h <<_ACEOF
21619 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21624 for ac_header in kerberos/des.h
21626 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21627 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21628 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21629 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached
) $ECHO_C" >&6
21633 ac_res=`eval echo '${'$as_ac_Header'}'`
21634 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21635 echo "${ECHO_T}$ac_res" >&6; }
21637 # Is the header compilable?
21638 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21639 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21640 cat >conftest.$ac_ext <<_ACEOF
21643 cat confdefs.h >>conftest.$ac_ext
21644 cat >>conftest.$ac_ext <<_ACEOF
21645 /* end confdefs.h. */
21646 $ac_includes_default
21647 #include <$ac_header>
21649 rm -f conftest.$ac_objext
21650 if { (ac_try="$ac_compile"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_compile") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21662 (exit $ac_status); } && {
21663 test -z "$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21665 } && test -s conftest.$ac_objext; then
21666 ac_header_compiler=yes
21668 echo "$as_me: failed program was
:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_compiler=no
21674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21675 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21676 echo "${ECHO_T}$ac_header_compiler" >&6; }
21678 # Is the header present?
21679 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21680 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 #include <$ac_header>
21689 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21690 case "(($ac_try" in
21691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21692 *) ac_try_echo=$ac_try;;
21694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21695 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21697 grep -v '^ *+' conftest.er1 >conftest.err
21699 cat conftest.err >&5
21700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21701 (exit $ac_status); } >/dev/null && {
21702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21703 test ! -s conftest.err
21705 ac_header_preproc=yes
21707 echo "$as_me: failed program was
:" >&5
21708 sed 's/^/| /' conftest.$ac_ext >&5
21710 ac_header_preproc=no
21713 rm -f conftest.err conftest.$ac_ext
21714 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21715 echo "${ECHO_T}$ac_header_preproc" >&6; }
21717 # So? What about this header?
21718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21720 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21721 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21722 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21724 ac_header_preproc=yes
21727 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21728 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21729 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21730 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21731 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21732 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21733 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21734 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21735 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21737 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21738 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21742 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21743 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21744 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21745 echo $ECHO_N "(cached
) $ECHO_C" >&6
21747 eval "$as_ac_Header=\
$ac_header_preproc"
21749 ac_res=`eval echo '${'$as_ac_Header'}'`
21750 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21751 echo "${ECHO_T}$ac_res" >&6; }
21754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21755 cat >>confdefs.h <<_ACEOF
21756 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21772 for ac_header in krb.h
21774 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached
) $ECHO_C" >&6
21781 ac_res=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21785 # Is the header compilable?
21786 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21787 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21788 cat >conftest.$ac_ext <<_ACEOF
21791 cat confdefs.h >>conftest.$ac_ext
21792 cat >>conftest.$ac_ext <<_ACEOF
21793 /* end confdefs.h. */
21794 $ac_includes_default
21795 #include <$ac_header>
21797 rm -f conftest.$ac_objext
21798 if { (ac_try="$ac_compile"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21804 (eval "$ac_compile") 2>conftest.er1
21806 grep -v '^ *+' conftest.er1 >conftest.err
21808 cat conftest.err >&5
21809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21810 (exit $ac_status); } && {
21811 test -z "$ac_c_werror_flag" ||
21812 test ! -s conftest.err
21813 } && test -s conftest.$ac_objext; then
21814 ac_header_compiler=yes
21816 echo "$as_me: failed program was
:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_header_compiler=no
21822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21824 echo "${ECHO_T}$ac_header_compiler" >&6; }
21826 # Is the header present?
21827 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21828 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21829 cat >conftest.$ac_ext <<_ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h. */
21835 #include <$ac_header>
21837 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21849 (exit $ac_status); } >/dev/null && {
21850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21853 ac_header_preproc=yes
21855 echo "$as_me: failed program was
:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ac_header_preproc=no
21861 rm -f conftest.err conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21863 echo "${ECHO_T}$ac_header_preproc" >&6; }
21865 # So? What about this header?
21866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21868 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21869 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21870 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21872 ac_header_preproc=yes
21875 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21876 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21877 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21878 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21879 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21880 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21881 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21882 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21883 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21885 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21886 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21893 echo $ECHO_N "(cached
) $ECHO_C" >&6
21895 eval "$as_ac_Header=\
$ac_header_preproc"
21897 ac_res=`eval echo '${'$as_ac_Header'}'`
21898 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21899 echo "${ECHO_T}$ac_res" >&6; }
21902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21903 cat >>confdefs.h <<_ACEOF
21904 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21909 for ac_header in kerberosIV/krb.h
21911 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21912 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21913 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21914 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached
) $ECHO_C" >&6
21918 ac_res=`eval echo '${'$as_ac_Header'}'`
21919 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21920 echo "${ECHO_T}$ac_res" >&6; }
21922 # Is the header compilable?
21923 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21924 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 $ac_includes_default
21932 #include <$ac_header>
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_compile") 2>conftest.er1
21943 grep -v '^ *+' conftest.er1 >conftest.err
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest.$ac_objext; then
21951 ac_header_compiler=yes
21953 echo "$as_me: failed program was
:" >&5
21954 sed 's/^/| /' conftest.$ac_ext >&5
21956 ac_header_compiler=no
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21961 echo "${ECHO_T}$ac_header_compiler" >&6; }
21963 # Is the header present?
21964 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21965 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972 #include <$ac_header>
21974 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21975 case "(($ac_try" in
21976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21977 *) ac_try_echo=$ac_try;;
21979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21980 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21982 grep -v '^ *+' conftest.er1 >conftest.err
21984 cat conftest.err >&5
21985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21986 (exit $ac_status); } >/dev/null && {
21987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21988 test ! -s conftest.err
21990 ac_header_preproc=yes
21992 echo "$as_me: failed program was
:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 ac_header_preproc=no
21998 rm -f conftest.err conftest.$ac_ext
21999 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22000 echo "${ECHO_T}$ac_header_preproc" >&6; }
22002 # So? What about this header?
22003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22005 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22006 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22007 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22009 ac_header_preproc=yes
22012 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22013 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22014 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22015 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22016 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22017 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22018 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22019 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22020 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22022 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22023 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22027 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22028 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22030 echo $ECHO_N "(cached
) $ECHO_C" >&6
22032 eval "$as_ac_Header=\
$ac_header_preproc"
22034 ac_res=`eval echo '${'$as_ac_Header'}'`
22035 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22036 echo "${ECHO_T}$ac_res" >&6; }
22039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22040 cat >>confdefs.h <<_ACEOF
22041 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22046 for ac_header in kerberos/krb.h
22048 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22050 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22051 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22053 echo $ECHO_N "(cached
) $ECHO_C" >&6
22055 ac_res=`eval echo '${'$as_ac_Header'}'`
22056 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22057 echo "${ECHO_T}$ac_res" >&6; }
22059 # Is the header compilable?
22060 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22061 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22062 cat >conftest.$ac_ext <<_ACEOF
22065 cat confdefs.h >>conftest.$ac_ext
22066 cat >>conftest.$ac_ext <<_ACEOF
22067 /* end confdefs.h. */
22068 $ac_includes_default
22069 #include <$ac_header>
22071 rm -f conftest.$ac_objext
22072 if { (ac_try="$ac_compile"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_compile") 2>conftest.er1
22080 grep -v '^ *+' conftest.er1 >conftest.err
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22084 (exit $ac_status); } && {
22085 test -z "$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 } && test -s conftest.$ac_objext; then
22088 ac_header_compiler=yes
22090 echo "$as_me: failed program was
:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22093 ac_header_compiler=no
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22098 echo "${ECHO_T}$ac_header_compiler" >&6; }
22100 # Is the header present?
22101 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22102 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22103 cat >conftest.$ac_ext <<_ACEOF
22106 cat confdefs.h >>conftest.$ac_ext
22107 cat >>conftest.$ac_ext <<_ACEOF
22108 /* end confdefs.h. */
22109 #include <$ac_header>
22111 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22112 case "(($ac_try" in
22113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22114 *) ac_try_echo=$ac_try;;
22116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22117 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22119 grep -v '^ *+' conftest.er1 >conftest.err
22121 cat conftest.err >&5
22122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22123 (exit $ac_status); } >/dev/null && {
22124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22125 test ! -s conftest.err
22127 ac_header_preproc=yes
22129 echo "$as_me: failed program was
:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22132 ac_header_preproc=no
22135 rm -f conftest.err conftest.$ac_ext
22136 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22137 echo "${ECHO_T}$ac_header_preproc" >&6; }
22139 # So? What about this header?
22140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22142 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22143 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22144 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22146 ac_header_preproc=yes
22149 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22150 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22151 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22152 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22153 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22154 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22155 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22156 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22157 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22159 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22160 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22164 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22165 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22166 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22167 echo $ECHO_N "(cached
) $ECHO_C" >&6
22169 eval "$as_ac_Header=\
$ac_header_preproc"
22171 ac_res=`eval echo '${'$as_ac_Header'}'`
22172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22173 echo "${ECHO_T}$ac_res" >&6; }
22176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22177 cat >>confdefs.h <<_ACEOF
22178 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22195 for ac_header in com_err.h
22197 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22199 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22200 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22201 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22202 echo $ECHO_N "(cached
) $ECHO_C" >&6
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22208 # Is the header compilable?
22209 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22210 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22217 $ac_includes_default
22218 #include <$ac_header>
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_compile") 2>conftest.er1
22229 grep -v '^ *+' conftest.er1 >conftest.err
22231 cat conftest.err >&5
22232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22233 (exit $ac_status); } && {
22234 test -z "$ac_c_werror_flag" ||
22235 test ! -s conftest.err
22236 } && test -s conftest.$ac_objext; then
22237 ac_header_compiler=yes
22239 echo "$as_me: failed program was
:" >&5
22240 sed 's/^/| /' conftest.$ac_ext >&5
22242 ac_header_compiler=no
22245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22246 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22247 echo "${ECHO_T}$ac_header_compiler" >&6; }
22249 # Is the header present?
22250 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22251 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22252 cat >conftest.$ac_ext <<_ACEOF
22255 cat confdefs.h >>conftest.$ac_ext
22256 cat >>conftest.$ac_ext <<_ACEOF
22257 /* end confdefs.h. */
22258 #include <$ac_header>
22260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22268 grep -v '^ *+' conftest.er1 >conftest.err
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22272 (exit $ac_status); } >/dev/null && {
22273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22276 ac_header_preproc=yes
22278 echo "$as_me: failed program was
:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22284 rm -f conftest.err conftest.$ac_ext
22285 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22286 echo "${ECHO_T}$ac_header_preproc" >&6; }
22288 # So? What about this header?
22289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22291 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22292 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22293 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22295 ac_header_preproc=yes
22298 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22299 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22300 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22301 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22302 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22303 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22304 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22305 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22306 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22308 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22309 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22313 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22314 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22315 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22316 echo $ECHO_N "(cached
) $ECHO_C" >&6
22318 eval "$as_ac_Header=\
$ac_header_preproc"
22320 ac_res=`eval echo '${'$as_ac_Header'}'`
22321 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22322 echo "${ECHO_T}$ac_res" >&6; }
22325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22326 cat >>confdefs.h <<_ACEOF
22327 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22336 # Solaris requires -lintl if you want strerror (which calls dgettext)
22337 # to return localized messages.
22339 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22340 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22341 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22342 echo $ECHO_N "(cached
) $ECHO_C" >&6
22344 ac_check_lib_save_LIBS=$LIBS
22345 LIBS="-lintl $LIBS"
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22353 /* Override any GCC internal prototype to avoid an error.
22354 Use char because int might match the return type of a GCC
22355 builtin and then its argument prototype would still apply. */
22363 return dgettext ();
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372 *) ac_try_echo=$ac_try;;
22374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22375 (eval "$ac_link") 2>conftest.er1
22377 grep -v '^ *+' conftest.er1 >conftest.err
22379 cat conftest.err >&5
22380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22381 (exit $ac_status); } && {
22382 test -z "$ac_c_werror_flag" ||
22383 test ! -s conftest.err
22384 } && test -s conftest$ac_exeext &&
22385 $as_test_x conftest$ac_exeext; then
22386 ac_cv_lib_intl_dgettext=yes
22388 echo "$as_me: failed program was
:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_cv_lib_intl_dgettext=no
22394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395 conftest$ac_exeext conftest.$ac_ext
22396 LIBS=$ac_check_lib_save_LIBS
22398 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22399 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22400 if test $ac_cv_lib_intl_dgettext = yes; then
22401 cat >>confdefs.h <<_ACEOF
22402 #define HAVE_LIBINTL 1
22405 LIBS="-lintl $LIBS"
22410 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22411 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22412 if test "${emacs_cv_localtime_cache+set}" = set; then
22413 echo $ECHO_N "(cached
) $ECHO_C" >&6
22415 if test x$ac_cv_func_tzset = xyes; then
22416 if test "$cross_compiling" = yes; then
22417 # If we have tzset, assume the worst when cross-compiling.
22418 emacs_cv_localtime_cache=yes
22420 cat >conftest.$ac_ext <<_ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22427 extern char **environ;
22431 for (to = from = environ; (*to = *from); from++)
22432 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22435 char TZ_GMT0[] = "TZ
=GMT0
";
22436 char TZ_PST8[] = "TZ
=PST8
";
22439 time_t now = time ((time_t *) 0);
22440 int hour_GMT0, hour_unset;
22441 if (putenv (TZ_GMT0) != 0)
22443 hour_GMT0 = localtime (&now)->tm_hour;
22445 hour_unset = localtime (&now)->tm_hour;
22446 if (putenv (TZ_PST8) != 0)
22448 if (localtime (&now)->tm_hour == hour_GMT0)
22451 if (localtime (&now)->tm_hour != hour_unset)
22456 rm -f conftest$ac_exeext
22457 if { (ac_try="$ac_link"
22458 case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_link") 2>&5
22465 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22466 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22467 { (case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_try") 2>&5
22474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22475 (exit $ac_status); }; }; then
22476 emacs_cv_localtime_cache=no
22478 echo "$as_me: program exited with status
$ac_status" >&5
22479 echo "$as_me: failed program was
:" >&5
22480 sed 's/^/| /' conftest.$ac_ext >&5
22482 ( exit $ac_status )
22483 emacs_cv_localtime_cache=yes
22485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22490 # If we lack tzset, report that localtime does not cache TZ,
22491 # since we can't invalidate the cache if we don't have tzset.
22492 emacs_cv_localtime_cache=no
22495 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22496 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22497 if test $emacs_cv_localtime_cache = yes; then
22499 cat >>confdefs.h <<\_ACEOF
22500 #define LOCALTIME_CACHE 1
22505 if test "x
$HAVE_TIMEVAL" = xyes; then
22507 for ac_func in gettimeofday
22509 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22510 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22511 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22512 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22513 echo $ECHO_N "(cached
) $ECHO_C" >&6
22515 cat >conftest.$ac_ext <<_ACEOF
22518 cat confdefs.h >>conftest.$ac_ext
22519 cat >>conftest.$ac_ext <<_ACEOF
22520 /* end confdefs.h. */
22521 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22523 #define $ac_func innocuous_$ac_func
22525 /* System header to define __stub macros and hopefully few prototypes,
22526 which can conflict with char $ac_func (); below.
22527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22528 <limits.h> exists even on freestanding compilers. */
22531 # include <limits.h>
22533 # include <assert.h>
22538 /* Override any GCC internal prototype to avoid an error.
22539 Use char because int might match the return type of a GCC
22540 builtin and then its argument prototype would still apply. */
22545 /* The GNU C library defines this for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548 #if defined __stub_$ac_func || defined __stub___$ac_func
22555 return $ac_func ();
22560 rm -f conftest.$ac_objext conftest$ac_exeext
22561 if { (ac_try="$ac_link"
22562 case "(($ac_try" in
22563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22564 *) ac_try_echo=$ac_try;;
22566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22567 (eval "$ac_link") 2>conftest.er1
22569 grep -v '^ *+' conftest.er1 >conftest.err
22571 cat conftest.err >&5
22572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22573 (exit $ac_status); } && {
22574 test -z "$ac_c_werror_flag" ||
22575 test ! -s conftest.err
22576 } && test -s conftest$ac_exeext &&
22577 $as_test_x conftest$ac_exeext; then
22578 eval "$as_ac_var=yes"
22580 echo "$as_me: failed program was
:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22583 eval "$as_ac_var=no
"
22586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22587 conftest$ac_exeext conftest.$ac_ext
22589 ac_res=`eval echo '${'$as_ac_var'}'`
22590 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22591 echo "${ECHO_T}$ac_res" >&6; }
22592 if test `eval echo '${'$as_ac_var'}'` = yes; then
22593 cat >>confdefs.h <<_ACEOF
22594 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22600 if test $ac_cv_func_gettimeofday = yes; then
22601 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22602 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22603 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22604 echo $ECHO_N "(cached
) $ECHO_C" >&6
22606 cat >conftest.$ac_ext <<_ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22613 #ifdef TIME_WITH_SYS_TIME
22614 #include <sys/time.h>
22617 #ifdef HAVE_SYS_TIME_H
22618 #include <sys/time.h>
22626 struct timeval time;
22627 gettimeofday (&time, 0);
22632 rm -f conftest.$ac_objext
22633 if { (ac_try="$ac_compile"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22641 grep -v '^ *+' conftest.er1 >conftest.err
22643 cat conftest.err >&5
22644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest.$ac_objext; then
22649 emacs_cv_gettimeofday_two_arguments=yes
22651 echo "$as_me: failed program was
:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22654 emacs_cv_gettimeofday_two_arguments=no
22657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22659 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22660 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22661 if test $emacs_cv_gettimeofday_two_arguments = no; then
22663 cat >>confdefs.h <<\_ACEOF
22664 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22672 { echo "$as_me:$LINENO: checking
for socket
" >&5
22673 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22674 if test "${ac_cv_func_socket+set}" = set; then
22675 echo $ECHO_N "(cached
) $ECHO_C" >&6
22677 cat >conftest.$ac_ext <<_ACEOF
22680 cat confdefs.h >>conftest.$ac_ext
22681 cat >>conftest.$ac_ext <<_ACEOF
22682 /* end confdefs.h. */
22683 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22685 #define socket innocuous_socket
22687 /* System header to define __stub macros and hopefully few prototypes,
22688 which can conflict with char socket (); below.
22689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22690 <limits.h> exists even on freestanding compilers. */
22693 # include <limits.h>
22695 # include <assert.h>
22700 /* Override any GCC internal prototype to avoid an error.
22701 Use char because int might match the return type of a GCC
22702 builtin and then its argument prototype would still apply. */
22707 /* The GNU C library defines this for functions which it implements
22708 to always fail with ENOSYS. Some functions are actually named
22709 something starting with __ and the normal name is an alias. */
22710 #if defined __stub_socket || defined __stub___socket
22722 rm -f conftest.$ac_objext conftest$ac_exeext
22723 if { (ac_try="$ac_link"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_link") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest$ac_exeext &&
22739 $as_test_x conftest$ac_exeext; then
22740 ac_cv_func_socket=yes
22742 echo "$as_me: failed program was
:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_cv_func_socket=no
22748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22749 conftest$ac_exeext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22752 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22753 if test $ac_cv_func_socket = yes; then
22759 if test $ok_so_far = yes; then
22760 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22761 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22762 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22763 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22764 echo $ECHO_N "(cached
) $ECHO_C" >&6
22766 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22767 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22769 # Is the header compilable?
22770 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22771 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 $ac_includes_default
22779 #include <netinet/in.h>
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22800 echo "$as_me: failed program was
:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_compiler=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22808 echo "${ECHO_T}$ac_header_compiler" >&6; }
22810 # Is the header present?
22811 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22812 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <netinet/in.h>
22821 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22827 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22829 grep -v '^ *+' conftest.er1 >conftest.err
22831 cat conftest.err >&5
22832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22833 (exit $ac_status); } >/dev/null && {
22834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22837 ac_header_preproc=yes
22839 echo "$as_me: failed program was
:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ac_header_preproc=no
22845 rm -f conftest.err conftest.$ac_ext
22846 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22847 echo "${ECHO_T}$ac_header_preproc" >&6; }
22849 # So? What about this header?
22850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22852 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22853 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22854 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22855 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22856 ac_header_preproc=yes
22859 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22860 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22861 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22862 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22863 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22864 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22865 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22866 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22867 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22868 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22869 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22870 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22874 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22875 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22876 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22877 echo $ECHO_N "(cached
) $ECHO_C" >&6
22879 ac_cv_header_netinet_in_h=$ac_header_preproc
22881 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22882 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22885 if test $ac_cv_header_netinet_in_h = yes; then
22893 if test $ok_so_far = yes; then
22894 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22895 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22896 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22897 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22898 echo $ECHO_N "(cached
) $ECHO_C" >&6
22900 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22901 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22903 # Is the header compilable?
22904 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22905 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 $ac_includes_default
22913 #include <arpa/inet.h>
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22934 echo "$as_me: failed program was
:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22946 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <arpa/inet.h>
22955 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22967 (exit $ac_status); } >/dev/null && {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22971 ac_header_preproc=yes
22973 echo "$as_me: failed program was
:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_preproc=no
22979 rm -f conftest.err conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22981 echo "${ECHO_T}$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22987 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22988 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22989 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22990 ac_header_preproc=yes
22993 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22994 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22995 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22996 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22997 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22998 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22999 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23000 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23001 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23002 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23003 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23004 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23008 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23009 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23010 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23011 echo $ECHO_N "(cached
) $ECHO_C" >&6
23013 ac_cv_header_arpa_inet_h=$ac_header_preproc
23015 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23016 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23019 if test $ac_cv_header_arpa_inet_h = yes; then
23027 if test $ok_so_far = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_INET_SOCKETS 1
23036 for ac_header in sys/ioctl.h
23038 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23039 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23040 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23041 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23043 echo $ECHO_N "(cached
) $ECHO_C" >&6
23045 ac_res=`eval echo '${'$as_ac_Header'}'`
23046 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23047 echo "${ECHO_T}$ac_res" >&6; }
23049 # Is the header compilable?
23050 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23051 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 $ac_includes_default
23059 #include <$ac_header>
23061 rm -f conftest.$ac_objext
23062 if { (ac_try="$ac_compile"
23063 case "(($ac_try" in
23064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23065 *) ac_try_echo=$ac_try;;
23067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23070 grep -v '^ *+' conftest.er1 >conftest.err
23072 cat conftest.err >&5
23073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 ac_header_compiler=yes
23080 echo "$as_me: failed program was
:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23083 ac_header_compiler=no
23086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23087 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23088 echo "${ECHO_T}$ac_header_compiler" >&6; }
23090 # Is the header present?
23091 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23092 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23093 cat >conftest.$ac_ext <<_ACEOF
23096 cat confdefs.h >>conftest.$ac_ext
23097 cat >>conftest.$ac_ext <<_ACEOF
23098 /* end confdefs.h. */
23099 #include <$ac_header>
23101 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23102 case "(($ac_try" in
23103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104 *) ac_try_echo=$ac_try;;
23106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23107 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23109 grep -v '^ *+' conftest.er1 >conftest.err
23111 cat conftest.err >&5
23112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23113 (exit $ac_status); } >/dev/null && {
23114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23115 test ! -s conftest.err
23117 ac_header_preproc=yes
23119 echo "$as_me: failed program was
:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23122 ac_header_preproc=no
23125 rm -f conftest.err conftest.$ac_ext
23126 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23127 echo "${ECHO_T}$ac_header_preproc" >&6; }
23129 # So? What about this header?
23130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23132 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23133 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23134 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23136 ac_header_preproc=yes
23139 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23140 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23141 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23142 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23143 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23144 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23145 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23146 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23147 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23149 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23150 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23157 echo $ECHO_N "(cached
) $ECHO_C" >&6
23159 eval "$as_ac_Header=\
$ac_header_preproc"
23161 ac_res=`eval echo '${'$as_ac_Header'}'`
23162 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23163 echo "${ECHO_T}$ac_res" >&6; }
23166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23176 if test -f /usr/lpp/X11/bin/smt.exp; then
23178 cat >>confdefs.h <<\_ACEOF
23179 #define HAVE_AIX_SMT_EXP 1
23184 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23185 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23186 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23187 { echo "$as_me:$LINENO: result
: yes" >&5
23188 echo "${ECHO_T}yes" >&6; }
23190 cat >>confdefs.h <<\_ACEOF
23191 #define HAVE_DEV_PTMX 1
23195 { echo "$as_me:$LINENO: result
: no
" >&5
23196 echo "${ECHO_T}no
" >&6; }
23199 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23200 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23201 if test "${ac_cv_type_pid_t+set}" = set; then
23202 echo $ECHO_N "(cached
) $ECHO_C" >&6
23204 cat >conftest.$ac_ext <<_ACEOF
23207 cat confdefs.h >>conftest.$ac_ext
23208 cat >>conftest.$ac_ext <<_ACEOF
23209 /* end confdefs.h. */
23210 $ac_includes_default
23211 typedef pid_t ac__type_new_;
23215 if ((ac__type_new_ *) 0)
23217 if (sizeof (ac__type_new_))
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227 *) ac_try_echo=$ac_try;;
23229 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23230 (eval "$ac_compile") 2>conftest.er1
23232 grep -v '^ *+' conftest.er1 >conftest.err
23234 cat conftest.err >&5
23235 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23236 (exit $ac_status); } && {
23237 test -z "$ac_c_werror_flag" ||
23238 test ! -s conftest.err
23239 } && test -s conftest.$ac_objext; then
23240 ac_cv_type_pid_t=yes
23242 echo "$as_me: failed program was
:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23245 ac_cv_type_pid_t=no
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23250 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23251 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23252 if test $ac_cv_type_pid_t = yes; then
23256 cat >>confdefs.h <<_ACEOF
23263 for ac_header in vfork.h
23265 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23267 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23268 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23270 echo $ECHO_N "(cached
) $ECHO_C" >&6
23272 ac_res=`eval echo '${'$as_ac_Header'}'`
23273 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23274 echo "${ECHO_T}$ac_res" >&6; }
23276 # Is the header compilable?
23277 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23278 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23279 cat >conftest.$ac_ext <<_ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h. */
23285 $ac_includes_default
23286 #include <$ac_header>
23288 rm -f conftest.$ac_objext
23289 if { (ac_try="$ac_compile"
23290 case "(($ac_try" in
23291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23292 *) ac_try_echo=$ac_try;;
23294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23295 (eval "$ac_compile") 2>conftest.er1
23297 grep -v '^ *+' conftest.er1 >conftest.err
23299 cat conftest.err >&5
23300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23301 (exit $ac_status); } && {
23302 test -z "$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 } && test -s conftest.$ac_objext; then
23305 ac_header_compiler=yes
23307 echo "$as_me: failed program was
:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23310 ac_header_compiler=no
23313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23314 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23315 echo "${ECHO_T}$ac_header_compiler" >&6; }
23317 # Is the header present?
23318 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23319 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23320 cat >conftest.$ac_ext <<_ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h. */
23326 #include <$ac_header>
23328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23329 case "(($ac_try" in
23330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23331 *) ac_try_echo=$ac_try;;
23333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23336 grep -v '^ *+' conftest.er1 >conftest.err
23338 cat conftest.err >&5
23339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23340 (exit $ac_status); } >/dev/null && {
23341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23342 test ! -s conftest.err
23344 ac_header_preproc=yes
23346 echo "$as_me: failed program was
:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_header_preproc=no
23352 rm -f conftest.err conftest.$ac_ext
23353 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23354 echo "${ECHO_T}$ac_header_preproc" >&6; }
23356 # So? What about this header?
23357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23359 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23360 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23361 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23363 ac_header_preproc=yes
23366 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23367 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23368 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23369 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23370 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23371 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23372 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23373 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23374 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23376 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23377 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23381 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23382 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23384 echo $ECHO_N "(cached
) $ECHO_C" >&6
23386 eval "$as_ac_Header=\
$ac_header_preproc"
23388 ac_res=`eval echo '${'$as_ac_Header'}'`
23389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23390 echo "${ECHO_T}$ac_res" >&6; }
23393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23394 cat >>confdefs.h <<_ACEOF
23395 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23404 for ac_func in fork vfork
23406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23410 echo $ECHO_N "(cached
) $ECHO_C" >&6
23412 cat >conftest.$ac_ext <<_ACEOF
23415 cat confdefs.h >>conftest.$ac_ext
23416 cat >>conftest.$ac_ext <<_ACEOF
23417 /* end confdefs.h. */
23418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23420 #define $ac_func innocuous_$ac_func
23422 /* System header to define __stub macros and hopefully few prototypes,
23423 which can conflict with char $ac_func (); below.
23424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23425 <limits.h> exists even on freestanding compilers. */
23428 # include <limits.h>
23430 # include <assert.h>
23435 /* Override any GCC internal prototype to avoid an error.
23436 Use char because int might match the return type of a GCC
23437 builtin and then its argument prototype would still apply. */
23442 /* The GNU C library defines this for functions which it implements
23443 to always fail with ENOSYS. Some functions are actually named
23444 something starting with __ and the normal name is an alias. */
23445 #if defined __stub_$ac_func || defined __stub___$ac_func
23452 return $ac_func ();
23457 rm -f conftest.$ac_objext 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>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest$ac_exeext &&
23474 $as_test_x conftest$ac_exeext; then
23475 eval "$as_ac_var=yes"
23477 echo "$as_me: failed program was
:" >&5
23478 sed 's/^/| /' conftest.$ac_ext >&5
23480 eval "$as_ac_var=no
"
23483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484 conftest$ac_exeext conftest.$ac_ext
23486 ac_res=`eval echo '${'$as_ac_var'}'`
23487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23488 echo "${ECHO_T}$ac_res" >&6; }
23489 if test `eval echo '${'$as_ac_var'}'` = yes; then
23490 cat >>confdefs.h <<_ACEOF
23491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23497 if test "x
$ac_cv_func_fork" = xyes; then
23498 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23499 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23500 if test "${ac_cv_func_fork_works+set}" = set; then
23501 echo $ECHO_N "(cached
) $ECHO_C" >&6
23503 if test "$cross_compiling" = yes; then
23504 ac_cv_func_fork_works=cross
23506 cat >conftest.$ac_ext <<_ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h. */
23512 $ac_includes_default
23517 /* By Ruediger Kuhlmann. */
23518 return fork () < 0;
23524 rm -f conftest$ac_exeext
23525 if { (ac_try="$ac_link"
23526 case "(($ac_try" in
23527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23528 *) ac_try_echo=$ac_try;;
23530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23531 (eval "$ac_link") 2>&5
23533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23535 { (case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_try") 2>&5
23542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23543 (exit $ac_status); }; }; then
23544 ac_cv_func_fork_works=yes
23546 echo "$as_me: program exited with status
$ac_status" >&5
23547 echo "$as_me: failed program was
:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23550 ( exit $ac_status )
23551 ac_cv_func_fork_works=no
23553 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23558 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23559 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23562 ac_cv_func_fork_works=$ac_cv_func_fork
23564 if test "x
$ac_cv_func_fork_works" = xcross; then
23566 *-*-amigaos* | *-*-msdosdjgpp*)
23567 # Override, as these systems have only a dummy fork() stub
23568 ac_cv_func_fork_works=no
23571 ac_cv_func_fork_works=yes
23574 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23575 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23577 ac_cv_func_vfork_works=$ac_cv_func_vfork
23578 if test "x
$ac_cv_func_vfork" = xyes; then
23579 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23580 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23581 if test "${ac_cv_func_vfork_works+set}" = set; then
23582 echo $ECHO_N "(cached
) $ECHO_C" >&6
23584 if test "$cross_compiling" = yes; then
23585 ac_cv_func_vfork_works=cross
23587 cat >conftest.$ac_ext <<_ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 /* Thanks to Paul Eggert for this test. */
23594 $ac_includes_default
23595 #include <sys/wait.h>
23596 #ifdef HAVE_VFORK_H
23597 # include <vfork.h>
23599 /* On some sparc systems, changes by the child to local and incoming
23600 argument registers are propagated back to the parent. The compiler
23601 is told about this with #include <vfork.h>, but some compilers
23602 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23603 static variable whose address is put into a register that is
23604 clobbered by the vfork. */
23607 sparc_address_test (int arg)
23609 sparc_address_test (arg) int arg;
23612 static pid_t child;
23630 pid_t parent = getpid ();
23633 sparc_address_test (0);
23638 /* Here is another test for sparc vfork register problems. This
23639 test uses lots of local variables, at least as many local
23640 variables as main has allocated so far including compiler
23641 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23642 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23643 reuse the register of parent for one of the local variables,
23644 since it will think that parent can't possibly be used any more
23645 in this routine. Assigning to the local variable will thus
23646 munge parent in the parent process. */
23648 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23649 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23650 /* Convince the compiler that p..p7 are live; otherwise, it might
23651 use the same hardware register for all 8 local variables. */
23652 if (p != p1 || p != p2 || p != p3 || p != p4
23653 || p != p5 || p != p6 || p != p7)
23656 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23657 from child file descriptors. If the child closes a descriptor
23658 before it execs or exits, this munges the parent's descriptor
23659 as well. Test for this by closing stdout in the child. */
23660 _exit(close(fileno(stdout)) != 0);
23665 while (wait(&status) != child)
23668 /* Was there some problem with vforking? */
23671 /* Did the child fail? (This shouldn't happen.) */
23674 /* Did the vfork/compiler bug occur? */
23675 || parent != getpid()
23677 /* Did the file descriptor bug occur? */
23678 || fstat(fileno(stdout), &st) != 0
23683 rm -f conftest$ac_exeext
23684 if { (ac_try="$ac_link"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_link") 2>&5
23692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23694 { (case "(($ac_try" in
23695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23696 *) ac_try_echo=$ac_try;;
23698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23699 (eval "$ac_try") 2>&5
23701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23702 (exit $ac_status); }; }; then
23703 ac_cv_func_vfork_works=yes
23705 echo "$as_me: program exited with status
$ac_status" >&5
23706 echo "$as_me: failed program was
:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23709 ( exit $ac_status )
23710 ac_cv_func_vfork_works=no
23712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23717 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23718 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23721 if test "x
$ac_cv_func_fork_works" = xcross; then
23722 ac_cv_func_vfork_works=$ac_cv_func_vfork
23723 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23724 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23727 if test "x
$ac_cv_func_vfork_works" = xyes; then
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_WORKING_VFORK 1
23735 cat >>confdefs.h <<\_ACEOF
23740 if test "x
$ac_cv_func_fork_works" = xyes; then
23742 cat >>confdefs.h <<\_ACEOF
23743 #define HAVE_WORKING_FORK 1
23749 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23750 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23751 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23752 echo $ECHO_N "(cached
) $ECHO_C" >&6
23754 cat >conftest.$ac_ext <<_ACEOF
23757 cat confdefs.h >>conftest.$ac_ext
23758 cat >>conftest.$ac_ext <<_ACEOF
23759 /* end confdefs.h. */
23760 #include <langinfo.h>
23764 char* cs = nl_langinfo(CODESET);
23769 rm -f conftest.$ac_objext conftest$ac_exeext
23770 if { (ac_try="$ac_link"
23771 case "(($ac_try" in
23772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773 *) ac_try_echo=$ac_try;;
23775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23776 (eval "$ac_link") 2>conftest.er1
23778 grep -v '^ *+' conftest.er1 >conftest.err
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23782 (exit $ac_status); } && {
23783 test -z "$ac_c_werror_flag" ||
23784 test ! -s conftest.err
23785 } && test -s conftest$ac_exeext &&
23786 $as_test_x conftest$ac_exeext; then
23787 emacs_cv_langinfo_codeset=yes
23789 echo "$as_me: failed program was
:" >&5
23790 sed 's/^/| /' conftest.$ac_ext >&5
23792 emacs_cv_langinfo_codeset=no
23795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23796 conftest$ac_exeext conftest.$ac_ext
23799 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23800 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23801 if test $emacs_cv_langinfo_codeset = yes; then
23803 cat >>confdefs.h <<\_ACEOF
23804 #define HAVE_LANGINFO_CODESET 1
23809 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23810 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23811 if test "${ac_cv_type_size_t+set}" = set; then
23812 echo $ECHO_N "(cached
) $ECHO_C" >&6
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 $ac_includes_default
23821 typedef size_t ac__type_new_;
23825 if ((ac__type_new_ *) 0)
23827 if (sizeof (ac__type_new_))
23833 rm -f conftest.$ac_objext
23834 if { (ac_try="$ac_compile"
23835 case "(($ac_try" in
23836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23837 *) ac_try_echo=$ac_try;;
23839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23840 (eval "$ac_compile") 2>conftest.er1
23842 grep -v '^ *+' conftest.er1 >conftest.err
23844 cat conftest.err >&5
23845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23846 (exit $ac_status); } && {
23847 test -z "$ac_c_werror_flag" ||
23848 test ! -s conftest.err
23849 } && test -s conftest.$ac_objext; then
23850 ac_cv_type_size_t=yes
23852 echo "$as_me: failed program was
:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23855 ac_cv_type_size_t=no
23858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23860 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23861 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23862 if test $ac_cv_type_size_t = yes; then
23864 cat >>confdefs.h <<_ACEOF
23865 #define HAVE_SIZE_T 1
23872 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23873 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23874 if test "${ac_cv_type_mbstate_t+set}" = set; then
23875 echo $ECHO_N "(cached
) $ECHO_C" >&6
23877 cat >conftest.$ac_ext <<_ACEOF
23880 cat confdefs.h >>conftest.$ac_ext
23881 cat >>conftest.$ac_ext <<_ACEOF
23882 /* end confdefs.h. */
23883 $ac_includes_default
23884 # include <wchar.h>
23888 mbstate_t x; return sizeof x;
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23902 grep -v '^ *+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_cv_type_mbstate_t=yes
23912 echo "$as_me: failed program was
:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_cv_type_mbstate_t=no
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23921 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23922 if test $ac_cv_type_mbstate_t = yes; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define HAVE_MBSTATE_T 1
23930 cat >>confdefs.h <<\_ACEOF
23931 #define mbstate_t int
23936 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23937 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23938 if test "${emacs_cv_c_restrict+set}" = set; then
23939 echo $ECHO_N "(cached
) $ECHO_C" >&6
23941 cat >conftest.$ac_ext <<_ACEOF
23944 cat confdefs.h >>conftest.$ac_ext
23945 cat >>conftest.$ac_ext <<_ACEOF
23946 /* end confdefs.h. */
23947 void fred (int *restrict x);
23956 rm -f conftest.$ac_objext
23957 if { (ac_try="$ac_compile"
23958 case "(($ac_try" in
23959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960 *) ac_try_echo=$ac_try;;
23962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_compile") 2>conftest.er1
23965 grep -v '^ *+' conftest.er1 >conftest.err
23967 cat conftest.err >&5
23968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest.$ac_objext; then
23973 emacs_cv_c_restrict=yes
23975 echo "$as_me: failed program was
:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 void fred (int *__restrict x);
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24002 grep -v '^ *+' conftest.er1 >conftest.err
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24006 (exit $ac_status); } && {
24007 test -z "$ac_c_werror_flag" ||
24008 test ! -s conftest.err
24009 } && test -s conftest.$ac_objext; then
24010 emacs_cv_c_restrict=__restrict
24012 echo "$as_me: failed program was
:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24015 emacs_cv_c_restrict=no
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24024 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24025 case "$emacs_cv_c_restrict" in
24026 yes) emacs_restrict=restrict;;
24027 no) emacs_restrict="";;
24028 *) emacs_restrict="$emacs_cv_c_restrict";;
24030 if test "$emacs_restrict" != __restrict; then
24032 cat >>confdefs.h <<_ACEOF
24033 #define __restrict $emacs_restrict
24038 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24039 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24040 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24041 echo $ECHO_N "(cached
) $ECHO_C" >&6
24043 cat >conftest.$ac_ext <<_ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h. */
24049 void fred (int x[__restrict]);
24058 rm -f conftest.$ac_objext
24059 if { (ac_try="$ac_compile"
24060 case "(($ac_try" in
24061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24062 *) ac_try_echo=$ac_try;;
24064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24065 (eval "$ac_compile") 2>conftest.er1
24067 grep -v '^ *+' conftest.er1 >conftest.err
24069 cat conftest.err >&5
24070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24071 (exit $ac_status); } && {
24072 test -z "$ac_c_werror_flag" ||
24073 test ! -s conftest.err
24074 } && test -s conftest.$ac_objext; then
24075 emacs_cv_c_restrict_arr=yes
24077 echo "$as_me: failed program was
:" >&5
24078 sed 's/^/| /' conftest.$ac_ext >&5
24080 emacs_cv_c_restrict_arr=no
24083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24086 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24087 if test "$emacs_cv_c_restrict_arr" = yes; then
24089 cat >>confdefs.h <<\_ACEOF
24090 #define __restrict_arr __restrict
24097 # Set up the CFLAGS for real compilation, so we can substitute it.
24098 CFLAGS="$REAL_CFLAGS"
24099 CPPFLAGS="$REAL_CPPFLAGS"
24101 #### Find out which version of Emacs this is.
24102 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24103 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24104 if test x"${version}" = x; then
24105 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24106 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24107 { (exit 1); exit 1; }; }
24110 ### Specify what sort of things we'll be editing into Makefile and config.h.
24111 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24155 cat >>confdefs.h <<_ACEOF
24156 #define EMACS_CONFIGURATION "${canonical}"
24160 cat >>confdefs.h <<_ACEOF
24161 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24165 cat >>confdefs.h <<_ACEOF
24166 #define config_machfile "${machfile}"
24170 cat >>confdefs.h <<_ACEOF
24171 #define config_opsysfile "${opsysfile}"
24175 cat >>confdefs.h <<_ACEOF
24176 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24180 cat >>confdefs.h <<_ACEOF
24181 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24185 cat >>confdefs.h <<_ACEOF
24186 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24190 cat >>confdefs.h <<_ACEOF
24191 #define UNEXEC_SRC ${UNEXEC_SRC}
24195 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24197 cat >>confdefs.h <<\_ACEOF
24198 #define HAVE_X_WINDOWS 1
24202 if test "${USE_X_TOOLKIT}" != "none
" ; then
24204 cat >>confdefs.h <<\_ACEOF
24205 #define USE_X_TOOLKIT 1
24208 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24210 cat >>confdefs.h <<\_ACEOF
24211 #define USE_LUCID 1
24214 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24216 cat >>confdefs.h <<\_ACEOF
24217 #define USE_MOTIF 1
24222 if test "${HAVE_X11}" = "yes" ; then
24224 cat >>confdefs.h <<\_ACEOF
24229 if test "${HAVE_MENUS}" = "yes" ; then
24231 cat >>confdefs.h <<\_ACEOF
24232 #define HAVE_MENUS 1
24236 if test "${GNU_MALLOC}" = "yes" ; then
24238 cat >>confdefs.h <<\_ACEOF
24239 #define GNU_MALLOC 1
24243 if test "${REL_ALLOC}" = "yes" ; then
24245 cat >>confdefs.h <<\_ACEOF
24246 #define REL_ALLOC 1
24256 #### Report on what we decided to do.
24257 #### Report GTK as a toolkit, even if it doesn't use Xt.
24258 #### It makes printing result more understandable as using GTK sets
24259 #### toolkit_scroll_bars to yes by default.
24260 if test "${HAVE_GTK}" = "yes"; then
24265 Configured
for \
`${canonical}'.
24267 Where should the build process find the source code? ${srcdir}
24268 What operating system and machine description files should Emacs use?
24269 \`${opsysfile}' and \`${machfile}'
24270 What compiler should emacs be built with?
${CC} ${CFLAGS}
24271 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24272 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24273 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24274 What window system should Emacs use?
${window_system}
24275 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24277 if test -n "${x_includes}"; then
24278 echo " Where
do we
find X Windows header files?
${x_includes}"
24280 echo " Where
do we
find X Windows header files? Standard
dirs"
24282 if test -n "${x_libraries}"; then
24283 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24285 echo " Where
do we
find X Windows libraries? Standard
dirs"
24288 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24289 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24290 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24291 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24292 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24293 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24294 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24295 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24296 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24298 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24299 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24300 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24301 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24303 echo " Does Emacs use toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24306 if test $USE_XASSERTS = yes; then
24307 echo " Compiling with asserts turned on.
"
24308 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24313 if test "$USE_X_TOOLKIT" = GTK; then
24314 case "$canonical" in
24316 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24317 will probably get a crash on startup. If this happens
, please use another
24318 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24323 if test "$HAVE_NS" = "yes"; then
24325 echo "You must run
\"make install\" in order to
test the built application.
24326 The installed application will go to nextstep
/Emacs.app and can be
24327 run or moved from there.
"
24328 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24329 echo "The application will be fully self-contained.
"
24331 echo "The lisp resources
for the application will be installed under
${prefix}.
24332 You may need to run
\"make install\" with sudo. The application will fail
24333 to run
if these resources are not installed.
"
24338 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24339 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24344 # Remove any trailing slashes in these variables.
24345 test "${prefix}" != NONE &&
24346 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24347 test "${exec_prefix}" != NONE &&
24348 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24350 # Now get this: Some word that is part of the ${srcdir} directory name
24351 # or the ${configuration} value might, just might, happen to be an
24352 # identifier like `sun4' or `i386' or something, and be predefined by
24353 # the C preprocessor to some helpful value like 1, or maybe the empty
24354 # string. Needless to say consequent macro substitutions are less
24355 # than conducive to the makefile finding the correct directory.
24356 cpp_undefs="`echo $srcdir $configuration $canonical |
24357 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24358 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24360 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24361 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24362 ## from Makefile.c can correctly provide the arg `-traditional' to the
24365 cat >conftest.$ac_ext <<_ACEOF
24368 cat confdefs.h >>conftest.$ac_ext
24369 cat >>conftest.$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24373 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24374 $EGREP "yes..
yes" >/dev/null 2>&1; then
24375 CPP_NEED_TRADITIONAL=no
24377 CPP_NEED_TRADITIONAL=yes
24382 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
"
24384 ac_config_commands="$ac_config_commands default
"
24386 cat >confcache <<\_ACEOF
24387 # This file is a shell script that caches the results of configure
24388 # tests run on this system so they can be shared between configure
24389 # scripts and configure runs, see configure's option --config-cache.
24390 # It is not useful on other systems. If it contains results you don't
24391 # want to keep, you may remove or edit it.
24393 # config.status only pays attention to the cache file if you give it
24394 # the --recheck option to rerun configure.
24396 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24397 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24398 # following values.
24402 # The following way of writing the cache mishandles newlines in values,
24403 # but we know of no workaround that is simple, portable, and efficient.
24404 # So, we kill variables containing newlines.
24405 # Ultrix sh set writes to stderr and can't be redirected directly,
24406 # and sets the high bit in the cache file unless we assign to the vars.
24408 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24409 eval ac_val=\$$ac_var
24413 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24414 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24417 _ | IFS | as_nl) ;; #(
24418 *) $as_unset $ac_var ;;
24424 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24425 *${as_nl}ac_space=\ *)
24426 # `set' does not quote correctly, so add quotes (double-quote
24427 # substitution turns \\\\ into \\, and sed turns \\ into \).
24430 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24433 # `set' quotes correctly as required by POSIX, so do not add quotes.
24434 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24443 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24445 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24447 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24448 if test -w "$cache_file"; then
24449 test "x
$cache_file" != "x
/dev
/null
" &&
24450 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24451 echo "$as_me: updating cache
$cache_file" >&6;}
24452 cat confcache >$cache_file
24454 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24455 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24460 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24461 # Let make expand exec_prefix.
24462 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24464 DEFS=-DHAVE_CONFIG_H
24468 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24469 # 1. Remove the extension, and $U if already installed.
24470 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24471 ac_i=`echo "$ac_i" | sed "$ac_script"`
24472 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24473 # will be set to the directory where LIBOBJS objects are built.
24474 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24475 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24477 LIBOBJS=$ac_libobjs
24479 LTLIBOBJS=$ac_ltlibobjs
24483 : ${CONFIG_STATUS=./config.status}
24484 ac_clean_files_save=$ac_clean_files
24485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24486 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24487 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24488 cat >$CONFIG_STATUS <<_ACEOF
24490 # Generated by $as_me.
24491 # Run this file to recreate the current configuration.
24492 # Compiler output produced by configure, useful for debugging
24493 # configure, is in config.log if it exists.
24496 ac_cs_recheck=false
24498 SHELL=\${CONFIG_SHELL-$SHELL}
24501 cat >>$CONFIG_STATUS <<\_ACEOF
24502 ## --------------------- ##
24503 ## M4sh Initialization. ##
24504 ## --------------------- ##
24506 # Be more Bourne compatible
24507 DUALCASE=1; export DUALCASE # for MKS sh
24508 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24511 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24512 # is contrary to our usage. Disable this feature.
24513 alias -g '${1+"$@"}'='"$@
"'
24514 setopt NO_GLOB_SUBST
24516 case `(set -o) 2>/dev/null` in
24517 *posix*) set -o posix ;;
24526 # Avoid depending upon Character Ranges.
24527 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24528 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24529 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24530 as_cr_digits='0123456789'
24531 as_cr_alnum=$as_cr_Letters$as_cr_digits
24533 # The user is always right.
24534 if test "${PATH_SEPARATOR+set}" != set; then
24535 echo "#! /bin/sh" >conf$$.sh
24536 echo "exit 0" >>conf$$.sh
24538 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24546 # Support unset when possible.
24547 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24555 # We need space, tab and new line, in precisely that order. Quoting is
24556 # there to prevent editors from complaining about space-tab.
24557 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24558 # splitting by setting IFS to empty value.)
24563 # Find who we are. Look in the path if we contain no directory separator.
24565 *[\\/]* ) as_myself
=$0 ;;
24566 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24567 for as_dir
in $PATH
24570 test -z "$as_dir" && as_dir
=.
24571 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24577 # We did not find ourselves, most probably we were run as `sh COMMAND'
24578 # in which case we are not to be found in the path.
24579 if test "x$as_myself" = x
; then
24582 if test ! -f "$as_myself"; then
24583 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24584 { (exit 1); exit 1; }
24587 # Work around bugs in pre-3.0 UWIN ksh.
24588 for as_var
in ENV MAIL MAILPATH
24589 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24597 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24598 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24599 LC_TELEPHONE LC_TIME
24601 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24602 eval $as_var=C
; export $as_var
24604 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24608 # Required to use basename.
24609 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24610 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24616 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24617 as_basename
=basename
24623 # Name of the executable.
24624 as_me
=`$as_basename -- "$0" ||
24625 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24626 X"$0" : 'X\(//\)$' \| \
24627 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24629 sed '/^.*\/\([^/][^/]*\)\/*$/{
24648 as_lineno_1
=$LINENO
24649 as_lineno_2
=$LINENO
24650 test "x$as_lineno_1" != "x$as_lineno_2" &&
24651 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24653 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24654 # uniformly replaced by the line number. The first 'sed' inserts a
24655 # line-number line after each line using $LINENO; the second 'sed'
24656 # does the real work. The second script uses 'N' to pair each
24657 # line-number line with the line containing $LINENO, and appends
24658 # trailing '-' during substitution so that $LINENO is not a special
24659 # case at line end.
24660 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24661 # scripts with optimization help from Paolo Bonzini. Blame Lee
24662 # E. McMahon (1931-1989) for sed's syntax. :-)
24674 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24677 ' >$as_me.lineno
&&
24678 chmod +x
"$as_me.lineno" ||
24679 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24680 { (exit 1); exit 1; }; }
24682 # Don't try to exec as it changes $[0], causing all sort of problems
24683 # (the dirname of $[0] is not the place where we might find the
24684 # original and so on. Autoconf is especially sensitive to this).
24685 .
"./$as_me.lineno"
24686 # Exit status is that of the last command.
24691 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24697 ECHO_C
= ECHO_N
= ECHO_T
=
24698 case `echo -n x` in
24700 case `echo 'x\c'` in
24701 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24708 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24709 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24715 rm -f conf$$ conf$$.exe conf$$.
file
24716 if test -d conf$$.dir
; then
24717 rm -f conf$$.dir
/conf$$.
file
24723 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24725 # ... but there are two gotchas:
24726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24728 # In both cases, we have to default to `cp -p'.
24729 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24731 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24736 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24737 rmdir conf$$.dir
2>/dev
/null
24739 if mkdir
-p .
2>/dev
/null
; then
24742 test -d .
/-p && rmdir .
/-p
24746 if test -x / >/dev
/null
2>&1; then
24747 as_test_x
='test -x'
24749 if ls -dL / >/dev
/null
2>&1; then
24756 if test -d "$1"; then
24762 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24763 ???[sx]*):;;*)false;;esac;fi
24767 as_executable_p
=$as_test_x
24769 # Sed expression to map a string onto a valid CPP name.
24770 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24772 # Sed expression to map a string onto a valid variable name.
24773 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24778 # Save the log message, to keep $[0] and so on meaningful, and to
24779 # report actual input values of CONFIG_FILES etc. instead of their
24780 # values after options handling.
24782 This file was extended by emacs $as_me 23.0.60, which was
24783 generated by GNU Autoconf 2.61. Invocation command line was
24785 CONFIG_FILES = $CONFIG_FILES
24786 CONFIG_HEADERS = $CONFIG_HEADERS
24787 CONFIG_LINKS = $CONFIG_LINKS
24788 CONFIG_COMMANDS = $CONFIG_COMMANDS
24791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24796 cat >>$CONFIG_STATUS <<_ACEOF
24797 # Files that config.status was made for.
24798 config_files="$ac_config_files"
24799 config_headers="$ac_config_headers"
24800 config_commands="$ac_config_commands"
24804 cat >>$CONFIG_STATUS <<\_ACEOF
24806 \`$as_me' instantiates files from templates according to the
24807 current configuration.
24809 Usage: $0 [OPTIONS] [FILE]...
24811 -h, --help print this help, then exit
24812 -V, --version print version number and configuration settings, then exit
24813 -q, --quiet do not print progress messages
24814 -d, --debug don't remove temporary files
24815 --recheck update $as_me by reconfiguring in the same conditions
24816 --file=FILE[:TEMPLATE]
24817 instantiate the configuration file FILE
24818 --header=FILE[:TEMPLATE]
24819 instantiate the configuration header FILE
24821 Configuration files:
24824 Configuration headers:
24827 Configuration commands:
24830 Report bugs to <bug-autoconf@gnu.org>."
24833 cat >>$CONFIG_STATUS <<_ACEOF
24835 emacs config.status 23.0.60
24836 configured by $0, generated by GNU Autoconf 2.61,
24837 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24839 Copyright (C) 2006 Free Software Foundation, Inc.
24840 This config.status script is free software; the Free Software Foundation
24841 gives unlimited permission to copy, distribute and modify it."
24848 cat >>$CONFIG_STATUS <<\_ACEOF
24849 # If no file are specified by the user, then we need to provide default
24850 # value. By we need to know if files were specified by the user.
24856 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24857 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24868 # Handling of the options.
24869 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24871 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24872 echo "$ac_cs_version"; exit ;;
24873 --debug |
--debu |
--deb |
--de |
--d |
-d )
24875 --file |
--fil |
--fi |
--f )
24877 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24878 ac_need_defaults
=false
;;
24879 --header |
--heade |
--head |
--hea )
24881 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24882 ac_need_defaults
=false
;;
24884 # Conflict between --help and --header
24885 { echo "$as_me: error: ambiguous option: $1
24886 Try \`$0 --help' for more information." >&2
24887 { (exit 1); exit 1; }; };;
24888 --help |
--hel |
-h )
24889 echo "$ac_cs_usage"; exit ;;
24890 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24891 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24894 # This is an error.
24895 -*) { echo "$as_me: error: unrecognized option: $1
24896 Try \`$0 --help' for more information." >&2
24897 { (exit 1); exit 1; }; } ;;
24899 *) ac_config_targets
="$ac_config_targets $1"
24900 ac_need_defaults
=false
;;
24906 ac_configure_extra_args
=
24908 if $ac_cs_silent; then
24910 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24914 cat >>$CONFIG_STATUS <<_ACEOF
24915 if \$ac_cs_recheck; then
24916 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24917 CONFIG_SHELL=$SHELL
24918 export CONFIG_SHELL
24919 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24928 ## Running $as_me. ##
24934 cat >>$CONFIG_STATUS <<_ACEOF
24938 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24942 cat >>$CONFIG_STATUS <<\_ACEOF
24944 # Handling of arguments.
24945 for ac_config_target
in $ac_config_targets
24947 case $ac_config_target in
24948 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24949 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24950 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24951 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24952 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24953 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24954 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24955 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24956 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24957 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24958 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24959 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24960 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24962 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24964 { (exit 1); exit 1; }; };;
24969 # If the user did not use the arguments to specify the items to instantiate,
24970 # then the envvar interface is used. Set only those that are not.
24971 # We use the long form for the default assignment because of an extremely
24972 # bizarre bug on SunOS 4.1.3.
24973 if $ac_need_defaults; then
24974 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24975 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24976 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24979 # Have a temporary directory for convenience. Make it in the build tree
24980 # simply because there is no reason against having it here, and in addition,
24981 # creating and moving files from /tmp can sometimes cause problems.
24982 # Hook for its removal unless debugging.
24983 # Note that there is a small window in which the directory will not be cleaned:
24984 # after its creation but before its name has been assigned to `$tmp'.
24988 trap 'exit_status=$?
24989 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24991 trap '{ (exit 1); exit 1; }' 1 2 13 15
24993 # Create a (secure) tmp directory for tmp files.
24996 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24997 test -n "$tmp" && test -d "$tmp"
25000 tmp
=.
/conf$$
-$RANDOM
25001 (umask 077 && mkdir
"$tmp")
25004 echo "$me: cannot create a temporary directory in ." >&2
25005 { (exit 1); exit 1; }
25009 # Set up the sed scripts for CONFIG_FILES section.
25012 # No need to generate the scripts if there are no CONFIG_FILES.
25013 # This happens for instance when ./config.status config.h
25014 if test -n "$CONFIG_FILES"; then
25021 for ac_last_try
in false false false false false
:; do
25022 cat >conf$
$subs.
sed <<_ACEOF
25023 SHELL!$SHELL$ac_delim
25024 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25025 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25026 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25027 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25028 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25029 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25030 exec_prefix!$exec_prefix$ac_delim
25031 prefix!$prefix$ac_delim
25032 program_transform_name!$program_transform_name$ac_delim
25033 bindir!$bindir$ac_delim
25034 sbindir!$sbindir$ac_delim
25035 libexecdir!$libexecdir$ac_delim
25036 datarootdir!$datarootdir$ac_delim
25037 datadir!$datadir$ac_delim
25038 sysconfdir!$sysconfdir$ac_delim
25039 sharedstatedir!$sharedstatedir$ac_delim
25040 localstatedir!$localstatedir$ac_delim
25041 includedir!$includedir$ac_delim
25042 oldincludedir!$oldincludedir$ac_delim
25043 docdir!$docdir$ac_delim
25044 infodir!$infodir$ac_delim
25045 htmldir!$htmldir$ac_delim
25046 dvidir!$dvidir$ac_delim
25047 pdfdir!$pdfdir$ac_delim
25048 psdir!$psdir$ac_delim
25049 libdir!$libdir$ac_delim
25050 localedir!$localedir$ac_delim
25051 mandir!$mandir$ac_delim
25052 DEFS!$DEFS$ac_delim
25053 ECHO_C!$ECHO_C$ac_delim
25054 ECHO_N!$ECHO_N$ac_delim
25055 ECHO_T!$ECHO_T$ac_delim
25056 LIBS!$LIBS$ac_delim
25057 build_alias!$build_alias$ac_delim
25058 host_alias!$host_alias$ac_delim
25059 target_alias!$target_alias$ac_delim
25060 MAINT!$MAINT$ac_delim
25061 build!$build$ac_delim
25062 build_cpu!$build_cpu$ac_delim
25063 build_vendor!$build_vendor$ac_delim
25064 build_os!$build_os$ac_delim
25065 host!$host$ac_delim
25066 host_cpu!$host_cpu$ac_delim
25067 host_vendor!$host_vendor$ac_delim
25068 host_os!$host_os$ac_delim
25070 CFLAGS!$CFLAGS$ac_delim
25071 LDFLAGS!$LDFLAGS$ac_delim
25072 CPPFLAGS!$CPPFLAGS$ac_delim
25073 ac_ct_CC!$ac_ct_CC$ac_delim
25074 EXEEXT!$EXEEXT$ac_delim
25075 OBJEXT!$OBJEXT$ac_delim
25077 GREP!$GREP$ac_delim
25078 EGREP!$EGREP$ac_delim
25079 LN_S!$LN_S$ac_delim
25080 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25081 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25082 INSTALL_DATA!$INSTALL_DATA$ac_delim
25083 RANLIB!$RANLIB$ac_delim
25084 INSTALL_INFO!$INSTALL_INFO$ac_delim
25085 GZIP_PROG!$GZIP_PROG$ac_delim
25086 MAKEINFO!$MAKEINFO$ac_delim
25087 LIBSOUND!$LIBSOUND$ac_delim
25088 PKG_CONFIG!$PKG_CONFIG$ac_delim
25089 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25090 ALSA_LIBS!$ALSA_LIBS$ac_delim
25091 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25092 SET_MAKE!$SET_MAKE$ac_delim
25093 XMKMF!$XMKMF$ac_delim
25094 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25095 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25096 RSVG_LIBS!$RSVG_LIBS$ac_delim
25097 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25098 GTK_LIBS!$GTK_LIBS$ac_delim
25099 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25100 DBUS_LIBS!$DBUS_LIBS$ac_delim
25101 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25102 XFT_LIBS!$XFT_LIBS$ac_delim
25103 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25104 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25105 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25106 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25107 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25108 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25109 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25110 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25111 ALLOCA!$ALLOCA$ac_delim
25112 liblockfile!$liblockfile$ac_delim
25113 LIBOBJS!$LIBOBJS$ac_delim
25114 NEED_SETGID!$NEED_SETGID$ac_delim
25115 KMEM_GROUP!$KMEM_GROUP$ac_delim
25116 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25117 GETOPT_H!$GETOPT_H$ac_delim
25118 GETOPTOBJS!$GETOPTOBJS$ac_delim
25119 version!$version$ac_delim
25122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25124 elif $ac_last_try; then
25125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25127 { (exit 1); exit 1; }; }
25129 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25133 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25134 if test -n "$ac_eof"; then
25135 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25136 ac_eof
=`expr $ac_eof + 1`
25139 cat >>$CONFIG_STATUS <<_ACEOF
25140 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25145 s/^/s,@/; s/!/@,|#_!!_#|/
25148 s/'"$ac_delim"'$/,g/; t
25150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25151 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25152 rm -f conf$
$subs.
sed
25153 cat >>$CONFIG_STATUS <<_ACEOF
25159 for ac_last_try
in false false false false false
:; do
25160 cat >conf$
$subs.
sed <<_ACEOF
25161 configuration!$configuration$ac_delim
25162 canonical!$canonical$ac_delim
25163 srcdir!$srcdir$ac_delim
25164 lispdir!$lispdir$ac_delim
25165 locallisppath!$locallisppath$ac_delim
25166 lisppath!$lisppath$ac_delim
25167 x_default_search_path!$x_default_search_path$ac_delim
25168 etcdir!$etcdir$ac_delim
25169 archlibdir!$archlibdir$ac_delim
25170 bitmapdir!$bitmapdir$ac_delim
25171 gamedir!$gamedir$ac_delim
25172 gameuser!$gameuser$ac_delim
25173 c_switch_system!$c_switch_system$ac_delim
25174 c_switch_machine!$c_switch_machine$ac_delim
25175 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25176 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25177 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25178 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25179 machfile!$machfile$ac_delim
25180 opsysfile!$opsysfile$ac_delim
25181 ns_appdir!$ns_appdir$ac_delim
25182 ns_appbindir!$ns_appbindir$ac_delim
25183 ns_appresdir!$ns_appresdir$ac_delim
25184 ns_appsrc!$ns_appsrc$ac_delim
25185 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25186 GNUSTEP_SYSTEM_HEADERS!$GNUSTEP_SYSTEM_HEADERS$ac_delim
25187 GNUSTEP_SYSTEM_LIBRARIES!$GNUSTEP_SYSTEM_LIBRARIES$ac_delim
25188 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25189 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25190 LTLIBOBJS!$LTLIBOBJS$ac_delim
25193 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
25195 elif $ac_last_try; then
25196 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25197 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25198 { (exit 1); exit 1; }; }
25200 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25204 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25205 if test -n "$ac_eof"; then
25206 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25207 ac_eof
=`expr $ac_eof + 1`
25210 cat >>$CONFIG_STATUS <<_ACEOF
25211 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25212 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25215 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25216 s/^/s,@/; s/!/@,|#_!!_#|/
25219 s/'"$ac_delim"'$/,g/; t
25221 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25222 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25223 rm -f conf$
$subs.
sed
25224 cat >>$CONFIG_STATUS <<_ACEOF
25231 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25232 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25233 # trailing colons and then remove the whole line if VPATH becomes empty
25234 # (actually we leave an empty line to preserve line numbers).
25235 if test "x$srcdir" = x.
; then
25236 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25237 s/:*\$(srcdir):*/:/
25238 s/:*\${srcdir}:*/:/
25240 s/^\([^=]*=[ ]*\):*/\1/
25246 cat >>$CONFIG_STATUS <<\_ACEOF
25247 fi # test -n "$CONFIG_FILES"
25250 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25253 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25255 case $ac_mode$ac_tag in
25257 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25258 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25259 { (exit 1); exit 1; }; };;
25260 :[FH
]-) ac_tag
=-:-;;
25261 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25278 -) ac_f
="$tmp/stdin";;
25279 *) # Look for the file first in the build tree, then in the source tree
25280 # (if the path is not absolute). The absolute path cannot be DOS-style,
25281 # because $ac_f cannot contain `:'.
25285 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25287 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25288 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25289 { (exit 1); exit 1; }; };;
25291 ac_file_inputs
="$ac_file_inputs $ac_f"
25294 # Let's still pretend it is `configure' which instantiates (i.e., don't
25295 # use $as_me), people would be surprised to read:
25296 # /* config.h. Generated by config.status. */
25297 configure_input
="Generated from "`IFS=:
25298 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25299 if test x
"$ac_file" != x-
; then
25300 configure_input
="$ac_file. $configure_input"
25301 { echo "$as_me:$LINENO: creating $ac_file" >&5
25302 echo "$as_me: creating $ac_file" >&6;}
25306 *:-:* |
*:-) cat >"$tmp/stdin";;
25311 ac_dir
=`$as_dirname -- "$ac_file" ||
25312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25313 X"$ac_file" : 'X\(//\)[^/]' \| \
25314 X"$ac_file" : 'X\(//\)$' \| \
25315 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25321 /^X\(\/\/\)[^/].*/{
25336 -*) as_dir
=.
/$as_dir;;
25338 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25342 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25343 *) as_qdir
=$as_dir;;
25345 as_dirs
="'$as_qdir' $as_dirs"
25346 as_dir
=`$as_dirname -- "$as_dir" ||
25347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25348 X"$as_dir" : 'X\(//\)[^/]' \| \
25349 X"$as_dir" : 'X\(//\)$' \| \
25350 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25356 /^X\(\/\/\)[^/].*/{
25369 test -d "$as_dir" && break
25371 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25372 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25373 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25374 { (exit 1); exit 1; }; }; }
25378 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25380 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25381 # A ".." for each directory in $ac_dir_suffix.
25382 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25383 case $ac_top_builddir_sub in
25384 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25385 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25388 ac_abs_top_builddir
=$ac_pwd
25389 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25390 # for backward compatibility:
25391 ac_top_builddir
=$ac_top_build_prefix
25394 .
) # We are building in place.
25396 ac_top_srcdir
=$ac_top_builddir_sub
25397 ac_abs_top_srcdir
=$ac_pwd ;;
25398 [\\/]* | ?
:[\\/]* ) # Absolute name.
25399 ac_srcdir
=$srcdir$ac_dir_suffix;
25400 ac_top_srcdir
=$srcdir
25401 ac_abs_top_srcdir
=$srcdir ;;
25402 *) # Relative name.
25403 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25404 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25405 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25407 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25417 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25418 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25422 cat >>$CONFIG_STATUS <<\_ACEOF
25423 # If the template does not know about datarootdir, expand it.
25424 # FIXME: This hack should be removed a few years after 2.60.
25425 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25427 case `sed -n '/datarootdir/ {
25436 ' $ac_file_inputs` in
25437 *datarootdir
*) ac_datarootdir_seen
=yes;;
25438 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25439 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25440 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25442 cat >>$CONFIG_STATUS <<_ACEOF
25443 ac_datarootdir_hack='
25444 s&@datadir@&$datadir&g
25445 s&@docdir@&$docdir&g
25446 s&@infodir@&$infodir&g
25447 s&@localedir@&$localedir&g
25448 s&@mandir@&$mandir&g
25449 s&\\\${datarootdir}&$datarootdir&g' ;;
25453 # Neutralize VPATH when `$srcdir' = `.'.
25454 # Shell code in configure.ac might set extrasub.
25455 # FIXME: do we really want to maintain this feature?
25456 cat >>$CONFIG_STATUS <<_ACEOF
25460 cat >>$CONFIG_STATUS <<\_ACEOF
25462 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25463 s
&@configure_input@
&$configure_input&;t t
25464 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25465 s
&@srcdir@
&$ac_srcdir&;t t
25466 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25467 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25468 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25469 s
&@builddir@
&$ac_builddir&;t t
25470 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25471 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25472 s
&@INSTALL@
&$ac_INSTALL&;t t
25473 $ac_datarootdir_hack
25474 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25479 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25480 which seems to be undefined. Please make sure it is defined." >&5
25481 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25482 which seems to be undefined. Please make sure it is defined." >&2;}
25486 -) cat "$tmp/out"; rm -f "$tmp/out";;
25487 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25496 # Transform confdefs.h into a sed script `conftest.defines', that
25497 # substitutes the proper values into config.h.in to produce config.h.
25498 rm -f conftest.defines conftest.
tail
25499 # First, append a space to every undef/define line, to ease matching.
25500 echo 's/$/ /' >conftest.defines
25501 # Then, protect against being on the right side of a sed subst, or in
25502 # an unquoted here document, in config.status. If some macros were
25503 # called several times there might be several #defines for the same
25504 # symbol, which is useless. But do not sort them, since the last
25505 # AC_DEFINE must be honored.
25506 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25507 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25508 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25509 # PARAMS is the parameter list in the macro definition--in most cases, it's
25510 # just an empty string.
25511 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25512 ac_dB
='\\)[ (].*,\\1define\\2'
25520 s/^[ ]*#[ ]*define[ ][ ]*//
25525 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25526 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25527 ' >>conftest.defines
25529 # Remove the space that was appended to ease matching.
25530 # Then replace #undef with comments. This is necessary, for
25531 # example, in the case of _POSIX_SOURCE, which is predefined and required
25532 # on some systems where configure will not decide to define it.
25533 # (The regexp can be short, since the line contains either #define or #undef.)
25535 s,^[ #]*u.*,/* & */,' >>conftest.defines
25537 # Break up conftest.defines:
25538 ac_max_sed_lines
=50
25540 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25541 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25542 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25544 ac_in
='$ac_file_inputs'
25545 ac_out
='"$tmp/out1"'
25546 ac_nxt
='"$tmp/out2"'
25550 # Write a here document:
25551 cat >>$CONFIG_STATUS <<_ACEOF
25552 # First, check the format of the line:
25553 cat >"\$tmp/defines.sed" <<\\CEOF
25554 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25555 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25559 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25561 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25562 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25563 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25564 grep . conftest.
tail >/dev
/null ||
break
25565 rm -f conftest.defines
25566 mv conftest.
tail conftest.defines
25568 rm -f conftest.defines conftest.
tail
25570 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25571 cat >>$CONFIG_STATUS <<\_ACEOF
25572 if test x
"$ac_file" != x-
; then
25573 echo "/* $configure_input */" >"$tmp/config.h"
25574 cat "$ac_result" >>"$tmp/config.h"
25575 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25576 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25577 echo "$as_me: $ac_file is unchanged" >&6;}
25580 mv "$tmp/config.h" $ac_file
25583 echo "/* $configure_input */"
25589 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25590 echo "$as_me: executing $ac_file commands" >&6;}
25595 case $ac_file$ac_mode in
25598 ### Make the necessary directories, if they don't exist.
25599 for dir
in etc lisp
; do
25600 test -d ${dir} || mkdir
${dir}
25603 # Build src/Makefile from ${srcdir}/src/Makefile.c
25604 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25605 # This must be done after src/config.h is built, since we rely on that file.
25607 echo creating src
/epaths.h
25608 ${MAKE-make} epaths-force
25610 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25611 # `..' to `. .' unless invoked with -traditional
25613 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25614 CPPFLAGS
="$CPPFLAGS -traditional"
25617 echo creating lib-src
/Makefile
25619 rm -f junk.c junk1.c junk2.c
25620 sed -e '/start of cpp stuff/q' \
25621 < Makefile.c
> junk1.c
25622 sed -e '1,/start of cpp stuff/d'\
25623 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25624 < Makefile.c
> junk.c
25625 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25626 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25627 cat junk1.c junk2.c
> Makefile.new
25628 rm -f junk.c junk1.c junk2.c
25629 chmod 444 Makefile.new
25630 mv -f Makefile.new Makefile
25633 echo creating src
/Makefile
25635 rm -f junk.c junk1.c junk2.c
25636 sed -e '/start of cpp stuff/q' \
25637 < Makefile.c
> junk1.c
25638 sed -e '1,/start of cpp stuff/d'\
25639 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25640 < Makefile.c
> junk.c
25641 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25642 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25643 cat junk1.c junk2.c
> Makefile.new
25644 rm -f junk.c junk1.c junk2.c
25645 chmod 444 Makefile.new
25646 mv -f Makefile.new Makefile
25649 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25650 echo creating src
/.gdbinit
25651 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25660 { (exit 0); exit 0; }
25662 chmod +x
$CONFIG_STATUS
25663 ac_clean_files
=$ac_clean_files_save
25666 # configure is writing to config.log, and then calls config.status.
25667 # config.status does its own redirection, appending to config.log.
25668 # Unfortunately, on DOS this fails, as config.log is still kept open
25669 # by configure, so config.status won't be able to write to it; its
25670 # output is simply discarded. So we exec the FD to /dev/null,
25671 # effectively closing config.log, so it can be properly (re)opened and
25672 # appended to by config.status. When coming back to configure, we
25673 # need to make the FD available again.
25674 if test "$no_create" != yes; then
25676 ac_config_status_args
=
25677 test "$silent" = yes &&
25678 ac_config_status_args
="$ac_config_status_args --quiet"
25680 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25682 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25683 # would make configure fail if this is the last instruction.
25684 $ac_cs_success ||
{ (exit 1); exit 1; }