2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
743 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
825 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
828 -build |
--build |
--buil |
--bui |
--bu)
829 ac_prev
=build_alias
;;
830 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
831 build_alias
=$ac_optarg ;;
833 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
834 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
835 ac_prev
=cache_file
;;
836 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
837 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
838 cache_file
=$ac_optarg ;;
841 cache_file
=config.cache
;;
843 -datadir |
--datadir |
--datadi |
--datad)
845 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
846 datadir
=$ac_optarg ;;
848 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
849 |
--dataroo |
--dataro |
--datar)
850 ac_prev
=datarootdir
;;
851 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
852 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
853 datarootdir
=$ac_optarg ;;
855 -disable-* |
--disable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=no
;;
864 -docdir |
--docdir |
--docdi |
--doc |
--do)
866 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
869 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
871 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
874 -enable-* |
--enable-*)
875 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_
$ac_feature=\
$ac_optarg ;;
883 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
884 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
885 |
--exec |
--exe |
--ex)
886 ac_prev
=exec_prefix
;;
887 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
888 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
889 |
--exec=* |
--exe=* |
--ex=*)
890 exec_prefix
=$ac_optarg ;;
892 -gas |
--gas |
--ga |
--g)
893 # Obsolete; use --with-gas.
896 -help |
--help |
--hel |
--he |
-h)
898 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
899 ac_init_help
=recursive
;;
900 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
901 ac_init_help
=short
;;
903 -host |
--host |
--hos |
--ho)
904 ac_prev
=host_alias
;;
905 -host=* |
--host=* |
--hos=* |
--ho=*)
906 host_alias
=$ac_optarg ;;
908 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
910 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
912 htmldir
=$ac_optarg ;;
914 -includedir |
--includedir |
--includedi |
--included |
--include \
915 |
--includ |
--inclu |
--incl |
--inc)
916 ac_prev
=includedir
;;
917 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
918 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
919 includedir
=$ac_optarg ;;
921 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
923 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
924 infodir
=$ac_optarg ;;
926 -libdir |
--libdir |
--libdi |
--libd)
928 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
931 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
932 |
--libexe |
--libex |
--libe)
933 ac_prev
=libexecdir
;;
934 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
935 |
--libexe=* |
--libex=* |
--libe=*)
936 libexecdir
=$ac_optarg ;;
938 -localedir |
--localedir |
--localedi |
--localed |
--locale)
940 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
941 localedir
=$ac_optarg ;;
943 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
944 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
945 ac_prev
=localstatedir
;;
946 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
947 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
948 localstatedir
=$ac_optarg ;;
950 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
952 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
956 # Obsolete; use --without-fp.
959 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
960 |
--no-cr |
--no-c |
-n)
963 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
964 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
967 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
968 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
969 |
--oldin |
--oldi |
--old |
--ol |
--o)
970 ac_prev
=oldincludedir
;;
971 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
972 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
973 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
974 oldincludedir
=$ac_optarg ;;
976 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
978 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
981 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
982 |
--program-pre |
--program-pr |
--program-p)
983 ac_prev
=program_prefix
;;
984 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
985 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
986 program_prefix
=$ac_optarg ;;
988 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
989 |
--program-suf |
--program-su |
--program-s)
990 ac_prev
=program_suffix
;;
991 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
992 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
993 program_suffix
=$ac_optarg ;;
995 -program-transform-name |
--program-transform-name \
996 |
--program-transform-nam |
--program-transform-na \
997 |
--program-transform-n |
--program-transform- \
998 |
--program-transform |
--program-transfor \
999 |
--program-transfo |
--program-transf \
1000 |
--program-trans |
--program-tran \
1001 |
--progr-tra |
--program-tr |
--program-t)
1002 ac_prev
=program_transform_name
;;
1003 -program-transform-name=* |
--program-transform-name=* \
1004 |
--program-transform-nam=* |
--program-transform-na=* \
1005 |
--program-transform-n=* |
--program-transform-=* \
1006 |
--program-transform=* |
--program-transfor=* \
1007 |
--program-transfo=* |
--program-transf=* \
1008 |
--program-trans=* |
--program-tran=* \
1009 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1010 program_transform_name
=$ac_optarg ;;
1012 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1014 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1015 pdfdir
=$ac_optarg ;;
1017 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1019 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1023 |
-silent |
--silent |
--silen |
--sile |
--sil)
1026 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1028 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1030 sbindir
=$ac_optarg ;;
1032 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1033 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1034 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1036 ac_prev
=sharedstatedir
;;
1037 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1038 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1039 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1041 sharedstatedir
=$ac_optarg ;;
1043 -site |
--site |
--sit)
1045 -site=* |
--site=* |
--sit=*)
1048 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1050 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1051 srcdir
=$ac_optarg ;;
1053 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1054 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1055 ac_prev
=sysconfdir
;;
1056 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1057 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1058 sysconfdir
=$ac_optarg ;;
1060 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1061 ac_prev
=target_alias
;;
1062 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1063 target_alias
=$ac_optarg ;;
1065 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1068 -version |
--version |
--versio |
--versi |
--vers |
-V)
1069 ac_init_version
=: ;;
1072 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_
$ac_package=\
$ac_optarg ;;
1080 -without-* |
--without-*)
1081 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_
$ac_package=no
;;
1090 # Obsolete; use --with-x.
1093 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1094 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1095 ac_prev
=x_includes
;;
1096 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1097 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1098 x_includes
=$ac_optarg ;;
1100 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1101 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1102 ac_prev
=x_libraries
;;
1103 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1104 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1105 x_libraries
=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1113 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\
$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1146 [\\/$
]* | ?
:[\\/]* ) continue;;
1147 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target
=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x
; then
1162 if test "x$build_alias" = x
; then
1163 cross_compiling
=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1174 test "$silent" = yes && exec 6>/dev
/null
1177 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di
=`ls -di .` &&
1179 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted
=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir
=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1219 ac_srcdir_defaulted
=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1239 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 for ac_var
in $ac_precious_vars; do
1242 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1244 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1318 --x-includes=DIR X include files are
in DIR
1319 --x-libraries=DIR X library files are
in DIR
1322 --build=BUILD configure
for building on BUILD
[guessed
]
1323 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1337 --disable-ns-self-contained disable self contained build under NS
1338 --enable-asserts compile code with asserts enabled
1339 --enable-maintainer-mode
1340 enable make rules and dependencies not useful
(and
1341 sometimes confusing
) to the casual installer
1342 --enable-locallisppath=PATH
1343 directories Emacs should search
for lisp files
1344 specific to this site
1345 --disable-largefile omit support
for large files
1348 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1349 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1350 --without-pop don
't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --without-sync-input Process async input synchronously
1356 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1358 --without-xpm don
't compile with XPM image support
1359 --without-jpeg don't compile with JPEG image support
1360 --without-tiff don
't compile with TIFF image support
1361 --without-gif don't compile with GIF image support
1362 --without-png don
't compile with PNG image support
1363 --without-rsvg don't compile with SVG image support
1364 --without-freetype don
't use Freetype for local font support
1365 --without-xft don't use XFT
for anti aliased fonts
1366 --without-libotf don
't use libotf for OpenType font support
1367 --without-m17n-flt don't use m17n-flt
for text shaping
1368 --without-toolkit-scroll-bars
1369 don
't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don
't use X11 XIM
1372 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1373 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1375 --without-dbus don
't compile with D-Bus support
1376 --without-makeinfo don't require makeinfo
for building manuals
1378 --with-pkg-config-prog=PATH
1379 Path to pkg-config
for finding GTK and librsvg
1380 --with-x use the X Window System
1382 Some influential environment variables
:
1383 CC C compiler
command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1386 nonstandard directory
<lib dir
>
1387 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1388 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1389 you have headers
in a nonstandard directory
<include dir
>
1391 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1393 Use these variables to override the choices made by
`configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1423 .) # We are building in place.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1456 emacs configure 23.0.60
1457 generated by GNU Autoconf 2.61
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1470 It was created by emacs $as_me 23.0.60, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1483 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1484 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1485 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1486 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1487 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1490 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1492 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1493 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1494 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1496 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1498 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_must_keep_next=false
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1542 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 -* ) ac_must_keep_next=true ;;
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1587 # The following way of writing the cache mishandles newlines in values,
1589 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1590 eval ac_val=\$$ac_var
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1604 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1628 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 echo "$ac_var='\''$ac_val'\''"
1634 if test -n "$ac_subst_files"; then
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1645 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 echo "$ac_var='\''$ac_val'\''"
1652 if test -s confdefs.h; then
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1743 ac_header_list="$ac_header_list sys/time.h"
1744 ac_header_list="$ac_header_list unistd.h"
1745 ac_func_list="$ac_func_list alarm"
1746 # Check that the precious variables saved in the cache have kept the same
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1757 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1761 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1768 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1769 echo "$as_me: former value
: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1771 echo "$as_me: current value
: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1789 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1790 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s
,x
,x
', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1844 lispdir='${datadir}/emacs
/${version}/lisp
'
1845 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1846 '${datadir}/emacs
/site-lisp
'
1847 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1848 etcdir='${datadir}/emacs
/${version}/etc
'
1849 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1850 docdir='${datadir}/emacs
/${version}/etc
'
1851 gamedir='${localstatedir}/games
/emacs
'
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1865 if test "$with_pop" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define MAIL_USE_POP 1
1874 # Check whether --with-kerberos was given.
1875 if test "${with_kerberos+set}" = set; then
1876 withval=$with_kerberos;
1881 if test "$with_kerberos" != no; then
1882 cat >>confdefs.h <<\_ACEOF
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5;
1897 if test "${with_kerberos5}" != no; then
1898 if test "${with_kerberos}" = no; then
1900 cat >>confdefs.h <<\_ACEOF
1906 cat >>confdefs.h <<\_ACEOF
1913 # Check whether --with-hesiod was given.
1914 if test "${with_hesiod+set}" = set; then
1915 withval=$with_hesiod;
1920 if test "$with_hesiod" != no; then
1922 cat >>confdefs.h <<\_ACEOF
1929 # Check whether --with-sound was given.
1930 if test "${with_sound+set}" = set; then
1931 withval=$with_sound;
1938 # Check whether --with-sync-input was given.
1939 if test "${with_sync_input+set}" = set; then
1940 withval=$with_sync_input;
1945 if test "$with_sync_input" = yes; then
1947 cat >>confdefs.h <<\_ACEOF
1948 #define SYNC_INPUT 1
1954 # Check whether --with-x-toolkit was given.
1955 if test "${with_x_toolkit+set}" = set; then
1956 withval=$with_x_toolkit; case "${withval}" in
1957 y | ye | yes ) val=gtk ;;
1959 l | lu | luc | luci | lucid ) val=lucid ;;
1960 a | at | ath | athe | athen | athena ) val=athena ;;
1961 m | mo | mot | moti | motif ) val=motif ;;
1962 g | gt | gtk ) val=gtk ;;
1964 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1965 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1966 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1967 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1969 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1970 { (exit 1); exit 1; }; }
1979 # Check whether --with-xpm was given.
1980 if test "${with_xpm+set}" = set; then
1987 # Check whether --with-jpeg was given.
1988 if test "${with_jpeg+set}" = set; then
1995 # Check whether --with-tiff was given.
1996 if test "${with_tiff+set}" = set; then
2003 # Check whether --with-gif was given.
2004 if test "${with_gif+set}" = set; then
2011 # Check whether --with-png was given.
2012 if test "${with_png+set}" = set; then
2019 # Check whether --with-rsvg was given.
2020 if test "${with_rsvg+set}" = set; then
2028 # Check whether --with-freetype was given.
2029 if test "${with_freetype+set}" = set; then
2030 withval=$with_freetype;
2036 # Check whether --with-xft was given.
2037 if test "${with_xft+set}" = set; then
2044 # Check whether --with-libotf was given.
2045 if test "${with_libotf+set}" = set; then
2046 withval=$with_libotf;
2052 # Check whether --with-m17n-flt was given.
2053 if test "${with_m17n_flt+set}" = set; then
2054 withval=$with_m17n_flt;
2061 # Check whether --with-toolkit-scroll-bars was given.
2062 if test "${with_toolkit_scroll_bars+set}" = set; then
2063 withval=$with_toolkit_scroll_bars;
2065 with_toolkit_scroll_bars=yes
2069 # Check whether --with-xaw3d was given.
2070 if test "${with_xaw3d+set}" = set; then
2071 withval=$with_xaw3d;
2077 # Check whether --with-xim was given.
2078 if test "${with_xim+set}" = set; then
2085 # Check whether --with-ns was given.
2086 if test "${with_ns+set}" = set; then
2094 # Check whether --with-gpm was given.
2095 if test "${with_gpm+set}" = set; then
2102 # Check whether --with-dbus was given.
2103 if test "${with_dbus+set}" = set; then
2110 ## For the times when you want to build Emacs but don't have
2111 ## a suitable makeinfo, and can live without the manuals.
2113 # Check whether --with-makeinfo was given.
2114 if test "${with_makeinfo+set}" = set; then
2115 withval
=$with_makeinfo;
2122 # Check whether --with-gtk was given.
2123 if test "${with_gtk+set}" = set; then
2124 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&5
2126 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&2;}
2128 { (exit 1); exit 1; }; }
2133 # Check whether --with-gcc was given.
2134 if test "${with_gcc+set}" = set; then
2135 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&5
2137 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&2;}
2139 { (exit 1); exit 1; }; }
2144 # Check whether --with-pkg-config-prog was given.
2145 if test "${with_pkg_config_prog+set}" = set; then
2146 withval
=$with_pkg_config_prog;
2149 if test "X${with_pkg_config_prog}" != X
; then
2150 if test "${with_pkg_config_prog}" != yes; then
2151 PKG_CONFIG
="${with_pkg_config_prog}"
2155 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2156 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2157 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=yes
2159 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2163 # Check whether --enable-ns-self-contained was given.
2164 if test "${enable_ns_self_contained+set}" = set; then
2165 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=no
2167 EN_NS_SELF_CONTAINED
=yes
2171 # Check whether --enable-asserts was given.
2172 if test "${enable_asserts+set}" = set; then
2173 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2179 # Check whether --enable-maintainer-mode was given.
2180 if test "${enable_maintainer_mode+set}" = set; then
2181 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2183 USE_MAINTAINER_MODE
=no
2186 if test $USE_MAINTAINER_MODE = yes; then
2193 # Check whether --enable-locallisppath was given.
2194 if test "${enable_locallisppath+set}" = set; then
2195 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2197 elif test "${enableval}" != "yes"; then
2198 locallisppath
=${enableval}
2203 #### Make srcdir absolute, if it isn't already. It's important to
2204 #### avoid running the path through pwd unnecessarily, since pwd can
2205 #### give you automounter prefixes, which can go away. We do all this
2206 #### so Emacs can find its files when run uninstalled.
2207 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2212 ## We may be able to use the $PWD environment variable to make this
2213 ## absolute. But sometimes PWD is inaccurate.
2214 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2215 ## but that tested only for a well-formed and valid PWD,
2216 ## it did not object when PWD was well-formed and valid but just wrong.
2217 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2221 srcdir
="`(cd ${srcdir}; pwd)`"
2224 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2227 #### Check if the source directory already has a configured system in it.
2228 if test `pwd` != `(cd ${srcdir} && pwd)` \
2229 && test -f "${srcdir}/src/config.h" ; then
2230 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2231 as a build directory right now; it has been configured in its own
2232 right. To configure in another directory as well, you MUST
2233 use GNU make. If you do not have GNU make, then you must
2234 now do \`make distclean' in ${srcdir},
2235 and then run $0 again." >&5
2236 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&2;}
2244 #### Given the configuration name, set machfile and opsysfile to the
2245 #### names of the m/*.h and s/*.h files we should use.
2247 ### Canonicalize the configuration name.
2250 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2253 ac_install_sh
="$ac_aux_dir/install-sh -c"
2255 elif test -f "$ac_dir/install.sh"; then
2257 ac_install_sh
="$ac_aux_dir/install.sh -c"
2259 elif test -f "$ac_dir/shtool"; then
2261 ac_install_sh
="$ac_aux_dir/shtool install -c"
2265 if test -z "$ac_aux_dir"; then
2266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2267 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2268 { (exit 1); exit 1; }; }
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: checking build system type" >&5
2287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 ac_build_alias
=$build_alias
2292 test "x$ac_build_alias" = x
&&
2293 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x
&&
2295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 echo "${ECHO_T}$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2313 ac_save_IFS
=$IFS; IFS
='-'
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2323 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2326 { echo "$as_me:$LINENO: checking host system type" >&5
2327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test "x$host_alias" = x
; then
2332 ac_cv_host
=$ac_cv_build
2334 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6; }
2345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2350 ac_save_IFS
=$IFS; IFS
='-'
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2360 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 configuration
=${host_alias-${build_alias-$host}}
2368 ### If you add support for a new configuration, add code to this
2369 ### switch statement to recognize your configuration name and select
2370 ### the appropriate operating system and machine description files.
2372 ### You would hope that you could choose an m/*.h file pretty much
2373 ### based on the machine portion of the configuration name, and an s-
2374 ### file based on the operating system portion. However, it turns out
2375 ### that each m/*.h file is pretty manufacturer-specific - for
2376 ### example mips.h is MIPS
2377 ### So we basically have to have a special case for each
2378 ### configuration name.
2380 ### As far as handling version numbers on operating systems is
2381 ### concerned, make sure things will fail in a fixable way. If
2382 ### /etc/MACHINES doesn't say anything about version numbers, be
2383 ### prepared to handle anything reasonably. If version numbers
2384 ### matter, be sure /etc/MACHINES says something about it.
2386 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2387 ### "System V Release 4"; he writes, "The old convention encouraged
2388 ### confusion between `system' and `release' levels'."
2390 machine
='' opsys
='' unported
=no
2391 case "${canonical}" in
2396 case "${canonical}" in
2397 alpha
*-*-freebsd*) machine
=alpha
;;
2398 arm
*-*-freebsd*) machine
=arm
;;
2399 ia64-
*-freebsd*) machine
=ia64
;;
2400 sparc-
*-freebsd*) machine
=sparc
;;
2401 sparc64-
*-freebsd*) machine
=sparc
;;
2402 powerpc-
*-freebsd*) machine
=macppc
;;
2403 i
[3456]86-*-freebsd*) machine
=intel386
;;
2404 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2408 ## FreeBSD kernel + glibc based userland
2411 case "${canonical}" in
2412 alpha
*-*-kfreebsd*) machine
=alpha
;;
2413 ia64-
*-kfreebsd*) machine
=ia64
;;
2414 sparc-
*-kfreebsd*) machine
=sparc
;;
2415 sparc64-
*-kfreebsd*) machine
=sparc
;;
2416 powerpc-
*-kfreebsd*) machine
=macppc
;;
2417 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2418 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2425 if test -f /usr
/lib
/crti.o
; then
2427 cat >>confdefs.h
<<\_ACEOF
2433 case "${canonical}" in
2434 alpha
*-*-netbsd*) machine
=alpha
;;
2435 i
[3456]86-*-netbsd*) machine
=intel386
;;
2436 powerpc-
*-netbsd*) machine
=macppc
;;
2437 sparc
*-*-netbsd*) machine
=sparc
;;
2438 vax-
*-netbsd*) machine
=vax
;;
2439 arm-
*-netbsd*) machine
=arm
;;
2440 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2441 hppa-
*-netbsd*) machine
=hp800
;;
2448 case "${canonical}" in
2449 alpha
*-*-openbsd*) machine
=alpha
;;
2450 arm-
*-openbsd*) machine
=arm
;;
2451 i386-
*-openbsd*) machine
=intel386
;;
2452 powerpc-
*-openbsd*) machine
=macppc
;;
2453 sparc
*-*-openbsd*) machine
=sparc
;;
2454 vax-
*-openbsd*) machine
=vax
;;
2455 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2462 case "${canonical}" in
2463 i
[3456]86-*-lynxos*) machine
=intel386
;;
2464 powerpc-
*-lynxos*) machine
=powerpc
;;
2468 alpha
*-*-linux-gnu* )
2469 machine
=alpha opsys
=gnu-linux
2473 machine
=arm opsys
=gnu-linux
2476 ## Apple Darwin / Mac OS X
2478 case "${canonical}" in
2479 i
[3456]86-* ) machine
=intel386
;;
2480 powerpc-
* ) machine
=macppc
;;
2484 # Define CPP as follows to make autoconf work correctly.
2485 CPP
="${CC-cc} -E -no-cpp-precomp"
2486 # Use fink packages if available.
2487 if test -d /sw
/include
&& test -d /sw
/lib
; then
2488 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2489 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2490 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2494 ## HP 9000 series 700 and 800, running HP/UX
2495 hppa
*-hp-hpux10.2
* )
2496 machine
=hp800 opsys
=hpux10-20
2498 hppa
*-hp-hpux1[1-9]* )
2499 machine
=hp800 opsys
=hpux11
2500 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2503 hppa
*-*-linux-gnu* )
2504 machine
=hp800 opsys
=gnu-linux
2509 machine
=ibms390 opsys
=gnu-linux
2511 s390x-
*-linux-gnu* )
2512 machine
=ibms390x opsys
=gnu-linux
2514 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2515 machine
=ibmrs6000 opsys
=aix4-2
2517 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2518 machine
=ibmrs6000 opsys
=aix4-2
2520 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2521 machine
=ibmrs6000 opsys
=aix4-2
2523 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2524 machine
=ibmrs6000 opsys
=aix4-2
2527 ## Macintosh PowerPC
2528 powerpc
*-*-linux-gnu* )
2529 machine
=macppc opsys
=gnu-linux
2532 ## Silicon Graphics machines
2535 machine
=iris4d opsys
=irix6-5
2536 # Without defining _LANGUAGE_C, things get masked out in the headers
2537 # so that, for instance, grepping for `free' in stdlib.h fails and
2538 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2539 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2540 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2544 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2545 machine
=sparc opsys
=gnu-linux
2549 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2550 | rs6000-
*-solaris2*)
2551 case "${canonical}" in
2552 i
[3456]86-*-* ) machine
=intel386
;;
2553 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2554 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2555 sparc
* ) machine
=sparc
;;
2558 case "${canonical}" in
2559 *-sunos5.3
* |
*-solaris2.3
* )
2561 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2563 *-sunos5.4
* |
*-solaris2.4
* )
2565 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2568 *-sunos5.5
* |
*-solaris2.5
* )
2570 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2573 *-sunos5.6
* |
*-solaris2.6
* )
2575 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2578 *-sunos5* |
*-solaris* )
2580 emacs_check_sunpro_c
=yes
2581 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2584 ## Watch out for a compiler that we know will not work.
2585 case "${canonical}" in
2586 *-solaris* |
*-sunos5* )
2587 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2588 ## /usr/ucb/cc doesn't work;
2589 ## we should find some other compiler that does work.
2600 case "${canonical}" in
2601 *-vms* ) opsys
=vms
;;
2608 machine
=ia64 opsys
=gnu-linux
2611 ## Intel 386 machines where we don't care about the manufacturer
2614 case "${canonical}" in
2615 *-cygwin ) opsys
=cygwin
;;
2616 *-darwin* ) opsys
=darwin
2617 CPP
="${CC-cc} -E -no-cpp-precomp"
2619 *-linux-gnu* ) opsys
=gnu-linux
;;
2620 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2621 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2622 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2623 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2627 ## m68k Linux-based GNU system
2629 machine
=m68k opsys
=gnu-linux
2632 ## Mips Linux-based GNU system
2633 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2634 machine
=mips opsys
=gnu-linux
2637 ## AMD x86-64 Linux-based GNU system
2638 x86_64-
*-linux-gnu* )
2639 machine
=amdx86-64 opsys
=gnu-linux
2642 ## Tensilica Xtensa Linux-based GNU system
2643 xtensa
*-*-linux-gnu* )
2644 machine
=xtensa opsys
=gnu-linux
2652 ### If the code above didn't choose an operating system, just choose
2653 ### an operating system based on the configuration name. You really
2654 ### only want to use this when you have no idea what the right
2655 ### operating system is; if you know what operating systems a machine
2656 ### runs, it's cleaner to make it explicit in the case statement
2658 if test x
"${opsys}" = x
; then
2659 case "${canonical}" in
2660 *-gnu* ) opsys
=gnu
;;
2661 *-sysv4.2uw
* ) opsys
=unixware
;;
2662 *-sysv5uw* ) opsys
=unixware
;;
2663 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2664 *-sysv4.1
* |
*-sysvr4.1
* )
2665 NON_GNU_CPP
=/usr
/lib
/cpp
2667 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2668 if [ x
$NON_GNU_CPP = x
]; then
2669 if [ -f /usr
/ccs
/lib
/cpp
]; then
2670 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2672 NON_GNU_CPP
=/lib
/cpp
2676 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2685 if test $unported = yes; then
2686 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2687 Check \`etc/MACHINES' for recognized configuration names." >&5
2688 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2690 { (exit 1); exit 1; }; }
2693 machfile
="m/${machine}.h"
2694 opsysfile
="s/${opsys}.h"
2697 #### Choose a compiler.
2698 test -n "$CC" && cc_specified
=yes
2700 # Save the value of CFLAGS that the user specified.
2701 SPECIFIED_CFLAGS
="$CFLAGS"
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC
="$CC" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc
; ac_word
=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC
="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x
; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned
=yes ;;
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC
="$CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected
=yes
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy
$ac_cv_prog_CC
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2885 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog
in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC
="$CC" # Let the user override the test.
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 for ac_exec_ext
in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog
in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC
="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2989 if test "x$ac_ct_CC" = x
; then
2992 case $cross_compiling:$ac_tool_warned in
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned
=yes ;;
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler
=`set X $ac_compile; echo $2`
3018 { (ac_try
="$ac_compiler --version >&5"
3020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try
="$ac_compiler -V >&5"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3082 for ac_file in $ac_files
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 if { (ac_try="$ac_link_default"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3106 for ac_file
in $ac_files ''
3108 test -f "$ac_file" ||
continue
3110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3113 # We found the default executable, but exeext='' is most
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3131 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.
$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext
=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try
='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 if test "$cross_compiling" = maybe; then
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details.
" >&5
3177 echo "$as_me: error
: cannot run C compiled programs.
3178 If you meant to cross compile
, use \
`--host'.
3179 See \`config.log
' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3212 for ac_file
in conftest.exe conftest conftest.
*; do
3213 test -f "$ac_file" ||
continue
3215 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3216 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest
$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.
$ac_ext
3234 EXEEXT
=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.
$ac_ext <<_ACEOF
3244 cat confdefs.h
>>conftest.
$ac_ext
3245 cat >>conftest.
$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try
="$ac_compile"
3259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log
' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details.
" >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached
) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 echo "$as_me: failed program was
:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3350 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached
) $ECHO_C" >&6
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3392 echo "$as_me: failed program was
:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3430 echo "$as_me: failed program was
:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3469 echo "$as_me: failed program was
:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3495 if test "$GCC" = yes; then
3501 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3502 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached
) $ECHO_C" >&6
3506 ac_cv_prog_cc_c89=no
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3532 s = g (p, va_arg (v,int));
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3588 echo "$as_me: failed program was
:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3597 rm -f conftest.$ac_ext
3602 case "x
$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result
: none needed
" >&5
3605 echo "${ECHO_T}none needed
" >&6; } ;;
3607 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3608 echo "${ECHO_T}unsupported
" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3628 ## If not using gcc, and on Solaris, and no CPP specified, see if
3629 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3630 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3631 test x"$CPP" = x; then
3632 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3633 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3635 if test "${emacs_cv_sunpro_c+set}" = set; then
3636 echo $ECHO_N "(cached
) $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest$ac_exeext &&
3673 $as_test_x conftest$ac_exeext; then
3674 emacs_cv_sunpro_c=yes
3676 echo "$as_me: failed program was
:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 emacs_cv_sunpro_c=no
3682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 conftest$ac_exeext conftest.$ac_ext
3686 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3687 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3689 if test x"$emacs_cv_sunpro_c" = xyes; then
3690 NON_GNU_CPP="$CC -E -Xs"
3694 #### Some systems specify a CPP to use unless we are using GCC.
3695 #### Now that we know whether we are using GCC, we can decide whether
3696 #### to use that one.
3697 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3702 #### Some systems specify a CC to use unless we are using GCC.
3703 #### Now that we know whether we are using GCC, we can decide whether
3704 #### to use that one.
3705 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3706 test x$cc_specified != xyes
3711 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3713 CC="$CC $GCC_TEST_OPTIONS"
3716 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3718 CC="$CC $NON_GCC_TEST_OPTIONS"
3722 cat >>confdefs.h <<\_ACEOF
3723 #define _GNU_SOURCE 1
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached
) $ECHO_C" >&6
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error
" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 # include <limits.h>
3763 # include <assert.h>
3767 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3785 echo "$as_me: failed program was
:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3804 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3820 # Broken: success on invalid input.
3823 echo "$as_me: failed program was
:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Passes both tests.
3831 rm -f conftest.err conftest.$ac_ext
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3848 { echo "$as_me:$LINENO: result
: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error
" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3866 # include <limits.h>
3868 # include <assert.h>
3872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3890 echo "$as_me: failed program was
:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3925 # Broken: success on invalid input.
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3936 rm -f conftest.err conftest.$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3944 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3945 See \
`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log
' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3954 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and
test for each of PROGNAME-LIST
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_prog
in grep ggrep
; do
3977 for ac_exec_ext
in '' $ac_executable_extensions; do
3978 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3995 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3996 ac_count
=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP
="$ac_path_GREP"
4000 ac_path_GREP_max
=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4009 $ac_path_GREP_found && break 3
4019 GREP
="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP
=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP
="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4043 then ac_cv_path_EGREP
="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy
egrep; ac_prog_name
=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found
=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_prog
in egrep; do
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4078 ac_count
=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP
="$ac_path_EGREP"
4082 ac_path_EGREP_max
=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP
="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP
=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP
="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for AIX" >&5
4122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "yes" >/dev
/null
2>&1; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 cat >>confdefs.h
<<\_ACEOF
4139 #define _ALL_SOURCE 1
4143 { echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6; }
4149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4173 rm -f conftest.
$ac_objext
4174 if { (ac_try
="$ac_compile"
4176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 ac_cv_header_stdc=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_header_stdc=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4215 ac_cv_header_stdc=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4236 ac_cv_header_stdc=no
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4278 rm -f conftest$ac_exeext
4279 if { (ac_try="$ac_link"
4281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4282 *) ac_try_echo
=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_link") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4289 { (case "(($ac_try" in
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 cat >>confdefs.h <<\_ACEOF
4318 #define STDC_HEADERS 1
4323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334 inttypes.h stdint.h unistd.h
4336 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4350 #include <$ac_header>
4352 rm -f conftest.$ac_objext
4353 if { (ac_try="$ac_compile"
4355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4356 *) ac_try_echo
=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.
$ac_objext; then
4369 eval "$as_ac_Header=yes"
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.
$ac_ext >&5
4374 eval "$as_ac_Header=no"
4377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4379 ac_res
=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381 echo "${ECHO_T}$ac_res" >&6; }
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h
<<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392 if test "${ac_cv_header_minix_config_h+set}" = set; then
4393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4395 if test "${ac_cv_header_minix_config_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4401 # Is the header compilable?
4402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <minix/config.h>
4413 rm -f conftest.
$ac_objext
4414 if { (ac_try
="$ac_compile"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_header_compiler=yes
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_header_compiler=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6; }
4442 # Is the header present?
4443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <minix/config.h>
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4456 *) ac_try_echo
=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev
/null
&& {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4469 ac_header_preproc
=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.
$ac_ext >&5
4474 ac_header_preproc
=no
4477 rm -f conftest.err conftest.
$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6; }
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc
=yes
4491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4508 if test "${ac_cv_header_minix_config_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 ac_cv_header_minix_config_h
=$ac_header_preproc
4513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4517 if test $ac_cv_header_minix_config_h = yes; then
4524 if test "$MINIX" = yes; then
4526 cat >>confdefs.h
<<\_ACEOF
4527 #define _POSIX_SOURCE 1
4531 cat >>confdefs.h
<<\_ACEOF
4532 #define _POSIX_1_SOURCE 2
4536 cat >>confdefs.h
<<\_ACEOF
4552 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4553 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 # define __EXTENSIONS__ 1
4565 $ac_includes_default
4574 rm -f conftest.
$ac_objext
4575 if { (ac_try
="$ac_compile"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_cv_safe_to_define___extensions__=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_safe_to_define___extensions__=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4602 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4603 test $ac_cv_safe_to_define___extensions__ = yes &&
4604 cat >>confdefs.h <<\_ACEOF
4605 #define __EXTENSIONS__ 1
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4642 *) ac_try_echo
=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.
$ac_objext; then
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.
$ac_ext >&5
4663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS
="$SAVE_CFLAGS"
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 ac_cpp
='$CPP $CPPFLAGS'
4688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # Double quotes because CPP needs to be expanded
4702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 for ac_c_preproc_warn_flag
in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4766 *) ac_try_echo
=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1
>conftest.err
4773 cat conftest.err
>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev
/null
&& {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 # Passes both tests.
4790 rm -f conftest.err conftest.
$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.
$ac_ext
4795 if $ac_preproc_ok; then
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4810 for ac_c_preproc_warn_flag
in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4871 *) ac_try_echo
=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1
>conftest.err
4878 cat conftest.err
>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev
/null
&& {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4884 # Broken: success on invalid input.
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 # Passes both tests.
4895 rm -f conftest.err conftest.
$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4911 ac_cpp
='$CPP $CPPFLAGS'
4912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir
=.
4940 # Account for people who put trailing slashes in PATH elements.
4942 .
/ | .
// |
/cC
/* | \
4943 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4944 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4950 for ac_prog
in ginstall scoinst
install; do
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4962 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL
=$ac_cv_path_install
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL
=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x
; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 RANLIB
=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB
=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib
; ac_word
=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir
=.
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x
; then
5077 case $cross_compiling:$ac_tool_warned in
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo
; ac_word
=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5289 MAKEINFO
=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5292 echo "${ECHO_T}$MAKEINFO" >&6; }
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a CVS checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from CVS, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a CVS checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5316 elif ! test -e $srcdir/info
/emacs
; then
5317 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " >&5
5321 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5325 { (exit 1); exit 1; }; }
5330 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5332 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5335 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5337 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5341 late_LDFLAGS
=$LDFLAGS
5342 if test "$GCC" = yes; then
5343 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5345 LDFLAGS
="$LDFLAGS -znocombreloc"
5348 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5349 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 rm -f conftest.
$ac_objext conftest
$ac_exeext
5354 if { (ac_try
="$ac_link"
5356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 LDFLAGS=$late_LDFLAGS
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5385 #### Extract some information from the operating system and machine files.
5387 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&5
5390 echo "$as_me: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&6;}
5394 ### First figure out CFLAGS (which we use for running the compiler here)
5395 ### and REAL_CFLAGS (which we use for real compilation).
5396 ### The two are the same except on a few systems, where they are made
5397 ### different to work around various lossages. For example,
5398 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5399 ### as implying static linking.
5401 ### If the CFLAGS env var is specified, we use that value
5402 ### instead of the default.
5404 ### It's not important that this name contain the PID; you can't run
5405 ### two configures in the same directory and have anything work
5407 tempcname="conftest.c"
5410 #include "'${srcdir}'/src/'${opsysfile}'"
5411 #include "'${srcdir}'/src/'${machfile}'"
5412 #ifndef LIBS_MACHINE
5413 #define LIBS_MACHINE
5418 #ifndef C_SWITCH_SYSTEM
5419 #define C_SWITCH_SYSTEM
5421 #ifndef C_SWITCH_MACHINE
5422 #define C_SWITCH_MACHINE
5424 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5425 configure___ c_switch_system=C_SWITCH_SYSTEM
5426 configure___ c_switch_machine=C_SWITCH_MACHINE
5429 #define LIB_X11_LIB -lX11
5432 #ifndef LIBX11_SYSTEM
5433 #define LIBX11_SYSTEM
5435 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5438 configure___ unexec=UNEXEC
5440 configure___ unexec=unexec.o
5443 #ifdef SYSTEM_MALLOC
5444 configure___ system_malloc=yes
5446 configure___ system_malloc=no
5449 #ifdef USE_MMAP_FOR_BUFFERS
5450 configure___ use_mmap_for_buffers=yes
5452 configure___ use_mmap_for_buffers=no
5455 #ifndef C_DEBUG_SWITCH
5456 #define C_DEBUG_SWITCH -g
5459 #ifndef C_OPTIMIZE_SWITCH
5461 #define C_OPTIMIZE_SWITCH -O2
5463 #define C_OPTIMIZE_SWITCH -O
5467 #ifndef C_WARNINGS_SWITCH
5468 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5471 #ifndef LD_SWITCH_MACHINE
5472 #define LD_SWITCH_MACHINE
5475 #ifndef LD_SWITCH_SYSTEM
5476 #define LD_SWITCH_SYSTEM
5479 #ifndef LD_SWITCH_X_SITE_AUX
5480 #define LD_SWITCH_X_SITE_AUX
5483 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5484 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5486 #ifdef THIS_IS_CONFIGURE
5488 /* Get the CFLAGS for tests in configure. */
5490 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5492 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5495 #else /* not THIS_IS_CONFIGURE */
5497 /* Get the CFLAGS for real compilation. */
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5504 #endif /* not THIS_IS_CONFIGURE */
5507 # The value of CPP is a quoted variable reference, so we need to do this
5508 # to get its actual value...
5509 CPP=`eval "echo $CPP"`
5510 eval `${CPP} -Isrc ${tempcname} \
5511 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 if test "x$SPECIFIED_CFLAGS" = x; then
5513 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5514 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5516 REAL_CFLAGS="$CFLAGS"
5520 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5522 ### Make sure subsequent tests use flags consistent with the build flags.
5524 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5525 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5527 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5532 # Check whether --enable-largefile was given.
5533 if test "${enable_largefile+set}" = set; then
5534 enableval=$enable_largefile;
5537 if test "$enable_largefile" != no; then
5539 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5540 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_cv_sys_largefile_CC=no
5545 if test "$GCC" != yes; then
5548 # IRIX 6.2 and later do not support large files by default,
5549 # so use the C compiler's -n32 option if that helps.
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5577 *) ac_try_echo
=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1
>conftest.err
5584 cat conftest.err
>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.
$ac_objext; then
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5598 rm -f core conftest.err conftest.
$ac_objext
5600 rm -f conftest.
$ac_objext
5601 if { (ac_try
="$ac_compile"
5603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_largefile_CC=' -n32'; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f core conftest.err conftest.$ac_objext
5629 rm -f conftest.$ac_ext
5632 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5634 if test "$ac_cv_sys_largefile_CC" != no; then
5635 CC=$CC$ac_cv_sys_largefile_CC
5638 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5671 *) ac_try_echo
=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.
$ac_objext; then
5684 ac_cv_sys_file_offset_bits
=no
; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5717 rm -f conftest.
$ac_objext
5718 if { (ac_try
="$ac_compile"
5720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_sys_file_offset_bits=64; break
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_cv_sys_file_offset_bits=unknown
5747 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5748 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5749 case $ac_cv_sys_file_offset_bits in #(
5752 cat >>confdefs.h <<_ACEOF
5753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5758 if test $ac_cv_sys_file_offset_bits = unknown; then
5759 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5760 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5761 if test "${ac_cv_sys_large_files+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5792 *) ac_try_echo
=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.
$ac_objext; then
5805 ac_cv_sys_large_files
=no
; break
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #define _LARGE_FILES 1
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5838 rm -f conftest.
$ac_objext
5839 if { (ac_try
="$ac_compile"
5841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_cv_sys_large_files=1; break
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5868 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5869 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5884 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5885 ### be located in either /usr/lib64 or /usr/lib.
5886 case "${canonical}" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5888 if test -d /usr/lib64; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIB64_DIR 1
5900 if test "${with_sound}" != "no"; then
5901 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_res=`eval echo '${'$as_ac_Header'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5918 # Is the header compilable?
5919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 #include <$ac_header>
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5934 *) ac_try_echo
=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1
>conftest.err
5941 cat conftest.err
>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.
$ac_objext; then
5947 ac_header_compiler
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_header_compiler
=no
5955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6; }
5959 # Is the header present?
5960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null && {
5983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5986 ac_header_preproc=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_header_preproc=no
5994 rm -f conftest.err conftest.$ac_ext
5995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6; }
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005 ac_header_preproc=yes
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 eval "$as_ac_Header=\$ac_header_preproc"
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6044 # Emulation library used on NetBSD.
6045 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6046 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6047 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lossaudio $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6069 return _oss_ioctl ();
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (ac_try="$ac_link"
6077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6078 *) ac_try_echo
=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_link") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest
$ac_exeext &&
6091 $as_test_x conftest
$ac_exeext; then
6092 ac_cv_lib_ossaudio__oss_ioctl
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_lib_ossaudio__oss_ioctl
=no
6100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6101 conftest
$ac_exeext conftest.
$ac_ext
6102 LIBS
=$ac_check_lib_save_LIBS
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6106 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6115 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6119 # Extract the first word of "pkg-config", so it can be a program name with args.
6120 set dummy pkg-config
; ac_word
=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir
=.
6136 for ac_exec_ext
in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6150 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6151 if test -n "$PKG_CONFIG"; then
6152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6161 if test "$PKG_CONFIG" = "no" ; then
6164 PKG_CONFIG_MIN_VERSION
=0.9.0
6165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6166 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6167 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6169 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6170 { echo "$as_me:$LINENO: result: yes" >&5
6171 echo "${ECHO_T}yes" >&6; }
6174 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6175 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6176 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6177 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6178 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6180 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6181 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6182 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6184 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 ## If we have a custom action on failure, don't print errors, but
6191 ## do set a variable so people can do so.
6192 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6204 if test $succeeded = yes; then
6210 if test $HAVE_ALSA = yes; then
6211 SAVE_CFLAGS
="$CFLAGS"
6212 SAVE_LDFLAGS
="$LDFLAGS"
6213 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6214 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <asoundlib.h>
6225 snd_lib_error_set_handler (0);
6230 rm -f conftest.
$ac_objext
6231 if { (ac_try
="$ac_compile"
6233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 emacs_alsa_normal=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 emacs_alsa_normal=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "$emacs_alsa_normal" != yes; then
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6267 snd_lib_error_set_handler (0);
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6276 *) ac_try_echo
=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.
$ac_objext; then
6289 emacs_alsa_subdir
=yes
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.
$ac_ext >&5
6294 emacs_alsa_subdir
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 if test "$emacs_alsa_subdir" != yes; then
6299 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6300 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6301 { (exit 1); exit 1; }; }
6303 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6306 CFLAGS
="$SAVE_CFLAGS"
6307 LDFLAGS
="$SAVE_LDFLAGS"
6308 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6309 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6311 cat >>confdefs.h
<<\_ACEOF
6344 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6345 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6346 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6347 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_res
=`eval echo '${'$as_ac_Header'}'`
6358 { echo "$as_me:$LINENO: result: $ac_res" >&5
6359 echo "${ECHO_T}$ac_res" >&6; }
6361 # Is the header compilable?
6362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6373 rm -f conftest.
$ac_objext
6374 if { (ac_try
="$ac_compile"
6376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_header_compiler=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6400 echo "${ECHO_T}$ac_header_compiler" >&6; }
6402 # Is the header present?
6403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <$ac_header>
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6416 *) ac_try_echo
=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev
/null
&& {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6429 ac_header_preproc
=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 ac_header_preproc
=no
6437 rm -f conftest.err conftest.
$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6; }
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc
=yes
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 eval "$as_ac_Header=\$ac_header_preproc"
6473 ac_res
=`eval echo '${'$as_ac_Header'}'`
6474 { echo "$as_me:$LINENO: result: $ac_res" >&5
6475 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h
<<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6488 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6489 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6490 cat >conftest.
$ac_ext <<_ACEOF
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/personality.h>
6500 personality (PER_LINUX32)
6505 rm -f conftest.
$ac_objext
6506 if { (ac_try
="$ac_compile"
6508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_cv_personality_linux32=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 emacs_cv_personality_linux32=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6532 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6534 if test $emacs_cv_personality_linux32 = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_PERSONALITY_LINUX32 1
6543 for ac_header in term.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <$ac_header>
6559 if { (ac_try="$ac_cpp conftest.$ac_ext"
6561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6562 *) ac_try_echo
=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6567 grep -v '^ *+' conftest.er1
>conftest.err
6569 cat conftest.err
>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev
/null
&& {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6575 eval "$as_ac_Header=yes"
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 eval "$as_ac_Header=no"
6583 rm -f conftest.err conftest.
$ac_ext
6585 ac_res
=`eval echo '${'$as_ac_Header'}'`
6586 { echo "$as_me:$LINENO: result: $ac_res" >&5
6587 echo "${ECHO_T}$ac_res" >&6; }
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h
<<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6621 rm -f conftest.
$ac_objext
6622 if { (ac_try
="$ac_compile"
6624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 ac_cv_header_stdc=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test $ac_cv_header_stdc = yes; then
6649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then
6663 ac_cv_header_stdc=no
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "free" >/dev/null 2>&1; then
6684 ac_cv_header_stdc=no
6690 if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692 if test "$cross_compiling" = yes; then
6695 cat >conftest.$ac_ext <<_ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6703 #if ((' ' & 0x0FF) == 0x020)
6704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6707 # define ISLOWER(c) \
6708 (('a' <= (c) && (c) <= 'i') \
6709 || ('j' <= (c) && (c) <= 'r') \
6710 || ('s' <= (c) && (c) <= 'z'))
6711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6719 for (i = 0; i < 256; i++)
6720 if (XOR (islower (i), ISLOWER (i))
6721 || toupper (i) != TOUPPER (i))
6726 rm -f conftest$ac_exeext
6727 if { (ac_try="$ac_link"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_link") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6737 { (case "(($ac_try" in
6738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_try") 2>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_cv_header_stdc=no
6755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6763 if test $ac_cv_header_stdc = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STDC_HEADERS 1
6771 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_time+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/time.h>
6789 if ((struct tm *) 0)
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6799 *) ac_try_echo
=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.
$ac_objext; then
6812 ac_cv_header_time
=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6817 ac_cv_header_time
=no
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6823 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6824 if test $ac_cv_header_time = yes; then
6826 cat >>confdefs.h
<<\_ACEOF
6827 #define TIME_WITH_SYS_TIME 1
6832 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6855 rm -f conftest.
$ac_objext
6856 if { (ac_try
="$ac_compile"
6858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl_sys_siglist=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_have_decl_sys_siglist=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6884 if test $ac_cv_have_decl_sys_siglist = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_SYS_SIGLIST 1
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 0
6900 if test $ac_cv_have_decl_sys_siglist != yes; then
6901 # For Tru64, at least:
6902 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6903 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6904 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6917 #ifndef __sys_siglist
6918 (void) __sys_siglist;
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6929 *) ac_try_echo
=$ac_try;;
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6934 grep -v '^ *+' conftest.er1
>conftest.err
6936 cat conftest.err
>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.
$ac_objext; then
6942 ac_cv_have_decl___sys_siglist
=yes
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.
$ac_ext >&5
6947 ac_cv_have_decl___sys_siglist
=no
6950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6953 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6954 if test $ac_cv_have_decl___sys_siglist = yes; then
6956 cat >>confdefs.h
<<_ACEOF
6957 #define HAVE_DECL___SYS_SIGLIST 1
6962 cat >>confdefs.h
<<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 0
6970 if test $ac_cv_have_decl___sys_siglist = yes; then
6972 cat >>confdefs.h
<<\_ACEOF
6973 #define sys_siglist __sys_siglist
6978 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/wait.h>
6992 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7008 rm -f conftest.
$ac_objext
7009 if { (ac_try
="$ac_compile"
7011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_sys_wait_h=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_header_sys_wait_h=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7037 if test $ac_cv_header_sys_wait_h = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_SYS_WAIT_H 1
7046 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7047 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7048 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #ifdef TIME_WITH_SYS_TIME
7058 #include <sys/time.h>
7061 #ifdef HAVE_SYS_TIME_H
7062 #include <sys/time.h>
7073 static struct utimbuf x; x.actime = x.modtime;
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7082 *) ac_try_echo
=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.
$ac_objext; then
7095 emacs_cv_struct_utimbuf
=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 emacs_cv_struct_utimbuf
=no
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7106 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7107 if test $emacs_cv_struct_utimbuf = yes; then
7109 cat >>confdefs.h
<<\_ACEOF
7110 #define HAVE_STRUCT_UTIMBUF 1
7115 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7116 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_signal+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7132 return *(signal (0, 0)) (0) == 1;
7137 rm -f conftest.
$ac_objext
7138 if { (ac_try
="$ac_compile"
7140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_type_signal=int
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_type_signal=void
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7165 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7167 cat >>confdefs.h <<_ACEOF
7168 #define RETSIGTYPE $ac_cv_type_signal
7173 { echo "$as_me:$LINENO: checking for speed_t" >&5
7174 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7175 if test "${emacs_cv_speed_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <termios.h>
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 emacs_cv_speed_t
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7221 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7222 if test $emacs_cv_speed_t = yes; then
7224 cat >>confdefs.h
<<\_ACEOF
7225 #define HAVE_SPEED_T 1
7230 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7231 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7232 if test "${emacs_cv_struct_timeval+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #ifdef TIME_WITH_SYS_TIME
7242 #include <sys/time.h>
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7254 static struct timeval x; x.tv_sec = x.tv_usec;
7259 rm -f conftest.
$ac_objext
7260 if { (ac_try
="$ac_compile"
7262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_timeval=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 emacs_cv_struct_timeval=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7288 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7289 if test $emacs_cv_struct_timeval = yes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_TIMEVAL 1
7297 { echo "$as_me:$LINENO: checking for struct exception" >&5
7298 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7299 if test "${emacs_cv_struct_exception+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7312 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7321 *) ac_try_echo
=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 emacs_cv_struct_exception
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7339 emacs_cv_struct_exception
=no
7342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7345 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7346 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7347 if test $emacs_cv_struct_exception != yes; then
7349 cat >>confdefs.h
<<\_ACEOF
7350 #define NO_MATHERR 1
7356 for ac_header
in sys
/socket.h
7358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_res
=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7381 rm -f conftest.
$ac_objext
7382 if { (ac_try
="$ac_compile"
7384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7424 *) ac_try_echo
=$ac_try;;
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev
/null
&& {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7437 ac_header_preproc
=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 ac_header_preproc
=no
7445 rm -f conftest.err conftest.
$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc
=yes
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 eval "$as_ac_Header=\$ac_header_preproc"
7481 ac_res
=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h
<<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 for ac_header
in net
/if.h
7498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7515 #include <$ac_header>
7517 rm -f conftest.
$ac_objext
7518 if { (ac_try
="$ac_compile"
7520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 eval "$as_ac_Header=yes"
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 eval "$as_ac_Header=no"
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7557 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7559 if test "${ac_cv_struct_tm+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7575 int *p = &tm.tm_sec;
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7585 *) ac_try_echo
=$ac_try;;
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1
>conftest.err
7592 cat conftest.err
>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.
$ac_objext; then
7598 ac_cv_struct_tm
=time.h
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 ac_cv_struct_tm
=sys
/time.h
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7609 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7610 if test $ac_cv_struct_tm = sys
/time.h
; then
7612 cat >>confdefs.h
<<\_ACEOF
7613 #define TM_IN_SYS_TIME 1
7618 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7619 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7620 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <$ac_cv_struct_tm>
7636 static struct tm ac_aggr;
7637 if (ac_aggr.tm_zone)
7643 rm -f conftest.
$ac_objext
7644 if { (ac_try
="$ac_compile"
7646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_member_struct_tm_tm_zone=yes
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <$ac_cv_struct_tm>
7678 static struct tm ac_aggr;
7679 if (sizeof ac_aggr.tm_zone)
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7689 *) ac_try_echo
=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1
>conftest.err
7696 cat conftest.err
>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.
$ac_objext; then
7702 ac_cv_member_struct_tm_tm_zone
=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.
$ac_ext >&5
7707 ac_cv_member_struct_tm_tm_zone
=no
7710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7719 cat >>confdefs.h
<<_ACEOF
7720 #define HAVE_STRUCT_TM_TM_ZONE 1
7726 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7728 cat >>confdefs.h
<<\_ACEOF
7729 #define HAVE_TM_ZONE 1
7733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7734 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7735 if test "${ac_cv_have_decl_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7757 rm -f conftest.
$ac_objext
7758 if { (ac_try
="$ac_compile"
7760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_have_decl_tzname=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_have_decl_tzname=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7786 if test $ac_cv_have_decl_tzname = yes; then
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_TZNAME 1
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 0
7802 { echo "$as_me:$LINENO: checking for tzname" >&5
7803 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7804 if test "${ac_cv_var_tzname+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 #if !HAVE_DECL_TZNAME
7815 extern char *tzname[];
7821 return tzname[0][0];
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1
>conftest.err
7837 cat conftest.err
>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest
$ac_exeext &&
7843 $as_test_x conftest
$ac_exeext; then
7844 ac_cv_var_tzname
=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7853 conftest
$ac_exeext conftest.
$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7856 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7857 if test $ac_cv_var_tzname = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_TZNAME 1
7866 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7867 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7868 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_gmtoff)
7889 rm -f conftest.
$ac_objext
7890 if { (ac_try
="$ac_compile"
7892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_gmtoff=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7922 static struct tm ac_aggr;
7923 if (sizeof ac_aggr.tm_gmtoff)
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7933 *) ac_try_echo
=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1
>conftest.err
7940 cat conftest.err
>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.
$ac_objext; then
7946 ac_cv_member_struct_tm_tm_gmtoff
=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.
$ac_ext >&5
7951 ac_cv_member_struct_tm_tm_gmtoff
=no
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7961 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7963 cat >>confdefs.h
<<\_ACEOF
7964 #define HAVE_TM_GMTOFF 1
7969 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7970 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7971 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 cat >conftest.
$ac_ext <<_ACEOF
7977 cat confdefs.h
>>conftest.
$ac_ext
7978 cat >>conftest.
$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #if HAVE_SYS_SOCKET_H
7982 #include <sys/socket.h>
7991 static struct ifreq ac_aggr;
7992 if (ac_aggr.ifr_flags)
7998 rm -f conftest.
$ac_objext
7999 if { (ac_try
="$ac_compile"
8001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_cv_member_struct_ifreq_ifr_flags=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8037 static struct ifreq ac_aggr;
8038 if (sizeof ac_aggr.ifr_flags)
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.
$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_flags
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_cv_member_struct_ifreq_ifr_flags
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8076 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8078 cat >>confdefs.h
<<_ACEOF
8079 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_hwaddr)
8113 rm -f conftest.
$ac_objext
8114 if { (ac_try
="$ac_compile"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_hwaddr)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8163 *) ac_try_echo
=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.
$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.
$ac_ext <<_ACEOF
8207 cat confdefs.h
>>conftest.
$ac_ext
8208 cat >>conftest.
$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_netmask)
8228 rm -f conftest.
$ac_objext
8229 if { (ac_try
="$ac_compile"
8231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_netmask=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_netmask)
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_netmask
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8308 cat >>confdefs.h
<<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_broadaddr)
8343 rm -f conftest.
$ac_objext
8344 if { (ac_try
="$ac_compile"
8346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_broadaddr)
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.
$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.
$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_addr)
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_addr=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_addr)
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.
$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_addr
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_addr
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8538 cat >>confdefs.h
<<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8547 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8549 if test "$ac_cv_prog_cc_c89" != no
; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8553 cat >>confdefs.h
<<\_ACEOF
8554 #define PROTOTYPES 1
8558 cat >>confdefs.h
<<\_ACEOF
8559 #define __PROTOTYPES 1
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8567 { echo "$as_me:$LINENO: checking for working volatile" >&5
8568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_volatile+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8584 int * volatile y = (int *) 0;
8590 rm -f conftest.
$ac_objext
8591 if { (ac_try
="$ac_compile"
8593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_c_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_c_volatile=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8618 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 cat >>confdefs.h <<\_ACEOF
8627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_const+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8642 /* FIXME: Include the comments suggested by Paul. */
8644 /* Ultrix mips cc rejects this. */
8645 typedef int charset[2];
8647 /* SunOS 4.1.1 cc rejects this. */
8648 char const *const *pcpcc;
8650 /* NEC SVR4.0.2 mips cc rejects this. */
8651 struct point {int x, y;};
8652 static struct point const zero = {0,0};
8653 /* AIX XL C 1.02.0.0 rejects this.
8654 It does not let you subtract one const X* pointer from another in
8655 an arm of an if-expression whose if-part is not a constant
8657 const char *g = "string";
8658 pcpcc = &g + (g ? g-g : 0);
8659 /* HPUX 7.0 cc rejects these. */
8661 ppc = (char**) pcpcc;
8662 pcpcc = (char const *const *) ppc;
8663 { /* SCO 3.2v4 cc rejects this. */
8665 char const *s = 0 ? (char *) 0 : (char const *) 0;
8670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8672 const int *foo = &x[0];
8675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8676 typedef const int *iptr;
8680 { /* AIX XL C 1.02.0.0 rejects this saying
8681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8682 struct s { int j; const int *ap[3]; };
8683 struct s *b; b->j = 5;
8685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 return !cs[0] && !zero.x;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1
>conftest.err
8707 cat conftest.err
>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.
$ac_objext; then
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8725 if test $ac_cv_c_const = no
; then
8727 cat >>confdefs.h
<<\_ACEOF
8733 { echo "$as_me:$LINENO: checking for void * support" >&5
8734 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8735 if test "${emacs_cv_void_star+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8753 rm -f conftest.
$ac_objext
8754 if { (ac_try
="$ac_compile"
8756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 emacs_cv_void_star=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 emacs_cv_void_star=no
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8781 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8782 if test $emacs_cv_void_star = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define POINTER_TYPE void
8788 cat >>confdefs.h <<\_ACEOF
8789 #define POINTER_TYPE char
8798 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8800 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.make <<\_ACEOF
8807 @echo '@@@%%%=$(MAKE)=@@@%%%'
8809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8810 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8812 eval ac_cv_prog_make_${ac_make}_set=yes;;
8814 eval ac_cv_prog_make_${ac_make}_set=no;;
8818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 SET_MAKE="MAKE=${MAKE-make}"
8829 { echo "$as_me:$LINENO: checking for long file names" >&5
8830 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8831 if test "${ac_cv_sys_long_file_names+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_sys_long_file_names=yes
8835 # Test for long file names in all the places we know might matter:
8836 # . the current directory, where building will happen
8837 # $prefix/lib where we will be installing things
8838 # $exec_prefix/lib likewise
8839 # $TMPDIR if set, where it might want to write temporary files
8840 # /tmp where it might want to write temporary files
8843 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8844 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8845 # in the usual case where exec_prefix is '${prefix}'.
8847 . | /* | ?:[\\/]*) ;; #(
8850 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8851 ac_xdir=$ac_dir/cf$$
8852 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8853 ac_tf1=$ac_xdir/conftest9012345
8854 ac_tf2=$ac_xdir/conftest9012346
8855 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8856 ac_cv_sys_long_file_names=no
8857 rm -f -r "$ac_xdir" 2>/dev/null
8858 test $ac_cv_sys_long_file_names = no && break
8861 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8862 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8863 if test $ac_cv_sys_long_file_names = yes; then
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_LONG_FILE_NAMES 1
8872 #### Choose a window system.
8874 { echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8878 # Check whether --with-x was given.
8879 if test "${with_x+set}" = set; then
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8888 case $x_includes,$x_libraries in #(
8889 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8890 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8891 { (exit 1); exit 1; }; };; #(
8892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -f -r conftest.dir
8898 if mkdir conftest.dir; then
8900 cat >Imakefile <<'_ACEOF'
8902 @echo incroot='${INCROOT}'
8904 @echo usrlibdir='${USRLIBDIR}'
8906 @echo libdir='${LIBDIR}'
8908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8910 for ac_var in incroot usrlibdir libdir; do
8911 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8914 for ac_extension in a so sl; do
8915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8917 ac_im_usrlibdir=$ac_im_libdir; break
8920 # Screen out bogus values from the imake configuration. They are
8921 # bogus both because they are the default anyway, and because
8922 # using them would break gcc on systems where it needs fixed includes.
8923 case $ac_im_incroot in
8924 /usr/include) ac_x_includes= ;;
8925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8927 case $ac_im_usrlibdir in
8929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8933 rm -f -r conftest.dir
8936 # Standard set of common directories for X headers.
8937 # Check X11 before X11Rn because it is often a symlink to the current release.
8949 /usr/local/X11/include
8950 /usr/local/X11R6/include
8951 /usr/local/X11R5/include
8952 /usr/local/X11R4/include
8954 /usr/local/include/X11
8955 /usr/local/include/X11R6
8956 /usr/local/include/X11R5
8957 /usr/local/include/X11R4
8961 /usr/XFree86/include/X11
8965 /usr/unsupported/include
8967 /usr/local/x11r5/include
8968 /usr/lpp/Xamples/include
8970 /usr/openwin/include
8971 /usr/openwin/share/include'
8973 if test "$ac_x_includes" = no; then
8974 # Guess where to find include files, by looking for Xlib.h.
8975 # First, try using that file with no special directory specified.
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <X11/Xlib.h>
8984 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8987 *) ac_try_echo
=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1
>conftest.err
8994 cat conftest.err
>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev
/null
&& {
8997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8998 test ! -s conftest.err
9000 # We can compile using X headers with no special include directory.
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.
$ac_ext >&5
9006 for ac_dir
in $ac_x_header_dirs; do
9007 if test -r "$ac_dir/X11/Xlib.h"; then
9008 ac_x_includes
=$ac_dir
9014 rm -f conftest.err conftest.
$ac_ext
9015 fi # $ac_x_includes = no
9017 if test "$ac_x_libraries" = no
; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Xlib.h>
9038 rm -f conftest.
$ac_objext conftest
$ac_exeext
9039 if { (ac_try
="$ac_link"
9041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9057 # We can link X programs with no special library path.
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r "$ac_dir/libX11.$ac_extension"; then
9069 ac_x_libraries=$ac_dir
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi # $ac_x_libraries = no
9080 case $ac_x_includes,$ac_x_libraries in #(
9082 # Didn't find X, or a directory has "'" in its name.
9083 ac_cv_have_x="have_x=no";; #(
9085 # Record where we found X for the cache.
9086 ac_cv_have_x="have_x=yes\
9087 ac_x_includes='$ac_x_includes'\
9088 ac_x_libraries='$ac_x_libraries'"
9094 eval "$ac_cv_have_x"
9097 if test "$have_x" != yes; then
9098 { echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6; }
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes\
9107 ac_x_includes='$x_includes'\
9108 ac_x_libraries='$x_libraries'"
9109 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9110 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9113 if test "$no_x" = yes; then
9119 ## Workaround for bug in autoconf <= 2.62.
9120 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9121 ## No need to do anything special for these standard directories.
9122 ## This is an experiment, take it out if it causes problems.
9123 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9125 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9129 if test "${x_libraries}" != NONE; then
9130 if test -n "${x_libraries}"; then
9131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9134 x_default_search_path=""
9135 x_search_path=${x_libraries}
9136 if test -z "${x_search_path}"; then
9137 x_search_path=/usr/lib
9139 for x_library in `echo ${x_search_path}: | \
9140 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9142 ${x_library}/X11/%L/%T/%N%C%S:\
9143 ${x_library}/X11/%l/%T/%N%C%S:\
9144 ${x_library}/X11/%T/%N%C%S:\
9145 ${x_library}/X11/%L/%T/%N%S:\
9146 ${x_library}/X11/%l/%T/%N%S:\
9147 ${x_library}/X11/%T/%N%S"
9148 if test x"${x_default_search_path}" = x; then
9149 x_default_search_path=${x_search_path}
9151 x_default_search_path="${x_search_path}:${x_default_search_path}"
9155 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9156 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9159 if test x"${x_includes}" = x; then
9160 bitmapdir=/usr/include/X11/bitmaps
9162 # accumulate include directories that have X11 bitmap subdirectories
9164 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9165 if test -d "${bmd}/X11/bitmaps"; then
9166 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9168 if test -d "${bmd}/bitmaps"; then
9169 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9172 if test ${bmd_acc} != "dummyval"; then
9173 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9180 tmp_CPPFLAGS="$CPPFLAGS"
9181 tmp_CFLAGS="$CFLAGS"
9182 CPPFLAGS="$CPPFLAGS -x objective-c"
9183 CFLAGS="$CFLAGS -x objective-c"
9184 if test "${with_ns}" != no; then
9185 if test "${opsys}" = darwin; then
9187 ns_appdir=`pwd`/nextstep/Emacs.app
9188 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9189 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9190 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9191 elif test -f /etc/GNUstep/GNUstep.conf; then
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9196 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9197 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9198 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9199 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9200 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9201 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9202 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9205 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9206 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9207 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9208 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9216 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <AppKit/AppKit.h>
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9230 *) ac_try_echo
=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1
>conftest.err
9237 cat conftest.err
>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.
$ac_objext; then
9243 ac_header_compiler
=yes
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 ac_header_compiler
=no
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6; }
9255 # Is the header present?
9256 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9257 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <AppKit/AppKit.h>
9266 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null && {
9279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9282 ac_header_preproc=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9304 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9319 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9320 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9330 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9336 if test "${HAVE_NS}" = yes; then
9337 window_system=nextstep
9340 # set up packaging dirs
9341 exec_prefix=${ns_appbindir}
9342 libexecdir=${ns_appbindir}/libexec
9343 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9344 prefix=${ns_appresdir}
9347 CFLAGS="$tmp_CFLAGS"
9348 CPPFLAGS="$tmp_CPPFLAGS"
9350 case "${window_system}" in
9354 case "${with_x_toolkit}" in
9355 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9356 motif ) USE_X_TOOLKIT=MOTIF ;;
9358 USE_X_TOOLKIT=none ;;
9359 no ) USE_X_TOOLKIT=none ;;
9360 * ) USE_X_TOOLKIT=maybe ;;
9370 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9371 # Extract the first word of "X", so it can be a program name with args.
9372 set dummy X; ac_word=$2
9373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9375 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 if test -n "$HAVE_XSERVER"; then
9379 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_HAVE_XSERVER="true"
9389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9399 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9400 if test -n "$HAVE_XSERVER"; then
9401 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9402 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9404 { echo "$as_me:$LINENO: result: no" >&5
9405 echo "${ECHO_T}no" >&6; }
9409 if test "$HAVE_XSERVER" = true ||
9410 test -n "$DISPLAY" ||
9411 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9412 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9413 were found. You should install the relevant development files for X
9414 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9415 sure you have development files for image handling, i.e.
9416 tiff, gif, jpeg, png and xpm.
9417 If you are sure you want Emacs compiled without X window support, pass
9420 echo "$as_me: error: You seem to be running X, but no X development libraries
9421 were found. You should install the relevant development files for X
9422 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9423 sure you have development files for image handling, i.e.
9424 tiff, gif, jpeg, png and xpm.
9425 If you are sure you want Emacs compiled without X window support, pass
9427 to configure." >&2;}
9428 { (exit 1); exit 1; }; }
9432 ### If we're using X11, we should use the X menu package.
9435 yes ) HAVE_MENUS=yes ;;
9438 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9439 # Assume not, until told otherwise.
9442 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9443 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9444 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455 #define malloc_get_state innocuous_malloc_get_state
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char malloc_get_state (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9463 # include <limits.h>
9465 # include <assert.h>
9468 #undef malloc_get_state
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9476 char malloc_get_state ();
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9487 return malloc_get_state ();
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9496 *) ac_try_echo
=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest
$ac_exeext &&
9509 $as_test_x conftest
$ac_exeext; then
9510 ac_cv_func_malloc_get_state
=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 ac_cv_func_malloc_get_state
=no
9518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9519 conftest
$ac_exeext conftest.
$ac_ext
9521 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9522 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9523 if test $ac_cv_func_malloc_get_state = yes; then
9529 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9530 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.
$ac_ext <<_ACEOF
9537 cat confdefs.h
>>conftest.
$ac_ext
9538 cat >>conftest.
$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define malloc_set_state innocuous_malloc_set_state
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char malloc_set_state (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9550 # include <limits.h>
9552 # include <assert.h>
9555 #undef malloc_set_state
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char malloc_set_state ();
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9574 return malloc_set_state ();
9579 rm -f conftest.
$ac_objext conftest
$ac_exeext
9580 if { (ac_try
="$ac_link"
9582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 ac_cv_func_malloc_set_state=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_func_malloc_set_state=no
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9609 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9610 if test $ac_cv_func_malloc_set_state = yes; then
9616 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9617 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9618 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 extern void (* __after_morecore_hook)();
9631 __after_morecore_hook = 0
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9640 *) ac_try_echo
=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest
$ac_exeext &&
9653 $as_test_x conftest
$ac_exeext; then
9654 emacs_cv_var___after_morecore_hook
=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9659 emacs_cv_var___after_morecore_hook
=no
9662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9663 conftest
$ac_exeext conftest.
$ac_ext
9665 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9666 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9667 if test $emacs_cv_var___after_morecore_hook = no
; then
9670 if test "${system_malloc}" = "yes"; then
9673 (The GNU allocators don't work with this system configuration.)"
9675 if test "$doug_lea_malloc" = "yes" ; then
9676 if test "$GNU_MALLOC" = yes ; then
9678 (Using Doug Lea's new malloc from the GNU C Library.)"
9681 cat >>confdefs.h
<<\_ACEOF
9682 #define DOUG_LEA_MALLOC 1
9687 if test x
"${REL_ALLOC}" = x
; then
9688 REL_ALLOC
=${GNU_MALLOC}
9694 for ac_header
in stdlib.h unistd.h
9696 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 ac_res
=`eval echo '${'$as_ac_Header'}'`
9704 { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9707 # Is the header compilable?
9708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 #include <$ac_header>
9719 rm -f conftest.
$ac_objext
9720 if { (ac_try
="$ac_compile"
9722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_compile") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest.$ac_objext; then
9736 ac_header_compiler=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 echo "${ECHO_T}$ac_header_compiler" >&6; }
9748 # Is the header present?
9749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <$ac_header>
9759 if { (ac_try="$ac_cpp conftest.$ac_ext"
9761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9762 *) ac_try_echo
=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1
>conftest.err
9769 cat conftest.err
>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } >/dev
/null
&& {
9772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9775 ac_header_preproc
=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_header_preproc
=no
9783 rm -f conftest.err conftest.
$ac_ext
9784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9785 echo "${ECHO_T}$ac_header_preproc" >&6; }
9787 # So? What about this header?
9788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9794 ac_header_preproc
=yes
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9814 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 eval "$as_ac_Header=\$ac_header_preproc"
9819 ac_res
=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9834 for ac_func
in getpagesize
9836 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9839 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.
$ac_ext <<_ACEOF
9845 cat confdefs.h
>>conftest.
$ac_ext
9846 cat >>conftest.
$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850 #define $ac_func innocuous_$ac_func
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9858 # include <limits.h>
9860 # include <assert.h>
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9872 /* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875 #if defined __stub_$ac_func || defined __stub___$ac_func
9887 rm -f conftest.
$ac_objext conftest
$ac_exeext
9888 if { (ac_try
="$ac_link"
9890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 eval "$as_ac_var=yes"
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 eval "$as_ac_var=no"
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9916 ac_res=`eval echo '${'$as_ac_var'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918 echo "${ECHO_T}$ac_res" >&6; }
9919 if test `eval echo '${'$as_ac_var'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9927 { echo "$as_me:$LINENO: checking for working mmap" >&5
9928 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9929 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 if test "$cross_compiling" = yes; then
9933 ac_cv_func_mmap_fixed_mapped=no
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 $ac_includes_default
9942 /* malloc might have been renamed as rpl_malloc. */
9945 /* Thanks to Mike Haertel and Jim Avera for this test.
9946 Here is a matrix of mmap possibilities:
9947 mmap private not fixed
9948 mmap private fixed at somewhere currently unmapped
9949 mmap private fixed at somewhere already mapped
9950 mmap shared not fixed
9951 mmap shared fixed at somewhere currently unmapped
9952 mmap shared fixed at somewhere already mapped
9953 For private mappings, we should verify that changes cannot be read()
9954 back from the file, nor mmap's back from the file at a different
9955 address. (There have been systems where private was not correctly
9956 implemented like the infamous i386 svr4.0, and systems where the
9957 VM page cache was not coherent with the file system buffer cache
9958 like early versions of FreeBSD and possibly contemporary NetBSD.)
9959 For shared mappings, we should conversely verify that changes get
9960 propagated back to all the places they're supposed to be.
9962 Grep wants private fixed already mapped.
9963 The main things grep needs to know about mmap are:
9964 * does it exist and is it safe to write into the mmap'd area
9965 * how to use it (BSD variants) */
9968 #include <sys/mman.h>
9970 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9974 /* This mess was copied from the GNU getpagesize.h. */
9975 #ifndef HAVE_GETPAGESIZE
9976 /* Assume that all systems that can run configure have sys/param.h. */
9977 # ifndef HAVE_SYS_PARAM_H
9978 # define HAVE_SYS_PARAM_H 1
9981 # ifdef _SC_PAGESIZE
9982 # define getpagesize() sysconf(_SC_PAGESIZE)
9983 # else /* no _SC_PAGESIZE */
9984 # ifdef HAVE_SYS_PARAM_H
9985 # include <sys/param.h>
9986 # ifdef EXEC_PAGESIZE
9987 # define getpagesize() EXEC_PAGESIZE
9988 # else /* no EXEC_PAGESIZE */
9990 # define getpagesize() NBPG * CLSIZE
9993 # endif /* no CLSIZE */
9994 # else /* no NBPG */
9996 # define getpagesize() NBPC
9997 # else /* no NBPC */
9999 # define getpagesize() PAGESIZE
10000 # endif /* PAGESIZE */
10001 # endif /* no NBPC */
10002 # endif /* no NBPG */
10003 # endif /* no EXEC_PAGESIZE */
10004 # else /* no HAVE_SYS_PARAM_H */
10005 # define getpagesize() 8192 /* punt totally */
10006 # endif /* no HAVE_SYS_PARAM_H */
10007 # endif /* no _SC_PAGESIZE */
10009 #endif /* no HAVE_GETPAGESIZE */
10014 char *data, *data2, *data3;
10018 pagesize = getpagesize ();
10020 /* First, make a file with some known garbage in it. */
10021 data = (char *) malloc (pagesize);
10024 for (i = 0; i < pagesize; ++i)
10025 *(data + i) = rand ();
10027 fd = creat ("conftest.mmap", 0600);
10030 if (write (fd, data, pagesize) != pagesize)
10034 /* Next, try to mmap the file at a fixed address which already has
10035 something else allocated at it. If we can, also make sure that
10036 we see the same garbage. */
10037 fd = open ("conftest.mmap", O_RDWR);
10040 data2 = (char *) malloc (2 * pagesize);
10043 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10044 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10045 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10047 for (i = 0; i < pagesize; ++i)
10048 if (*(data + i) != *(data2 + i))
10051 /* Finally, make sure that changes to the mapped area do not
10052 percolate back to the file as seen by read(). (This is a bug on
10053 some variants of i386 svr4.0.) */
10054 for (i = 0; i < pagesize; ++i)
10055 *(data2 + i) = *(data2 + i) + 1;
10056 data3 = (char *) malloc (pagesize);
10059 if (read (fd, data3, pagesize) != pagesize)
10061 for (i = 0; i < pagesize; ++i)
10062 if (*(data + i) != *(data3 + i))
10068 rm -f conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10072 *) ac_try_echo
=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func_mmap_fixed_mapped=yes
10090 echo "$as_me: program exited with status $ac_status" >&5
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ( exit $ac_status )
10095 ac_cv_func_mmap_fixed_mapped=no
10097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10103 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10104 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_MMAP 1
10111 rm -f conftest.mmap
10113 if test $use_mmap_for_buffers = yes; then
10117 LIBS="$libsrc_libs $LIBS"
10120 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10121 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-ldnet $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10144 return dnet_ntoa ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10153 *) ac_try_echo
=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1
>conftest.err
10160 cat conftest.err
>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest
$ac_exeext &&
10166 $as_test_x conftest
$ac_exeext; then
10167 ac_cv_lib_dnet_dnet_ntoa
=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.
$ac_ext >&5
10172 ac_cv_lib_dnet_dnet_ntoa
=no
10175 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10176 conftest
$ac_exeext conftest.
$ac_ext
10177 LIBS
=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10181 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10182 cat >>confdefs.h
<<_ACEOF
10183 #define HAVE_LIBDNET 1
10186 LIBS
="-ldnet $LIBS"
10191 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10192 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS
=$LIBS
10197 LIBS
="-lXbsd $LIBS"
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10214 rm -f conftest.
$ac_objext conftest
$ac_exeext
10215 if { (ac_try
="$ac_link"
10216 case "(($ac_try" in
10217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1 >conftest.err
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext &&
10231 $as_test_x conftest$ac_exeext; then
10232 ac_cv_lib_Xbsd_main=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_lib_Xbsd_main=no
10240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10245 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10246 if test $ac_cv_lib_Xbsd_main = yes; then
10247 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10252 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10253 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lpthreads $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10276 return cma_open ();
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10285 *) ac_try_echo
=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest
$ac_exeext &&
10298 $as_test_x conftest
$ac_exeext; then
10299 ac_cv_lib_pthreads_cma_open
=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.
$ac_ext >&5
10304 ac_cv_lib_pthreads_cma_open
=no
10307 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10308 conftest
$ac_exeext conftest.
$ac_ext
10309 LIBS
=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10312 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10313 if test $ac_cv_lib_pthreads_cma_open = yes; then
10314 cat >>confdefs.h
<<_ACEOF
10315 #define HAVE_LIBPTHREADS 1
10318 LIBS
="-lpthreads $LIBS"
10326 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10327 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10328 if test "${gdb_cv_bigtoc+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10334 *) gdb_cv_bigtoc
=-bbigtoc ;;
10337 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10338 cat >conftest.
$ac_ext <<_ACEOF
10341 cat confdefs.h
>>conftest.
$ac_ext
10342 cat >>conftest.
$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10353 rm -f conftest.
$ac_objext conftest
$ac_exeext
10354 if { (ac_try
="$ac_link"
10355 case "(($ac_try" in
10356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10384 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10388 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10389 # used for the tests that follow. We set them back to REAL_CFLAGS and
10390 # REAL_CPPFLAGS later on.
10392 REAL_CPPFLAGS="$CPPFLAGS"
10394 if test "${HAVE_X11}" = "yes"; then
10395 DEFS="$C_SWITCH_X_SITE $DEFS"
10396 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10398 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10399 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10401 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10402 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10403 # but it's more convenient here to set LD_RUN_PATH
10404 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10405 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10406 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10410 if test "${opsys}" = "gnu-linux"; then
10411 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10412 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10423 XOpenDisplay ("foo");
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10432 *) ac_try_echo
=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_link") 2>conftest.er1
10437 grep -v '^ *+' conftest.er1
>conftest.err
10439 cat conftest.err
>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && {
10442 test -z "$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10444 } && test -s conftest
$ac_exeext &&
10445 $as_test_x conftest
$ac_exeext; then
10446 xlinux_first_failure
=no
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.
$ac_ext >&5
10451 xlinux_first_failure
=yes
10454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10455 conftest
$ac_exeext conftest.
$ac_ext
10456 if test "${xlinux_first_failure}" = "yes"; then
10457 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10458 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10459 OLD_CPPFLAGS
="$CPPFLAGS"
10461 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10462 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10463 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10464 LIBS
="$LIBS -b i486-linuxaout"
10465 cat >conftest.
$ac_ext <<_ACEOF
10468 cat confdefs.h
>>conftest.
$ac_ext
10469 cat >>conftest.
$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10475 XOpenDisplay ("foo");
10480 rm -f conftest.
$ac_objext conftest
$ac_exeext
10481 if { (ac_try
="$ac_link"
10482 case "(($ac_try" in
10483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 xlinux_second_failure=no
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 xlinux_second_failure=yes
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 if test "${xlinux_second_failure}" = "yes"; then
10509 # If we get the same failure with -b, there is no use adding -b.
10510 # So take it out. This plays safe.
10511 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10512 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10513 CPPFLAGS="$OLD_CPPFLAGS"
10515 { echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6; }
10518 { echo "$as_me:$LINENO: result: yes" >&5
10519 echo "${ECHO_T}yes" >&6; }
10522 { echo "$as_me:$LINENO: result: no" >&5
10523 echo "${ECHO_T}no" >&6; }
10527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10528 # header files included from there.
10529 { echo "$as_me:$LINENO: checking for Xkb" >&5
10530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <X11/Xlib.h>
10538 #include <X11/XKBlib.h>
10542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10551 *) ac_try_echo
=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1
>conftest.err
10558 cat conftest.err
>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest
$ac_exeext &&
10564 $as_test_x conftest
$ac_exeext; then
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.
$ac_ext >&5
10573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10574 conftest
$ac_exeext conftest.
$ac_ext
10575 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10576 echo "${ECHO_T}$emacs_xkb" >&6; }
10577 if test $emacs_xkb = yes; then
10579 cat >>confdefs.h
<<\_ACEOF
10580 #define HAVE_XKBGETKEYBOARD 1
10589 for ac_func
in XrmSetDatabase XScreenResourceString \
10590 XScreenNumberOfScreen XSetWMProtocols
10592 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10595 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.
$ac_ext <<_ACEOF
10601 cat confdefs.h
>>conftest.
$ac_ext
10602 cat >>conftest.
$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10606 #define $ac_func innocuous_$ac_func
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char $ac_func (); below.
10610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611 <limits.h> exists even on freestanding compilers. */
10614 # include <limits.h>
10616 # include <assert.h>
10621 /* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10628 /* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631 #if defined __stub_$ac_func || defined __stub___$ac_func
10638 return $ac_func ();
10643 rm -f conftest.
$ac_objext conftest
$ac_exeext
10644 if { (ac_try
="$ac_link"
10645 case "(($ac_try" in
10646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 eval "$as_ac_var=yes"
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 eval "$as_ac_var=no"
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10672 ac_res=`eval echo '${'$as_ac_var'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 if test `eval echo '${'$as_ac_var'}'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10685 if test "${window_system}" = "x11"; then
10686 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10687 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10688 if test "${emacs_cv_x11_version_6+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <X11/Xlib.h>
10701 #if XlibSpecificationRelease < 6
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10713 *) ac_try_echo
=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_link") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1
>conftest.err
10720 cat conftest.err
>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest
$ac_exeext &&
10726 $as_test_x conftest
$ac_exeext; then
10727 emacs_cv_x11_version_6
=yes
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.
$ac_ext >&5
10732 emacs_cv_x11_version_6
=no
10735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10736 conftest
$ac_exeext conftest.
$ac_ext
10739 if test $emacs_cv_x11_version_6 = yes; then
10740 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10741 echo "${ECHO_T}6 or newer" >&6; }
10743 cat >>confdefs.h
<<\_ACEOF
10744 #define HAVE_X11R6 1
10748 { echo "$as_me:$LINENO: result: before 6" >&5
10749 echo "${ECHO_T}before 6" >&6; }
10754 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10756 if test "${HAVE_X11}" = "yes"; then
10757 if test "${with_rsvg}" != "no"; then
10758 RSVG_REQUIRED
=2.0.0
10759 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10764 # Extract the first word of "pkg-config", so it can be a program name with args.
10765 set dummy pkg-config
; ac_word
=$2
10766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 case $PKG_CONFIG in
10773 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10777 for as_dir
in $PATH
10780 test -z "$as_dir" && as_dir
=.
10781 for ac_exec_ext
in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10795 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10796 if test -n "$PKG_CONFIG"; then
10797 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10798 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10806 if test "$PKG_CONFIG" = "no" ; then
10809 PKG_CONFIG_MIN_VERSION
=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10812 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10814 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10815 { echo "$as_me:$LINENO: result: yes" >&5
10816 echo "${ECHO_T}yes" >&6; }
10819 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10820 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10821 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10822 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10823 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10825 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10826 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10827 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10828 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10829 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10831 { echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6; }
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10849 if test $succeeded = yes; then
10858 if test ".${RSVG_CFLAGS}" != "."; then
10861 cat >>confdefs.h
<<\_ACEOF
10862 #define HAVE_RSVG 1
10865 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10866 LIBS
="$RSVG_LIBS $LIBS"
10873 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10876 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10881 # Extract the first word of "pkg-config", so it can be a program name with args.
10882 set dummy pkg-config
; ac_word
=$2
10883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 case $PKG_CONFIG in
10890 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10894 for as_dir
in $PATH
10897 test -z "$as_dir" && as_dir
=.
10898 for ac_exec_ext
in '' $ac_executable_extensions; do
10899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10912 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10913 if test -n "$PKG_CONFIG"; then
10914 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10915 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10917 { echo "$as_me:$LINENO: result: no" >&5
10918 echo "${ECHO_T}no" >&6; }
10923 if test "$PKG_CONFIG" = "no" ; then
10926 PKG_CONFIG_MIN_VERSION
=0.9.0
10927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10928 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10929 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10931 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10932 { echo "$as_me:$LINENO: result: yes" >&5
10933 echo "${ECHO_T}yes" >&6; }
10936 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10937 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10938 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10939 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10940 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10942 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10943 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10944 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10945 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10946 echo "${ECHO_T}$GTK_LIBS" >&6; }
10948 { echo "$as_me:$LINENO: result: no" >&5
10949 echo "${ECHO_T}no" >&6; }
10952 ## If we have a custom action on failure, don't print errors, but
10953 ## do set a variable so people can do so.
10954 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10966 if test $succeeded = yes; then
10972 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10973 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10974 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10975 { (exit 1); exit 1; }; }
10980 if test x
"$pkg_check_gtk" = xyes
; then
10984 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10985 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10986 LIBS
="$GTK_LIBS $LIBS"
10989 for ac_func
in gtk_main
10991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10994 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.
$ac_ext <<_ACEOF
11000 cat confdefs.h
>>conftest.
$ac_ext
11001 cat >>conftest.
$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11037 return $ac_func ();
11042 rm -f conftest.
$ac_objext conftest
$ac_exeext
11043 if { (ac_try
="$ac_link"
11044 case "(($ac_try" in
11045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060 eval "$as_ac_var=yes"
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 eval "$as_ac_var=no"
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11071 ac_res=`eval echo '${'$as_ac_var'}'`
11072 { echo "$as_me:$LINENO: result: $ac_res" >&5
11073 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_var'}'` = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11082 if test "${GTK_COMPILES}" != "yes"; then
11083 if test "$USE_X_TOOLKIT" != "maybe"; then
11084 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11085 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11086 { (exit 1); exit 1; }; };
11091 cat >>confdefs.h <<\_ACEOF
11096 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11099 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11100 closing open displays. This is no problem if you just use
11101 one display, but if you use more than one and close one of them
11102 Emacs may crash." >&5
11103 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11104 closing open displays. This is no problem if you just use
11105 one display, but if you use more than one and close one of them
11106 Emacs may crash." >&2;}
11114 if test "${HAVE_GTK}" = "yes"; then
11116 if test "$with_toolkit_scroll_bars" != no; then
11117 with_toolkit_scroll_bars=yes
11120 HAVE_GTK_MULTIDISPLAY=no
11122 for ac_func in gdk_display_open
11124 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11138 #define $ac_func innocuous_$ac_func
11140 /* System header to define __stub macros and hopefully few prototypes,
11141 which can conflict with char $ac_func (); below.
11142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11143 <limits.h> exists even on freestanding compilers. */
11146 # include <limits.h>
11148 # include <assert.h>
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined __stub_$ac_func || defined __stub___$ac_func
11170 return $ac_func ();
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11179 *) ac_try_echo
=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1
>conftest.err
11186 cat conftest.err
>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest
$ac_exeext &&
11192 $as_test_x conftest
$ac_exeext; then
11193 eval "$as_ac_var=yes"
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.
$ac_ext >&5
11198 eval "$as_ac_var=no"
11201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11202 conftest
$ac_exeext conftest.
$ac_ext
11204 ac_res
=`eval echo '${'$as_ac_var'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11207 if test `eval echo '${'$as_ac_var'}'` = yes; then
11208 cat >>confdefs.h
<<_ACEOF
11209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 HAVE_GTK_MULTIDISPLAY
=yes
11215 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11217 cat >>confdefs.h
<<\_ACEOF
11218 #define HAVE_GTK_MULTIDISPLAY 1
11223 HAVE_GTK_FILE_SELECTION
=no
11225 for ac_func
in gtk_file_selection_new
11227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11230 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.
$ac_ext <<_ACEOF
11236 cat confdefs.h
>>conftest.
$ac_ext
11237 cat >>conftest.
$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11241 #define $ac_func innocuous_$ac_func
11243 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $ac_func (); below.
11245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11246 <limits.h> exists even on freestanding compilers. */
11249 # include <limits.h>
11251 # include <assert.h>
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined __stub_$ac_func || defined __stub___$ac_func
11273 return $ac_func ();
11278 rm -f conftest.
$ac_objext conftest
$ac_exeext
11279 if { (ac_try
="$ac_link"
11280 case "(($ac_try" in
11281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_link") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } && {
11292 test -z "$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 } && test -s conftest$ac_exeext &&
11295 $as_test_x conftest$ac_exeext; then
11296 eval "$as_ac_var=yes"
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 eval "$as_ac_var=no"
11304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11305 conftest$ac_exeext conftest.$ac_ext
11307 ac_res=`eval echo '${'$as_ac_var'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310 if test `eval echo '${'$as_ac_var'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11314 HAVE_GTK_FILE_SELECTION=yes
11319 HAVE_GTK_FILE_CHOOSER=no
11321 for ac_func in gtk_file_chooser_dialog_new
11323 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11345 # include <limits.h>
11347 # include <assert.h>
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11369 return $ac_func ();
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11378 *) ac_try_echo
=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11383 grep -v '^ *+' conftest.er1
>conftest.err
11385 cat conftest.err
>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest
$ac_exeext &&
11391 $as_test_x conftest
$ac_exeext; then
11392 eval "$as_ac_var=yes"
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11397 eval "$as_ac_var=no"
11400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11401 conftest
$ac_exeext conftest.
$ac_ext
11403 ac_res
=`eval echo '${'$as_ac_var'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 if test `eval echo '${'$as_ac_var'}'` = yes; then
11407 cat >>confdefs.h
<<_ACEOF
11408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 HAVE_GTK_FILE_CHOOSER
=yes
11415 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11416 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11418 cat >>confdefs.h
<<\_ACEOF
11419 #define HAVE_GTK_FILE_BOTH 1
11424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11425 HAVE_GTK_AND_PTHREAD
=no
11427 for ac_header
in pthread.h
11429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_res
=`eval echo '${'$as_ac_Header'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11440 # Is the header compilable?
11441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11443 cat >conftest.
$ac_ext <<_ACEOF
11446 cat confdefs.h
>>conftest.
$ac_ext
11447 cat >>conftest.
$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11452 rm -f conftest.
$ac_objext
11453 if { (ac_try
="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_compiler=no
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 echo "${ECHO_T}$ac_header_compiler" >&6; }
11481 # Is the header present?
11482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11495 *) ac_try_echo
=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1
>conftest.err
11502 cat conftest.err
>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } >/dev
/null
&& {
11505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11508 ac_header_preproc
=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.
$ac_ext >&5
11513 ac_header_preproc
=no
11516 rm -f conftest.err conftest.
$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6; }
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc
=yes
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 eval "$as_ac_Header=\$ac_header_preproc"
11552 ac_res
=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554 echo "${ECHO_T}$ac_res" >&6; }
11557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558 cat >>confdefs.h
<<_ACEOF
11559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 if test "$ac_cv_header_pthread_h"; then
11567 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11568 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11569 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 ac_check_lib_save_LIBS
=$LIBS
11573 LIBS
="-lpthread $LIBS"
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11587 char pthread_self ();
11591 return pthread_self ();
11596 rm -f conftest.
$ac_objext conftest
$ac_exeext
11597 if { (ac_try
="$ac_link"
11598 case "(($ac_try" in
11599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_link") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest$ac_exeext &&
11613 $as_test_x conftest$ac_exeext; then
11614 ac_cv_lib_pthread_pthread_self=yes
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_lib_pthread_pthread_self=no
11622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11627 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11628 if test $ac_cv_lib_pthread_pthread_self = yes; then
11629 HAVE_GTK_AND_PTHREAD=yes
11633 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11634 case "${canonical}" in
11636 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_GTK_AND_PTHREAD 1
11648 if test "${with_dbus}" = "yes"; then
11652 # Extract the first word of "pkg-config", so it can be a program name with args.
11653 set dummy pkg-config; ac_word=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 case $PKG_CONFIG in
11661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11684 if test -n "$PKG_CONFIG"; then
11685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11688 { echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6; }
11694 if test "$PKG_CONFIG" = "no" ; then
11697 PKG_CONFIG_MIN_VERSION=0.9.0
11698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11699 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11700 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11702 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11703 { echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6; }
11707 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11708 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11709 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11710 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11711 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11713 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11714 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11715 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11716 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11717 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11719 { echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6; }
11723 ## If we have a custom action on failure, don't print errors, but
11724 ## do set a variable so people can do so.
11725 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11737 if test $succeeded = yes; then
11743 if test "$HAVE_DBUS" = yes; then
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_DBUS 1
11753 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11754 if test "$with_xaw3d" != no; then
11755 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11756 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11757 if test "${emacs_cv_xaw3d+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 #include <X11/Intrinsic.h>
11768 #include <X11/Xaw3d/Simple.h>
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11781 *) ac_try_echo
=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest
$ac_exeext &&
11794 $as_test_x conftest
$ac_exeext; then
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11803 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11804 conftest
$ac_exeext conftest.
$ac_ext
11810 if test $emacs_cv_xaw3d = yes; then
11811 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11812 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11813 USE_X_TOOLKIT
=LUCID
11816 cat >>confdefs.h
<<\_ACEOF
11817 #define HAVE_XAW3D 1
11821 { echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6; }
11823 { echo "$as_me:$LINENO: checking for libXaw" >&5
11824 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11825 if test "${emacs_cv_xaw+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 #include <X11/Intrinsic.h>
11836 #include <X11/Xaw/Simple.h>
11845 rm -f conftest.
$ac_objext conftest
$ac_exeext
11846 if { (ac_try
="$ac_link"
11847 case "(($ac_try" in
11848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest$ac_exeext &&
11862 $as_test_x conftest$ac_exeext; then
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11872 conftest$ac_exeext conftest.$ac_ext
11875 if test $emacs_cv_xaw = yes; then
11876 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11877 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11878 USE_X_TOOLKIT=LUCID
11879 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11880 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11881 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11882 { (exit 1); exit 1; }; }
11884 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11885 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11891 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11893 if test "${USE_X_TOOLKIT}" != "none"; then
11894 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11895 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11896 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <X11/Intrinsic.h>
11909 #if XtSpecificationRelease < 6
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11921 *) ac_try_echo
=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1
>conftest.err
11928 cat conftest.err
>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest
$ac_exeext &&
11934 $as_test_x conftest
$ac_exeext; then
11935 emacs_cv_x11_toolkit_version_6
=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11940 emacs_cv_x11_toolkit_version_6
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11944 conftest
$ac_exeext conftest.
$ac_ext
11947 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11948 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11949 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11950 echo "${ECHO_T}6 or newer" >&6; }
11952 cat >>confdefs.h
<<\_ACEOF
11953 #define HAVE_X11XTR6 1
11957 { echo "$as_me:$LINENO: result: before 6" >&5
11958 echo "${ECHO_T}before 6" >&6; }
11962 if test x
$HAVE_X11XTR6 = xyes
; then
11963 LIBS
="-lXt -lSM -lICE $LIBS"
11968 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11969 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11970 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 ac_check_lib_save_LIBS
=$LIBS
11975 cat >conftest.
$ac_ext <<_ACEOF
11978 cat confdefs.h
>>conftest.
$ac_ext
11979 cat >>conftest.
$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11988 char XmuConvertStandardSelection ();
11992 return XmuConvertStandardSelection ();
11997 rm -f conftest.
$ac_objext conftest
$ac_exeext
11998 if { (ac_try
="$ac_link"
11999 case "(($ac_try" in
12000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12029 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_LIBXMU 1
12038 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12041 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12042 if test "${HAVE_X11}" = "yes"; then
12043 if test "${USE_X_TOOLKIT}" != "none"; then
12045 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12046 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXext $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12065 char XShapeQueryExtension ();
12069 return XShapeQueryExtension ();
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12078 *) ac_try_echo
=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1
>conftest.err
12085 cat conftest.err
>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest
$ac_exeext &&
12091 $as_test_x conftest
$ac_exeext; then
12092 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.
$ac_ext >&5
12097 ac_cv_lib_Xext_XShapeQueryExtension
=no
12100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12106 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12107 cat >>confdefs.h
<<_ACEOF
12108 #define HAVE_LIBXEXT 1
12111 LIBS
="-lXext $LIBS"
12118 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12119 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12120 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12121 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 cat >conftest.
$ac_ext <<_ACEOF
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12134 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12137 Motif version prior to 2.1.
12143 rm -f conftest.
$ac_objext
12144 if { (ac_try
="$ac_compile"
12145 case "(($ac_try" in
12146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_compile") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest.$ac_objext; then
12160 emacs_cv_motif_version_2_1=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 emacs_cv_motif_version_2_1=no
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12171 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12172 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12173 if test $emacs_cv_motif_version_2_1 = yes; then
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_MOTIF_2_1 1
12180 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12181 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12182 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 ac_check_lib_save_LIBS=$LIBS
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12200 char XpCreateContext ();
12204 return XpCreateContext ();
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12213 *) ac_try_echo
=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1
>conftest.err
12220 cat conftest.err
>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest
$ac_exeext &&
12226 $as_test_x conftest
$ac_exeext; then
12227 ac_cv_lib_Xp_XpCreateContext
=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.
$ac_ext >&5
12232 ac_cv_lib_Xp_XpCreateContext
=no
12235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12236 conftest
$ac_exeext conftest.
$ac_ext
12237 LIBS
=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12240 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12241 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12245 if test ${HAVE_LIBXP} = yes; then
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define HAVE_LIBXP 1
12253 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12254 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12255 if test "${emacs_cv_lesstif+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 # We put this in CFLAGS temporarily to precede other -I options
12259 # that might be in CFLAGS temporarily.
12260 # We put this in CPPFLAGS where it precedes the other -I options.
12261 OLD_CPPFLAGS
=$CPPFLAGS
12263 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12264 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12265 cat >conftest.
$ac_ext <<_ACEOF
12268 cat confdefs.h
>>conftest.
$ac_ext
12269 cat >>conftest.
$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12280 rm -f conftest.
$ac_objext
12281 if { (ac_try
="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest.$ac_objext; then
12297 emacs_cv_lesstif=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 emacs_cv_lesstif=no
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12308 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12309 if test $emacs_cv_lesstif = yes; then
12310 # Make sure this -I option remains in CPPFLAGS after it is set
12311 # back to REAL_CPPFLAGS.
12312 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12313 # have those other -I options anyway. Ultimately, having this
12314 # directory ultimately in CPPFLAGS will be enough.
12315 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12316 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12319 CPPFLAGS=$OLD_CPPFLAGS
12326 USE_TOOLKIT_SCROLL_BARS=no
12327 if test "${with_toolkit_scroll_bars}" != "no"; then
12328 if test "${USE_X_TOOLKIT}" != "none"; then
12329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12330 cat >>confdefs.h <<\_ACEOF
12331 #define USE_TOOLKIT_SCROLL_BARS 1
12335 USE_TOOLKIT_SCROLL_BARS=yes
12336 elif test "${HAVE_XAW3D}" = "yes"; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define USE_TOOLKIT_SCROLL_BARS 1
12341 USE_TOOLKIT_SCROLL_BARS=yes
12343 elif test "${HAVE_GTK}" = "yes"; then
12344 cat >>confdefs.h <<\_ACEOF
12345 #define USE_TOOLKIT_SCROLL_BARS 1
12348 USE_TOOLKIT_SCROLL_BARS=yes
12349 elif test "${HAVE_NS}" = "yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define USE_TOOLKIT_SCROLL_BARS 1
12354 USE_TOOLKIT_SCROLL_BARS=yes
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 #include <X11/Xlib.h>
12366 #include <X11/Xresource.h>
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12379 *) ac_try_echo
=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1
>conftest.err
12386 cat conftest.err
>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.
$ac_objext; then
12394 cat >>confdefs.h
<<\_ACEOF
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.
$ac_ext >&5
12405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12408 if test "${with_xim}" != "no"; then
12410 cat >>confdefs.h
<<\_ACEOF
12417 if test "${HAVE_XIM}" != "no"; then
12418 late_CFLAGS
=$CFLAGS
12419 if test "$GCC" = yes; then
12420 CFLAGS
="$CFLAGS --pedantic-errors"
12422 cat >conftest.
$ac_ext <<_ACEOF
12425 cat confdefs.h
>>conftest.
$ac_ext
12426 cat >>conftest.
$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 #include <X11/Xlib.h>
12430 #include <X11/Xresource.h>
12439 XPointer *client_data;
12441 /* If we're not using GCC, it's probably not XFree86, and this is
12442 probably right, but we can't use something like --pedantic-errors. */
12443 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12444 char*, XIMProc, XPointer*);
12446 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12452 rm -f conftest.
$ac_objext
12453 if { (ac_try
="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 emacs_cv_arg6_star=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 if test "$emacs_cv_arg6_star" = yes; then
12480 cat >>confdefs.h <<\_ACEOF
12481 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12485 cat >>confdefs.h <<\_ACEOF
12486 #define XRegisterIMInstantiateCallback_arg6 XPointer
12490 CFLAGS=$late_CFLAGS
12493 ### Start of font-backend section.
12495 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12497 if test "x${with_freetype}" = "xno"; then
12500 if test "x${with_xft}" != "xno"; then
12505 # Extract the first word of "pkg-config", so it can be a program name with args.
12506 set dummy pkg-config
; ac_word
=$2
12507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 case $PKG_CONFIG in
12514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12518 for as_dir
in $PATH
12521 test -z "$as_dir" && as_dir
=.
12522 for ac_exec_ext
in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12537 if test -n "$PKG_CONFIG"; then
12538 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12539 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12541 { echo "$as_me:$LINENO: result: no" >&5
12542 echo "${ECHO_T}no" >&6; }
12547 if test "$PKG_CONFIG" = "no" ; then
12550 PKG_CONFIG_MIN_VERSION
=0.9.0
12551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12552 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12553 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12555 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12556 { echo "$as_me:$LINENO: result: yes" >&5
12557 echo "${ECHO_T}yes" >&6; }
12560 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12561 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12562 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12563 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12564 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12566 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12567 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12568 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12569 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12570 echo "${ECHO_T}$XFT_LIBS" >&6; }
12572 { echo "$as_me:$LINENO: result: no" >&5
12573 echo "${ECHO_T}no" >&6; }
12576 ## If we have a custom action on failure, don't print errors, but
12577 ## do set a variable so people can do so.
12578 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12590 if test $succeeded = yes; then
12596 if test "$HAVE_XFT" != no
; then
12597 OLD_CPPFLAGS
="$CPPFLAGS"
12598 OLD_CFLAGS
="$CFLAGS"
12600 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12601 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12602 LIBS
="$XFT_LIBS $LIBS"
12603 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12604 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12605 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12606 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12610 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12612 # Is the header compilable?
12613 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12614 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 #include <X11/Xft/Xft.h>
12624 rm -f conftest.
$ac_objext
12625 if { (ac_try
="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 ac_header_compiler=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_compiler=no
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12651 echo "${ECHO_T}$ac_header_compiler" >&6; }
12653 # Is the header present?
12654 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12655 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 #include <X11/Xft/Xft.h>
12664 if { (ac_try="$ac_cpp conftest.$ac_ext"
12665 case "(($ac_try" in
12666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12667 *) ac_try_echo
=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12672 grep -v '^ *+' conftest.er1
>conftest.err
12674 cat conftest.err
>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } >/dev
/null
&& {
12677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12680 ac_header_preproc
=yes
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.
$ac_ext >&5
12685 ac_header_preproc
=no
12688 rm -f conftest.err conftest.
$ac_ext
12689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12690 echo "${ECHO_T}$ac_header_preproc" >&6; }
12692 # So? What about this header?
12693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12695 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12696 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12698 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12699 ac_header_preproc
=yes
12702 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12703 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12704 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12705 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12707 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12709 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12711 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12713 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12717 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12718 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12719 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12724 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12728 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12729 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12730 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12731 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_check_lib_save_LIBS
=$LIBS
12735 LIBS
="-lXft $XFT_LIBS $LIBS"
12736 cat >conftest.
$ac_ext <<_ACEOF
12739 cat confdefs.h
>>conftest.
$ac_ext
12740 cat >>conftest.
$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char XftFontOpen ();
12753 return XftFontOpen ();
12758 rm -f conftest.
$ac_objext conftest
$ac_exeext
12759 if { (ac_try
="$ac_link"
12760 case "(($ac_try" in
12761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest$ac_exeext &&
12775 $as_test_x conftest$ac_exeext; then
12776 ac_cv_lib_Xft_XftFontOpen=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_cv_lib_Xft_XftFontOpen=no
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12789 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12790 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12798 if test "${HAVE_XFT}" = "yes"; then
12800 cat >>confdefs.h <<\_ACEOF
12805 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12807 CPPFLAGS="$OLD_CPPFLAGS"
12808 CFLAGS="$OLD_CFLAGS"
12810 fi # "${HAVE_XFT}" = "yes"
12811 fi # "$HAVE_XFT" != no
12812 fi # "x${with_xft}" != "xno"
12814 if test "$HAVE_XFT" != "yes"; then
12820 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12821 if test "${HAVE_XFT}" = "yes"; then
12823 elif test "x${with_freetype}" != "xno"; then
12828 # Extract the first word of "pkg-config", so it can be a program name with args.
12829 set dummy pkg-config; ac_word=$2
12830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 case $PKG_CONFIG in
12837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12860 if test -n "$PKG_CONFIG"; then
12861 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12862 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12870 if test "$PKG_CONFIG" = "no" ; then
12873 PKG_CONFIG_MIN_VERSION=0.9.0
12874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12875 { echo "$as_me:$LINENO: checking for freetype2" >&5
12876 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12878 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12879 { echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6; }
12883 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12884 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12885 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12886 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12887 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12889 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12890 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12891 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12892 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12893 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12895 { echo "$as_me:$LINENO: result: no" >&5
12896 echo "${ECHO_T}no" >&6; }
12899 ## If we have a custom action on failure, don't print errors
, but
12900 ## do set a variable so people can do so.
12901 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12919 if test "${HAVE_FREETYPE}" = "yes"; then
12923 # Extract the first word of "pkg-config", so it can be a program name with args.
12924 set dummy pkg-config
; ac_word
=$2
12925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 case $PKG_CONFIG in
12932 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12936 for as_dir
in $PATH
12939 test -z "$as_dir" && as_dir
=.
12940 for ac_exec_ext
in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12954 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12955 if test -n "$PKG_CONFIG"; then
12956 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12957 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12959 { echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6; }
12965 if test "$PKG_CONFIG" = "no" ; then
12968 PKG_CONFIG_MIN_VERSION
=0.9.0
12969 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12970 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12971 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12973 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12974 { echo "$as_me:$LINENO: result: yes" >&5
12975 echo "${ECHO_T}yes" >&6; }
12978 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12979 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12980 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12981 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12982 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12984 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12985 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12986 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12987 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12988 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12990 { echo "$as_me:$LINENO: result: no" >&5
12991 echo "${ECHO_T}no" >&6; }
12992 FONTCONFIG_CFLAGS
=""
12994 ## If we have a custom action on failure, don't print errors, but
12995 ## do set a variable so people can do so.
12996 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13008 if test $succeeded = yes; then
13014 if test "${HAVE_FC}" = "no"; then
13021 if test "${HAVE_FREETYPE}" = "yes"; then
13023 cat >>confdefs.h
<<\_ACEOF
13024 #define HAVE_FREETYPE 1
13027 if test "${with_libotf}" != "no"; then
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032 set dummy pkg-config
; ac_word
=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 case $PKG_CONFIG in
13040 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13044 for as_dir
in $PATH
13047 test -z "$as_dir" && as_dir
=.
13048 for ac_exec_ext
in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13062 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13063 if test -n "$PKG_CONFIG"; then
13064 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13065 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13073 if test "$PKG_CONFIG" = "no" ; then
13076 PKG_CONFIG_MIN_VERSION
=0.9.0
13077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13078 { echo "$as_me:$LINENO: checking for libotf" >&5
13079 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13081 if $PKG_CONFIG --exists "libotf" 2>&5; then
13082 { echo "$as_me:$LINENO: result: yes" >&5
13083 echo "${ECHO_T}yes" >&6; }
13086 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13087 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13088 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13089 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13090 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13092 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13093 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13094 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13095 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13096 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13098 { echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6; }
13102 ## If we have a custom action on failure, don't print errors, but
13103 ## do set a variable so people can do so.
13104 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13116 if test $succeeded = yes; then
13122 if test "$HAVE_LIBOTF" = "yes"; then
13124 cat >>confdefs.h
<<\_ACEOF
13125 #define HAVE_LIBOTF 1
13133 if test "${with_m17n_flt}" != "no"; then
13137 # Extract the first word of "pkg-config", so it can be a program name with args.
13138 set dummy pkg-config
; ac_word
=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 case $PKG_CONFIG in
13146 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13150 for as_dir
in $PATH
13153 test -z "$as_dir" && as_dir
=.
13154 for ac_exec_ext
in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13168 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13169 if test -n "$PKG_CONFIG"; then
13170 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13171 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13173 { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13179 if test "$PKG_CONFIG" = "no" ; then
13182 PKG_CONFIG_MIN_VERSION
=0.9.0
13183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13184 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13185 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13187 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13188 { echo "$as_me:$LINENO: result: yes" >&5
13189 echo "${ECHO_T}yes" >&6; }
13192 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13193 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13194 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13195 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13196 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13198 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13199 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13200 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13201 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13202 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13204 { echo "$as_me:$LINENO: result: no" >&5
13205 echo "${ECHO_T}no" >&6; }
13208 ## If we have a custom action on failure, don't print errors, but
13209 ## do set a variable so people can do so.
13210 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13222 if test $succeeded = yes; then
13228 if test "$HAVE_M17N_FLT" = "yes"; then
13230 cat >>confdefs.h
<<\_ACEOF
13231 #define HAVE_M17N_FLT 1
13246 ### End of font-backend section.
13248 ### Use -lXpm if available, unless `--with-xpm=no'.
13250 if test "${HAVE_X11}" = "yes"; then
13251 if test "${with_xpm}" != "no"; then
13252 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13253 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13254 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13255 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13259 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13261 # Is the header compilable?
13262 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13263 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13264 cat >conftest.
$ac_ext <<_ACEOF
13267 cat confdefs.h
>>conftest.
$ac_ext
13268 cat >>conftest.
$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <X11/xpm.h>
13273 rm -f conftest.
$ac_objext
13274 if { (ac_try
="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_compiler=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
13302 # Is the header present?
13303 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13304 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <X11/xpm.h>
13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1
>conftest.err
13323 cat conftest.err
>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev
/null
&& {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13329 ac_header_preproc
=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 ac_header_preproc
=no
13337 rm -f conftest.err conftest.
$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13344 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13345 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13347 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc
=yes
13351 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13356 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13358 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13360 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13362 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13366 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13367 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13368 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13373 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13377 if test $ac_cv_header_X11_xpm_h = yes; then
13378 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13379 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13380 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 ac_check_lib_save_LIBS
=$LIBS
13384 LIBS
="-lXpm -lX11 $LIBS"
13385 cat >conftest.
$ac_ext <<_ACEOF
13388 cat confdefs.h
>>conftest.
$ac_ext
13389 cat >>conftest.
$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13398 char XpmReadFileToPixmap ();
13402 return XpmReadFileToPixmap ();
13407 rm -f conftest.
$ac_objext conftest
$ac_exeext
13408 if { (ac_try
="$ac_link"
13409 case "(($ac_try" in
13410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest$ac_exeext &&
13424 $as_test_x conftest$ac_exeext; then
13425 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13438 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13439 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13446 if test "${HAVE_XPM}" = "yes"; then
13447 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13448 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 #include "X11/xpm.h"
13456 #ifndef XpmReturnAllocPixels
13457 no_return_alloc_pixels
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13470 if test "${HAVE_XPM}" = "yes"; then
13471 { echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6; }
13474 { echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6; }
13480 if test "${HAVE_XPM}" = "yes"; then
13482 cat >>confdefs.h <<\_ACEOF
13489 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13491 if test "${HAVE_X11}" = "yes"; then
13492 if test "${with_jpeg}" != "no"; then
13493 if test "${ac_cv_header_jerror_h+set}" = set; then
13494 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13495 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13496 if test "${ac_cv_header_jerror_h+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13500 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13502 # Is the header compilable?
13503 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13504 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13512 #include <jerror.h>
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_compile") 2>conftest.er1
13523 grep -v '^
*+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest.$ac_objext; then
13531 ac_header_compiler=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's
/^
/|
/' conftest.$ac_ext >&5
13536 ac_header_compiler=no
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541 echo "${ECHO_T}$ac_header_compiler" >&6; }
13543 # Is the header present?
13544 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13545 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <jerror.h>
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 grep -v '^
*+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null && {
13567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13570 ac_header_preproc=yes
13572 echo "$as_me: failed program was:" >&5
13573 sed 's
/^
/|
/' conftest.$ac_ext >&5
13575 ac_header_preproc=no
13578 rm -f conftest.err conftest.$ac_ext
13579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6; }
13582 # So? What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13588 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13589 ac_header_preproc=yes
13592 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13601 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13607 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13608 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13609 if test "${ac_cv_header_jerror_h+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 ac_cv_header_jerror_h=$ac_header_preproc
13614 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13615 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13618 if test $ac_cv_header_jerror_h = yes; then
13619 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13620 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13621 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_check_lib_save_LIBS=$LIBS
13625 LIBS="-ljpeg $LIBS"
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13639 char jpeg_destroy_compress ();
13643 return jpeg_destroy_compress ();
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (ac_try="$ac_link"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_link") 2>conftest.er1
13657 grep -v '^
*+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && {
13662 test -z "$ac_c_werror_flag" ||
13663 test ! -s conftest.err
13664 } && test -s conftest$ac_exeext &&
13665 $as_test_x conftest$ac_exeext; then
13666 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13668 echo "$as_me: failed program was:" >&5
13669 sed 's
/^
/|
/' conftest.$ac_ext >&5
13671 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13679 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13680 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13690 if test "${HAVE_JPEG}" = "yes"; then
13691 cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_JPEG 1
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <jpeglib.h>
13702 version=JPEG_LIB_VERSION
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_JPEG 1
13712 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13713 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13721 ### Use -lpng if available, unless `--with-png=no'.
13723 if test "${HAVE_X11}" = "yes"; then
13724 if test "${with_png}" != "no"; then
13725 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13726 # in /usr/include/libpng.
13729 for ac_header
in png.h libpng
/png.h
13731 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 ac_res
=`eval echo '${'$as_ac_Header'}'`
13739 { echo "$as_me:$LINENO: result: $ac_res" >&5
13740 echo "${ECHO_T}$ac_res" >&6; }
13742 # Is the header compilable?
13743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 #include <$ac_header>
13754 rm -f conftest.
$ac_objext
13755 if { (ac_try
="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_header_compiler=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13797 *) ac_try_echo
=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1
>conftest.err
13804 cat conftest.err
>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev
/null
&& {
13807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13810 ac_header_preproc
=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.
$ac_ext >&5
13815 ac_header_preproc
=no
13818 rm -f conftest.err conftest.
$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6; }
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc
=yes
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=\$ac_header_preproc"
13854 ac_res
=`eval echo '${'$as_ac_Header'}'`
13855 { echo "$as_me:$LINENO: result: $ac_res" >&5
13856 echo "${ECHO_T}$ac_res" >&6; }
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h
<<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13868 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13869 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13870 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 ac_check_lib_save_LIBS
=$LIBS
13875 LIBS
="-lpng -lz -lm $LIBS"
13876 cat >conftest.
$ac_ext <<_ACEOF
13879 cat confdefs.h
>>conftest.
$ac_ext
13880 cat >>conftest.
$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13889 char png_get_channels ();
13893 return png_get_channels ();
13898 rm -f conftest.
$ac_objext conftest
$ac_exeext
13899 if { (ac_try
="$ac_link"
13900 case "(($ac_try" in
13901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_png_png_get_channels=yes
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_lib_png_png_get_channels=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13929 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13930 if test $ac_cv_lib_png_png_get_channels = yes; then
13937 if test "${HAVE_PNG}" = "yes"; then
13939 cat >>confdefs.h <<\_ACEOF
13946 ### Use -ltiff if available, unless `--with-tiff=no
'.
13948 if test "${HAVE_X11}" = "yes"; then
13949 if test "${with_tiff}" != "no"; then
13950 if test "${ac_cv_header_tiffio_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13952 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_tiffio_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13961 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13969 #include <tiffio.h>
13971 rm -f conftest.$ac_objext
13972 if { (ac_try="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13980 grep -v '^
*+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's
/^
/|
/' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14002 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <tiffio.h>
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14019 grep -v '^
*+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null && {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14027 ac_header_preproc=yes
14029 echo "$as_me: failed program was:" >&5
14030 sed 's
/^
/|
/' conftest.$ac_ext >&5
14032 ac_header_preproc=no
14035 rm -f conftest.err conftest.$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14045 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14046 ac_header_preproc=yes
14049 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14058 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14064 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14065 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_tiffio_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_cv_header_tiffio_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14075 if test $ac_cv_header_tiffio_h = yes; then
14077 # At least one tiff package requires the jpeg library.
14078 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14079 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14080 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-ltiff $tifflibs $LIBS"
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14099 char TIFFGetVersion ();
14103 return TIFFGetVersion ();
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (ac_try="$ac_link"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14117 grep -v '^
*+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_tiff_TIFFGetVersion=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's
/^
/|
/' conftest.$ac_ext >&5
14131 ac_cv_lib_tiff_TIFFGetVersion=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14139 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14140 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14149 if test "${HAVE_TIFF}" = "yes"; then
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_TIFF 1
14158 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14160 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14161 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14170 # Is the header compilable?
14171 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14172 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14173 cat >conftest.
$ac_ext <<_ACEOF
14176 cat confdefs.h
>>conftest.
$ac_ext
14177 cat >>conftest.
$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 #include <gif_lib.h>
14182 rm -f conftest.
$ac_objext
14183 if { (ac_try
="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_header_compiler=yes
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_header_compiler=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14209 echo "${ECHO_T}$ac_header_compiler" >&6; }
14211 # Is the header present?
14212 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14213 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <gif_lib.h>
14222 if { (ac_try="$ac_cpp conftest.$ac_ext"
14223 case "(($ac_try" in
14224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14225 *) ac_try_echo
=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1
>conftest.err
14232 cat conftest.err
>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } >/dev
/null
&& {
14235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14238 ac_header_preproc
=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.
$ac_ext >&5
14243 ac_header_preproc
=no
14246 rm -f conftest.err conftest.
$ac_ext
14247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 echo "${ECHO_T}$ac_header_preproc" >&6; }
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14253 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14254 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14256 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14257 ac_header_preproc
=yes
14260 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14261 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14263 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14265 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14267 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14269 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14271 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14275 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14276 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 ac_cv_header_gif_lib_h
=$ac_header_preproc
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14283 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14286 if test $ac_cv_header_gif_lib_h = yes; then
14287 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14288 # Earlier versions can crash Emacs.
14289 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14290 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14291 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 ac_check_lib_save_LIBS
=$LIBS
14296 cat >conftest.
$ac_ext <<_ACEOF
14299 cat confdefs.h
>>conftest.
$ac_ext
14300 cat >>conftest.
$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14309 char EGifPutExtensionLast ();
14313 return EGifPutExtensionLast ();
14318 rm -f conftest.
$ac_objext conftest
$ac_exeext
14319 if { (ac_try
="$ac_link"
14320 case "(($ac_try" in
14321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14327 grep -v '^ *+' conftest.er1 >conftest.err
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && {
14332 test -z "$ac_c_werror_flag" ||
14333 test ! -s conftest.err
14334 } && test -s conftest$ac_exeext &&
14335 $as_test_x conftest$ac_exeext; then
14336 ac_cv_lib_gif_EGifPutExtensionLast=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_lib_gif_EGifPutExtensionLast=no
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14349 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14350 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14360 if test "$HAVE_GIF" = yes; then
14361 ac_gif_lib_name="-lgif"
14364 # If gif_lib.h but no libgif, try libungif.
14365 if test x"$try_libungif" = xyes; then
14366 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14367 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14368 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 ac_check_lib_save_LIBS=$LIBS
14372 LIBS="-lungif $LIBS"
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14386 char EGifPutExtensionLast ();
14390 return EGifPutExtensionLast ();
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14399 *) ac_try_echo
=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1
>conftest.err
14406 cat conftest.err
>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest
$ac_exeext &&
14412 $as_test_x conftest
$ac_exeext; then
14413 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.
$ac_ext >&5
14418 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14422 conftest
$ac_exeext conftest.
$ac_ext
14423 LIBS
=$ac_check_lib_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14426 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14427 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14432 if test "$HAVE_GIF" = yes; then
14434 cat >>confdefs.h
<<\_ACEOF
14435 #define LIBGIF -lungif
14438 ac_gif_lib_name
="-lungif"
14442 if test "${HAVE_GIF}" = "yes"; then
14444 cat >>confdefs.h
<<\_ACEOF
14451 if test "${HAVE_X11}" = "yes"; then
14454 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14455 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14456 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14457 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14458 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14459 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14460 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14461 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14462 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14463 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14465 if test "X${MISSING}" != X
; then
14466 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14468 Maybe some development libraries/packages are missing?
14469 If you don't want to link with them give
14471 as options to configure" >&5
14472 echo "$as_me: error: The following required libraries were not found:
14474 Maybe some development libraries/packages are missing?
14475 If you don't want to link with them give
14477 as options to configure" >&2;}
14478 { (exit 1); exit 1; }; }
14482 ### Use -lgpm if available, unless `--with-gpm=no'.
14484 if test "${with_gpm}" != "no"; then
14485 if test "${ac_cv_header_gpm_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14487 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_gpm_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14494 # Is the header compilable?
14495 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14496 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14497 cat >conftest.
$ac_ext <<_ACEOF
14500 cat confdefs.h
>>conftest.
$ac_ext
14501 cat >>conftest.
$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14506 rm -f conftest.
$ac_objext
14507 if { (ac_try
="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.$ac_objext; then
14523 ac_header_compiler=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_header_compiler=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14533 echo "${ECHO_T}$ac_header_compiler" >&6; }
14535 # Is the header present?
14536 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14537 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14546 if { (ac_try="$ac_cpp conftest.$ac_ext"
14547 case "(($ac_try" in
14548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14549 *) ac_try_echo
=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1
>conftest.err
14556 cat conftest.err
>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } >/dev
/null
&& {
14559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14562 ac_header_preproc
=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.
$ac_ext >&5
14567 ac_header_preproc
=no
14570 rm -f conftest.err conftest.
$ac_ext
14571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14572 echo "${ECHO_T}$ac_header_preproc" >&6; }
14574 # So? What about this header?
14575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14578 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14580 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14581 ac_header_preproc
=yes
14584 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14585 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14587 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14589 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14591 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14593 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14595 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14599 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14600 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14601 if test "${ac_cv_header_gpm_h+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 ac_cv_header_gpm_h
=$ac_header_preproc
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14610 if test $ac_cv_header_gpm_h = yes; then
14611 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14612 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14613 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 ac_check_lib_save_LIBS
=$LIBS
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14625 /* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
14635 return Gpm_Open ();
14640 rm -f conftest.
$ac_objext conftest
$ac_exeext
14641 if { (ac_try
="$ac_link"
14642 case "(($ac_try" in
14643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest$ac_exeext &&
14657 $as_test_x conftest$ac_exeext; then
14658 ac_cv_lib_gpm_Gpm_Open=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_lib_gpm_Gpm_Open=no
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14668 LIBS=$ac_check_lib_save_LIBS
14670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14671 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14672 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14681 if test "${HAVE_GPM}" = "yes"; then
14683 cat >>confdefs.h <<\_ACEOF
14689 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14690 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14691 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14692 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14696 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14698 # Is the header compilable?
14699 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14700 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 #include <malloc/malloc.h>
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14714 *) ac_try_echo
=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14719 grep -v '^ *+' conftest.er1
>conftest.err
14721 cat conftest.err
>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.
$ac_objext; then
14727 ac_header_compiler
=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.
$ac_ext >&5
14732 ac_header_compiler
=no
14735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 echo "${ECHO_T}$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14741 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14742 cat >conftest.
$ac_ext <<_ACEOF
14745 cat confdefs.h
>>conftest.
$ac_ext
14746 cat >>conftest.
$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <malloc/malloc.h>
14750 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } >/dev/null && {
14763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14766 ac_header_preproc=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_preproc=no
14774 rm -f conftest.err conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776 echo "${ECHO_T}$ac_header_preproc" >&6; }
14778 # So? What about this header?
14779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14782 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14784 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14785 ac_header_preproc=yes
14788 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14789 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14791 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14793 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14795 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14797 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14799 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14803 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14804 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14805 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14810 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14811 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14814 if test $ac_cv_header_malloc_malloc_h = yes; then
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_MALLOC_MALLOC_H 1
14824 ### Use NeXTstep API to implement GUI.
14825 if test "${HAVE_NS}" = "yes"; then
14827 cat >>confdefs.h <<\_ACEOF
14831 if test "${NS_IMPL_COCOA}" = "yes"; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define NS_IMPL_COCOA 1
14838 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define COCOA_EXPERIMENTAL_CTRL_G 1
14845 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14847 cat >>confdefs.h <<\_ACEOF
14848 #define NS_IMPL_GNUSTEP 1
14852 # We also have mouse menus.
14857 ### Use session management (-lSM -lICE) if available
14859 if test "${HAVE_X11}" = "yes"; then
14860 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14861 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14862 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14863 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14867 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14869 # Is the header compilable?
14870 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14871 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <X11/SM/SMlib.h>
14881 rm -f conftest.$ac_objext
14882 if { (ac_try="$ac_compile"
14883 case "(($ac_try" in
14884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14885 *) ac_try_echo
=$ac_try;;
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1
>conftest.err
14892 cat conftest.err
>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest.
$ac_objext; then
14898 ac_header_compiler
=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.
$ac_ext >&5
14903 ac_header_compiler
=no
14906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14908 echo "${ECHO_T}$ac_header_compiler" >&6; }
14910 # Is the header present?
14911 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14912 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <X11/SM/SMlib.h>
14921 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14922 case "(($ac_try" in
14923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } >/dev/null && {
14934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14937 ac_header_preproc=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_preproc=no
14945 rm -f conftest.err conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14947 echo "${ECHO_T}$ac_header_preproc" >&6; }
14949 # So? What about this header?
14950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14953 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14956 ac_header_preproc=yes
14959 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14960 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14962 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14964 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14966 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14968 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14970 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14974 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14975 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14976 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14981 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14982 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14985 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14986 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14987 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14988 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-lSM -lICE $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char SmcOpenConnection ();
15010 return SmcOpenConnection ();
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (ac_try="$ac_link"
15017 case "(($ac_try" in
15018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15019 *) ac_try_echo
=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_link") 2>conftest.er1
15024 grep -v '^ *+' conftest.er1
>conftest.err
15026 cat conftest.err
>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && {
15029 test -z "$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 } && test -s conftest
$ac_exeext &&
15032 $as_test_x conftest
$ac_exeext; then
15033 ac_cv_lib_SM_SmcOpenConnection
=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 ac_cv_lib_SM_SmcOpenConnection
=no
15041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15042 conftest
$ac_exeext conftest.
$ac_ext
15043 LIBS
=$ac_check_lib_save_LIBS
15045 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15046 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15047 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15055 if test "${HAVE_X_SM}" = "yes"; then
15057 cat >>confdefs.h
<<\_ACEOF
15058 #define HAVE_X_SM 1
15063 *) LIBS
="-lSM -lICE $LIBS" ;;
15068 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15069 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15070 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15071 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15089 rm -f conftest.
$ac_objext conftest
$ac_exeext
15090 if { (ac_try
="$ac_link"
15091 case "(($ac_try" in
15092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
15107 emacs_cv_netdb_declares_h_errno=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 emacs_cv_netdb_declares_h_errno=no
15115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15116 conftest$ac_exeext conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15119 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15120 if test $emacs_cv_netdb_declares_h_errno = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define HAVE_H_ERRNO 1
15128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15129 # for constant arguments. Useless!
15130 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15132 if test "${ac_cv_working_alloca_h+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <alloca.h>
15145 char *p = (char *) alloca (2 * sizeof (int));
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (ac_try="$ac_link"
15153 case "(($ac_try" in
15154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15155 *) ac_try_echo
=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_link") 2>conftest.er1
15160 grep -v '^ *+' conftest.er1
>conftest.err
15162 cat conftest.err
>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest
$ac_exeext &&
15168 $as_test_x conftest
$ac_exeext; then
15169 ac_cv_working_alloca_h
=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.
$ac_ext >&5
15174 ac_cv_working_alloca_h
=no
15177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15178 conftest
$ac_exeext conftest.
$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15181 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15182 if test $ac_cv_working_alloca_h = yes; then
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_ALLOCA_H 1
15190 { echo "$as_me:$LINENO: checking for alloca" >&5
15191 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15192 if test "${ac_cv_func_alloca_works+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 cat >conftest.
$ac_ext <<_ACEOF
15198 cat confdefs.h
>>conftest.
$ac_ext
15199 cat >>conftest.
$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 # define alloca __builtin_alloca
15205 # include <malloc.h>
15206 # define alloca _alloca
15208 # ifdef HAVE_ALLOCA_H
15209 # include <alloca.h>
15214 # ifndef alloca /* predefined by HP cc +Olibcalls */
15225 char *p = (char *) alloca (1);
15231 rm -f conftest.
$ac_objext conftest
$ac_exeext
15232 if { (ac_try
="$ac_link"
15233 case "(($ac_try" in
15234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_link") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext &&
15248 $as_test_x conftest$ac_exeext; then
15249 ac_cv_func_alloca_works=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_func_alloca_works=no
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258 conftest$ac_exeext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15261 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15263 if test $ac_cv_func_alloca_works = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_ALLOCA 1
15270 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15271 # that cause trouble. Some versions do not even contain alloca or
15272 # contain a buggy version. If you still want to use their alloca,
15273 # use ar to extract alloca.o from them instead of compiling alloca.c.
15275 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15277 cat >>confdefs.h <<\_ACEOF
15282 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15283 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15284 if test "${ac_cv_os_cray+set}" = set; then
15285 echo $ECHO_N "(cached
) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #if defined CRAY && ! defined CRAY2
15300 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15301 $EGREP "webecray
" >/dev/null 2>&1; then
15309 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15310 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15311 if test $ac_cv_os_cray = yes; then
15312 for ac_func in _getb67 GETB67 getb67; do
15313 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15314 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15315 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15316 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached
) $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15327 #define $ac_func innocuous_$ac_func
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15335 # include <limits.h>
15337 # include <assert.h>
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined __stub_$ac_func || defined __stub___$ac_func
15359 return $ac_func ();
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 eval "$as_ac_var=yes"
15384 echo "$as_me: failed program was
:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 eval "$as_ac_var=no
"
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15393 ac_res=`eval echo '${'$as_ac_var'}'`
15394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 #define CRAY_STACKSEG_END $ac_func
15408 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15409 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15410 if test "${ac_cv_c_stack_direction+set}" = set; then
15411 echo $ECHO_N "(cached
) $ECHO_C" >&6
15413 if test "$cross_compiling" = yes; then
15414 ac_cv_c_stack_direction=0
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422 $ac_includes_default
15424 find_stack_direction ()
15426 static char *addr = 0;
15431 return find_stack_direction ();
15434 return (&dummy > addr) ? 1 : -1;
15440 return find_stack_direction () < 0;
15443 rm -f conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_link") 2>&5
15452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_c_stack_direction=1
15465 echo "$as_me: program exited with status
$ac_status" >&5
15466 echo "$as_me: failed program was
:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ( exit $ac_status )
15470 ac_cv_c_stack_direction=-1
15472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15480 cat >>confdefs.h <<_ACEOF
15481 #define STACK_DIRECTION $ac_cv_c_stack_direction
15488 if test x"$ac_cv_func_alloca_works" != xyes; then
15489 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15490 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15491 { (exit 1); exit 1; }; }
15494 # fmod, logb, and frexp are found in -lm on most systems.
15495 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15497 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15498 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15499 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15500 echo $ECHO_N "(cached
) $ECHO_C" >&6
15502 ac_check_lib_save_LIBS=$LIBS
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (ac_try="$ac_link"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_link") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15539 (exit $ac_status); } && {
15540 test -z "$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 } && test -s conftest$ac_exeext &&
15543 $as_test_x conftest$ac_exeext; then
15544 ac_cv_lib_m_sqrt=yes
15546 echo "$as_me: failed program was
:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 ac_cv_lib_m_sqrt=no
15552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15557 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15558 if test $ac_cv_lib_m_sqrt = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_LIBM 1
15568 # Check for mail-locking functions in a "mail" library. Probably this should
15569 # have the same check as for liblockfile below.
15571 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15572 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15573 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15574 echo $ECHO_N "(cached
) $ECHO_C" >&6
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lmail $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any GCC internal prototype to avoid an error.
15586 Use char because int might match the return type of a GCC
15587 builtin and then its argument prototype would still apply. */
15595 return maillock ();
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest$ac_exeext &&
15617 $as_test_x conftest$ac_exeext; then
15618 ac_cv_lib_mail_maillock=yes
15620 echo "$as_me: failed program was
:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_cv_lib_mail_maillock=no
15626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15630 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15631 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15632 if test $ac_cv_lib_mail_maillock = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define HAVE_LIBMAIL 1
15637 LIBS="-lmail $LIBS"
15642 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15643 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15644 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15645 echo $ECHO_N "(cached
) $ECHO_C" >&6
15647 ac_check_lib_save_LIBS=$LIBS
15648 LIBS="-llockfile $LIBS"
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15656 /* Override any GCC internal prototype to avoid an error.
15657 Use char because int might match the return type of a GCC
15658 builtin and then its argument prototype would still apply. */
15666 return maillock ();
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_link") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest$ac_exeext &&
15688 $as_test_x conftest$ac_exeext; then
15689 ac_cv_lib_lockfile_maillock=yes
15691 echo "$as_me: failed program was
:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_lockfile_maillock=no
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15702 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15703 if test $ac_cv_lib_lockfile_maillock = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_LIBLOCKFILE 1
15708 LIBS="-llockfile $LIBS"
15712 # If we have the shared liblockfile, assume we must use it for mail
15713 # locking (e.g. Debian). If we couldn't link against liblockfile
15714 # (no liblockfile.a installed), ensure that we don't need to.
15715 if test "$ac_cv_lib_lockfile_maillock" = no; then
15716 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15717 set dummy liblockfile.so; ac_word=$2
15718 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15719 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15720 if test "${ac_cv_prog_liblockfile+set}" = set; then
15721 echo $ECHO_N "(cached
) $ECHO_C" >&6
15723 if test -n "$liblockfile"; then
15724 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15728 for as_dir in $as_dummy
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15734 ac_cv_prog_liblockfile="yes"
15735 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15742 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15745 liblockfile=$ac_cv_prog_liblockfile
15746 if test -n "$liblockfile"; then
15747 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15748 echo "${ECHO_T}$liblockfile" >&6; }
15750 { echo "$as_me:$LINENO: result
: no
" >&5
15751 echo "${ECHO_T}no
" >&6; }
15755 if test $ac_cv_prog_liblockfile = yes; then
15756 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15757 This probably means that movemail could lose mail.
15758 There may be a \`development' package to
install containing liblockfile.
" >&5
15759 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15760 This probably means that movemail could lose mail.
15761 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15762 { (exit 1); exit 1; }; }
15767 for ac_func in touchlock
15769 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15770 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15771 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15772 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached
) $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15783 #define $ac_func innocuous_$ac_func
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char $ac_func (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15791 # include <limits.h>
15793 # include <assert.h>
15798 /* Override any GCC internal prototype to avoid an error.
15799 Use char because int might match the return type of a GCC
15800 builtin and then its argument prototype would still apply. */
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined __stub_$ac_func || defined __stub___$ac_func
15815 return $ac_func ();
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 eval "$as_ac_var=yes"
15840 echo "$as_me: failed program was
:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 eval "$as_ac_var=no
"
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15849 ac_res=`eval echo '${'$as_ac_var'}'`
15850 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852 if test `eval echo '${'$as_ac_var'}'` = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15861 for ac_header in maillock.h
15863 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15866 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached
) $ECHO_C" >&6
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15874 # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15876 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 #include <$ac_header>
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest.$ac_objext; then
15903 ac_header_compiler=yes
15905 echo "$as_me: failed program was
:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_compiler=no
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15913 echo "${ECHO_T}$ac_header_compiler" >&6; }
15915 # Is the header present?
15916 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15917 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <$ac_header>
15926 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15938 (exit $ac_status); } >/dev/null && {
15939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15942 ac_header_preproc=yes
15944 echo "$as_me: failed program was
:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15958 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15961 ac_header_preproc=yes
15964 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15965 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15966 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15967 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15968 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15969 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15970 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15971 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15974 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15975 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15979 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15980 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15982 echo $ECHO_N "(cached
) $ECHO_C" >&6
15984 eval "$as_ac_Header=\
$ac_header_preproc"
15986 ac_res=`eval echo '${'$as_ac_Header'}'`
15987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15988 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16072 for ac_func in gethostname getdomainname dup2 \
16073 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16074 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16075 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16076 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16077 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16078 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16079 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16080 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16081 cfmakeraw cfsetspeed
16083 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16084 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16085 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16086 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16087 echo $ECHO_N "(cached
) $ECHO_C" >&6
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16105 # include <limits.h>
16107 # include <assert.h>
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined __stub_$ac_func || defined __stub___$ac_func
16129 return $ac_func ();
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (ac_try="$ac_link"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_link") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext &&
16151 $as_test_x conftest$ac_exeext; then
16152 eval "$as_ac_var=yes"
16154 echo "$as_me: failed program was
:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 eval "$as_ac_var=no
"
16160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16161 conftest$ac_exeext conftest.$ac_ext
16163 ac_res=`eval echo '${'$as_ac_var'}'`
16164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166 if test `eval echo '${'$as_ac_var'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16176 for ac_header in sys/un.h
16178 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16180 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16181 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached
) $ECHO_C" >&6
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16189 # Is the header compilable?
16190 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16191 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16199 #include <$ac_header>
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest.$ac_objext; then
16218 ac_header_compiler=yes
16220 echo "$as_me: failed program was
:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_compiler=no
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16228 echo "${ECHO_T}$ac_header_compiler" >&6; }
16230 # Is the header present?
16231 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16232 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <$ac_header>
16241 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16249 grep -v '^ *+' conftest.er1 >conftest.err
16251 cat conftest.err >&5
16252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16253 (exit $ac_status); } >/dev/null && {
16254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16255 test ! -s conftest.err
16257 ac_header_preproc=yes
16259 echo "$as_me: failed program was
:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_header_preproc=no
16265 rm -f conftest.err conftest.$ac_ext
16266 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6; }
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16272 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16273 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16276 ac_header_preproc=yes
16279 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16280 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16281 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16282 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16283 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16284 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16285 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16286 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16289 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16290 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16294 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16295 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached
) $ECHO_C" >&6
16299 eval "$as_ac_Header=\
$ac_header_preproc"
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16320 for ac_header in $ac_header_list
16322 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16323 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16324 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16325 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached
) $ECHO_C" >&6
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16333 # Is the header compilable?
16334 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16335 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $ac_includes_default
16343 #include <$ac_header>
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16358 (exit $ac_status); } && {
16359 test -z "$ac_c_werror_flag" ||
16360 test ! -s conftest.err
16361 } && test -s conftest.$ac_objext; then
16362 ac_header_compiler=yes
16364 echo "$as_me: failed program was
:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_header_compiler=no
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6; }
16374 # Is the header present?
16375 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16376 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16385 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16397 (exit $ac_status); } >/dev/null && {
16398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16401 ac_header_preproc=yes
16403 echo "$as_me: failed program was
:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 ac_header_preproc=no
16409 rm -f conftest.err conftest.$ac_ext
16410 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16411 echo "${ECHO_T}$ac_header_preproc" >&6; }
16413 # So? What about this header?
16414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16416 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16417 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16418 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16420 ac_header_preproc=yes
16423 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16424 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16425 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16426 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16427 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16428 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16429 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16430 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16431 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16433 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16434 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16438 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16439 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached
) $ECHO_C" >&6
16443 eval "$as_ac_Header=\
$ac_header_preproc"
16445 ac_res=`eval echo '${'$as_ac_Header'}'`
16446 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16467 for ac_func in $ac_func_list
16469 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16470 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16471 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16472 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16473 echo $ECHO_N "(cached
) $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16483 #define $ac_func innocuous_$ac_func
16485 /* System header to define __stub macros and hopefully few prototypes,
16486 which can conflict with char $ac_func (); below.
16487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16488 <limits.h> exists even on freestanding compilers. */
16491 # include <limits.h>
16493 # include <assert.h>
16498 /* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16505 /* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508 #if defined __stub_$ac_func || defined __stub___$ac_func
16515 return $ac_func ();
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext &&
16537 $as_test_x conftest$ac_exeext; then
16538 eval "$as_ac_var=yes"
16540 echo "$as_me: failed program was
:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 eval "$as_ac_var=no
"
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16549 ac_res=`eval echo '${'$as_ac_var'}'`
16550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16551 echo "${ECHO_T}$ac_res" >&6; }
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16576 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16577 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16578 if test "${ac_cv_func_working_mktime+set}" = set; then
16579 echo $ECHO_N "(cached
) $ECHO_C" >&6
16581 if test "$cross_compiling" = yes; then
16582 ac_cv_func_working_mktime=no
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 /* Test program from Paul Eggert and Tony Leneis. */
16591 #ifdef TIME_WITH_SYS_TIME
16592 # include <sys/time.h>
16595 # ifdef HAVE_SYS_TIME_H
16596 # include <sys/time.h>
16602 #include <stdlib.h>
16604 #ifdef HAVE_UNISTD_H
16605 # include <unistd.h>
16609 # define alarm(X) /* empty */
16612 /* Work around redefinition to rpl_putenv by other config tests. */
16615 static time_t time_t_max;
16616 static time_t time_t_min;
16618 /* Values we'll use to set the TZ environment variable. */
16619 static char *tz_strings[] = {
16620 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16621 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16623 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16625 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16626 Based on a problem report from Andreas Jaeger. */
16628 spring_forward_gap ()
16630 /* glibc (up to about 1998-10-07) failed this test. */
16633 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16634 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16635 on systems that don't support the Olson extension, or don't have the
16636 full zoneinfo tables installed. */
16637 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16646 return mktime (&tm) != (time_t) -1;
16654 return ! (lt = localtime (&now)) || mktime (lt) == now;
16661 return (mktime_test1 (now)
16662 && mktime_test1 ((time_t) (time_t_max - now))
16663 && mktime_test1 ((time_t) (time_t_min + now)));
16669 /* Based on code from Ariel Faigon. */
16679 return tm.tm_mon == 2 && tm.tm_mday == 31;
16688 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16689 now = mktime (&tm);
16690 if (now != (time_t) -1)
16692 struct tm *lt = localtime (&now);
16694 && lt->tm_year == tm.tm_year
16695 && lt->tm_mon == tm.tm_mon
16696 && lt->tm_mday == tm.tm_mday
16697 && lt->tm_hour == tm.tm_hour
16698 && lt->tm_min == tm.tm_min
16699 && lt->tm_sec == tm.tm_sec
16700 && lt->tm_yday == tm.tm_yday
16701 && lt->tm_wday == tm.tm_wday
16702 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16703 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16712 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16713 ignoring leap seconds. */
16714 unsigned long int answer = 2527315200UL;
16718 tm.tm_year = 2050 - 1900;
16721 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16724 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16725 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16726 on systems that don't support the Olson extension, or don't have the
16727 full zoneinfo tables installed. */
16728 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16732 /* Check that the result is either a failure, or close enough
16733 to the correct answer that we can assume the discrepancy is
16734 due to leap seconds. */
16735 return (t == (time_t) -1
16736 || (0 < t && answer - 120 <= t && t <= answer + 120));
16745 /* This test makes some buggy mktime implementations loop.
16746 Give up after 60 seconds; a mktime slower than that
16747 isn't worth using anyway. */
16750 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16753 if ((time_t) -1 < 0)
16754 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16756 delta = time_t_max / 997; /* a suitable prime number */
16757 for (i = 0; i < N_STRINGS; i++)
16760 putenv (tz_strings[i]);
16762 for (t = 0; t <= time_t_max - delta; t += delta)
16763 if (! mktime_test (t))
16765 if (! (mktime_test ((time_t) 1)
16766 && mktime_test ((time_t) (60 * 60))
16767 && mktime_test ((time_t) (60 * 60 * 24))))
16770 for (j = 1; 0 < j; j *= 2)
16771 if (! bigtime_test (j))
16773 if (! bigtime_test (j - 1))
16776 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16779 rm -f conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>&5
16788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_func_working_mktime=yes
16801 echo "$as_me: program exited with status
$ac_status" >&5
16802 echo "$as_me: failed program was
:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ( exit $ac_status )
16806 ac_cv_func_working_mktime=no
16808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16814 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16815 if test $ac_cv_func_working_mktime = no; then
16816 case " $LIBOBJS " in
16817 *" mktime.
$ac_objext "* ) ;;
16818 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16824 if test "$ac_cv_func_working_mktime" = no; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define BROKEN_MKTIME 1
16832 ac_have_func=no # yes means we've found a way to get the load average.
16834 # Make sure getloadavg.c is where it belongs, at configure-time.
16835 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16836 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16837 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16838 { (exit 1); exit 1; }; }
16842 # Check for getloadavg, but be sure not to touch the cache variable.
16843 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16844 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16845 if test "${ac_cv_func_getloadavg+set}" = set; then
16846 echo $ECHO_N "(cached
) $ECHO_C" >&6
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16856 #define getloadavg innocuous_getloadavg
16858 /* System header to define __stub macros and hopefully few prototypes,
16859 which can conflict with char getloadavg (); below.
16860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16861 <limits.h> exists even on freestanding compilers. */
16864 # include <limits.h>
16866 # include <assert.h>
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16877 char getloadavg ();
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined __stub_getloadavg || defined __stub___getloadavg
16888 return getloadavg ();
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_func_getloadavg=yes
16913 echo "$as_me: failed program was
:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_func_getloadavg=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16923 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16924 if test $ac_cv_func_getloadavg = yes; then
16929 ) && ac_have_func=yes
16931 # On HPUX9, an unprivileged user can get load averages through this function.
16933 for ac_func in pstat_getdynamic
16935 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16937 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached
) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16949 #define $ac_func innocuous_$ac_func
16951 /* System header to define __stub macros and hopefully few prototypes,
16952 which can conflict with char $ac_func (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16957 # include <limits.h>
16959 # include <assert.h>
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16971 /* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16981 return $ac_func ();
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_link") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest$ac_exeext &&
17003 $as_test_x conftest$ac_exeext; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was
:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no
"
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17027 # Solaris has libkstat which does not require root.
17029 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17030 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17031 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17032 echo $ECHO_N "(cached
) $ECHO_C" >&6
17034 ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-lkstat $LIBS"
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17049 char kstat_open ();
17053 return kstat_open ();
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17071 (exit $ac_status); } && {
17072 test -z "$ac_c_werror_flag" ||
17073 test ! -s conftest.err
17074 } && test -s conftest$ac_exeext &&
17075 $as_test_x conftest$ac_exeext; then
17076 ac_cv_lib_kstat_kstat_open=yes
17078 echo "$as_me: failed program was
:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 ac_cv_lib_kstat_kstat_open=no
17084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17088 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17089 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17090 if test $ac_cv_lib_kstat_kstat_open = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_LIBKSTAT 1
17095 LIBS="-lkstat $LIBS"
17099 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17101 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17102 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17103 # to get the right answer into the cache.
17104 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17105 if test $ac_have_func = no; then
17106 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17107 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17108 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17109 echo $ECHO_N "(cached
) $ECHO_C" >&6
17111 ac_check_lib_save_LIBS=$LIBS
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17130 return elf_begin ();
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext &&
17152 $as_test_x conftest$ac_exeext; then
17153 ac_cv_lib_elf_elf_begin=yes
17155 echo "$as_me: failed program was
:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_lib_elf_elf_begin=no
17161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162 conftest$ac_exeext conftest.$ac_ext
17163 LIBS=$ac_check_lib_save_LIBS
17165 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17166 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17167 if test $ac_cv_lib_elf_elf_begin = yes; then
17172 if test $ac_have_func = no; then
17173 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17174 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17175 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17176 echo $ECHO_N "(cached
) $ECHO_C" >&6
17178 ac_check_lib_save_LIBS=$LIBS
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 /* Override any GCC internal prototype to avoid an error.
17188 Use char because int might match the return type of a GCC
17189 builtin and then its argument prototype would still apply. */
17197 return kvm_open ();
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17220 ac_cv_lib_kvm_kvm_open=yes
17222 echo "$as_me: failed program was
:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_lib_kvm_kvm_open=no
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17233 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17234 if test $ac_cv_lib_kvm_kvm_open = yes; then
17238 # Check for the 4.4BSD definition of getloadavg.
17239 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17240 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17241 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17242 echo $ECHO_N "(cached
) $ECHO_C" >&6
17244 ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lutil $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17253 /* Override any GCC internal prototype to avoid an error.
17254 Use char because int might match the return type of a GCC
17255 builtin and then its argument prototype would still apply. */
17259 char getloadavg ();
17263 return getloadavg ();
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17286 ac_cv_lib_util_getloadavg=yes
17288 echo "$as_me: failed program was
:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_lib_util_getloadavg=no
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17299 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17300 if test $ac_cv_lib_util_getloadavg = yes; then
17301 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17306 if test $ac_have_func = no; then
17307 # There is a commonly available library for RS/6000 AIX.
17308 # Since it is not a standard part of AIX, it might be installed locally.
17309 ac_getloadavg_LIBS=$LIBS
17310 LIBS="-L/usr
/local
/lib
$LIBS"
17311 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17312 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17313 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17314 echo $ECHO_N "(cached
) $ECHO_C" >&6
17316 ac_check_lib_save_LIBS=$LIBS
17317 LIBS="-lgetloadavg $LIBS"
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17331 char getloadavg ();
17335 return getloadavg ();
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 ac_cv_lib_getloadavg_getloadavg=yes
17360 echo "$as_me: failed program was
:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_lib_getloadavg_getloadavg=no
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17371 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17372 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17373 LIBS="-lgetloadavg $LIBS"
17375 LIBS=$ac_getloadavg_LIBS
17380 # Make sure it is really in the library, if we think we found it,
17381 # otherwise set up the replacement function.
17383 for ac_func in getloadavg
17385 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17386 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17387 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17388 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17389 echo $ECHO_N "(cached
) $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define $ac_func innocuous_$ac_func
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17407 # include <limits.h>
17409 # include <assert.h>
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined __stub_$ac_func || defined __stub___$ac_func
17431 return $ac_func ();
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest$ac_exeext &&
17453 $as_test_x conftest$ac_exeext; then
17454 eval "$as_ac_var=yes"
17456 echo "$as_me: failed program was
:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no
"
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17474 case " $LIBOBJS " in
17475 *" getloadavg.
$ac_objext "* ) ;;
17476 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17481 cat >>confdefs.h <<\_ACEOF
17482 #define C_GETLOADAVG 1
17485 # Figure out what our getloadavg.c needs.
17487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17488 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17489 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17490 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17491 echo $ECHO_N "(cached
) $ECHO_C" >&6
17493 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17494 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17496 # Is the header compilable?
17497 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17498 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 #include <sys/dg_sys_info.h>
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 ac_header_compiler=yes
17527 echo "$as_me: failed program was
:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_compiler=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17535 echo "${ECHO_T}$ac_header_compiler" >&6; }
17537 # Is the header present?
17538 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17539 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <sys/dg_sys_info.h>
17548 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17556 grep -v '^ *+' conftest.er1 >conftest.err
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17560 (exit $ac_status); } >/dev/null && {
17561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17562 test ! -s conftest.err
17564 ac_header_preproc=yes
17566 echo "$as_me: failed program was
:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 ac_header_preproc=no
17572 rm -f conftest.err conftest.$ac_ext
17573 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17574 echo "${ECHO_T}$ac_header_preproc" >&6; }
17576 # So? What about this header?
17577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17579 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17580 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17581 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17582 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17583 ac_header_preproc=yes
17586 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17587 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17588 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17589 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17590 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17591 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17592 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17593 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17594 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17595 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17596 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17597 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17601 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17602 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17603 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17604 echo $ECHO_N "(cached
) $ECHO_C" >&6
17606 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17608 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17609 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17612 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17615 cat >>confdefs.h <<\_ACEOF
17620 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17621 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17622 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17623 echo $ECHO_N "(cached
) $ECHO_C" >&6
17625 ac_check_lib_save_LIBS=$LIBS
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17640 char dg_sys_info ();
17644 return dg_sys_info ();
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (ac_try="$ac_link"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_link") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest$ac_exeext &&
17666 $as_test_x conftest$ac_exeext; then
17667 ac_cv_lib_dgc_dg_sys_info=yes
17669 echo "$as_me: failed program was
:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ac_cv_lib_dgc_dg_sys_info=no
17675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17676 conftest$ac_exeext conftest.$ac_ext
17677 LIBS=$ac_check_lib_save_LIBS
17679 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17680 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17681 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_LIBDGC 1
17694 if test "${ac_cv_header_locale_h+set}" = set; then
17695 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17696 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17697 if test "${ac_cv_header_locale_h+set}" = set; then
17698 echo $ECHO_N "(cached
) $ECHO_C" >&6
17700 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17701 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17703 # Is the header compilable?
17704 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17705 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 $ac_includes_default
17713 #include <locale.h>
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_compile") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest.$ac_objext; then
17732 ac_header_compiler=yes
17734 echo "$as_me: failed program was
:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_compiler=no
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17742 echo "${ECHO_T}$ac_header_compiler" >&6; }
17744 # Is the header present?
17745 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17746 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <locale.h>
17755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17767 (exit $ac_status); } >/dev/null && {
17768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17771 ac_header_preproc=yes
17773 echo "$as_me: failed program was
:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_header_preproc=no
17779 rm -f conftest.err conftest.$ac_ext
17780 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17781 echo "${ECHO_T}$ac_header_preproc" >&6; }
17783 # So? What about this header?
17784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17786 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17787 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17788 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17789 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17790 ac_header_preproc=yes
17793 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17794 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17795 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17796 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17798 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17799 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17800 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17801 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17802 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17803 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17804 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17808 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17809 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17810 if test "${ac_cv_header_locale_h+set}" = set; then
17811 echo $ECHO_N "(cached
) $ECHO_C" >&6
17813 ac_cv_header_locale_h=$ac_header_preproc
17815 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17816 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17822 for ac_func in setlocale
17824 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17825 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17826 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17827 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17828 echo $ECHO_N "(cached
) $ECHO_C" >&6
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17838 #define $ac_func innocuous_$ac_func
17840 /* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17846 # include <limits.h>
17848 # include <assert.h>
17853 /* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17860 /* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863 #if defined __stub_$ac_func || defined __stub___$ac_func
17870 return $ac_func ();
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext &&
17892 $as_test_x conftest$ac_exeext; then
17893 eval "$as_ac_var=yes"
17895 echo "$as_me: failed program was
:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 eval "$as_ac_var=no
"
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval echo '${'$as_ac_var'}'`
17905 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17906 echo "${ECHO_T}$ac_res" >&6; }
17907 if test `eval echo '${'$as_ac_var'}'` = yes; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17916 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17917 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17918 # Irix 4.0.5F has the header but not the library.
17919 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17922 cat >>confdefs.h <<\_ACEOF
17928 if test $ac_have_func = no; then
17929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17930 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17931 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17932 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17933 echo $ECHO_N "(cached
) $ECHO_C" >&6
17935 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17936 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17938 # Is the header compilable?
17939 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17940 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 $ac_includes_default
17948 #include <inq_stats/cpustats.h>
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_header_compiler=yes
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_header_compiler=no
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17977 echo "${ECHO_T}$ac_header_compiler" >&6; }
17979 # Is the header present?
17980 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17981 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <inq_stats/cpustats.h>
17990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18002 (exit $ac_status); } >/dev/null && {
18003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18006 ac_header_preproc=yes
18008 echo "$as_me: failed program was
:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_header_preproc=no
18014 rm -f conftest.err conftest.$ac_ext
18015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18016 echo "${ECHO_T}$ac_header_preproc" >&6; }
18018 # So? What about this header?
18019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18021 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18022 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18023 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18024 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18025 ac_header_preproc=yes
18028 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18029 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18030 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18031 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18032 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18033 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18034 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18035 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18036 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18037 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18038 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18039 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18043 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18044 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18045 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18046 echo $ECHO_N "(cached
) $ECHO_C" >&6
18048 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18050 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18051 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18054 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18057 cat >>confdefs.h <<\_ACEOF
18062 cat >>confdefs.h <<\_ACEOF
18071 if test $ac_have_func = no; then
18072 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18073 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18074 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18075 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18076 echo $ECHO_N "(cached
) $ECHO_C" >&6
18078 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18079 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18081 # Is the header compilable?
18082 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18083 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 #include <sys/cpustats.h>
18093 rm -f conftest.$ac_objext
18094 if { (ac_try="$ac_compile"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_compile") 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18106 (exit $ac_status); } && {
18107 test -z "$ac_c_werror_flag" ||
18108 test ! -s conftest.err
18109 } && test -s conftest.$ac_objext; then
18110 ac_header_compiler=yes
18112 echo "$as_me: failed program was
:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_header_compiler=no
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18120 echo "${ECHO_T}$ac_header_compiler" >&6; }
18122 # Is the header present?
18123 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18124 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <sys/cpustats.h>
18133 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18145 (exit $ac_status); } >/dev/null && {
18146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18147 test ! -s conftest.err
18149 ac_header_preproc=yes
18151 echo "$as_me: failed program was
:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_header_preproc=no
18157 rm -f conftest.err conftest.$ac_ext
18158 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18159 echo "${ECHO_T}$ac_header_preproc" >&6; }
18161 # So? What about this header?
18162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18164 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18165 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18166 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18167 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18168 ac_header_preproc=yes
18171 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18172 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18173 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18174 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18175 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18176 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18177 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18178 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18179 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18180 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18181 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18182 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18186 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18187 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18188 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18189 echo $ECHO_N "(cached
) $ECHO_C" >&6
18191 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18193 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18194 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18197 if test $ac_cv_header_sys_cpustats_h = yes; then
18198 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18207 if test $ac_have_func = no; then
18209 for ac_header in mach/mach.h
18211 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached
) $ECHO_C" >&6
18218 ac_res=`eval echo '${'$as_ac_Header'}'`
18219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18222 # Is the header compilable?
18223 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18224 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 #include <$ac_header>
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_header_compiler=yes
18253 echo "$as_me: failed program was
:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18261 echo "${ECHO_T}$ac_header_compiler" >&6; }
18263 # Is the header present?
18264 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18265 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <$ac_header>
18274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); } >/dev/null && {
18287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18290 ac_header_preproc=yes
18292 echo "$as_me: failed program was
:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6; }
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18305 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18306 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18309 ac_header_preproc=yes
18312 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18313 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18314 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18315 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18316 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18317 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18318 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18319 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18322 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18323 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18327 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18328 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18330 echo $ECHO_N "(cached
) $ECHO_C" >&6
18332 eval "$as_ac_Header=\
$ac_header_preproc"
18334 ac_res=`eval echo '${'$as_ac_Header'}'`
18335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18336 echo "${ECHO_T}$ac_res" >&6; }
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18351 for ac_header in nlist.h
18353 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18358 echo $ECHO_N "(cached
) $ECHO_C" >&6
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18364 # Is the header compilable?
18365 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18366 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18367 cat >conftest.$ac_ext <<_ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 $ac_includes_default
18374 #include <$ac_header>
18376 rm -f conftest.$ac_objext
18377 if { (ac_try="$ac_compile"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_compile") 2>conftest.er1
18385 grep -v '^ *+' conftest.er1 >conftest.err
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18389 (exit $ac_status); } && {
18390 test -z "$ac_c_werror_flag" ||
18391 test ! -s conftest.err
18392 } && test -s conftest.$ac_objext; then
18393 ac_header_compiler=yes
18395 echo "$as_me: failed program was
:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_header_compiler=no
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18403 echo "${ECHO_T}$ac_header_compiler" >&6; }
18405 # Is the header present?
18406 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18407 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 #include <$ac_header>
18416 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18428 (exit $ac_status); } >/dev/null && {
18429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18432 ac_header_preproc=yes
18434 echo "$as_me: failed program was
:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_header_preproc=no
18440 rm -f conftest.err conftest.$ac_ext
18441 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18442 echo "${ECHO_T}$ac_header_preproc" >&6; }
18444 # So? What about this header?
18445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18447 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18448 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18449 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18451 ac_header_preproc=yes
18454 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18455 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18456 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18457 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18458 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18459 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18460 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18461 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18462 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18464 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18465 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18469 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18470 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18472 echo $ECHO_N "(cached
) $ECHO_C" >&6
18474 eval "$as_ac_Header=\
$ac_header_preproc"
18476 ac_res=`eval echo '${'$as_ac_Header'}'`
18477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18478 echo "${ECHO_T}$ac_res" >&6; }
18481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18482 cat >>confdefs.h <<_ACEOF
18483 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18485 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18486 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18487 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18488 echo $ECHO_N "(cached
) $ECHO_C" >&6
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18501 static struct nlist ac_aggr;
18502 if (ac_aggr.n_un.n_name)
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_compile") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest.$ac_objext; then
18525 ac_cv_member_struct_nlist_n_un_n_name=yes
18527 echo "$as_me: failed program was
:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18541 static struct nlist ac_aggr;
18542 if (sizeof ac_aggr.n_un.n_name)
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_cv_member_struct_nlist_n_un_n_name=yes
18567 echo "$as_me: failed program was
:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_member_struct_nlist_n_un_n_name=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18579 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18580 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18587 cat >>confdefs.h <<\_ACEOF
18588 #define NLIST_NAME_UNION 1
18602 # Some definitions of getloadavg require that the program be installed setgid.
18603 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18604 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18605 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18606 echo $ECHO_N "(cached
) $ECHO_C" >&6
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18615 #ifdef LDAV_PRIVILEGED
18616 Yowza Am I SETGID yet
18619 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18620 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18621 ac_cv_func_getloadavg_setgid=yes
18623 ac_cv_func_getloadavg_setgid=no
18628 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18629 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18630 if test $ac_cv_func_getloadavg_setgid = yes; then
18633 cat >>confdefs.h <<\_ACEOF
18634 #define GETLOADAVG_PRIVILEGED 1
18641 if test $ac_cv_func_getloadavg_setgid = yes; then
18642 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18643 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18644 if test "${ac_cv_group_kmem+set}" = set; then
18645 echo $ECHO_N "(cached
) $ECHO_C" >&6
18647 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18648 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18649 # If we got an error (system does not support symlinks), try without -L.
18650 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18651 ac_cv_group_kmem=`echo $ac_ls_output \
18652 | sed -ne 's/[ ][ ]*/ /g;
18653 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18657 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18658 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18659 KMEM_GROUP=$ac_cv_group_kmem
18661 if test "x
$ac_save_LIBS" = x; then
18662 GETLOADAVG_LIBS=$LIBS
18664 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18670 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18671 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18672 if test "${ac_cv_sys_largefile_source+set}" = set; then
18673 echo $ECHO_N "(cached
) $ECHO_C" >&6
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 #include <sys/types.h> /* for off_t */
18687 int (*fp) (FILE *, off_t, int) = fseeko;
18688 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18693 rm -f conftest.$ac_objext conftest$ac_exeext
18694 if { (ac_try="$ac_link"
18695 case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_link") 2>conftest.er1
18702 grep -v '^ *+' conftest.er1 >conftest.err
18704 cat conftest.err >&5
18705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18706 (exit $ac_status); } && {
18707 test -z "$ac_c_werror_flag" ||
18708 test ! -s conftest.err
18709 } && test -s conftest$ac_exeext &&
18710 $as_test_x conftest$ac_exeext; then
18711 ac_cv_sys_largefile_source=no; break
18713 echo "$as_me: failed program was
:" >&5
18714 sed 's/^/| /' conftest.$ac_ext >&5
18719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18720 conftest$ac_exeext conftest.$ac_ext
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 #define _LARGEFILE_SOURCE 1
18728 #include <sys/types.h> /* for off_t */
18733 int (*fp) (FILE *, off_t, int) = fseeko;
18734 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18739 rm -f conftest.$ac_objext conftest$ac_exeext
18740 if { (ac_try="$ac_link"
18741 case "(($ac_try" in
18742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18743 *) ac_try_echo=$ac_try;;
18745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18746 (eval "$ac_link") 2>conftest.er1
18748 grep -v '^ *+' conftest.er1 >conftest.err
18750 cat conftest.err >&5
18751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18752 (exit $ac_status); } && {
18753 test -z "$ac_c_werror_flag" ||
18754 test ! -s conftest.err
18755 } && test -s conftest$ac_exeext &&
18756 $as_test_x conftest$ac_exeext; then
18757 ac_cv_sys_largefile_source=1; break
18759 echo "$as_me: failed program was
:" >&5
18760 sed 's/^/| /' conftest.$ac_ext >&5
18765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18766 conftest$ac_exeext conftest.$ac_ext
18767 ac_cv_sys_largefile_source=unknown
18771 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18772 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18773 case $ac_cv_sys_largefile_source in #(
18776 cat >>confdefs.h <<_ACEOF
18777 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18783 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18784 # in glibc 2.1.3, but that breaks too many other things.
18785 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18786 if test $ac_cv_sys_largefile_source != unknown; then
18788 cat >>confdefs.h <<\_ACEOF
18789 #define HAVE_FSEEKO 1
18795 # Configure getopt.
18796 # getopt.m4 serial 10
18798 # The getopt module assume you want GNU getopt, with getopt_long etc,
18799 # rather than vanilla POSIX getopt. This means your your code should
18800 # always include <getopt.h> for the getopt prototypes.
18812 # Prerequisites of lib/getopt*.
18819 for ac_header in getopt.h
18821 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18822 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18823 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18824 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached
) $ECHO_C" >&6
18828 ac_res=`eval echo '${'$as_ac_Header'}'`
18829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18830 echo "${ECHO_T}$ac_res" >&6; }
18832 # Is the header compilable?
18833 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18834 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18835 cat >conftest.$ac_ext <<_ACEOF
18838 cat confdefs.h >>conftest.$ac_ext
18839 cat >>conftest.$ac_ext <<_ACEOF
18840 /* end confdefs.h. */
18841 $ac_includes_default
18842 #include <$ac_header>
18844 rm -f conftest.$ac_objext
18845 if { (ac_try="$ac_compile"
18846 case "(($ac_try" in
18847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18848 *) ac_try_echo=$ac_try;;
18850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18851 (eval "$ac_compile") 2>conftest.er1
18853 grep -v '^ *+' conftest.er1 >conftest.err
18855 cat conftest.err >&5
18856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18857 (exit $ac_status); } && {
18858 test -z "$ac_c_werror_flag" ||
18859 test ! -s conftest.err
18860 } && test -s conftest.$ac_objext; then
18861 ac_header_compiler=yes
18863 echo "$as_me: failed program was
:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18866 ac_header_compiler=no
18869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18870 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18871 echo "${ECHO_T}$ac_header_compiler" >&6; }
18873 # Is the header present?
18874 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18875 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18882 #include <$ac_header>
18884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18885 case "(($ac_try" in
18886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18887 *) ac_try_echo=$ac_try;;
18889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18892 grep -v '^ *+' conftest.er1 >conftest.err
18894 cat conftest.err >&5
18895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18896 (exit $ac_status); } >/dev/null && {
18897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18900 ac_header_preproc=yes
18902 echo "$as_me: failed program was
:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18905 ac_header_preproc=no
18908 rm -f conftest.err conftest.$ac_ext
18909 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18910 echo "${ECHO_T}$ac_header_preproc" >&6; }
18912 # So? What about this header?
18913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18915 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18916 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18917 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18919 ac_header_preproc=yes
18922 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18923 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18924 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18925 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18926 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18927 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18928 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18929 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18932 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18933 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18937 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18938 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18940 echo $ECHO_N "(cached
) $ECHO_C" >&6
18942 eval "$as_ac_Header=\
$ac_header_preproc"
18944 ac_res=`eval echo '${'$as_ac_Header'}'`
18945 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18960 if test -z "$GETOPT_H"; then
18962 for ac_func in getopt_long_only
18964 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18965 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18966 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18967 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18968 echo $ECHO_N "(cached
) $ECHO_C" >&6
18970 cat >conftest.$ac_ext <<_ACEOF
18973 cat confdefs.h >>conftest.$ac_ext
18974 cat >>conftest.$ac_ext <<_ACEOF
18975 /* end confdefs.h. */
18976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18978 #define $ac_func innocuous_$ac_func
18980 /* System header to define __stub macros and hopefully few prototypes,
18981 which can conflict with char $ac_func (); below.
18982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18983 <limits.h> exists even on freestanding compilers. */
18986 # include <limits.h>
18988 # include <assert.h>
18993 /* Override any GCC internal prototype to avoid an error.
18994 Use char because int might match the return type of a GCC
18995 builtin and then its argument prototype would still apply. */
19000 /* The GNU C library defines this for functions which it implements
19001 to always fail with ENOSYS. Some functions are actually named
19002 something starting with __ and the normal name is an alias. */
19003 #if defined __stub_$ac_func || defined __stub___$ac_func
19010 return $ac_func ();
19015 rm -f conftest.$ac_objext conftest$ac_exeext
19016 if { (ac_try="$ac_link"
19017 case "(($ac_try" in
19018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19019 *) ac_try_echo=$ac_try;;
19021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19022 (eval "$ac_link") 2>conftest.er1
19024 grep -v '^ *+' conftest.er1 >conftest.err
19026 cat conftest.err >&5
19027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest$ac_exeext &&
19032 $as_test_x conftest$ac_exeext; then
19033 eval "$as_ac_var=yes"
19035 echo "$as_me: failed program was
:" >&5
19036 sed 's/^/| /' conftest.$ac_ext >&5
19038 eval "$as_ac_var=no
"
19041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19042 conftest$ac_exeext conftest.$ac_ext
19044 ac_res=`eval echo '${'$as_ac_var'}'`
19045 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19046 echo "${ECHO_T}$ac_res" >&6; }
19047 if test `eval echo '${'$as_ac_var'}'` = yes; then
19048 cat >>confdefs.h <<_ACEOF
19049 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19059 if test -z "$GETOPT_H"; then
19060 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19061 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19062 if test "${ac_cv_have_decl_optreset+set}" = set; then
19063 echo $ECHO_N "(cached
) $ECHO_C" >&6
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19071 #include <getopt.h>
19084 rm -f conftest.$ac_objext
19085 if { (ac_try="$ac_compile"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_compile") 2>conftest.er1
19093 grep -v '^ *+' conftest.er1 >conftest.err
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest.$ac_objext; then
19101 ac_cv_have_decl_optreset=yes
19103 echo "$as_me: failed program was
:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19106 ac_cv_have_decl_optreset=no
19109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19111 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19112 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19113 if test $ac_cv_have_decl_optreset = yes; then
19119 if test -z "$GETOPT_H"; then
19120 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19121 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19122 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19123 echo $ECHO_N "(cached
) $ECHO_C" >&6
19125 if test "$cross_compiling" = yes; then
19126 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19127 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19128 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19129 echo $ECHO_N "(cached
) $ECHO_C" >&6
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19137 #include <getopt.h>
19142 #ifndef getopt_clip
19143 (void) getopt_clip;
19150 rm -f conftest.$ac_objext
19151 if { (ac_try="$ac_compile"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_compile") 2>conftest.er1
19159 grep -v '^ *+' conftest.er1 >conftest.err
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest.$ac_objext; then
19167 ac_cv_have_decl_getopt_clip=yes
19169 echo "$as_me: failed program was
:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_have_decl_getopt_clip=no
19175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19177 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19178 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19179 if test $ac_cv_have_decl_getopt_clip = yes; then
19180 gl_cv_func_gnu_getopt=no
19182 gl_cv_func_gnu_getopt=yes
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <getopt.h>
19198 myargv[0] = "conftest
";
19201 return getopt (2, myargv, "+a
") != '?';
19207 rm -f conftest$ac_exeext
19208 if { (ac_try="$ac_link"
19209 case "(($ac_try" in
19210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19211 *) ac_try_echo=$ac_try;;
19213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19214 (eval "$ac_link") 2>&5
19216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 gl_cv_func_gnu_getopt=yes
19229 echo "$as_me: program exited with status
$ac_status" >&5
19230 echo "$as_me: failed program was
:" >&5
19231 sed 's/^/| /' conftest.$ac_ext >&5
19233 ( exit $ac_status )
19234 gl_cv_func_gnu_getopt=no
19236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19241 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19242 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19243 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19250 if test -n "$GETOPT_H"; then
19255 cat >>confdefs.h <<\_ACEOF
19256 #define __GETOPT_PREFIX rpl_
19262 GETOPTOBJS='getopt.o getopt1.o'
19269 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19270 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19271 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19272 echo $ECHO_N "(cached
) $ECHO_C" >&6
19274 # Use it with a single arg.
19275 cat >conftest.$ac_ext <<_ACEOF
19278 cat confdefs.h >>conftest.$ac_ext
19279 cat >>conftest.$ac_ext <<_ACEOF
19280 /* end confdefs.h. */
19281 $ac_includes_default
19290 rm -f conftest.$ac_objext
19291 if { (ac_try="$ac_compile"
19292 case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_compile") 2>conftest.er1
19299 grep -v '^ *+' conftest.er1 >conftest.err
19301 cat conftest.err >&5
19302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19303 (exit $ac_status); } && {
19304 test -z "$ac_c_werror_flag" ||
19305 test ! -s conftest.err
19306 } && test -s conftest.$ac_objext; then
19307 ac_cv_func_getpgrp_void=no
19309 echo "$as_me: failed program was
:" >&5
19310 sed 's/^/| /' conftest.$ac_ext >&5
19312 ac_cv_func_getpgrp_void=yes
19315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19319 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19320 if test $ac_cv_func_getpgrp_void = yes; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define GETPGRP_VOID 1
19330 for ac_func in strftime
19332 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19333 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19334 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19335 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19336 echo $ECHO_N "(cached
) $ECHO_C" >&6
19338 cat >conftest.$ac_ext <<_ACEOF
19341 cat confdefs.h >>conftest.$ac_ext
19342 cat >>conftest.$ac_ext <<_ACEOF
19343 /* end confdefs.h. */
19344 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19346 #define $ac_func innocuous_$ac_func
19348 /* System header to define __stub macros and hopefully few prototypes,
19349 which can conflict with char $ac_func (); below.
19350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19351 <limits.h> exists even on freestanding compilers. */
19354 # include <limits.h>
19356 # include <assert.h>
19361 /* Override any GCC internal prototype to avoid an error.
19362 Use char because int might match the return type of a GCC
19363 builtin and then its argument prototype would still apply. */
19368 /* The GNU C library defines this for functions which it implements
19369 to always fail with ENOSYS. Some functions are actually named
19370 something starting with __ and the normal name is an alias. */
19371 #if defined __stub_$ac_func || defined __stub___$ac_func
19378 return $ac_func ();
19383 rm -f conftest.$ac_objext conftest$ac_exeext
19384 if { (ac_try="$ac_link"
19385 case "(($ac_try" in
19386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19387 *) ac_try_echo=$ac_try;;
19389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19390 (eval "$ac_link") 2>conftest.er1
19392 grep -v '^ *+' conftest.er1 >conftest.err
19394 cat conftest.err >&5
19395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19396 (exit $ac_status); } && {
19397 test -z "$ac_c_werror_flag" ||
19398 test ! -s conftest.err
19399 } && test -s conftest$ac_exeext &&
19400 $as_test_x conftest$ac_exeext; then
19401 eval "$as_ac_var=yes"
19403 echo "$as_me: failed program was
:" >&5
19404 sed 's/^/| /' conftest.$ac_ext >&5
19406 eval "$as_ac_var=no
"
19409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19410 conftest$ac_exeext conftest.$ac_ext
19412 ac_res=`eval echo '${'$as_ac_var'}'`
19413 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19414 echo "${ECHO_T}$ac_res" >&6; }
19415 if test `eval echo '${'$as_ac_var'}'` = yes; then
19416 cat >>confdefs.h <<_ACEOF
19417 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19421 # strftime is in -lintl on SCO UNIX.
19422 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19423 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19424 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19425 echo $ECHO_N "(cached
) $ECHO_C" >&6
19427 ac_check_lib_save_LIBS=$LIBS
19428 LIBS="-lintl $LIBS"
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19446 return strftime ();
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext &&
19468 $as_test_x conftest$ac_exeext; then
19469 ac_cv_lib_intl_strftime=yes
19471 echo "$as_me: failed program was
:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_intl_strftime=no
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478 conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19481 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19482 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19483 if test $ac_cv_lib_intl_strftime = yes; then
19484 cat >>confdefs.h <<\_ACEOF
19485 #define HAVE_STRFTIME 1
19488 LIBS="-lintl $LIBS"
19497 for ac_func in grantpt
19499 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19500 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19501 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19502 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19503 echo $ECHO_N "(cached
) $ECHO_C" >&6
19505 cat >conftest.$ac_ext <<_ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19513 #define $ac_func innocuous_$ac_func
19515 /* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func (); below.
19517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19518 <limits.h> exists even on freestanding compilers. */
19521 # include <limits.h>
19523 # include <assert.h>
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19535 /* The GNU C library defines this for functions which it implements
19536 to always fail with ENOSYS. Some functions are actually named
19537 something starting with __ and the normal name is an alias. */
19538 #if defined __stub_$ac_func || defined __stub___$ac_func
19545 return $ac_func ();
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 eval "$as_ac_var=yes"
19570 echo "$as_me: failed program was
:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 eval "$as_ac_var=no
"
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19579 ac_res=`eval echo '${'$as_ac_var'}'`
19580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 if test `eval echo '${'$as_ac_var'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19591 # PTY-related GNU extensions.
19593 for ac_func in getpt
19595 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19596 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19597 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19598 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19599 echo $ECHO_N "(cached
) $ECHO_C" >&6
19601 cat >conftest.$ac_ext <<_ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h. */
19607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19609 #define $ac_func innocuous_$ac_func
19611 /* System header to define __stub macros and hopefully few prototypes,
19612 which can conflict with char $ac_func (); below.
19613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19614 <limits.h> exists even on freestanding compilers. */
19617 # include <limits.h>
19619 # include <assert.h>
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19631 /* The GNU C library defines this for functions which it implements
19632 to always fail with ENOSYS. Some functions are actually named
19633 something starting with __ and the normal name is an alias. */
19634 #if defined __stub_$ac_func || defined __stub___$ac_func
19641 return $ac_func ();
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_link") 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest$ac_exeext &&
19663 $as_test_x conftest$ac_exeext; then
19664 eval "$as_ac_var=yes"
19666 echo "$as_me: failed program was
:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 eval "$as_ac_var=no
"
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673 conftest$ac_exeext conftest.$ac_ext
19675 ac_res=`eval echo '${'$as_ac_var'}'`
19676 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19677 echo "${ECHO_T}$ac_res" >&6; }
19678 if test `eval echo '${'$as_ac_var'}'` = yes; then
19679 cat >>confdefs.h <<_ACEOF
19680 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19687 # Check this now, so that we will NOT find the above functions in ncurses.
19688 # That is because we have not set up to link ncurses in lib-src.
19689 # It's better to believe a function is not available
19690 # than to expect to find it in ncurses.
19692 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19693 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19694 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19695 echo $ECHO_N "(cached
) $ECHO_C" >&6
19697 ac_check_lib_save_LIBS=$LIBS
19698 LIBS="-lncurses $LIBS"
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19706 /* Override any GCC internal prototype to avoid an error.
19707 Use char because int might match the return type of a GCC
19708 builtin and then its argument prototype would still apply. */
19721 rm -f conftest.$ac_objext conftest$ac_exeext
19722 if { (ac_try="$ac_link"
19723 case "(($ac_try" in
19724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725 *) ac_try_echo=$ac_try;;
19727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_link") 2>conftest.er1
19730 grep -v '^ *+' conftest.er1 >conftest.err
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19734 (exit $ac_status); } && {
19735 test -z "$ac_c_werror_flag" ||
19736 test ! -s conftest.err
19737 } && test -s conftest$ac_exeext &&
19738 $as_test_x conftest$ac_exeext; then
19739 ac_cv_lib_ncurses_tparm=yes
19741 echo "$as_me: failed program was
:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19744 ac_cv_lib_ncurses_tparm=no
19747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19748 conftest$ac_exeext conftest.$ac_ext
19749 LIBS=$ac_check_lib_save_LIBS
19751 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19752 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19753 if test $ac_cv_lib_ncurses_tparm = yes; then
19754 cat >>confdefs.h <<_ACEOF
19755 #define HAVE_LIBNCURSES 1
19758 LIBS="-lncurses $LIBS"
19763 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19766 cat >conftest.$ac_ext <<_ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19772 #include <netinet/in.h>
19773 #include <arpa/nameser.h>
19774 #include <resolv.h>
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19792 grep -v '^ *+' conftest.er1 >conftest.err
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19803 echo "$as_me: failed program was
:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext conftest.$ac_ext
19811 if test "$have_res_init" = no; then
19813 LIBS="$LIBS -lresolv"
19814 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19815 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19816 cat >conftest.$ac_ext <<_ACEOF
19819 cat confdefs.h >>conftest.$ac_ext
19820 cat >>conftest.$ac_ext <<_ACEOF
19821 /* end confdefs.h. */
19822 #include <netinet/in.h>
19823 #include <arpa/nameser.h>
19824 #include <resolv.h>
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_link") 2>conftest.er1
19842 grep -v '^ *+' conftest.er1 >conftest.err
19844 cat conftest.err >&5
19845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19846 (exit $ac_status); } && {
19847 test -z "$ac_c_werror_flag" ||
19848 test ! -s conftest.err
19849 } && test -s conftest$ac_exeext &&
19850 $as_test_x conftest$ac_exeext; then
19853 echo "$as_me: failed program was
:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860 conftest$ac_exeext conftest.$ac_ext
19861 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19862 echo "${ECHO_T}$have_res_init" >&6; }
19863 if test "$have_res_init" = yes ; then
19869 if test "$have_res_init" = yes; then
19871 cat >>confdefs.h <<\_ACEOF
19872 #define HAVE_RES_INIT 1
19877 # Do we need the Hesiod library to provide the support routines?
19878 if test "$with_hesiod" != no ; then
19879 # Don't set $LIBS here -- see comments above.
19880 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19881 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19882 if test "${ac_cv_func_res_send+set}" = set; then
19883 echo $ECHO_N "(cached
) $ECHO_C" >&6
19885 cat >conftest.$ac_ext <<_ACEOF
19888 cat confdefs.h >>conftest.$ac_ext
19889 cat >>conftest.$ac_ext <<_ACEOF
19890 /* end confdefs.h. */
19891 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19893 #define res_send innocuous_res_send
19895 /* System header to define __stub macros and hopefully few prototypes,
19896 which can conflict with char res_send (); below.
19897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19898 <limits.h> exists even on freestanding compilers. */
19901 # include <limits.h>
19903 # include <assert.h>
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19915 /* The GNU C library defines this for functions which it implements
19916 to always fail with ENOSYS. Some functions are actually named
19917 something starting with __ and the normal name is an alias. */
19918 #if defined __stub_res_send || defined __stub___res_send
19925 return res_send ();
19930 rm -f conftest.$ac_objext conftest$ac_exeext
19931 if { (ac_try="$ac_link"
19932 case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19937 (eval "$ac_link") 2>conftest.er1
19939 grep -v '^ *+' conftest.er1 >conftest.err
19941 cat conftest.err >&5
19942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19943 (exit $ac_status); } && {
19944 test -z "$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 } && test -s conftest$ac_exeext &&
19947 $as_test_x conftest$ac_exeext; then
19948 ac_cv_func_res_send=yes
19950 echo "$as_me: failed program was
:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_func_res_send=no
19956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19957 conftest$ac_exeext conftest.$ac_ext
19959 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19960 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19961 if test $ac_cv_func_res_send = yes; then
19964 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19965 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19966 if test "${ac_cv_func___res_send+set}" = set; then
19967 echo $ECHO_N "(cached
) $ECHO_C" >&6
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19975 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19977 #define __res_send innocuous___res_send
19979 /* System header to define __stub macros and hopefully few prototypes,
19980 which can conflict with char __res_send (); below.
19981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19982 <limits.h> exists even on freestanding compilers. */
19985 # include <limits.h>
19987 # include <assert.h>
19992 /* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19998 char __res_send ();
19999 /* The GNU C library defines this for functions which it implements
20000 to always fail with ENOSYS. Some functions are actually named
20001 something starting with __ and the normal name is an alias. */
20002 #if defined __stub___res_send || defined __stub_____res_send
20009 return __res_send ();
20014 rm -f conftest.$ac_objext conftest$ac_exeext
20015 if { (ac_try="$ac_link"
20016 case "(($ac_try" in
20017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20018 *) ac_try_echo=$ac_try;;
20020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20021 (eval "$ac_link") 2>conftest.er1
20023 grep -v '^ *+' conftest.er1 >conftest.err
20025 cat conftest.err >&5
20026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20027 (exit $ac_status); } && {
20028 test -z "$ac_c_werror_flag" ||
20029 test ! -s conftest.err
20030 } && test -s conftest$ac_exeext &&
20031 $as_test_x conftest$ac_exeext; then
20032 ac_cv_func___res_send=yes
20034 echo "$as_me: failed program was
:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_func___res_send=no
20040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20041 conftest$ac_exeext conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20044 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20045 if test $ac_cv_func___res_send = yes; then
20048 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20049 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20050 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20051 echo $ECHO_N "(cached
) $ECHO_C" >&6
20053 ac_check_lib_save_LIBS=$LIBS
20054 LIBS="-lresolv $LIBS"
20055 cat >conftest.$ac_ext <<_ACEOF
20058 cat confdefs.h >>conftest.$ac_ext
20059 cat >>conftest.$ac_ext <<_ACEOF
20060 /* end confdefs.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. */
20072 return res_send ();
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (ac_try="$ac_link"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_link") 2>conftest.er1
20086 grep -v '^ *+' conftest.er1 >conftest.err
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20090 (exit $ac_status); } && {
20091 test -z "$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 } && test -s conftest$ac_exeext &&
20094 $as_test_x conftest$ac_exeext; then
20095 ac_cv_lib_resolv_res_send=yes
20097 echo "$as_me: failed program was
:" >&5
20098 sed 's/^/| /' conftest.$ac_ext >&5
20100 ac_cv_lib_resolv_res_send=no
20103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20104 conftest$ac_exeext conftest.$ac_ext
20105 LIBS=$ac_check_lib_save_LIBS
20107 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20108 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20109 if test $ac_cv_lib_resolv_res_send = yes; then
20112 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20113 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20114 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20115 echo $ECHO_N "(cached
) $ECHO_C" >&6
20117 ac_check_lib_save_LIBS=$LIBS
20118 LIBS="-lresolv $LIBS"
20119 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 /* Override any GCC internal prototype to avoid an error.
20127 Use char because int might match the return type of a GCC
20128 builtin and then its argument prototype would still apply. */
20132 char __res_send ();
20136 return __res_send ();
20141 rm -f conftest.$ac_objext conftest$ac_exeext
20142 if { (ac_try="$ac_link"
20143 case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_link") 2>conftest.er1
20150 grep -v '^ *+' conftest.er1 >conftest.err
20152 cat conftest.err >&5
20153 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest$ac_exeext &&
20158 $as_test_x conftest$ac_exeext; then
20159 ac_cv_lib_resolv___res_send=yes
20161 echo "$as_me: failed program was
:" >&5
20162 sed 's/^/| /' conftest.$ac_ext >&5
20164 ac_cv_lib_resolv___res_send=no
20167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20168 conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20171 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20172 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20173 if test $ac_cv_lib_resolv___res_send = yes; then
20183 if test "$resolv" = yes ; then
20188 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20189 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20190 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20191 echo $ECHO_N "(cached
) $ECHO_C" >&6
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20201 #define hes_getmailhost innocuous_hes_getmailhost
20203 /* System header to define __stub macros and hopefully few prototypes,
20204 which can conflict with char hes_getmailhost (); below.
20205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20206 <limits.h> exists even on freestanding compilers. */
20209 # include <limits.h>
20211 # include <assert.h>
20214 #undef hes_getmailhost
20216 /* Override any GCC internal prototype to avoid an error.
20217 Use char because int might match the return type of a GCC
20218 builtin and then its argument prototype would still apply. */
20222 char hes_getmailhost ();
20223 /* The GNU C library defines this for functions which it implements
20224 to always fail with ENOSYS. Some functions are actually named
20225 something starting with __ and the normal name is an alias. */
20226 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20233 return hes_getmailhost ();
20238 rm -f conftest.$ac_objext conftest$ac_exeext
20239 if { (ac_try="$ac_link"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_link") 2>conftest.er1
20247 grep -v '^ *+' conftest.er1 >conftest.err
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest$ac_exeext &&
20255 $as_test_x conftest$ac_exeext; then
20256 ac_cv_func_hes_getmailhost=yes
20258 echo "$as_me: failed program was
:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_cv_func_hes_getmailhost=no
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265 conftest$ac_exeext conftest.$ac_ext
20267 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20268 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20269 if test $ac_cv_func_hes_getmailhost = yes; then
20272 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20273 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20274 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20275 echo $ECHO_N "(cached
) $ECHO_C" >&6
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lhesiod $RESOLVLIB $LIBS"
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
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 ();
20296 return hes_getmailhost ();
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_link") 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest$ac_exeext &&
20318 $as_test_x conftest$ac_exeext; then
20319 ac_cv_lib_hesiod_hes_getmailhost=yes
20321 echo "$as_me: failed program was
:" >&5
20322 sed 's/^/| /' conftest.$ac_ext >&5
20324 ac_cv_lib_hesiod_hes_getmailhost=no
20327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20328 conftest$ac_exeext conftest.$ac_ext
20329 LIBS=$ac_check_lib_save_LIBS
20331 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20332 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20333 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20335 cat >>confdefs.h <<\_ACEOF
20336 #define HAVE_LIBHESIOD 1
20347 # Do we need libresolv (due to res_init or Hesiod)?
20348 if test "$resolv" = yes ; then
20350 cat >>confdefs.h <<\_ACEOF
20351 #define HAVE_LIBRESOLV 1
20356 # These tell us which Kerberos-related libraries to use.
20357 if test "${with_kerberos}" != no; then
20359 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20360 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20361 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20362 echo $ECHO_N "(cached
) $ECHO_C" >&6
20364 ac_check_lib_save_LIBS=$LIBS
20365 LIBS="-lcom_err $LIBS"
20366 cat >conftest.$ac_ext <<_ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h. */
20373 /* Override any GCC internal prototype to avoid an error.
20374 Use char because int might match the return type of a GCC
20375 builtin and then its argument prototype would still apply. */
20388 rm -f conftest.$ac_objext conftest$ac_exeext
20389 if { (ac_try="$ac_link"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_link") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20401 (exit $ac_status); } && {
20402 test -z "$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20404 } && test -s conftest$ac_exeext &&
20405 $as_test_x conftest$ac_exeext; then
20406 ac_cv_lib_com_err_com_err=yes
20408 echo "$as_me: failed program was
:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_lib_com_err_com_err=no
20414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20415 conftest$ac_exeext conftest.$ac_ext
20416 LIBS=$ac_check_lib_save_LIBS
20418 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20419 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20420 if test $ac_cv_lib_com_err_com_err = yes; then
20421 cat >>confdefs.h <<_ACEOF
20422 #define HAVE_LIBCOM_ERR 1
20425 LIBS="-lcom_err $LIBS"
20430 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20431 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20432 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20433 echo $ECHO_N "(cached
) $ECHO_C" >&6
20435 ac_check_lib_save_LIBS=$LIBS
20436 LIBS="-lk5crypto $LIBS"
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20450 char mit_des_cbc_encrypt ();
20454 return mit_des_cbc_encrypt ();
20459 rm -f conftest.$ac_objext conftest$ac_exeext
20460 if { (ac_try="$ac_link"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_link") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest$ac_exeext &&
20476 $as_test_x conftest$ac_exeext; then
20477 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20479 echo "$as_me: failed program was
:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20486 conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20489 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20490 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20491 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20492 cat >>confdefs.h <<_ACEOF
20493 #define HAVE_LIBK5CRYPTO 1
20496 LIBS="-lk5crypto $LIBS"
20501 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20502 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20503 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20504 echo $ECHO_N "(cached
) $ECHO_C" >&6
20506 ac_check_lib_save_LIBS=$LIBS
20507 LIBS="-lcrypto $LIBS"
20508 cat >conftest.$ac_ext <<_ACEOF
20511 cat confdefs.h >>conftest.$ac_ext
20512 cat >>conftest.$ac_ext <<_ACEOF
20513 /* end confdefs.h. */
20515 /* Override any GCC internal prototype to avoid an error.
20516 Use char because int might match the return type of a GCC
20517 builtin and then its argument prototype would still apply. */
20521 char mit_des_cbc_encrypt ();
20525 return mit_des_cbc_encrypt ();
20530 rm -f conftest.$ac_objext conftest$ac_exeext
20531 if { (ac_try="$ac_link"
20532 case "(($ac_try" in
20533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20534 *) ac_try_echo=$ac_try;;
20536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20537 (eval "$ac_link") 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20543 (exit $ac_status); } && {
20544 test -z "$ac_c_werror_flag" ||
20545 test ! -s conftest.err
20546 } && test -s conftest$ac_exeext &&
20547 $as_test_x conftest$ac_exeext; then
20548 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20550 echo "$as_me: failed program was
:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20557 conftest$ac_exeext conftest.$ac_ext
20558 LIBS=$ac_check_lib_save_LIBS
20560 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20561 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20562 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20563 cat >>confdefs.h <<_ACEOF
20564 #define HAVE_LIBCRYPTO 1
20567 LIBS="-lcrypto $LIBS"
20572 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20573 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20574 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20575 echo $ECHO_N "(cached
) $ECHO_C" >&6
20577 ac_check_lib_save_LIBS=$LIBS
20578 LIBS="-lkrb5 $LIBS"
20579 cat >conftest.$ac_ext <<_ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h. */
20586 /* Override any GCC internal prototype to avoid an error.
20587 Use char because int might match the return type of a GCC
20588 builtin and then its argument prototype would still apply. */
20592 char krb5_init_context ();
20596 return krb5_init_context ();
20601 rm -f conftest.$ac_objext conftest$ac_exeext
20602 if { (ac_try="$ac_link"
20603 case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20608 (eval "$ac_link") 2>conftest.er1
20610 grep -v '^ *+' conftest.er1 >conftest.err
20612 cat conftest.err >&5
20613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest$ac_exeext &&
20618 $as_test_x conftest$ac_exeext; then
20619 ac_cv_lib_krb5_krb5_init_context=yes
20621 echo "$as_me: failed program was
:" >&5
20622 sed 's/^/| /' conftest.$ac_ext >&5
20624 ac_cv_lib_krb5_krb5_init_context=no
20627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20628 conftest$ac_exeext conftest.$ac_ext
20629 LIBS=$ac_check_lib_save_LIBS
20631 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20632 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20633 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_LIBKRB5 1
20638 LIBS="-lkrb5 $LIBS"
20642 if test "${with_kerberos5}" = no; then
20644 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20645 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20646 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20647 echo $ECHO_N "(cached
) $ECHO_C" >&6
20649 ac_check_lib_save_LIBS=$LIBS
20650 LIBS="-ldes425 $LIBS"
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 /* Override any GCC internal prototype to avoid an error.
20659 Use char because int might match the return type of a GCC
20660 builtin and then its argument prototype would still apply. */
20664 char des_cbc_encrypt ();
20668 return des_cbc_encrypt ();
20673 rm -f conftest.$ac_objext conftest$ac_exeext
20674 if { (ac_try="$ac_link"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_link") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20686 (exit $ac_status); } && {
20687 test -z "$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20689 } && test -s conftest$ac_exeext &&
20690 $as_test_x conftest$ac_exeext; then
20691 ac_cv_lib_des425_des_cbc_encrypt=yes
20693 echo "$as_me: failed program was
:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20696 ac_cv_lib_des425_des_cbc_encrypt=no
20699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20700 conftest$ac_exeext conftest.$ac_ext
20701 LIBS=$ac_check_lib_save_LIBS
20703 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20704 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20705 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define HAVE_LIBDES425 1
20710 LIBS="-ldes425 $LIBS"
20714 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20715 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20716 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20717 echo $ECHO_N "(cached
) $ECHO_C" >&6
20719 ac_check_lib_save_LIBS=$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_des_des_cbc_encrypt=yes
20763 echo "$as_me: failed program was
:" >&5
20764 sed 's/^/| /' conftest.$ac_ext >&5
20766 ac_cv_lib_des_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_des_des_cbc_encrypt" >&5
20774 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20775 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20776 cat >>confdefs.h <<_ACEOF
20777 #define HAVE_LIBDES 1
20787 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20788 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20789 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20790 echo $ECHO_N "(cached
) $ECHO_C" >&6
20792 ac_check_lib_save_LIBS=$LIBS
20793 LIBS="-lkrb4 $LIBS"
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20801 /* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20807 char krb_get_cred ();
20811 return krb_get_cred ();
20816 rm -f conftest.$ac_objext conftest$ac_exeext
20817 if { (ac_try="$ac_link"
20818 case "(($ac_try" in
20819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20820 *) ac_try_echo=$ac_try;;
20822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20823 (eval "$ac_link") 2>conftest.er1
20825 grep -v '^ *+' conftest.er1 >conftest.err
20827 cat conftest.err >&5
20828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20829 (exit $ac_status); } && {
20830 test -z "$ac_c_werror_flag" ||
20831 test ! -s conftest.err
20832 } && test -s conftest$ac_exeext &&
20833 $as_test_x conftest$ac_exeext; then
20834 ac_cv_lib_krb4_krb_get_cred=yes
20836 echo "$as_me: failed program was
:" >&5
20837 sed 's/^/| /' conftest.$ac_ext >&5
20839 ac_cv_lib_krb4_krb_get_cred=no
20842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20843 conftest$ac_exeext conftest.$ac_ext
20844 LIBS=$ac_check_lib_save_LIBS
20846 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20847 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20848 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define HAVE_LIBKRB4 1
20853 LIBS="-lkrb4 $LIBS"
20857 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20858 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20859 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20860 echo $ECHO_N "(cached
) $ECHO_C" >&6
20862 ac_check_lib_save_LIBS=$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_krb_krb_get_cred=yes
20906 echo "$as_me: failed program was
:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_cv_lib_krb_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_krb_krb_get_cred" >&5
20917 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20918 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define HAVE_LIBKRB 1
20931 if test "${with_kerberos5}" != no; then
20933 for ac_header in krb5.h
20935 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20936 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20937 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20938 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20940 echo $ECHO_N "(cached
) $ECHO_C" >&6
20942 ac_res=`eval echo '${'$as_ac_Header'}'`
20943 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20944 echo "${ECHO_T}$ac_res" >&6; }
20946 # Is the header compilable?
20947 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20948 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20955 $ac_includes_default
20956 #include <$ac_header>
20958 rm -f conftest.$ac_objext
20959 if { (ac_try="$ac_compile"
20960 case "(($ac_try" in
20961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_compile") 2>conftest.er1
20967 grep -v '^ *+' conftest.er1 >conftest.err
20969 cat conftest.err >&5
20970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20971 (exit $ac_status); } && {
20972 test -z "$ac_c_werror_flag" ||
20973 test ! -s conftest.err
20974 } && test -s conftest.$ac_objext; then
20975 ac_header_compiler=yes
20977 echo "$as_me: failed program was
:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_header_compiler=no
20983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20984 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20985 echo "${ECHO_T}$ac_header_compiler" >&6; }
20987 # Is the header present?
20988 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20989 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 #include <$ac_header>
20998 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20999 case "(($ac_try" in
21000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21001 *) ac_try_echo=$ac_try;;
21003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21004 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21006 grep -v '^ *+' conftest.er1 >conftest.err
21008 cat conftest.err >&5
21009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21010 (exit $ac_status); } >/dev/null && {
21011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21012 test ! -s conftest.err
21014 ac_header_preproc=yes
21016 echo "$as_me: failed program was
:" >&5
21017 sed 's/^/| /' conftest.$ac_ext >&5
21019 ac_header_preproc=no
21022 rm -f conftest.err conftest.$ac_ext
21023 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21024 echo "${ECHO_T}$ac_header_preproc" >&6; }
21026 # So? What about this header?
21027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21029 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21030 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21031 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21033 ac_header_preproc=yes
21036 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21037 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21038 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21039 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21040 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21041 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21042 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21043 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21044 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21046 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21047 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21051 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21052 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached
) $ECHO_C" >&6
21056 eval "$as_ac_Header=\
$ac_header_preproc"
21058 ac_res=`eval echo '${'$as_ac_Header'}'`
21059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21060 echo "${ECHO_T}$ac_res" >&6; }
21063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21074 for ac_header in des.h
21076 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached
) $ECHO_C" >&6
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21087 # Is the header compilable?
21088 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21089 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21097 #include <$ac_header>
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_header_compiler=yes
21118 echo "$as_me: failed program was
:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21130 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <$ac_header>
21139 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21151 (exit $ac_status); } >/dev/null && {
21152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21155 ac_header_preproc=yes
21157 echo "$as_me: failed program was
:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_header_preproc=no
21163 rm -f conftest.err conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21165 echo "${ECHO_T}$ac_header_preproc" >&6; }
21167 # So? What about this header?
21168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21170 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21171 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21174 ac_header_preproc=yes
21177 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21178 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21179 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21180 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21181 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21182 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21183 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21184 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21185 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21188 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21192 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21193 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21194 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached
) $ECHO_C" >&6
21197 eval "$as_ac_Header=\
$ac_header_preproc"
21199 ac_res=`eval echo '${'$as_ac_Header'}'`
21200 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21201 echo "${ECHO_T}$ac_res" >&6; }
21204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21211 for ac_header in kerberosIV/des.h
21213 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21215 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21216 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached
) $ECHO_C" >&6
21220 ac_res=`eval echo '${'$as_ac_Header'}'`
21221 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21222 echo "${ECHO_T}$ac_res" >&6; }
21224 # Is the header compilable?
21225 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21226 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21227 cat >conftest.$ac_ext <<_ACEOF
21230 cat confdefs.h >>conftest.$ac_ext
21231 cat >>conftest.$ac_ext <<_ACEOF
21232 /* end confdefs.h. */
21233 $ac_includes_default
21234 #include <$ac_header>
21236 rm -f conftest.$ac_objext
21237 if { (ac_try="$ac_compile"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_compile") 2>conftest.er1
21245 grep -v '^ *+' conftest.er1 >conftest.err
21247 cat conftest.err >&5
21248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21249 (exit $ac_status); } && {
21250 test -z "$ac_c_werror_flag" ||
21251 test ! -s conftest.err
21252 } && test -s conftest.$ac_objext; then
21253 ac_header_compiler=yes
21255 echo "$as_me: failed program was
:" >&5
21256 sed 's/^/| /' conftest.$ac_ext >&5
21258 ac_header_compiler=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21262 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21263 echo "${ECHO_T}$ac_header_compiler" >&6; }
21265 # Is the header present?
21266 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21267 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <$ac_header>
21276 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21277 case "(($ac_try" in
21278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21279 *) ac_try_echo=$ac_try;;
21281 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21282 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21284 grep -v '^ *+' conftest.er1 >conftest.err
21286 cat conftest.err >&5
21287 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21288 (exit $ac_status); } >/dev/null && {
21289 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21290 test ! -s conftest.err
21292 ac_header_preproc=yes
21294 echo "$as_me: failed program was
:" >&5
21295 sed 's/^/| /' conftest.$ac_ext >&5
21297 ac_header_preproc=no
21300 rm -f conftest.err conftest.$ac_ext
21301 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21302 echo "${ECHO_T}$ac_header_preproc" >&6; }
21304 # So? What about this header?
21305 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21307 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21308 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21309 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21310 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21311 ac_header_preproc=yes
21314 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21315 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21316 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21317 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21318 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21319 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21321 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21323 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21324 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21325 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21329 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21330 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21331 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21332 echo $ECHO_N "(cached
) $ECHO_C" >&6
21334 eval "$as_ac_Header=\
$ac_header_preproc"
21336 ac_res=`eval echo '${'$as_ac_Header'}'`
21337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21338 echo "${ECHO_T}$ac_res" >&6; }
21341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21342 cat >>confdefs.h <<_ACEOF
21343 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21348 for ac_header in kerberos/des.h
21350 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21351 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21352 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21353 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21355 echo $ECHO_N "(cached
) $ECHO_C" >&6
21357 ac_res=`eval echo '${'$as_ac_Header'}'`
21358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21359 echo "${ECHO_T}$ac_res" >&6; }
21361 # Is the header compilable?
21362 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21363 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21364 cat >conftest.$ac_ext <<_ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h. */
21370 $ac_includes_default
21371 #include <$ac_header>
21373 rm -f conftest.$ac_objext
21374 if { (ac_try="$ac_compile"
21375 case "(($ac_try" in
21376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21377 *) ac_try_echo=$ac_try;;
21379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21380 (eval "$ac_compile") 2>conftest.er1
21382 grep -v '^ *+' conftest.er1 >conftest.err
21384 cat conftest.err >&5
21385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21386 (exit $ac_status); } && {
21387 test -z "$ac_c_werror_flag" ||
21388 test ! -s conftest.err
21389 } && test -s conftest.$ac_objext; then
21390 ac_header_compiler=yes
21392 echo "$as_me: failed program was
:" >&5
21393 sed 's/^/| /' conftest.$ac_ext >&5
21395 ac_header_compiler=no
21398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21399 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21400 echo "${ECHO_T}$ac_header_compiler" >&6; }
21402 # Is the header present?
21403 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21404 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21405 cat >conftest.$ac_ext <<_ACEOF
21408 cat confdefs.h >>conftest.$ac_ext
21409 cat >>conftest.$ac_ext <<_ACEOF
21410 /* end confdefs.h. */
21411 #include <$ac_header>
21413 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21414 case "(($ac_try" in
21415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21416 *) ac_try_echo=$ac_try;;
21418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21419 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21421 grep -v '^ *+' conftest.er1 >conftest.err
21423 cat conftest.err >&5
21424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21425 (exit $ac_status); } >/dev/null && {
21426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21427 test ! -s conftest.err
21429 ac_header_preproc=yes
21431 echo "$as_me: failed program was
:" >&5
21432 sed 's/^/| /' conftest.$ac_ext >&5
21434 ac_header_preproc=no
21437 rm -f conftest.err conftest.$ac_ext
21438 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21439 echo "${ECHO_T}$ac_header_preproc" >&6; }
21441 # So? What about this header?
21442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21445 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21448 ac_header_preproc=yes
21451 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21452 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21453 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21454 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21456 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21458 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21461 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21462 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21466 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21467 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21469 echo $ECHO_N "(cached
) $ECHO_C" >&6
21471 eval "$as_ac_Header=\
$ac_header_preproc"
21473 ac_res=`eval echo '${'$as_ac_Header'}'`
21474 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21475 echo "${ECHO_T}$ac_res" >&6; }
21478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21479 cat >>confdefs.h <<_ACEOF
21480 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21496 for ac_header in krb.h
21498 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached
) $ECHO_C" >&6
21505 ac_res=`eval echo '${'$as_ac_Header'}'`
21506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21507 echo "${ECHO_T}$ac_res" >&6; }
21509 # Is the header compilable?
21510 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21511 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21512 cat >conftest.$ac_ext <<_ACEOF
21515 cat confdefs.h >>conftest.$ac_ext
21516 cat >>conftest.$ac_ext <<_ACEOF
21517 /* end confdefs.h. */
21518 $ac_includes_default
21519 #include <$ac_header>
21521 rm -f conftest.$ac_objext
21522 if { (ac_try="$ac_compile"
21523 case "(($ac_try" in
21524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21525 *) ac_try_echo=$ac_try;;
21527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21528 (eval "$ac_compile") 2>conftest.er1
21530 grep -v '^ *+' conftest.er1 >conftest.err
21532 cat conftest.err >&5
21533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21534 (exit $ac_status); } && {
21535 test -z "$ac_c_werror_flag" ||
21536 test ! -s conftest.err
21537 } && test -s conftest.$ac_objext; then
21538 ac_header_compiler=yes
21540 echo "$as_me: failed program was
:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 ac_header_compiler=no
21546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21548 echo "${ECHO_T}$ac_header_compiler" >&6; }
21550 # Is the header present?
21551 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21552 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 #include <$ac_header>
21561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21573 (exit $ac_status); } >/dev/null && {
21574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21577 ac_header_preproc=yes
21579 echo "$as_me: failed program was
:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_header_preproc=no
21585 rm -f conftest.err conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21587 echo "${ECHO_T}$ac_header_preproc" >&6; }
21589 # So? What about this header?
21590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21592 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21593 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21596 ac_header_preproc=yes
21599 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21600 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21601 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21602 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21603 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21604 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21605 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21606 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21607 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21609 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21610 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21614 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21615 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached
) $ECHO_C" >&6
21619 eval "$as_ac_Header=\
$ac_header_preproc"
21621 ac_res=`eval echo '${'$as_ac_Header'}'`
21622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21623 echo "${ECHO_T}$ac_res" >&6; }
21626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21627 cat >>confdefs.h <<_ACEOF
21628 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21633 for ac_header in kerberosIV/krb.h
21635 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21637 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21638 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached
) $ECHO_C" >&6
21642 ac_res=`eval echo '${'$as_ac_Header'}'`
21643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21644 echo "${ECHO_T}$ac_res" >&6; }
21646 # Is the header compilable?
21647 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21648 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21649 cat >conftest.$ac_ext <<_ACEOF
21652 cat confdefs.h >>conftest.$ac_ext
21653 cat >>conftest.$ac_ext <<_ACEOF
21654 /* end confdefs.h. */
21655 $ac_includes_default
21656 #include <$ac_header>
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21675 ac_header_compiler=yes
21677 echo "$as_me: failed program was
:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_header_compiler=no
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21685 echo "${ECHO_T}$ac_header_compiler" >&6; }
21687 # Is the header present?
21688 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21689 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <$ac_header>
21698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21710 (exit $ac_status); } >/dev/null && {
21711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21714 ac_header_preproc=yes
21716 echo "$as_me: failed program was
:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_header_preproc=no
21722 rm -f conftest.err conftest.$ac_ext
21723 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21724 echo "${ECHO_T}$ac_header_preproc" >&6; }
21726 # So? What about this header?
21727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21729 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21730 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21731 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21733 ac_header_preproc=yes
21736 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21737 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21739 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21740 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21741 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21743 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21744 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21746 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21747 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21751 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21752 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21754 echo $ECHO_N "(cached
) $ECHO_C" >&6
21756 eval "$as_ac_Header=\
$ac_header_preproc"
21758 ac_res=`eval echo '${'$as_ac_Header'}'`
21759 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21760 echo "${ECHO_T}$ac_res" >&6; }
21763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21764 cat >>confdefs.h <<_ACEOF
21765 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21770 for ac_header in kerberos/krb.h
21772 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21777 echo $ECHO_N "(cached
) $ECHO_C" >&6
21779 ac_res=`eval echo '${'$as_ac_Header'}'`
21780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21781 echo "${ECHO_T}$ac_res" >&6; }
21783 # Is the header compilable?
21784 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21785 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21786 cat >conftest.$ac_ext <<_ACEOF
21789 cat confdefs.h >>conftest.$ac_ext
21790 cat >>conftest.$ac_ext <<_ACEOF
21791 /* end confdefs.h. */
21792 $ac_includes_default
21793 #include <$ac_header>
21795 rm -f conftest.$ac_objext
21796 if { (ac_try="$ac_compile"
21797 case "(($ac_try" in
21798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21799 *) ac_try_echo=$ac_try;;
21801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21802 (eval "$ac_compile") 2>conftest.er1
21804 grep -v '^ *+' conftest.er1 >conftest.err
21806 cat conftest.err >&5
21807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21808 (exit $ac_status); } && {
21809 test -z "$ac_c_werror_flag" ||
21810 test ! -s conftest.err
21811 } && test -s conftest.$ac_objext; then
21812 ac_header_compiler=yes
21814 echo "$as_me: failed program was
:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21817 ac_header_compiler=no
21820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21821 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21822 echo "${ECHO_T}$ac_header_compiler" >&6; }
21824 # Is the header present?
21825 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21826 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 #include <$ac_header>
21835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21836 case "(($ac_try" in
21837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21838 *) ac_try_echo=$ac_try;;
21840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21843 grep -v '^ *+' conftest.er1 >conftest.err
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21847 (exit $ac_status); } >/dev/null && {
21848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21849 test ! -s conftest.err
21851 ac_header_preproc=yes
21853 echo "$as_me: failed program was
:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21856 ac_header_preproc=no
21859 rm -f conftest.err conftest.$ac_ext
21860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21861 echo "${ECHO_T}$ac_header_preproc" >&6; }
21863 # So? What about this header?
21864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21866 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21867 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21870 ac_header_preproc=yes
21873 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21874 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21875 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21876 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21877 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21878 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21879 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21880 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21883 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21884 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21888 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21889 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21891 echo $ECHO_N "(cached
) $ECHO_C" >&6
21893 eval "$as_ac_Header=\
$ac_header_preproc"
21895 ac_res=`eval echo '${'$as_ac_Header'}'`
21896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21897 echo "${ECHO_T}$ac_res" >&6; }
21900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21901 cat >>confdefs.h <<_ACEOF
21902 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21919 for ac_header in com_err.h
21921 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21922 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21923 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21924 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21925 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21926 echo $ECHO_N "(cached
) $ECHO_C" >&6
21928 ac_res=`eval echo '${'$as_ac_Header'}'`
21929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21930 echo "${ECHO_T}$ac_res" >&6; }
21932 # Is the header compilable?
21933 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21934 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21935 cat >conftest.$ac_ext <<_ACEOF
21938 cat confdefs.h >>conftest.$ac_ext
21939 cat >>conftest.$ac_ext <<_ACEOF
21940 /* end confdefs.h. */
21941 $ac_includes_default
21942 #include <$ac_header>
21944 rm -f conftest.$ac_objext
21945 if { (ac_try="$ac_compile"
21946 case "(($ac_try" in
21947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948 *) ac_try_echo=$ac_try;;
21950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21951 (eval "$ac_compile") 2>conftest.er1
21953 grep -v '^ *+' conftest.er1 >conftest.err
21955 cat conftest.err >&5
21956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21957 (exit $ac_status); } && {
21958 test -z "$ac_c_werror_flag" ||
21959 test ! -s conftest.err
21960 } && test -s conftest.$ac_objext; then
21961 ac_header_compiler=yes
21963 echo "$as_me: failed program was
:" >&5
21964 sed 's/^/| /' conftest.$ac_ext >&5
21966 ac_header_compiler=no
21969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21971 echo "${ECHO_T}$ac_header_compiler" >&6; }
21973 # Is the header present?
21974 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21975 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21982 #include <$ac_header>
21984 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21990 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21992 grep -v '^ *+' conftest.er1 >conftest.err
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21996 (exit $ac_status); } >/dev/null && {
21997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21998 test ! -s conftest.err
22000 ac_header_preproc=yes
22002 echo "$as_me: failed program was
:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22005 ac_header_preproc=no
22008 rm -f conftest.err conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22010 echo "${ECHO_T}$ac_header_preproc" >&6; }
22012 # So? What about this header?
22013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22016 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22017 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22019 ac_header_preproc=yes
22022 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22023 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22024 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22025 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22026 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22027 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22028 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22029 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22030 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22032 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22033 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22037 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22038 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22039 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22040 echo $ECHO_N "(cached
) $ECHO_C" >&6
22042 eval "$as_ac_Header=\
$ac_header_preproc"
22044 ac_res=`eval echo '${'$as_ac_Header'}'`
22045 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22046 echo "${ECHO_T}$ac_res" >&6; }
22049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22050 cat >>confdefs.h <<_ACEOF
22051 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22060 # Solaris requires -lintl if you want strerror (which calls dgettext)
22061 # to return localized messages.
22063 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22064 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22065 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22066 echo $ECHO_N "(cached
) $ECHO_C" >&6
22068 ac_check_lib_save_LIBS=$LIBS
22069 LIBS="-lintl $LIBS"
22070 cat >conftest.$ac_ext <<_ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22077 /* Override any GCC internal prototype to avoid an error.
22078 Use char because int might match the return type of a GCC
22079 builtin and then its argument prototype would still apply. */
22087 return dgettext ();
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (ac_try="$ac_link"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_link") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); } && {
22106 test -z "$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 } && test -s conftest$ac_exeext &&
22109 $as_test_x conftest$ac_exeext; then
22110 ac_cv_lib_intl_dgettext=yes
22112 echo "$as_me: failed program was
:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_cv_lib_intl_dgettext=no
22118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22119 conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22122 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22123 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22124 if test $ac_cv_lib_intl_dgettext = yes; then
22125 cat >>confdefs.h <<_ACEOF
22126 #define HAVE_LIBINTL 1
22129 LIBS="-lintl $LIBS"
22134 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22135 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22136 if test "${emacs_cv_localtime_cache+set}" = set; then
22137 echo $ECHO_N "(cached
) $ECHO_C" >&6
22139 if test x$ac_cv_func_tzset = xyes; then
22140 if test "$cross_compiling" = yes; then
22141 # If we have tzset, assume the worst when cross-compiling.
22142 emacs_cv_localtime_cache=yes
22144 cat >conftest.$ac_ext <<_ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h. */
22151 extern char **environ;
22155 for (to = from = environ; (*to = *from); from++)
22156 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22159 char TZ_GMT0[] = "TZ
=GMT0
";
22160 char TZ_PST8[] = "TZ
=PST8
";
22163 time_t now = time ((time_t *) 0);
22164 int hour_GMT0, hour_unset;
22165 if (putenv (TZ_GMT0) != 0)
22167 hour_GMT0 = localtime (&now)->tm_hour;
22169 hour_unset = localtime (&now)->tm_hour;
22170 if (putenv (TZ_PST8) != 0)
22172 if (localtime (&now)->tm_hour == hour_GMT0)
22175 if (localtime (&now)->tm_hour != hour_unset)
22180 rm -f conftest$ac_exeext
22181 if { (ac_try="$ac_link"
22182 case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22187 (eval "$ac_link") 2>&5
22189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22191 { (case "(($ac_try" in
22192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22193 *) ac_try_echo=$ac_try;;
22195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22196 (eval "$ac_try") 2>&5
22198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22199 (exit $ac_status); }; }; then
22200 emacs_cv_localtime_cache=no
22202 echo "$as_me: program exited with status
$ac_status" >&5
22203 echo "$as_me: failed program was
:" >&5
22204 sed 's/^/| /' conftest.$ac_ext >&5
22206 ( exit $ac_status )
22207 emacs_cv_localtime_cache=yes
22209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22214 # If we lack tzset, report that localtime does not cache TZ,
22215 # since we can't invalidate the cache if we don't have tzset.
22216 emacs_cv_localtime_cache=no
22219 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22220 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22221 if test $emacs_cv_localtime_cache = yes; then
22223 cat >>confdefs.h <<\_ACEOF
22224 #define LOCALTIME_CACHE 1
22229 if test "x
$HAVE_TIMEVAL" = xyes; then
22231 for ac_func in gettimeofday
22233 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22234 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22235 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22236 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22237 echo $ECHO_N "(cached
) $ECHO_C" >&6
22239 cat >conftest.$ac_ext <<_ACEOF
22242 cat confdefs.h >>conftest.$ac_ext
22243 cat >>conftest.$ac_ext <<_ACEOF
22244 /* end confdefs.h. */
22245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22247 #define $ac_func innocuous_$ac_func
22249 /* System header to define __stub macros and hopefully few prototypes,
22250 which can conflict with char $ac_func (); below.
22251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22252 <limits.h> exists even on freestanding compilers. */
22255 # include <limits.h>
22257 # include <assert.h>
22262 /* Override any GCC internal prototype to avoid an error.
22263 Use char because int might match the return type of a GCC
22264 builtin and then its argument prototype would still apply. */
22269 /* The GNU C library defines this for functions which it implements
22270 to always fail with ENOSYS. Some functions are actually named
22271 something starting with __ and the normal name is an alias. */
22272 #if defined __stub_$ac_func || defined __stub___$ac_func
22279 return $ac_func ();
22284 rm -f conftest.$ac_objext conftest$ac_exeext
22285 if { (ac_try="$ac_link"
22286 case "(($ac_try" in
22287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22288 *) ac_try_echo=$ac_try;;
22290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22291 (eval "$ac_link") 2>conftest.er1
22293 grep -v '^ *+' conftest.er1 >conftest.err
22295 cat conftest.err >&5
22296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22297 (exit $ac_status); } && {
22298 test -z "$ac_c_werror_flag" ||
22299 test ! -s conftest.err
22300 } && test -s conftest$ac_exeext &&
22301 $as_test_x conftest$ac_exeext; then
22302 eval "$as_ac_var=yes"
22304 echo "$as_me: failed program was
:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22307 eval "$as_ac_var=no
"
22310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22311 conftest$ac_exeext conftest.$ac_ext
22313 ac_res=`eval echo '${'$as_ac_var'}'`
22314 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22315 echo "${ECHO_T}$ac_res" >&6; }
22316 if test `eval echo '${'$as_ac_var'}'` = yes; then
22317 cat >>confdefs.h <<_ACEOF
22318 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22324 if test $ac_cv_func_gettimeofday = yes; then
22325 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22326 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22327 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22328 echo $ECHO_N "(cached
) $ECHO_C" >&6
22330 cat >conftest.$ac_ext <<_ACEOF
22333 cat confdefs.h >>conftest.$ac_ext
22334 cat >>conftest.$ac_ext <<_ACEOF
22335 /* end confdefs.h. */
22337 #ifdef TIME_WITH_SYS_TIME
22338 #include <sys/time.h>
22341 #ifdef HAVE_SYS_TIME_H
22342 #include <sys/time.h>
22350 struct timeval time;
22351 gettimeofday (&time, 0);
22356 rm -f conftest.$ac_objext
22357 if { (ac_try="$ac_compile"
22358 case "(($ac_try" in
22359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360 *) ac_try_echo=$ac_try;;
22362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22363 (eval "$ac_compile") 2>conftest.er1
22365 grep -v '^ *+' conftest.er1 >conftest.err
22367 cat conftest.err >&5
22368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22369 (exit $ac_status); } && {
22370 test -z "$ac_c_werror_flag" ||
22371 test ! -s conftest.err
22372 } && test -s conftest.$ac_objext; then
22373 emacs_cv_gettimeofday_two_arguments=yes
22375 echo "$as_me: failed program was
:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22378 emacs_cv_gettimeofday_two_arguments=no
22381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22383 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22384 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22385 if test $emacs_cv_gettimeofday_two_arguments = no; then
22387 cat >>confdefs.h <<\_ACEOF
22388 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22396 { echo "$as_me:$LINENO: checking
for socket
" >&5
22397 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22398 if test "${ac_cv_func_socket+set}" = set; then
22399 echo $ECHO_N "(cached
) $ECHO_C" >&6
22401 cat >conftest.$ac_ext <<_ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h. */
22407 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22409 #define socket innocuous_socket
22411 /* System header to define __stub macros and hopefully few prototypes,
22412 which can conflict with char socket (); below.
22413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22414 <limits.h> exists even on freestanding compilers. */
22417 # include <limits.h>
22419 # include <assert.h>
22424 /* Override any GCC internal prototype to avoid an error.
22425 Use char because int might match the return type of a GCC
22426 builtin and then its argument prototype would still apply. */
22431 /* The GNU C library defines this for functions which it implements
22432 to always fail with ENOSYS. Some functions are actually named
22433 something starting with __ and the normal name is an alias. */
22434 #if defined __stub_socket || defined __stub___socket
22446 rm -f conftest.$ac_objext conftest$ac_exeext
22447 if { (ac_try="$ac_link"
22448 case "(($ac_try" in
22449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22450 *) ac_try_echo=$ac_try;;
22452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22453 (eval "$ac_link") 2>conftest.er1
22455 grep -v '^ *+' conftest.er1 >conftest.err
22457 cat conftest.err >&5
22458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22459 (exit $ac_status); } && {
22460 test -z "$ac_c_werror_flag" ||
22461 test ! -s conftest.err
22462 } && test -s conftest$ac_exeext &&
22463 $as_test_x conftest$ac_exeext; then
22464 ac_cv_func_socket=yes
22466 echo "$as_me: failed program was
:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_cv_func_socket=no
22472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22473 conftest$ac_exeext conftest.$ac_ext
22475 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22476 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22477 if test $ac_cv_func_socket = yes; then
22483 if test $ok_so_far = yes; then
22484 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22485 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22486 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22487 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22488 echo $ECHO_N "(cached
) $ECHO_C" >&6
22490 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22491 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22493 # Is the header compilable?
22494 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22495 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22496 cat >conftest.$ac_ext <<_ACEOF
22499 cat confdefs.h >>conftest.$ac_ext
22500 cat >>conftest.$ac_ext <<_ACEOF
22501 /* end confdefs.h. */
22502 $ac_includes_default
22503 #include <netinet/in.h>
22505 rm -f conftest.$ac_objext
22506 if { (ac_try="$ac_compile"
22507 case "(($ac_try" in
22508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22509 *) ac_try_echo=$ac_try;;
22511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22512 (eval "$ac_compile") 2>conftest.er1
22514 grep -v '^ *+' conftest.er1 >conftest.err
22516 cat conftest.err >&5
22517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22518 (exit $ac_status); } && {
22519 test -z "$ac_c_werror_flag" ||
22520 test ! -s conftest.err
22521 } && test -s conftest.$ac_objext; then
22522 ac_header_compiler=yes
22524 echo "$as_me: failed program was
:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22527 ac_header_compiler=no
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22532 echo "${ECHO_T}$ac_header_compiler" >&6; }
22534 # Is the header present?
22535 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22536 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22537 cat >conftest.$ac_ext <<_ACEOF
22540 cat confdefs.h >>conftest.$ac_ext
22541 cat >>conftest.$ac_ext <<_ACEOF
22542 /* end confdefs.h. */
22543 #include <netinet/in.h>
22545 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22557 (exit $ac_status); } >/dev/null && {
22558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22561 ac_header_preproc=yes
22563 echo "$as_me: failed program was
:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_header_preproc=no
22569 rm -f conftest.err conftest.$ac_ext
22570 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22571 echo "${ECHO_T}$ac_header_preproc" >&6; }
22573 # So? What about this header?
22574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22576 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22577 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22578 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22579 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22580 ac_header_preproc=yes
22583 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22584 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22585 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22586 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22587 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22588 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22589 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22590 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22591 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22592 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22593 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22594 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22598 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22599 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22600 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22601 echo $ECHO_N "(cached
) $ECHO_C" >&6
22603 ac_cv_header_netinet_in_h=$ac_header_preproc
22605 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22606 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22609 if test $ac_cv_header_netinet_in_h = yes; then
22617 if test $ok_so_far = yes; then
22618 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22619 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22620 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22621 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22622 echo $ECHO_N "(cached
) $ECHO_C" >&6
22624 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22625 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22627 # Is the header compilable?
22628 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22629 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22630 cat >conftest.$ac_ext <<_ACEOF
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22636 $ac_includes_default
22637 #include <arpa/inet.h>
22639 rm -f conftest.$ac_objext
22640 if { (ac_try="$ac_compile"
22641 case "(($ac_try" in
22642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22643 *) ac_try_echo=$ac_try;;
22645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22646 (eval "$ac_compile") 2>conftest.er1
22648 grep -v '^ *+' conftest.er1 >conftest.err
22650 cat conftest.err >&5
22651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22652 (exit $ac_status); } && {
22653 test -z "$ac_c_werror_flag" ||
22654 test ! -s conftest.err
22655 } && test -s conftest.$ac_objext; then
22656 ac_header_compiler=yes
22658 echo "$as_me: failed program was
:" >&5
22659 sed 's/^/| /' conftest.$ac_ext >&5
22661 ac_header_compiler=no
22664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22665 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22666 echo "${ECHO_T}$ac_header_compiler" >&6; }
22668 # Is the header present?
22669 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22670 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22671 cat >conftest.$ac_ext <<_ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h. */
22677 #include <arpa/inet.h>
22679 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22680 case "(($ac_try" in
22681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682 *) ac_try_echo=$ac_try;;
22684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22685 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22687 grep -v '^ *+' conftest.er1 >conftest.err
22689 cat conftest.err >&5
22690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22691 (exit $ac_status); } >/dev/null && {
22692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22693 test ! -s conftest.err
22695 ac_header_preproc=yes
22697 echo "$as_me: failed program was
:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22700 ac_header_preproc=no
22703 rm -f conftest.err conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22705 echo "${ECHO_T}$ac_header_preproc" >&6; }
22707 # So? What about this header?
22708 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22710 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22711 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22712 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22713 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22714 ac_header_preproc=yes
22717 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22718 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22719 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22720 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22721 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22722 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22723 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22724 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22725 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22726 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22727 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22728 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22732 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22733 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22734 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22735 echo $ECHO_N "(cached
) $ECHO_C" >&6
22737 ac_cv_header_arpa_inet_h=$ac_header_preproc
22739 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22740 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22743 if test $ac_cv_header_arpa_inet_h = yes; then
22751 if test $ok_so_far = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_INET_SOCKETS 1
22760 for ac_header in sys/ioctl.h
22762 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22763 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22764 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22765 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22766 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22767 echo $ECHO_N "(cached
) $ECHO_C" >&6
22769 ac_res=`eval echo '${'$as_ac_Header'}'`
22770 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22771 echo "${ECHO_T}$ac_res" >&6; }
22773 # Is the header compilable?
22774 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22775 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22776 cat >conftest.$ac_ext <<_ACEOF
22779 cat confdefs.h >>conftest.$ac_ext
22780 cat >>conftest.$ac_ext <<_ACEOF
22781 /* end confdefs.h. */
22782 $ac_includes_default
22783 #include <$ac_header>
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 ac_header_compiler=yes
22804 echo "$as_me: failed program was
:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 ac_header_compiler=no
22810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22812 echo "${ECHO_T}$ac_header_compiler" >&6; }
22814 # Is the header present?
22815 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22816 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22817 cat >conftest.$ac_ext <<_ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h. */
22823 #include <$ac_header>
22825 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22837 (exit $ac_status); } >/dev/null && {
22838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22841 ac_header_preproc=yes
22843 echo "$as_me: failed program was
:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 ac_header_preproc=no
22849 rm -f conftest.err conftest.$ac_ext
22850 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22851 echo "${ECHO_T}$ac_header_preproc" >&6; }
22853 # So? What about this header?
22854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22856 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22857 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22858 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22860 ac_header_preproc=yes
22863 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22864 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22865 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22866 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22867 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22868 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22869 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22870 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22871 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22873 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22874 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22878 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22879 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22881 echo $ECHO_N "(cached
) $ECHO_C" >&6
22883 eval "$as_ac_Header=\
$ac_header_preproc"
22885 ac_res=`eval echo '${'$as_ac_Header'}'`
22886 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22887 echo "${ECHO_T}$ac_res" >&6; }
22890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22891 cat >>confdefs.h <<_ACEOF
22892 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22900 if test -f /usr/lpp/X11/bin/smt.exp; then
22902 cat >>confdefs.h <<\_ACEOF
22903 #define HAVE_AIX_SMT_EXP 1
22908 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22909 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22910 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22911 { echo "$as_me:$LINENO: result
: yes" >&5
22912 echo "${ECHO_T}yes" >&6; }
22914 cat >>confdefs.h <<\_ACEOF
22915 #define HAVE_DEV_PTMX 1
22919 { echo "$as_me:$LINENO: result
: no
" >&5
22920 echo "${ECHO_T}no
" >&6; }
22923 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22924 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22925 if test "${ac_cv_type_pid_t+set}" = set; then
22926 echo $ECHO_N "(cached
) $ECHO_C" >&6
22928 cat >conftest.$ac_ext <<_ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h. */
22934 $ac_includes_default
22935 typedef pid_t ac__type_new_;
22939 if ((ac__type_new_ *) 0)
22941 if (sizeof (ac__type_new_))
22947 rm -f conftest.$ac_objext
22948 if { (ac_try="$ac_compile"
22949 case "(($ac_try" in
22950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951 *) ac_try_echo=$ac_try;;
22953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22954 (eval "$ac_compile") 2>conftest.er1
22956 grep -v '^ *+' conftest.er1 >conftest.err
22958 cat conftest.err >&5
22959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22960 (exit $ac_status); } && {
22961 test -z "$ac_c_werror_flag" ||
22962 test ! -s conftest.err
22963 } && test -s conftest.$ac_objext; then
22964 ac_cv_type_pid_t=yes
22966 echo "$as_me: failed program was
:" >&5
22967 sed 's/^/| /' conftest.$ac_ext >&5
22969 ac_cv_type_pid_t=no
22972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22975 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22976 if test $ac_cv_type_pid_t = yes; then
22980 cat >>confdefs.h <<_ACEOF
22987 for ac_header in vfork.h
22989 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22994 echo $ECHO_N "(cached
) $ECHO_C" >&6
22996 ac_res=`eval echo '${'$as_ac_Header'}'`
22997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22998 echo "${ECHO_T}$ac_res" >&6; }
23000 # Is the header compilable?
23001 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23002 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23003 cat >conftest.$ac_ext <<_ACEOF
23006 cat confdefs.h >>conftest.$ac_ext
23007 cat >>conftest.$ac_ext <<_ACEOF
23008 /* end confdefs.h. */
23009 $ac_includes_default
23010 #include <$ac_header>
23012 rm -f conftest.$ac_objext
23013 if { (ac_try="$ac_compile"
23014 case "(($ac_try" in
23015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23016 *) ac_try_echo=$ac_try;;
23018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23019 (eval "$ac_compile") 2>conftest.er1
23021 grep -v '^ *+' conftest.er1 >conftest.err
23023 cat conftest.err >&5
23024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23025 (exit $ac_status); } && {
23026 test -z "$ac_c_werror_flag" ||
23027 test ! -s conftest.err
23028 } && test -s conftest.$ac_objext; then
23029 ac_header_compiler=yes
23031 echo "$as_me: failed program was
:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23034 ac_header_compiler=no
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23039 echo "${ECHO_T}$ac_header_compiler" >&6; }
23041 # Is the header present?
23042 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23043 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23044 cat >conftest.$ac_ext <<_ACEOF
23047 cat confdefs.h >>conftest.$ac_ext
23048 cat >>conftest.$ac_ext <<_ACEOF
23049 /* end confdefs.h. */
23050 #include <$ac_header>
23052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23053 case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23060 grep -v '^ *+' conftest.er1 >conftest.err
23062 cat conftest.err >&5
23063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23064 (exit $ac_status); } >/dev/null && {
23065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23066 test ! -s conftest.err
23068 ac_header_preproc=yes
23070 echo "$as_me: failed program was
:" >&5
23071 sed 's/^/| /' conftest.$ac_ext >&5
23073 ac_header_preproc=no
23076 rm -f conftest.err conftest.$ac_ext
23077 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23078 echo "${ECHO_T}$ac_header_preproc" >&6; }
23080 # So? What about this header?
23081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23083 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23084 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23087 ac_header_preproc=yes
23090 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23091 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23092 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23093 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23094 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23095 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23096 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23097 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23098 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23100 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23101 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23105 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23106 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23108 echo $ECHO_N "(cached
) $ECHO_C" >&6
23110 eval "$as_ac_Header=\
$ac_header_preproc"
23112 ac_res=`eval echo '${'$as_ac_Header'}'`
23113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23114 echo "${ECHO_T}$ac_res" >&6; }
23117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23128 for ac_func in fork vfork
23130 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23131 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23132 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23133 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23134 echo $ECHO_N "(cached
) $ECHO_C" >&6
23136 cat >conftest.$ac_ext <<_ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23144 #define $ac_func innocuous_$ac_func
23146 /* System header to define __stub macros and hopefully few prototypes,
23147 which can conflict with char $ac_func (); below.
23148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23149 <limits.h> exists even on freestanding compilers. */
23152 # include <limits.h>
23154 # include <assert.h>
23159 /* Override any GCC internal prototype to avoid an error.
23160 Use char because int might match the return type of a GCC
23161 builtin and then its argument prototype would still apply. */
23166 /* The GNU C library defines this for functions which it implements
23167 to always fail with ENOSYS. Some functions are actually named
23168 something starting with __ and the normal name is an alias. */
23169 #if defined __stub_$ac_func || defined __stub___$ac_func
23176 return $ac_func ();
23181 rm -f conftest.$ac_objext conftest$ac_exeext
23182 if { (ac_try="$ac_link"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23188 (eval "$ac_link") 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest$ac_exeext &&
23198 $as_test_x conftest$ac_exeext; then
23199 eval "$as_ac_var=yes"
23201 echo "$as_me: failed program was
:" >&5
23202 sed 's/^/| /' conftest.$ac_ext >&5
23204 eval "$as_ac_var=no
"
23207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23208 conftest$ac_exeext conftest.$ac_ext
23210 ac_res=`eval echo '${'$as_ac_var'}'`
23211 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23212 echo "${ECHO_T}$ac_res" >&6; }
23213 if test `eval echo '${'$as_ac_var'}'` = yes; then
23214 cat >>confdefs.h <<_ACEOF
23215 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23221 if test "x
$ac_cv_func_fork" = xyes; then
23222 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23223 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23224 if test "${ac_cv_func_fork_works+set}" = set; then
23225 echo $ECHO_N "(cached
) $ECHO_C" >&6
23227 if test "$cross_compiling" = yes; then
23228 ac_cv_func_fork_works=cross
23230 cat >conftest.$ac_ext <<_ACEOF
23233 cat confdefs.h >>conftest.$ac_ext
23234 cat >>conftest.$ac_ext <<_ACEOF
23235 /* end confdefs.h. */
23236 $ac_includes_default
23241 /* By Ruediger Kuhlmann. */
23242 return fork () < 0;
23248 rm -f conftest$ac_exeext
23249 if { (ac_try="$ac_link"
23250 case "(($ac_try" in
23251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252 *) ac_try_echo=$ac_try;;
23254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23255 (eval "$ac_link") 2>&5
23257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23259 { (case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_try") 2>&5
23266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 ac_cv_func_fork_works=yes
23270 echo "$as_me: program exited with status
$ac_status" >&5
23271 echo "$as_me: failed program was
:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23274 ( exit $ac_status )
23275 ac_cv_func_fork_works=no
23277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23282 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23283 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23286 ac_cv_func_fork_works=$ac_cv_func_fork
23288 if test "x
$ac_cv_func_fork_works" = xcross; then
23290 *-*-amigaos* | *-*-msdosdjgpp*)
23291 # Override, as these systems have only a dummy fork() stub
23292 ac_cv_func_fork_works=no
23295 ac_cv_func_fork_works=yes
23298 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23299 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23301 ac_cv_func_vfork_works=$ac_cv_func_vfork
23302 if test "x
$ac_cv_func_vfork" = xyes; then
23303 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23304 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23305 if test "${ac_cv_func_vfork_works+set}" = set; then
23306 echo $ECHO_N "(cached
) $ECHO_C" >&6
23308 if test "$cross_compiling" = yes; then
23309 ac_cv_func_vfork_works=cross
23311 cat >conftest.$ac_ext <<_ACEOF
23314 cat confdefs.h >>conftest.$ac_ext
23315 cat >>conftest.$ac_ext <<_ACEOF
23316 /* end confdefs.h. */
23317 /* Thanks to Paul Eggert for this test. */
23318 $ac_includes_default
23319 #include <sys/wait.h>
23320 #ifdef HAVE_VFORK_H
23321 # include <vfork.h>
23323 /* On some sparc systems, changes by the child to local and incoming
23324 argument registers are propagated back to the parent. The compiler
23325 is told about this with #include <vfork.h>, but some compilers
23326 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23327 static variable whose address is put into a register that is
23328 clobbered by the vfork. */
23331 sparc_address_test (int arg)
23333 sparc_address_test (arg) int arg;
23336 static pid_t child;
23354 pid_t parent = getpid ();
23357 sparc_address_test (0);
23362 /* Here is another test for sparc vfork register problems. This
23363 test uses lots of local variables, at least as many local
23364 variables as main has allocated so far including compiler
23365 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23366 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23367 reuse the register of parent for one of the local variables,
23368 since it will think that parent can't possibly be used any more
23369 in this routine. Assigning to the local variable will thus
23370 munge parent in the parent process. */
23372 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23373 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23374 /* Convince the compiler that p..p7 are live; otherwise, it might
23375 use the same hardware register for all 8 local variables. */
23376 if (p != p1 || p != p2 || p != p3 || p != p4
23377 || p != p5 || p != p6 || p != p7)
23380 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23381 from child file descriptors. If the child closes a descriptor
23382 before it execs or exits, this munges the parent's descriptor
23383 as well. Test for this by closing stdout in the child. */
23384 _exit(close(fileno(stdout)) != 0);
23389 while (wait(&status) != child)
23392 /* Was there some problem with vforking? */
23395 /* Did the child fail? (This shouldn't happen.) */
23398 /* Did the vfork/compiler bug occur? */
23399 || parent != getpid()
23401 /* Did the file descriptor bug occur? */
23402 || fstat(fileno(stdout), &st) != 0
23407 rm -f conftest$ac_exeext
23408 if { (ac_try="$ac_link"
23409 case "(($ac_try" in
23410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23411 *) ac_try_echo=$ac_try;;
23413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23414 (eval "$ac_link") 2>&5
23416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23418 { (case "(($ac_try" in
23419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420 *) ac_try_echo=$ac_try;;
23422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23423 (eval "$ac_try") 2>&5
23425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23426 (exit $ac_status); }; }; then
23427 ac_cv_func_vfork_works=yes
23429 echo "$as_me: program exited with status
$ac_status" >&5
23430 echo "$as_me: failed program was
:" >&5
23431 sed 's/^/| /' conftest.$ac_ext >&5
23433 ( exit $ac_status )
23434 ac_cv_func_vfork_works=no
23436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23442 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23445 if test "x
$ac_cv_func_fork_works" = xcross; then
23446 ac_cv_func_vfork_works=$ac_cv_func_vfork
23447 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23448 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23451 if test "x
$ac_cv_func_vfork_works" = xyes; then
23453 cat >>confdefs.h <<\_ACEOF
23454 #define HAVE_WORKING_VFORK 1
23459 cat >>confdefs.h <<\_ACEOF
23464 if test "x
$ac_cv_func_fork_works" = xyes; then
23466 cat >>confdefs.h <<\_ACEOF
23467 #define HAVE_WORKING_FORK 1
23473 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23474 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23475 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23476 echo $ECHO_N "(cached
) $ECHO_C" >&6
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23484 #include <langinfo.h>
23488 char* cs = nl_langinfo(CODESET);
23493 rm -f conftest.$ac_objext conftest$ac_exeext
23494 if { (ac_try="$ac_link"
23495 case "(($ac_try" in
23496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497 *) ac_try_echo=$ac_try;;
23499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23500 (eval "$ac_link") 2>conftest.er1
23502 grep -v '^ *+' conftest.er1 >conftest.err
23504 cat conftest.err >&5
23505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23506 (exit $ac_status); } && {
23507 test -z "$ac_c_werror_flag" ||
23508 test ! -s conftest.err
23509 } && test -s conftest$ac_exeext &&
23510 $as_test_x conftest$ac_exeext; then
23511 emacs_cv_langinfo_codeset=yes
23513 echo "$as_me: failed program was
:" >&5
23514 sed 's/^/| /' conftest.$ac_ext >&5
23516 emacs_cv_langinfo_codeset=no
23519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23520 conftest$ac_exeext conftest.$ac_ext
23523 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23524 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23525 if test $emacs_cv_langinfo_codeset = yes; then
23527 cat >>confdefs.h <<\_ACEOF
23528 #define HAVE_LANGINFO_CODESET 1
23533 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23534 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23535 if test "${ac_cv_type_size_t+set}" = set; then
23536 echo $ECHO_N "(cached
) $ECHO_C" >&6
23538 cat >conftest.$ac_ext <<_ACEOF
23541 cat confdefs.h >>conftest.$ac_ext
23542 cat >>conftest.$ac_ext <<_ACEOF
23543 /* end confdefs.h. */
23544 $ac_includes_default
23545 typedef size_t ac__type_new_;
23549 if ((ac__type_new_ *) 0)
23551 if (sizeof (ac__type_new_))
23557 rm -f conftest.$ac_objext
23558 if { (ac_try="$ac_compile"
23559 case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_compile") 2>conftest.er1
23566 grep -v '^ *+' conftest.er1 >conftest.err
23568 cat conftest.err >&5
23569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23570 (exit $ac_status); } && {
23571 test -z "$ac_c_werror_flag" ||
23572 test ! -s conftest.err
23573 } && test -s conftest.$ac_objext; then
23574 ac_cv_type_size_t=yes
23576 echo "$as_me: failed program was
:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23579 ac_cv_type_size_t=no
23582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23584 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23585 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23586 if test $ac_cv_type_size_t = yes; then
23588 cat >>confdefs.h <<_ACEOF
23589 #define HAVE_SIZE_T 1
23596 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23597 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23598 if test "${ac_cv_type_mbstate_t+set}" = set; then
23599 echo $ECHO_N "(cached
) $ECHO_C" >&6
23601 cat >conftest.$ac_ext <<_ACEOF
23604 cat confdefs.h >>conftest.$ac_ext
23605 cat >>conftest.$ac_ext <<_ACEOF
23606 /* end confdefs.h. */
23607 $ac_includes_default
23608 # include <wchar.h>
23612 mbstate_t x; return sizeof x;
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23626 grep -v '^ *+' conftest.er1 >conftest.err
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 ac_cv_type_mbstate_t=yes
23636 echo "$as_me: failed program was
:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 ac_cv_type_mbstate_t=no
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23645 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23646 if test $ac_cv_type_mbstate_t = yes; then
23648 cat >>confdefs.h <<\_ACEOF
23649 #define HAVE_MBSTATE_T 1
23654 cat >>confdefs.h <<\_ACEOF
23655 #define mbstate_t int
23660 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23661 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23662 if test "${emacs_cv_c_restrict+set}" = set; then
23663 echo $ECHO_N "(cached
) $ECHO_C" >&6
23665 cat >conftest.$ac_ext <<_ACEOF
23668 cat confdefs.h >>conftest.$ac_ext
23669 cat >>conftest.$ac_ext <<_ACEOF
23670 /* end confdefs.h. */
23671 void fred (int *restrict x);
23680 rm -f conftest.$ac_objext
23681 if { (ac_try="$ac_compile"
23682 case "(($ac_try" in
23683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684 *) ac_try_echo=$ac_try;;
23686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23687 (eval "$ac_compile") 2>conftest.er1
23689 grep -v '^ *+' conftest.er1 >conftest.err
23691 cat conftest.err >&5
23692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23693 (exit $ac_status); } && {
23694 test -z "$ac_c_werror_flag" ||
23695 test ! -s conftest.err
23696 } && test -s conftest.$ac_objext; then
23697 emacs_cv_c_restrict=yes
23699 echo "$as_me: failed program was
:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 cat >conftest.$ac_ext <<_ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 void fred (int *__restrict x);
23717 rm -f conftest.$ac_objext
23718 if { (ac_try="$ac_compile"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_compile") 2>conftest.er1
23726 grep -v '^ *+' conftest.er1 >conftest.err
23728 cat conftest.err >&5
23729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23730 (exit $ac_status); } && {
23731 test -z "$ac_c_werror_flag" ||
23732 test ! -s conftest.err
23733 } && test -s conftest.$ac_objext; then
23734 emacs_cv_c_restrict=__restrict
23736 echo "$as_me: failed program was
:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23739 emacs_cv_c_restrict=no
23742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23748 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23749 case "$emacs_cv_c_restrict" in
23750 yes) emacs_restrict=restrict;;
23751 no) emacs_restrict="";;
23752 *) emacs_restrict="$emacs_cv_c_restrict";;
23754 if test "$emacs_restrict" != __restrict; then
23756 cat >>confdefs.h <<_ACEOF
23757 #define __restrict $emacs_restrict
23762 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23763 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23764 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23765 echo $ECHO_N "(cached
) $ECHO_C" >&6
23767 cat >conftest.$ac_ext <<_ACEOF
23770 cat confdefs.h >>conftest.$ac_ext
23771 cat >>conftest.$ac_ext <<_ACEOF
23772 /* end confdefs.h. */
23773 void fred (int x[__restrict]);
23782 rm -f conftest.$ac_objext
23783 if { (ac_try="$ac_compile"
23784 case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23789 (eval "$ac_compile") 2>conftest.er1
23791 grep -v '^ *+' conftest.er1 >conftest.err
23793 cat conftest.err >&5
23794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23795 (exit $ac_status); } && {
23796 test -z "$ac_c_werror_flag" ||
23797 test ! -s conftest.err
23798 } && test -s conftest.$ac_objext; then
23799 emacs_cv_c_restrict_arr=yes
23801 echo "$as_me: failed program was
:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23804 emacs_cv_c_restrict_arr=no
23807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23809 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23810 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23811 if test "$emacs_cv_c_restrict_arr" = yes; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define __restrict_arr __restrict
23821 # Set up the CFLAGS for real compilation, so we can substitute it.
23822 CFLAGS="$REAL_CFLAGS"
23823 CPPFLAGS="$REAL_CPPFLAGS"
23825 #### Find out which version of Emacs this is.
23826 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23827 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23828 if test x"${version}" = x; then
23829 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23830 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23831 { (exit 1); exit 1; }; }
23834 ### Specify what sort of things we'll be editing into Makefile and config.h.
23835 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23875 cat >>confdefs.h <<_ACEOF
23876 #define EMACS_CONFIGURATION "${canonical}"
23880 cat >>confdefs.h <<_ACEOF
23881 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23885 cat >>confdefs.h <<_ACEOF
23886 #define config_machfile "${machfile}"
23890 cat >>confdefs.h <<_ACEOF
23891 #define config_opsysfile "${opsysfile}"
23895 cat >>confdefs.h <<_ACEOF
23896 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23900 cat >>confdefs.h <<_ACEOF
23901 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23905 cat >>confdefs.h <<_ACEOF
23906 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23910 cat >>confdefs.h <<_ACEOF
23911 #define UNEXEC_SRC ${UNEXEC_SRC}
23915 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23917 cat >>confdefs.h <<\_ACEOF
23918 #define HAVE_X_WINDOWS 1
23922 if test "${USE_X_TOOLKIT}" != "none
" ; then
23924 cat >>confdefs.h <<\_ACEOF
23925 #define USE_X_TOOLKIT 1
23928 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
23930 cat >>confdefs.h <<\_ACEOF
23931 #define USE_LUCID 1
23934 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
23936 cat >>confdefs.h <<\_ACEOF
23937 #define USE_MOTIF 1
23942 if test "${HAVE_X11}" = "yes" ; then
23944 cat >>confdefs.h <<\_ACEOF
23949 if test "${HAVE_MENUS}" = "yes" ; then
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_MENUS 1
23956 if test "${GNU_MALLOC}" = "yes" ; then
23958 cat >>confdefs.h <<\_ACEOF
23959 #define GNU_MALLOC 1
23963 if test "${REL_ALLOC}" = "yes" ; then
23965 cat >>confdefs.h <<\_ACEOF
23966 #define REL_ALLOC 1
23976 #### Report on what we decided to do.
23977 #### Report GTK as a toolkit, even if it doesn't use Xt.
23978 #### It makes printing result more understandable as using GTK sets
23979 #### toolkit_scroll_bars to yes by default.
23980 if test "${HAVE_GTK}" = "yes"; then
23985 Configured
for \
`${canonical}'.
23987 Where should the build process find the source code? ${srcdir}
23988 What operating system and machine description files should Emacs use?
23989 \`${opsysfile}' and \`${machfile}'
23990 What compiler should emacs be built with?
${CC} ${CFLAGS}
23991 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23992 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23993 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23994 What window system should Emacs use?
${window_system}
23995 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23997 if test -n "${x_includes}"; then
23998 echo " Where
do we
find X Windows header files?
${x_includes}"
24000 echo " Where
do we
find X Windows header files? Standard
dirs"
24002 if test -n "${x_libraries}"; then
24003 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24005 echo " Where
do we
find X Windows libraries? Standard
dirs"
24008 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24009 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24010 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24011 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24012 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24013 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24014 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24015 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24016 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24018 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24019 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24020 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24021 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24023 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24026 if test $USE_XASSERTS = yes; then
24027 echo " Compiling with asserts turned on.
"
24028 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24033 if test "$USE_X_TOOLKIT" = GTK; then
24034 case "$canonical" in
24036 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24037 will probably get a crash on startup. If this happens
, please use another
24038 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24043 if test "$HAVE_NS" = "yes"; then
24045 echo "You must run
\"make install\" in order to
test the built application.
24046 The installed application will go to nextstep
/Emacs.app and can be
24047 run or moved from there.
"
24048 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24049 echo "The application will be fully self-contained.
"
24051 echo "The lisp resources
for the application will be installed under
${prefix}.
24052 You may need to run
\"make install\" with sudo. The application will fail
24053 to run
if these resources are not installed.
"
24058 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24059 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24064 # Remove any trailing slashes in these variables.
24065 test "${prefix}" != NONE &&
24066 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24067 test "${exec_prefix}" != NONE &&
24068 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24070 # Now get this: Some word that is part of the ${srcdir} directory name
24071 # or the ${configuration} value might, just might, happen to be an
24072 # identifier like `sun4' or `i386' or something, and be predefined by
24073 # the C preprocessor to some helpful value like 1, or maybe the empty
24074 # string. Needless to say consequent macro substitutions are less
24075 # than conducive to the makefile finding the correct directory.
24076 cpp_undefs="`echo $srcdir $configuration $canonical |
24077 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24078 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24080 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24081 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24082 ## from Makefile.c can correctly provide the arg `-traditional' to the
24085 cat >conftest.$ac_ext <<_ACEOF
24088 cat confdefs.h >>conftest.$ac_ext
24089 cat >>conftest.$ac_ext <<_ACEOF
24090 /* end confdefs.h. */
24093 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24094 $EGREP "yes..
yes" >/dev/null 2>&1; then
24095 CPP_NEED_TRADITIONAL=no
24097 CPP_NEED_TRADITIONAL=yes
24102 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
"
24104 ac_config_commands="$ac_config_commands default
"
24106 cat >confcache <<\_ACEOF
24107 # This file is a shell script that caches the results of configure
24108 # tests run on this system so they can be shared between configure
24109 # scripts and configure runs, see configure's option --config-cache.
24110 # It is not useful on other systems. If it contains results you don't
24111 # want to keep, you may remove or edit it.
24113 # config.status only pays attention to the cache file if you give it
24114 # the --recheck option to rerun configure.
24116 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24117 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24118 # following values.
24122 # The following way of writing the cache mishandles newlines in values,
24123 # but we know of no workaround that is simple, portable, and efficient.
24124 # So, we kill variables containing newlines.
24125 # Ultrix sh set writes to stderr and can't be redirected directly,
24126 # and sets the high bit in the cache file unless we assign to the vars.
24128 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24129 eval ac_val=\$$ac_var
24133 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24134 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24137 _ | IFS | as_nl) ;; #(
24138 *) $as_unset $ac_var ;;
24144 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24145 *${as_nl}ac_space=\ *)
24146 # `set' does not quote correctly, so add quotes (double-quote
24147 # substitution turns \\\\ into \\, and sed turns \\ into \).
24150 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24153 # `set' quotes correctly as required by POSIX, so do not add quotes.
24154 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24163 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24165 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24167 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24168 if test -w "$cache_file"; then
24169 test "x
$cache_file" != "x
/dev
/null
" &&
24170 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24171 echo "$as_me: updating cache
$cache_file" >&6;}
24172 cat confcache >$cache_file
24174 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24175 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24180 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24181 # Let make expand exec_prefix.
24182 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24184 DEFS=-DHAVE_CONFIG_H
24188 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24189 # 1. Remove the extension, and $U if already installed.
24190 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24191 ac_i=`echo "$ac_i" | sed "$ac_script"`
24192 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24193 # will be set to the directory where LIBOBJS objects are built.
24194 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24195 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24197 LIBOBJS=$ac_libobjs
24199 LTLIBOBJS=$ac_ltlibobjs
24203 : ${CONFIG_STATUS=./config.status}
24204 ac_clean_files_save=$ac_clean_files
24205 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24206 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24207 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24208 cat >$CONFIG_STATUS <<_ACEOF
24210 # Generated by $as_me.
24211 # Run this file to recreate the current configuration.
24212 # Compiler output produced by configure, useful for debugging
24213 # configure, is in config.log if it exists.
24216 ac_cs_recheck=false
24218 SHELL=\${CONFIG_SHELL-$SHELL}
24221 cat >>$CONFIG_STATUS <<\_ACEOF
24222 ## --------------------- ##
24223 ## M4sh Initialization. ##
24224 ## --------------------- ##
24226 # Be more Bourne compatible
24227 DUALCASE=1; export DUALCASE # for MKS sh
24228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24231 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24232 # is contrary to our usage. Disable this feature.
24233 alias -g '${1+"$@"}'='"$@
"'
24234 setopt NO_GLOB_SUBST
24236 case `(set -o) 2>/dev/null` in
24237 *posix*) set -o posix ;;
24246 # Avoid depending upon Character Ranges.
24247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24250 as_cr_digits='0123456789'
24251 as_cr_alnum=$as_cr_Letters$as_cr_digits
24253 # The user is always right.
24254 if test "${PATH_SEPARATOR+set}" != set; then
24255 echo "#! /bin/sh" >conf$$.sh
24256 echo "exit 0" >>conf$$.sh
24258 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24266 # Support unset when possible.
24267 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24275 # We need space, tab and new line, in precisely that order. Quoting is
24276 # there to prevent editors from complaining about space-tab.
24277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24278 # splitting by setting IFS to empty value.)
24283 # Find who we are. Look in the path if we contain no directory separator.
24285 *[\\/]* ) as_myself
=$0 ;;
24286 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24287 for as_dir
in $PATH
24290 test -z "$as_dir" && as_dir
=.
24291 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24297 # We did not find ourselves, most probably we were run as `sh COMMAND'
24298 # in which case we are not to be found in the path.
24299 if test "x$as_myself" = x
; then
24302 if test ! -f "$as_myself"; then
24303 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24304 { (exit 1); exit 1; }
24307 # Work around bugs in pre-3.0 UWIN ksh.
24308 for as_var
in ENV MAIL MAILPATH
24309 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24317 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24318 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24319 LC_TELEPHONE LC_TIME
24321 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24322 eval $as_var=C
; export $as_var
24324 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24328 # Required to use basename.
24329 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24330 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24336 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24337 as_basename
=basename
24343 # Name of the executable.
24344 as_me
=`$as_basename -- "$0" ||
24345 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24346 X"$0" : 'X\(//\)$' \| \
24347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24349 sed '/^.*\/\([^/][^/]*\)\/*$/{
24368 as_lineno_1
=$LINENO
24369 as_lineno_2
=$LINENO
24370 test "x$as_lineno_1" != "x$as_lineno_2" &&
24371 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24374 # uniformly replaced by the line number. The first 'sed' inserts a
24375 # line-number line after each line using $LINENO; the second 'sed'
24376 # does the real work. The second script uses 'N' to pair each
24377 # line-number line with the line containing $LINENO, and appends
24378 # trailing '-' during substitution so that $LINENO is not a special
24379 # case at line end.
24380 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24381 # scripts with optimization help from Paolo Bonzini. Blame Lee
24382 # E. McMahon (1931-1989) for sed's syntax. :-)
24394 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24397 ' >$as_me.lineno
&&
24398 chmod +x
"$as_me.lineno" ||
24399 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24400 { (exit 1); exit 1; }; }
24402 # Don't try to exec as it changes $[0], causing all sort of problems
24403 # (the dirname of $[0] is not the place where we might find the
24404 # original and so on. Autoconf is especially sensitive to this).
24405 .
"./$as_me.lineno"
24406 # Exit status is that of the last command.
24411 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24417 ECHO_C
= ECHO_N
= ECHO_T
=
24418 case `echo -n x` in
24420 case `echo 'x\c'` in
24421 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24428 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24429 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24435 rm -f conf$$ conf$$.exe conf$$.
file
24436 if test -d conf$$.dir
; then
24437 rm -f conf$$.dir
/conf$$.
file
24443 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24445 # ... but there are two gotchas:
24446 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24447 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24448 # In both cases, we have to default to `cp -p'.
24449 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24451 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24456 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24457 rmdir conf$$.dir
2>/dev
/null
24459 if mkdir
-p .
2>/dev
/null
; then
24462 test -d .
/-p && rmdir .
/-p
24466 if test -x / >/dev
/null
2>&1; then
24467 as_test_x
='test -x'
24469 if ls -dL / >/dev
/null
2>&1; then
24476 if test -d "$1"; then
24482 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24483 ???[sx]*):;;*)false;;esac;fi
24487 as_executable_p
=$as_test_x
24489 # Sed expression to map a string onto a valid CPP name.
24490 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24492 # Sed expression to map a string onto a valid variable name.
24493 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24498 # Save the log message, to keep $[0] and so on meaningful, and to
24499 # report actual input values of CONFIG_FILES etc. instead of their
24500 # values after options handling.
24502 This file was extended by emacs $as_me 23.0.60, which was
24503 generated by GNU Autoconf 2.61. Invocation command line was
24505 CONFIG_FILES = $CONFIG_FILES
24506 CONFIG_HEADERS = $CONFIG_HEADERS
24507 CONFIG_LINKS = $CONFIG_LINKS
24508 CONFIG_COMMANDS = $CONFIG_COMMANDS
24511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24516 cat >>$CONFIG_STATUS <<_ACEOF
24517 # Files that config.status was made for.
24518 config_files="$ac_config_files"
24519 config_headers="$ac_config_headers"
24520 config_commands="$ac_config_commands"
24524 cat >>$CONFIG_STATUS <<\_ACEOF
24526 \`$as_me' instantiates files from templates according to the
24527 current configuration.
24529 Usage: $0 [OPTIONS] [FILE]...
24531 -h, --help print this help, then exit
24532 -V, --version print version number and configuration settings, then exit
24533 -q, --quiet do not print progress messages
24534 -d, --debug don't remove temporary files
24535 --recheck update $as_me by reconfiguring in the same conditions
24536 --file=FILE[:TEMPLATE]
24537 instantiate the configuration file FILE
24538 --header=FILE[:TEMPLATE]
24539 instantiate the configuration header FILE
24541 Configuration files:
24544 Configuration headers:
24547 Configuration commands:
24550 Report bugs to <bug-autoconf@gnu.org>."
24553 cat >>$CONFIG_STATUS <<_ACEOF
24555 emacs config.status 23.0.60
24556 configured by $0, generated by GNU Autoconf 2.61,
24557 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24559 Copyright (C) 2006 Free Software Foundation, Inc.
24560 This config.status script is free software; the Free Software Foundation
24561 gives unlimited permission to copy, distribute and modify it."
24568 cat >>$CONFIG_STATUS <<\_ACEOF
24569 # If no file are specified by the user, then we need to provide default
24570 # value. By we need to know if files were specified by the user.
24576 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24577 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24588 # Handling of the options.
24589 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24591 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24592 echo "$ac_cs_version"; exit ;;
24593 --debug |
--debu |
--deb |
--de |
--d |
-d )
24595 --file |
--fil |
--fi |
--f )
24597 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24598 ac_need_defaults
=false
;;
24599 --header |
--heade |
--head |
--hea )
24601 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24602 ac_need_defaults
=false
;;
24604 # Conflict between --help and --header
24605 { echo "$as_me: error: ambiguous option: $1
24606 Try \`$0 --help' for more information." >&2
24607 { (exit 1); exit 1; }; };;
24608 --help |
--hel |
-h )
24609 echo "$ac_cs_usage"; exit ;;
24610 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24611 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24614 # This is an error.
24615 -*) { echo "$as_me: error: unrecognized option: $1
24616 Try \`$0 --help' for more information." >&2
24617 { (exit 1); exit 1; }; } ;;
24619 *) ac_config_targets
="$ac_config_targets $1"
24620 ac_need_defaults
=false
;;
24626 ac_configure_extra_args
=
24628 if $ac_cs_silent; then
24630 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24634 cat >>$CONFIG_STATUS <<_ACEOF
24635 if \$ac_cs_recheck; then
24636 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24637 CONFIG_SHELL=$SHELL
24638 export CONFIG_SHELL
24639 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24643 cat >>$CONFIG_STATUS <<\_ACEOF
24647 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24648 ## Running $as_me. ##
24654 cat >>$CONFIG_STATUS <<_ACEOF
24658 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24662 cat >>$CONFIG_STATUS <<\_ACEOF
24664 # Handling of arguments.
24665 for ac_config_target
in $ac_config_targets
24667 case $ac_config_target in
24668 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24669 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24670 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24671 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24672 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24673 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24674 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24675 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24676 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24677 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24678 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24679 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24680 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24684 { (exit 1); exit 1; }; };;
24689 # If the user did not use the arguments to specify the items to instantiate,
24690 # then the envvar interface is used. Set only those that are not.
24691 # We use the long form for the default assignment because of an extremely
24692 # bizarre bug on SunOS 4.1.3.
24693 if $ac_need_defaults; then
24694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24699 # Have a temporary directory for convenience. Make it in the build tree
24700 # simply because there is no reason against having it here, and in addition,
24701 # creating and moving files from /tmp can sometimes cause problems.
24702 # Hook for its removal unless debugging.
24703 # Note that there is a small window in which the directory will not be cleaned:
24704 # after its creation but before its name has been assigned to `$tmp'.
24708 trap 'exit_status=$?
24709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24711 trap '{ (exit 1); exit 1; }' 1 2 13 15
24713 # Create a (secure) tmp directory for tmp files.
24716 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24717 test -n "$tmp" && test -d "$tmp"
24720 tmp
=.
/conf$$
-$RANDOM
24721 (umask 077 && mkdir
"$tmp")
24724 echo "$me: cannot create a temporary directory in ." >&2
24725 { (exit 1); exit 1; }
24729 # Set up the sed scripts for CONFIG_FILES section.
24732 # No need to generate the scripts if there are no CONFIG_FILES.
24733 # This happens for instance when ./config.status config.h
24734 if test -n "$CONFIG_FILES"; then
24741 for ac_last_try
in false false false false false
:; do
24742 cat >conf$
$subs.
sed <<_ACEOF
24743 SHELL!$SHELL$ac_delim
24744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24750 exec_prefix!$exec_prefix$ac_delim
24751 prefix!$prefix$ac_delim
24752 program_transform_name!$program_transform_name$ac_delim
24753 bindir!$bindir$ac_delim
24754 sbindir!$sbindir$ac_delim
24755 libexecdir!$libexecdir$ac_delim
24756 datarootdir!$datarootdir$ac_delim
24757 datadir!$datadir$ac_delim
24758 sysconfdir!$sysconfdir$ac_delim
24759 sharedstatedir!$sharedstatedir$ac_delim
24760 localstatedir!$localstatedir$ac_delim
24761 includedir!$includedir$ac_delim
24762 oldincludedir!$oldincludedir$ac_delim
24763 docdir!$docdir$ac_delim
24764 infodir!$infodir$ac_delim
24765 htmldir!$htmldir$ac_delim
24766 dvidir!$dvidir$ac_delim
24767 pdfdir!$pdfdir$ac_delim
24768 psdir!$psdir$ac_delim
24769 libdir!$libdir$ac_delim
24770 localedir!$localedir$ac_delim
24771 mandir!$mandir$ac_delim
24772 DEFS!$DEFS$ac_delim
24773 ECHO_C!$ECHO_C$ac_delim
24774 ECHO_N!$ECHO_N$ac_delim
24775 ECHO_T!$ECHO_T$ac_delim
24776 LIBS!$LIBS$ac_delim
24777 build_alias!$build_alias$ac_delim
24778 host_alias!$host_alias$ac_delim
24779 target_alias!$target_alias$ac_delim
24780 MAINT!$MAINT$ac_delim
24781 build!$build$ac_delim
24782 build_cpu!$build_cpu$ac_delim
24783 build_vendor!$build_vendor$ac_delim
24784 build_os!$build_os$ac_delim
24785 host!$host$ac_delim
24786 host_cpu!$host_cpu$ac_delim
24787 host_vendor!$host_vendor$ac_delim
24788 host_os!$host_os$ac_delim
24790 CFLAGS!$CFLAGS$ac_delim
24791 LDFLAGS!$LDFLAGS$ac_delim
24792 CPPFLAGS!$CPPFLAGS$ac_delim
24793 ac_ct_CC!$ac_ct_CC$ac_delim
24794 EXEEXT!$EXEEXT$ac_delim
24795 OBJEXT!$OBJEXT$ac_delim
24797 GREP!$GREP$ac_delim
24798 EGREP!$EGREP$ac_delim
24799 LN_S!$LN_S$ac_delim
24800 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24801 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24802 INSTALL_DATA!$INSTALL_DATA$ac_delim
24803 RANLIB!$RANLIB$ac_delim
24804 INSTALL_INFO!$INSTALL_INFO$ac_delim
24805 GZIP_PROG!$GZIP_PROG$ac_delim
24806 MAKEINFO!$MAKEINFO$ac_delim
24807 LIBSOUND!$LIBSOUND$ac_delim
24808 PKG_CONFIG!$PKG_CONFIG$ac_delim
24809 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24810 ALSA_LIBS!$ALSA_LIBS$ac_delim
24811 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24812 SET_MAKE!$SET_MAKE$ac_delim
24813 XMKMF!$XMKMF$ac_delim
24814 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24815 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24816 RSVG_LIBS!$RSVG_LIBS$ac_delim
24817 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24818 GTK_LIBS!$GTK_LIBS$ac_delim
24819 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24820 DBUS_LIBS!$DBUS_LIBS$ac_delim
24821 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24822 XFT_LIBS!$XFT_LIBS$ac_delim
24823 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24824 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24825 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24826 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24827 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24828 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24829 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24830 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24831 ALLOCA!$ALLOCA$ac_delim
24832 liblockfile!$liblockfile$ac_delim
24833 LIBOBJS!$LIBOBJS$ac_delim
24834 NEED_SETGID!$NEED_SETGID$ac_delim
24835 KMEM_GROUP!$KMEM_GROUP$ac_delim
24836 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24837 GETOPT_H!$GETOPT_H$ac_delim
24838 GETOPTOBJS!$GETOPTOBJS$ac_delim
24839 version!$version$ac_delim
24842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24844 elif $ac_last_try; then
24845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24847 { (exit 1); exit 1; }; }
24849 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24853 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24854 if test -n "$ac_eof"; then
24855 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24856 ac_eof
=`expr $ac_eof + 1`
24859 cat >>$CONFIG_STATUS <<_ACEOF
24860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24865 s/^/s,@/; s/!/@,|#_!!_#|/
24868 s/'"$ac_delim"'$/,g/; t
24870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24871 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24872 rm -f conf$
$subs.
sed
24873 cat >>$CONFIG_STATUS <<_ACEOF
24879 for ac_last_try
in false false false false false
:; do
24880 cat >conf$
$subs.
sed <<_ACEOF
24881 configuration!$configuration$ac_delim
24882 canonical!$canonical$ac_delim
24883 srcdir!$srcdir$ac_delim
24884 lispdir!$lispdir$ac_delim
24885 locallisppath!$locallisppath$ac_delim
24886 lisppath!$lisppath$ac_delim
24887 x_default_search_path!$x_default_search_path$ac_delim
24888 etcdir!$etcdir$ac_delim
24889 archlibdir!$archlibdir$ac_delim
24890 bitmapdir!$bitmapdir$ac_delim
24891 gamedir!$gamedir$ac_delim
24892 gameuser!$gameuser$ac_delim
24893 c_switch_system!$c_switch_system$ac_delim
24894 c_switch_machine!$c_switch_machine$ac_delim
24895 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24896 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24897 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24898 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24899 machfile!$machfile$ac_delim
24900 opsysfile!$opsysfile$ac_delim
24901 ns_appdir!$ns_appdir$ac_delim
24902 ns_appbindir!$ns_appbindir$ac_delim
24903 ns_appresdir!$ns_appresdir$ac_delim
24904 ns_appsrc!$ns_appsrc$ac_delim
24905 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
24906 LTLIBOBJS!$LTLIBOBJS$ac_delim
24909 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
24911 elif $ac_last_try; then
24912 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24913 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24914 { (exit 1); exit 1; }; }
24916 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24920 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24921 if test -n "$ac_eof"; then
24922 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24923 ac_eof
=`expr $ac_eof + 1`
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24931 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24932 s/^/s,@/; s/!/@,|#_!!_#|/
24935 s/'"$ac_delim"'$/,g/; t
24937 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24938 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24939 rm -f conf$
$subs.
sed
24940 cat >>$CONFIG_STATUS <<_ACEOF
24947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24949 # trailing colons and then remove the whole line if VPATH becomes empty
24950 # (actually we leave an empty line to preserve line numbers).
24951 if test "x$srcdir" = x.
; then
24952 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24953 s/:*\$(srcdir):*/:/
24954 s/:*\${srcdir}:*/:/
24956 s/^\([^=]*=[ ]*\):*/\1/
24962 cat >>$CONFIG_STATUS <<\_ACEOF
24963 fi # test -n "$CONFIG_FILES"
24966 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24969 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24971 case $ac_mode$ac_tag in
24973 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24974 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24975 { (exit 1); exit 1; }; };;
24976 :[FH
]-) ac_tag
=-:-;;
24977 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24994 -) ac_f
="$tmp/stdin";;
24995 *) # Look for the file first in the build tree, then in the source tree
24996 # (if the path is not absolute). The absolute path cannot be DOS-style,
24997 # because $ac_f cannot contain `:'.
25001 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25003 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25004 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25005 { (exit 1); exit 1; }; };;
25007 ac_file_inputs
="$ac_file_inputs $ac_f"
25010 # Let's still pretend it is `configure' which instantiates (i.e., don't
25011 # use $as_me), people would be surprised to read:
25012 # /* config.h. Generated by config.status. */
25013 configure_input
="Generated from "`IFS=:
25014 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25015 if test x
"$ac_file" != x-
; then
25016 configure_input
="$ac_file. $configure_input"
25017 { echo "$as_me:$LINENO: creating $ac_file" >&5
25018 echo "$as_me: creating $ac_file" >&6;}
25022 *:-:* |
*:-) cat >"$tmp/stdin";;
25027 ac_dir
=`$as_dirname -- "$ac_file" ||
25028 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25029 X"$ac_file" : 'X\(//\)[^/]' \| \
25030 X"$ac_file" : 'X\(//\)$' \| \
25031 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25037 /^X\(\/\/\)[^/].*/{
25052 -*) as_dir
=.
/$as_dir;;
25054 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25058 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25059 *) as_qdir
=$as_dir;;
25061 as_dirs
="'$as_qdir' $as_dirs"
25062 as_dir
=`$as_dirname -- "$as_dir" ||
25063 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25064 X"$as_dir" : 'X\(//\)[^/]' \| \
25065 X"$as_dir" : 'X\(//\)$' \| \
25066 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25072 /^X\(\/\/\)[^/].*/{
25085 test -d "$as_dir" && break
25087 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25088 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25089 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25090 { (exit 1); exit 1; }; }; }
25094 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25096 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25097 # A ".." for each directory in $ac_dir_suffix.
25098 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25099 case $ac_top_builddir_sub in
25100 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25101 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25104 ac_abs_top_builddir
=$ac_pwd
25105 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25106 # for backward compatibility:
25107 ac_top_builddir
=$ac_top_build_prefix
25110 .
) # We are building in place.
25112 ac_top_srcdir
=$ac_top_builddir_sub
25113 ac_abs_top_srcdir
=$ac_pwd ;;
25114 [\\/]* | ?
:[\\/]* ) # Absolute name.
25115 ac_srcdir
=$srcdir$ac_dir_suffix;
25116 ac_top_srcdir
=$srcdir
25117 ac_abs_top_srcdir
=$srcdir ;;
25118 *) # Relative name.
25119 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25120 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25121 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25123 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25133 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25134 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25138 cat >>$CONFIG_STATUS <<\_ACEOF
25139 # If the template does not know about datarootdir, expand it.
25140 # FIXME: This hack should be removed a few years after 2.60.
25141 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25143 case `sed -n '/datarootdir/ {
25152 ' $ac_file_inputs` in
25153 *datarootdir
*) ac_datarootdir_seen
=yes;;
25154 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25155 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25156 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25158 cat >>$CONFIG_STATUS <<_ACEOF
25159 ac_datarootdir_hack='
25160 s&@datadir@&$datadir&g
25161 s&@docdir@&$docdir&g
25162 s&@infodir@&$infodir&g
25163 s&@localedir@&$localedir&g
25164 s&@mandir@&$mandir&g
25165 s&\\\${datarootdir}&$datarootdir&g' ;;
25169 # Neutralize VPATH when `$srcdir' = `.'.
25170 # Shell code in configure.ac might set extrasub.
25171 # FIXME: do we really want to maintain this feature?
25172 cat >>$CONFIG_STATUS <<_ACEOF
25176 cat >>$CONFIG_STATUS <<\_ACEOF
25178 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25179 s
&@configure_input@
&$configure_input&;t t
25180 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25181 s
&@srcdir@
&$ac_srcdir&;t t
25182 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25183 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25184 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25185 s
&@builddir@
&$ac_builddir&;t t
25186 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25187 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25188 s
&@INSTALL@
&$ac_INSTALL&;t t
25189 $ac_datarootdir_hack
25190 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25192 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25195 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25196 which seems to be undefined. Please make sure it is defined." >&5
25197 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25198 which seems to be undefined. Please make sure it is defined." >&2;}
25202 -) cat "$tmp/out"; rm -f "$tmp/out";;
25203 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25212 # Transform confdefs.h into a sed script `conftest.defines', that
25213 # substitutes the proper values into config.h.in to produce config.h.
25214 rm -f conftest.defines conftest.
tail
25215 # First, append a space to every undef/define line, to ease matching.
25216 echo 's/$/ /' >conftest.defines
25217 # Then, protect against being on the right side of a sed subst, or in
25218 # an unquoted here document, in config.status. If some macros were
25219 # called several times there might be several #defines for the same
25220 # symbol, which is useless. But do not sort them, since the last
25221 # AC_DEFINE must be honored.
25222 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25223 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25224 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25225 # PARAMS is the parameter list in the macro definition--in most cases, it's
25226 # just an empty string.
25227 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25228 ac_dB
='\\)[ (].*,\\1define\\2'
25236 s/^[ ]*#[ ]*define[ ][ ]*//
25241 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25242 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25243 ' >>conftest.defines
25245 # Remove the space that was appended to ease matching.
25246 # Then replace #undef with comments. This is necessary, for
25247 # example, in the case of _POSIX_SOURCE, which is predefined and required
25248 # on some systems where configure will not decide to define it.
25249 # (The regexp can be short, since the line contains either #define or #undef.)
25251 s,^[ #]*u.*,/* & */,' >>conftest.defines
25253 # Break up conftest.defines:
25254 ac_max_sed_lines
=50
25256 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25257 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25258 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25260 ac_in
='$ac_file_inputs'
25261 ac_out
='"$tmp/out1"'
25262 ac_nxt
='"$tmp/out2"'
25266 # Write a here document:
25267 cat >>$CONFIG_STATUS <<_ACEOF
25268 # First, check the format of the line:
25269 cat >"\$tmp/defines.sed" <<\\CEOF
25270 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25271 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25275 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25277 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25278 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25279 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25280 grep . conftest.
tail >/dev
/null ||
break
25281 rm -f conftest.defines
25282 mv conftest.
tail conftest.defines
25284 rm -f conftest.defines conftest.
tail
25286 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25287 cat >>$CONFIG_STATUS <<\_ACEOF
25288 if test x
"$ac_file" != x-
; then
25289 echo "/* $configure_input */" >"$tmp/config.h"
25290 cat "$ac_result" >>"$tmp/config.h"
25291 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25292 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25293 echo "$as_me: $ac_file is unchanged" >&6;}
25296 mv "$tmp/config.h" $ac_file
25299 echo "/* $configure_input */"
25305 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25306 echo "$as_me: executing $ac_file commands" >&6;}
25311 case $ac_file$ac_mode in
25314 ### Make the necessary directories, if they don't exist.
25315 for dir
in etc lisp
; do
25316 test -d ${dir} || mkdir
${dir}
25319 # Build src/Makefile from ${srcdir}/src/Makefile.c
25320 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25321 # This must be done after src/config.h is built, since we rely on that file.
25323 echo creating src
/epaths.h
25324 ${MAKE-make} epaths-force
25326 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25327 # `..' to `. .' unless invoked with -traditional
25329 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25330 CPPFLAGS
="$CPPFLAGS -traditional"
25333 echo creating lib-src
/Makefile
25335 rm -f junk.c junk1.c junk2.c
25336 sed -e '/start of cpp stuff/q' \
25337 < Makefile.c
> junk1.c
25338 sed -e '1,/start of cpp stuff/d'\
25339 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25340 < Makefile.c
> junk.c
25341 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25342 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25343 cat junk1.c junk2.c
> Makefile.new
25344 rm -f junk.c junk1.c junk2.c
25345 chmod 444 Makefile.new
25346 mv -f Makefile.new Makefile
25349 echo creating src
/Makefile
25351 rm -f junk.c junk1.c junk2.c
25352 sed -e '/start of cpp stuff/q' \
25353 < Makefile.c
> junk1.c
25354 sed -e '1,/start of cpp stuff/d'\
25355 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25356 < Makefile.c
> junk.c
25357 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25358 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25359 cat junk1.c junk2.c
> Makefile.new
25360 rm -f junk.c junk1.c junk2.c
25361 chmod 444 Makefile.new
25362 mv -f Makefile.new Makefile
25365 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25366 echo creating src
/.gdbinit
25367 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25376 { (exit 0); exit 0; }
25378 chmod +x
$CONFIG_STATUS
25379 ac_clean_files
=$ac_clean_files_save
25382 # configure is writing to config.log, and then calls config.status.
25383 # config.status does its own redirection, appending to config.log.
25384 # Unfortunately, on DOS this fails, as config.log is still kept open
25385 # by configure, so config.status won't be able to write to it; its
25386 # output is simply discarded. So we exec the FD to /dev/null,
25387 # effectively closing config.log, so it can be properly (re)opened and
25388 # appended to by config.status. When coming back to configure, we
25389 # need to make the FD available again.
25390 if test "$no_create" != yes; then
25392 ac_config_status_args
=
25393 test "$silent" = yes &&
25394 ac_config_status_args
="$ac_config_status_args --quiet"
25396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25399 # would make configure fail if this is the last instruction.
25400 $ac_cs_success ||
{ (exit 1); exit 1; }