2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
716 x_default_search_path
733 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --x-includes=DIR X include files are
in DIR
1309 --x-libraries=DIR X library files are
in DIR
1312 --build=BUILD configure
for building on BUILD
[guessed
]
1313 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1317 if test -n "$ac_init_help"; then
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1325 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don
't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1370 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s
,x
,x
', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 lispdir='${datadir}/emacs
/${version}/lisp
'
1815 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1816 '${datadir}/emacs
/site-lisp
'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1818 etcdir='${datadir}/emacs
/${version}/etc
'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs
/${version}/etc
'
1821 gamedir='${localstatedir}/games
/emacs
'
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1867 cat >>confdefs.h <<\_ACEOF
1873 cat >>confdefs.h <<\_ACEOF
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1912 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1913 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1915 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1916 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1967 # Check whether --with-gtk was given.
1968 if test "${with_gtk+set}" = set; then
1973 # Check whether --with-pkg-config-prog was given.
1974 if test "${with_pkg_config_prog+set}" = set; then
1975 withval=$with_pkg_config_prog;
1979 # Check whether --with-toolkit-scroll-bars was given.
1980 if test "${with_toolkit_scroll_bars+set}" = set; then
1981 withval=$with_toolkit_scroll_bars;
1985 # Check whether --with-xim was given.
1986 if test "${with_xim+set}" = set; then
1991 # Check whether --with-carbon was given.
1992 if test "${with_carbon+set}" = set; then
1993 withval=$with_carbon;
1996 # Check whether --enable-carbon-app was given.
1997 if test "${enable_carbon_app+set}" = set; then
1998 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2002 # Check whether --enable-font-backend was given.
2003 if test "${enable_font_backend+set}" = set; then
2004 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2010 # Check whether --enable-asserts was given.
2011 if test "${enable_asserts+set}" = set; then
2012 enableval=$enable_asserts; USE_XASSERTS=$enableval
2018 # Check whether --enable-maintainer-mode was given.
2019 if test "${enable_maintainer_mode+set}" = set; then
2020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2022 USE_MAINTAINER_MODE=no
2025 if test $USE_MAINTAINER_MODE = yes; then
2032 # Check whether --enable-locallisppath was given.
2033 if test "${enable_locallisppath+set}" = set; then
2034 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2036 elif test "${enableval}" != "yes"; then
2037 locallisppath=${enableval}
2042 #### Make srcdir absolute, if it isn't already. It
's important to
2043 #### avoid running the path through pwd unnecessarily, since pwd can
2044 #### give you automounter prefixes, which can go away. We do all this
2045 #### so Emacs can find its files when run uninstalled.
2046 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2051 ## We may be able to use the $PWD environment variable to make this
2052 ## absolute. But sometimes PWD is inaccurate.
2053 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2054 ## but that tested only for a well-formed and valid PWD,
2055 ## it did not object when PWD was well-formed and valid but just wrong.
2056 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2060 srcdir
="`(cd ${srcdir}; pwd)`"
2063 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2066 #### Check if the source directory already has a configured system in it.
2067 if test `pwd` != `(cd ${srcdir} && pwd)` \
2068 && test -f "${srcdir}/src/config.h" ; then
2069 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&5
2075 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&2;}
2083 #### Given the configuration name, set machfile and opsysfile to the
2084 #### names of the m/*.h and s/*.h files we should use.
2086 ### Canonicalize the configuration name.
2089 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2092 ac_install_sh
="$ac_aux_dir/install-sh -c"
2094 elif test -f "$ac_dir/install.sh"; then
2096 ac_install_sh
="$ac_aux_dir/install.sh -c"
2098 elif test -f "$ac_dir/shtool"; then
2100 ac_install_sh
="$ac_aux_dir/shtool install -c"
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 ac_build_alias
=$build_alias
2131 test "x$ac_build_alias" = x
&&
2132 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x
&&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2152 ac_save_IFS
=$IFS; IFS
='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 if test "x$host_alias" = x
; then
2171 ac_cv_host
=$ac_cv_build
2173 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2189 ac_save_IFS
=$IFS; IFS
='-'
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2199 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 configuration
=${host_alias-$host}
2207 ### If you add support for a new configuration, add code to this
2208 ### switch statement to recognize your configuration name and select
2209 ### the appropriate operating system and machine description files.
2211 ### You would hope that you could choose an m/*.h file pretty much
2212 ### based on the machine portion of the configuration name, and an s-
2213 ### file based on the operating system portion. However, it turns out
2214 ### that each m/*.h file is pretty manufacturer-specific - for
2215 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2216 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2217 ### machines. So we basically have to have a special case for each
2218 ### configuration name.
2220 ### As far as handling version numbers on operating systems is
2221 ### concerned, make sure things will fail in a fixable way. If
2222 ### /etc/MACHINES doesn't say anything about version numbers, be
2223 ### prepared to handle anything reasonably. If version numbers
2224 ### matter, be sure /etc/MACHINES says something about it.
2226 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2227 ### "System V Release 4"; he writes, "The old convention encouraged
2228 ### confusion between `system' and `release' levels'."
2230 machine
='' opsys
='' unported
=no
2231 case "${canonical}" in
2236 case "${canonical}" in
2237 alpha
*-*-freebsd*) machine
=alpha
;;
2238 ia64-
*-freebsd*) machine
=ia64
;;
2239 sparc64-
*-freebsd*) machine
=sparc
;;
2240 powerpc-
*-freebsd*) machine
=macppc
;;
2241 i
[3456]86-*-freebsd*) machine
=intel386
;;
2242 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2249 if test -f /usr
/lib
/crti.o
; then
2251 cat >>confdefs.h
<<\_ACEOF
2257 case "${canonical}" in
2258 alpha
*-*-netbsd*) machine
=alpha
;;
2259 i
[3456]86-*-netbsd*) machine
=intel386
;;
2261 # This is somewhat bogus.
2262 machine
=hp9000s300
;;
2263 mips-
*-netbsd*) machine
=pmax
;;
2264 mipsel-
*-netbsd*) machine
=pmax
;;
2265 mipseb-
*-netbsd*) machine
=pmax
;;
2266 ns32k-
*-netbsd*) machine
=ns32000
;;
2267 powerpc-
*-netbsd*) machine
=macppc
;;
2268 sparc
*-*-netbsd*) machine
=sparc
;;
2269 vax-
*-netbsd*) machine
=vax
;;
2270 arm-
*-netbsd*) machine
=arm
;;
2271 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2272 hppa-
*-netbsd*) machine
=hp800
;;
2273 shle-
*-netbsd*) machine
=sh3el
;;
2280 case "${canonical}" in
2281 alpha
*-*-openbsd*) machine
=alpha
;;
2282 arm-
*-openbsd*) machine
=arm
;;
2283 hppa-
*-openbsd*) machine
=hp9000s300
;;
2284 i386-
*-openbsd*) machine
=intel386
;;
2285 m68k-
*-openbsd*) machine
=hp9000s300
;;
2286 m88k-
*-openbsd*) machine
=aviion
;;
2287 mips64-
*-openbsd*) machine
=mips64
;;
2288 powerpc-
*-openbsd*) machine
=macppc
;;
2289 sh-
*-openbsd*) machine
=sh3el
;;
2290 sparc
*-*-openbsd*) machine
=sparc
;;
2291 vax-
*-openbsd*) machine
=vax
;;
2292 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2299 case "${canonical}" in
2300 i
[3456]86-*-lynxos*) machine
=intel386
;;
2301 powerpc-
*-lynxos*) machine
=powerpc
;;
2306 arm-acorn-riscix1.1
* )
2307 machine
=acorn opsys
=riscix1-1
2309 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2310 ## This name is riscix12 instead of riscix1.2
2311 ## to avoid a file name conflict on MSDOS.
2312 machine
=acorn opsys
=riscix12
2318 case "${canonical}" in
2319 i
[345]86-*-bsdi*) machine
=intel386
;;
2320 sparc-
*-bsdi*) machine
=sparc
;;
2321 powerpc-
*-bsdi*) machine
=macppc
;;
2323 case "${canonical}" in
2324 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2325 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2326 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2327 *-*-bsdi3* ) opsys
=bsdos3
;;
2328 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2333 ## Strictly speaking, we need the version of the alliant operating
2334 ## system to choose the right machine file, but currently the
2335 ## configuration name doesn't tell us enough to choose the right
2336 ## one; we need to give alliants their own operating system name to
2337 ## do this right. When someone cares, they can help us.
2339 machine
=alliant4 opsys
=bsd4-2
2342 machine
=alliant-2800 opsys
=bsd4-3
2345 ## Alpha (DEC) machines.
2347 machine
=alpha opsys
=osf1
2348 # This is needed to find X11R6.1 libraries for certain tests.
2349 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2350 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2351 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2352 # due to non-traditional preprocessing with the current compiler
2353 # defaults. OSF 4 can also have that compiler version, and there
2354 # seems always to have been a usable /usr/bin/cpp.
2355 NON_GNU_CPP
=/usr
/bin
/cpp
2356 case "${canonical}" in
2357 alpha
*-dec-osf[5-9]*)
2362 alpha
*-*-linux-gnu* )
2363 machine
=alpha opsys
=gnu-linux
2367 machine
=arm opsys
=gnu-linux
2372 machine
=altos opsys
=usg5-2
2377 machine
=amdahl opsys
=usg5-2-2
2380 ## Apollo, Domain/OS
2382 machine
=apollo opsys
=bsd4-3
2385 ## Apple Darwin / Mac OS X
2387 case "${canonical}" in
2388 i
[3456]86-* ) machine
=intel386
;;
2389 powerpc-
* ) machine
=powermac
;;
2393 # Define CPP as follows to make autoconf work correctly.
2394 CPP
="${CC-cc} -E -no-cpp-precomp"
2395 # Use fink packages if available.
2396 if test -d /sw
/include
&& test -d /sw
/lib
; then
2397 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2398 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2399 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2403 ## AT&T 3b2, 3b5, 3b15, 3b20
2405 machine
=att3b opsys
=usg5-2-2
2408 ## AT&T 3b1 - The Mighty Unix PC!
2410 machine
=7300 opsys
=usg5-2-2
2415 machine
=ibmrs6000 opsys
=aix3-2
2420 machine
=dpx2 opsys
=usg5-3
2425 machine
=sps7 opsys
=usg5-2
2428 ## CCI 5/32, 6/32 -- see "Tahoe".
2431 ## I don't know what configuration name to use for this; config.sub
2432 ## doesn't seem to know anything about it. Hey, Celerity users, get
2433 ## in touch with us!
2434 celerity-celerity-bsd
* )
2435 machine
=celerity opsys
=bsd4-2
2439 ## What operating systems does this chip run that Emacs has been
2443 ## We'll use the catch-all code at the bottom to guess the
2444 ## operating system.
2448 mips-compaq-nonstopux
* )
2449 machine
=nonstopux opsys
=nonstopux
2453 *-convex-bsd* |
*-convex-convexos* )
2454 machine
=convex opsys
=bsd4-3
2455 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2456 NON_GNU_CPP
="cc -E -P"
2460 i
[3456]86-cubix-sysv* )
2461 machine
=intel386 opsys
=usg5-3
2465 cydra
*-cydrome-sysv* )
2466 machine
=cydra5 opsys
=usg5-3
2469 ## Data General AViiON Machines
2470 ## DG changed naming conventions with the release of 5.4.4.10, they
2471 ## dropped the initial 5.4 but left the intervening R. Because of the
2472 ## R this shouldn't conflict with older versions of the OS (which I
2473 ## think were named like dgux4.*). In addition, DG new AViiONs series
2474 ## uses either Motorola M88k or Intel Pentium CPUs.
2475 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2476 machine
=aviion opsys
=dgux4
2478 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2479 ## This name is dgux5-4-3 instead of dgux5-4r3
2480 ## to avoid a file name conflict on MSDOS.
2481 machine
=aviion opsys
=dgux5-4-3
2483 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2484 machine
=aviion opsys
=dgux5-4r2
2487 machine
=aviion opsys
=dgux
2490 ## Data General AViiON Intel (x86) Machines
2491 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2492 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2493 i
[345]86-dg-dguxR4* )
2494 machine
=aviion-intel opsys
=dgux4
2498 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2499 machine
=pmax opsys
=bsd4-2
2501 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2502 machine
=pmax opsys
=bsd4-3
2505 machine
=pmax opsys
=ultrix4-3
2508 machine
=pmax opsys
=osf1
2510 mips-dec-mach_bsd4.3
* )
2511 machine
=pmax opsys
=mach-bsd4-3
2514 ## Motorola Delta machines
2515 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2516 machine
=delta opsys
=usg5-3
2517 if test -z "`type gnucc | grep 'not found'`"
2519 if test -s /etc
/167config
2520 then CC
="gnucc -m68040"
2521 else CC
="gnucc -m68881"
2524 if test -z "`type gcc | grep 'not found'`"
2530 m88k-motorola-sysv4
* )
2531 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2532 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2533 # I hope there are not other 4.0 versions for this machine
2534 # which really need usg5-4 instead.
2535 machine
=delta88k opsys
=usg5-4-2
2537 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2538 machine
=delta88k opsys
=usg5-3
2543 machine
=dual opsys
=usg5-2
2545 m68
*-dual-uniplus* )
2546 machine
=dual opsys
=unipl5-2
2551 machine
=elxsi opsys
=usg5-2
2556 machine
=ns16000 opsys
=umax
2559 ## The GEC 63 - apparently, this port isn't really finished yet.
2560 # I'm sure we finished off the last of the machines, though. -- fx
2562 ## Gould Power Node and NP1
2564 machine
=gould opsys
=bsd4-2
2567 machine
=gould opsys
=bsd4-3
2570 machine
=gould-np1 opsys
=bsd4-3
2573 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2574 ## as far as Emacs is concerned).
2576 # Build needs to be different on 7.0 and later releases
2577 case "`uname -r`" in
2578 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2579 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2581 NON_GNU_CPP
="/lib/cpp"
2583 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2585 machine
=nh3000 opsys
=cxux
2587 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2588 powerpc-harris-powerunix
)
2589 machine
=nh6000 opsys
=powerunix
2590 NON_GNU_CPP
="cc -Xo -E -P"
2592 ## SR2001/SR2201 running HI-UX/MPP
2593 hppa1.1
-hitachi-hiuxmpp* )
2594 machine
=sr2k opsys
=hiuxmpp
2596 hppa1.1
-hitachi-hiuxwe2* )
2597 machine
=sr2k opsys
=hiuxwe2
2600 xps
*-honeywell-sysv* )
2601 machine
=xps100 opsys
=usg5-2
2604 ## HP 9000 series 200 or 300
2606 machine
=hp9000s300 opsys
=bsd4-3
2608 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2610 case "`uname -r`" in
2611 ## Someone's system reports A.B8.05 for this.
2612 ## I wonder what other possibilities there are.
2613 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2614 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2615 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2616 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2617 *) machine
=hp9000s300 opsys
=hpux
;;
2621 ## HP 9000 series 700 and 800, running HP/UX
2623 machine
=hp800 opsys
=hpux
2626 machine
=hp800 opsys
=hpux8
2628 hppa
*-hp-hpux9shr* )
2629 machine
=hp800 opsys
=hpux9shr
2632 machine
=hp800 opsys
=hpux9
2634 hppa
*-hp-hpux10.2
* )
2635 machine
=hp800 opsys
=hpux10-20
2638 machine
=hp800 opsys
=hpux10
2640 hppa
*-hp-hpux1[1-9]* )
2641 machine
=hp800 opsys
=hpux11
2642 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2645 hppa
*-*-linux-gnu* )
2646 machine
=hp800 opsys
=gnu-linux
2649 ## HP 9000 series 700 and 800, running HP/UX
2651 ## Cross-compilation? Nah!
2652 case "`uname -r`" in
2653 ## Someone's system reports A.B8.05 for this.
2654 ## I wonder what other possibilities there are.
2655 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2656 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2657 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2658 *) machine
=hp800 opsys
=hpux10
;;
2662 machine
=hp800 opsys
=nextstep
2667 machine
=orion opsys
=bsd4-2
2669 clipper-orion-bsd
* )
2670 machine
=orion105 opsys
=bsd4-2
2674 i
[3456]86-ibm-aix1.1
* )
2675 machine
=ibmps2-aix opsys
=usg5-2-2
2677 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2678 machine
=ibmps2-aix opsys
=usg5-3
2681 machine
=ibm370aix opsys
=usg5-3
2684 machine
=ibms390 opsys
=gnu-linux
2686 s390x-
*-linux-gnu* )
2687 machine
=ibms390x opsys
=gnu-linux
2689 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2690 machine
=ibmrs6000 opsys
=aix3-1
2692 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2693 machine
=ibmrs6000 opsys
=aix3-2-5
2695 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2696 machine
=ibmrs6000 opsys
=aix4-1
2698 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2699 machine
=ibmrs6000 opsys
=aix4-2
2701 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2702 machine
=ibmrs6000 opsys
=aix4-2
2704 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2705 machine
=ibmrs6000 opsys
=aix4-2
2707 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2708 machine
=ibmrs6000 opsys
=aix4
2710 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2711 machine
=ibmrs6000 opsys
=aix4-1
2713 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2714 machine
=ibmrs6000 opsys
=aix3-2
2717 machine
=ibmrt opsys
=bsd4-3
2720 machine
=ibmrt opsys
=bsd4-2
2723 machine
=ibmrt opsys
=bsd4-3
2726 machine
=ibmrt opsys
=bsd4-2
2729 machine
=ibmrt opsys
=bsd4-3
2732 machine
=ibmrt opsys
=bsd4-3
2735 machine
=ibmrt-aix opsys
=usg5-2-2
2738 ## Integrated Solutions `Optimum V'
2740 machine
=isi-ov opsys
=bsd4-2
2743 machine
=isi-ov opsys
=bsd4-3
2746 ## Intel 386 machines where we do care about the manufacturer
2747 i
[3456]86-intsys-sysv* )
2748 machine
=is386 opsys
=usg5-2-2
2752 i
[3456]86-prime-sysv* )
2753 machine
=i386 opsys
=usg5-3
2756 ## Sequent Symmetry running Dynix
2757 i
[3456]86-sequent-bsd* )
2758 machine
=symmetry opsys
=bsd4-3
2761 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2762 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2763 machine
=sequent-ptx opsys
=ptx4
2764 NON_GNU_CPP
=/lib
/cpp
2767 ## Sequent Symmetry running DYNIX/ptx
2768 ## Use the old cpp rather than the newer ANSI one.
2769 i
[3456]86-sequent-ptx* )
2770 machine
=sequent-ptx opsys
=ptx
2771 NON_GNU_CPP
="/lib/cpp"
2774 ## ncr machine running svr4.3.
2775 i
[3456]86-ncr-sysv4.3
)
2776 machine
=ncr386 opsys
=usg5-4-3
2779 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2780 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2781 i
[3456]86-ncr-sysv* )
2782 machine
=ncr386 opsys
=usg5-4-2
2785 ## Intel Paragon OSF/1
2787 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2792 machine
=i860 opsys
=usg5-4
2793 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2794 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2797 ## Macintosh PowerPC
2798 powerpc
*-*-linux-gnu* )
2799 machine
=macppc opsys
=gnu-linux
2802 ## Masscomp machines
2803 m68
*-masscomp-rtu* )
2804 machine
=masscomp opsys
=rtu
2807 ## Megatest machines
2808 m68
*-megatest-bsd* )
2809 machine
=mega68 opsys
=bsd4-2
2812 ## Workstations sold by MIPS
2813 ## This is not necessarily all workstations using the MIPS processor -
2814 ## Irises are produced by SGI, and DECstations by DEC.
2816 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2817 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2818 ## it gives for choosing between the alternatives seems to be "Use
2819 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2820 ## the BSD world." I'll assume that these are instructions for
2821 ## handling two odd situations, and that every other situation
2822 ## should use mips.h and usg5-2-2, they being listed first.
2825 ## Fall through to the general code at the bottom to decide on the OS.
2827 mips-mips-riscos4
* )
2828 machine
=mips4 opsys
=bsd4-3
2829 NON_GNU_CC
="cc -systype bsd43"
2830 NON_GNU_CPP
="cc -systype bsd43 -E"
2832 mips-mips-riscos5
* )
2833 machine
=mips4 opsys
=riscos5
2834 NON_GNU_CC
="cc -systype bsd43"
2835 NON_GNU_CPP
="cc -systype bsd43 -E"
2838 machine
=mips opsys
=bsd4-3
2841 machine
=mips opsys
=usg5-2-2
2845 m68
*-next-* | m68k-
*-nextstep* )
2846 machine
=m68k opsys
=nextstep
2849 ## The complete machine from National Semiconductor
2851 machine
=ns32000 opsys
=usg5-2
2855 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2856 machine
=tower32 opsys
=usg5-2-2
2858 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2859 machine
=tower32v3 opsys
=usg5-3
2864 machine
=ews4800 opsys
=ux4800
2867 ## Nixdorf Targon 31
2868 m68
*-nixdorf-sysv* )
2869 machine
=targon31 opsys
=usg5-2-2
2874 machine
=nu opsys
=usg5-2
2879 machine
=plexus opsys
=usg5-2
2883 ## I don't really have any idea what sort of processor the Pyramid has,
2884 ## so I'm assuming it is its own architecture.
2885 pyramid-pyramid-bsd
* )
2886 machine
=pyramid opsys
=bsd4-2
2890 ns32k-sequent-bsd4.2
* )
2891 machine
=sequent opsys
=bsd4-2
2893 ns32k-sequent-bsd4.3
* )
2894 machine
=sequent opsys
=bsd4-3
2898 mips-siemens-sysv
* | mips-sni-sysv
*)
2899 machine
=mips-siemens opsys
=usg5-4
2900 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2901 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2904 ## Silicon Graphics machines
2905 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2907 machine
=irist opsys
=iris3-5
2909 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2910 machine
=irist opsys
=iris3-6
2914 machine
=iris4d opsys
=irix3-3
2917 machine
=iris4d opsys
=irix4-0
2920 machine
=iris4d opsys
=irix6-5
2921 # Without defining _LANGUAGE_C, things get masked out in the headers
2922 # so that, for instance, grepping for `free' in stdlib.h fails and
2923 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2924 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2925 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2928 machine
=iris4d opsys
=irix6-0
2929 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2930 # but presumably it does no harm.
2931 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2932 # -32 probably isn't necessary in later v.6s -- anyone know which?
2933 NON_GCC_TEST_OPTIONS
=-32
2935 mips-sgi-irix5.
[01]* )
2936 machine
=iris4d opsys
=irix5-0
2938 mips-sgi-irix5
* | mips-sgi-irix
* )
2939 machine
=iris4d opsys
=irix5-2
2944 machine
=news opsys
=bsd4-2
2947 machine
=news opsys
=bsd4-3
2949 m68
*-sony-newsos3* | m68
*-sony-news3*)
2950 machine
=news opsys
=bsd4-3
2952 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2953 machine
=news-risc opsys
=bsd4-3
2955 mips-sony-newsos6
* )
2956 machine
=news-r6 opsys
=newsos6
2959 machine
=news-risc opsys
=newsos5
2964 machine
=stride opsys
=usg5-2
2968 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2969 machine
=sparc opsys
=gnu-linux
2972 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2973 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2974 | rs6000-
*-solaris2*)
2975 case "${canonical}" in
2976 m68
*-sunos1* ) machine
=sun1
;;
2977 m68
*-sunos2* ) machine
=sun2
;;
2978 m68
* ) machine
=sun3
;;
2979 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2980 i
[3456]86-*-* ) machine
=intel386
;;
2981 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2982 powerpcle
* ) machine
=powerpcle
;;
2983 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2984 sparc
* ) machine
=sparc
;;
2987 case "${canonical}" in
2988 ## The Sun386 didn't get past 4.0.
2989 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2990 *-sunos4.0
* ) opsys
=sunos4-0
;;
2991 *-sunos4.1.
[3-9]*noshare
)
2992 ## This name is sunos413 instead of sunos4-1-3
2993 ## to avoid a file name conflict on MSDOS.
2995 NON_GNU_CPP
=/usr
/lib
/cpp
2996 NON_GCC_TEST_OPTIONS
=-Bstatic
2997 GCC_TEST_OPTIONS
=-static
2999 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3001 NON_GNU_CPP
=/usr
/lib
/cpp
3003 *-sunos4* |
*-sunos )
3005 NON_GCC_TEST_OPTIONS
=-Bstatic
3006 GCC_TEST_OPTIONS
=-static
3008 *-sunos5.3
* |
*-solaris2.3
* )
3010 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3012 *-sunos5.4
* |
*-solaris2.4
* )
3014 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3017 *-sunos5.5
* |
*-solaris2.5
* )
3019 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3022 *-sunos5.6
* |
*-solaris2.6
* )
3024 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3027 *-sunos5* |
*-solaris* )
3029 ## FIXME: make this into a proper fix that checks the compiler type,
3030 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3031 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3032 ## -Xs prevents spurious whitespace.
3033 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3035 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3040 ## Watch out for a compiler that we know will not work.
3041 case "${canonical}" in
3042 *-solaris* |
*-sunos5* )
3043 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3044 ## /usr/ucb/cc doesn't work;
3045 ## we should find some other compiler that does work.
3053 machine
=sparc opsys
=nextstep
3057 m68
*-tadpole-sysv* )
3058 machine
=tad68k opsys
=usg5-3
3062 tahoe-tahoe-bsd4.2
* )
3063 machine
=tahoe opsys
=bsd4-2
3065 tahoe-tahoe-bsd4.3
* )
3066 machine
=tahoe opsys
=bsd4-3
3069 ## Tandem Integrity S2
3071 machine
=tandem-s2 opsys
=usg5-3
3075 m88k-tektronix-sysv3
* )
3076 machine
=tekxd88 opsys
=usg5-3
3079 ## Tektronix 16000 box (6130?)
3080 ns16k-tektronix-bsd
* )
3081 machine
=ns16000 opsys
=bsd4-2
3084 ## src/m/tek4300.h hints that this is a m68k machine.
3085 m68
*-tektronix-bsd* )
3086 machine
=tek4300 opsys
=bsd4-3
3090 ## We seem to have lost the machine-description file titan.h!
3092 machine
=titan opsys
=usg5-3
3095 ## Ustation E30 (SS5E)
3096 m68
*-unisys-uniplus* )
3097 machine
=ustation opsystem
=unipl5-2
3103 case "${canonical}" in
3104 *-bsd4.1
* ) opsys
=bsd4-1
;;
3105 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3106 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3107 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3108 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3109 *-vms* ) opsys
=vms
;;
3115 ns16k-whitechapel-
* )
3117 ## We don't know what sort of OS runs on these; we'll let the
3118 ## operating system guessing code below try.
3123 machine
=wicat opsys
=usg5-2
3128 machine
=ia64 opsys
=gnu-linux
3131 ## Intel 386 machines where we don't care about the manufacturer
3134 case "${canonical}" in
3135 *-cygwin ) opsys
=cygwin
;;
3136 *-darwin* ) opsys
=darwin
3137 CPP
="${CC-cc} -E -no-cpp-precomp"
3139 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3140 *-isc2.2
* ) opsys
=isc2-2
;;
3141 *-isc4.0
* ) opsys
=isc4-0
;;
3142 *-isc4.
* ) opsys
=isc4-1
3143 GCC_TEST_OPTIONS
=-posix
3144 NON_GCC_TEST_OPTIONS
=-Xp
3146 *-isc* ) opsys
=isc3-0
;;
3147 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3148 *-esix* ) opsys
=esix
;;
3149 *-xenix* ) opsys
=xenix
;;
3150 *-linux-gnu* ) opsys
=gnu-linux
;;
3151 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3152 *-sco3.2v5
* ) opsys
=sco5
3153 NON_GNU_CPP
=/lib
/cpp
3154 # Prevent -belf from being passed to $CPP.
3155 # /lib/cpp does not accept it.
3156 OVERRIDE_CPPFLAGS
=" "
3158 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3159 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3160 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3161 *-386bsd* ) opsys
=386bsd
;;
3162 *-nextstep* ) opsys
=nextstep
;;
3163 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3167 ## m68k Linux-based GNU system
3169 machine
=m68k opsys
=gnu-linux
3172 ## Mips Linux-based GNU system
3173 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3174 machine
=mips opsys
=gnu-linux
3178 sparc-fujitsu-sysv4
* )
3179 machine
=sparc opsys
=uxpds
3180 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3185 f301-fujitsu-uxpv4.1
)
3186 machine
=f301 opsys
=uxpv
3189 ## AMD x86-64 Linux-based GNU system
3190 x86_64-
*-linux-gnu* )
3191 machine
=amdx86-64 opsys
=gnu-linux
3194 ## Tensilica Xtensa Linux-based GNU system
3195 xtensa-
*-linux-gnu* )
3196 machine
=xtensa opsys
=gnu-linux
3204 ### If the code above didn't choose an operating system, just choose
3205 ### an operating system based on the configuration name. You really
3206 ### only want to use this when you have no idea what the right
3207 ### operating system is; if you know what operating systems a machine
3208 ### runs, it's cleaner to make it explicit in the case statement
3210 if test x
"${opsys}" = x
; then
3211 case "${canonical}" in
3212 *-gnu* ) opsys
=gnu
;;
3213 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3214 *-bsd4.2
) opsys
=bsd4-2
;;
3215 *-bsd4.3
) opsys
=bsd4-3
;;
3216 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3217 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3218 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3219 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3220 *-sysv4.2uw
* ) opsys
=unixware
;;
3221 *-sysv5uw* ) opsys
=unixware
;;
3222 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3223 *-sysv4.1
* |
*-sysvr4.1
* )
3224 NON_GNU_CPP
=/usr
/lib
/cpp
3226 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3227 if [ x
$NON_GNU_CPP = x
]; then
3228 if [ -f /usr
/ccs
/lib
/cpp
]; then
3229 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3231 NON_GNU_CPP
=/lib
/cpp
3235 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3244 if test $unported = yes; then
3245 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&5
3247 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3248 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3249 { (exit 1); exit 1; }; }
3252 machfile
="m/${machine}.h"
3253 opsysfile
="s/${opsys}.h"
3256 #### Choose a compiler.
3257 test -n "$CC" && cc_specified
=yes
3259 # Save the value of CFLAGS that the user specified.
3260 SPECIFIED_CFLAGS
="$CFLAGS"
3263 "yes" ) CC
="gcc" GCC
=yes ;;
3264 "no" ) : ${CC=cc} ;;
3268 ac_cpp
='$CPP $CPPFLAGS'
3269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC
="$CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CC"; then
3302 { echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3311 if test -z "$ac_cv_prog_CC"; then
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc
; ac_word
=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CC
="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6; }
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3349 if test "x$ac_ct_CC" = x
; then
3352 case $cross_compiling:$ac_tool_warned in
3354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&5
3357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3358 whose name does not start with the host triplet. If you think this
3359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3360 ac_tool_warned
=yes ;;
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc
; ac_word
=$2
3412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC
="$CC" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected
=yes
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy
$ac_cv_prog_CC
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3449 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3455 if test -n "$CC"; then
3456 { echo "$as_me:$LINENO: result: $CC" >&5
3457 echo "${ECHO_T}$CC" >&6; }
3459 { echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6; }
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog
in cl.exe
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3506 test -n "$CC" && break
3509 if test -z "$CC"; then
3511 for ac_prog
in cl.exe
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy
$ac_prog; ac_word
=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC
="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543 echo "${ECHO_T}$ac_ct_CC" >&6; }
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3550 test -n "$ac_ct_CC" && break
3553 if test "x$ac_ct_CC" = x
; then
3556 case $cross_compiling:$ac_tool_warned in
3558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&5
3561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3564 ac_tool_warned
=yes ;;
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO: checking for C compiler version" >&5
3581 ac_compiler
=`set X $ac_compile; echo $2`
3582 { (ac_try
="$ac_compiler --version >&5"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler --version >&5") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (ac_try="$ac_compiler -v >&5"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler -v >&5") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try
="$ac_compiler -V >&5"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -V >&5") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3633 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3635 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3637 # List of possible output files, starting from the most likely.
3638 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3639 # only as a last resort. b.out is created by i960 compilers.
3640 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3642 # The IRIX 6 linker writes into existing files which may not be
3643 # executable, retaining their permissions. Remove them first so a
3644 # subsequent execution test works.
3646 for ac_file in $ac_files
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 if { (ac_try="$ac_link_default"
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_link_default") 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file
in $ac_files ''
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3683 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3701 { echo "$as_me:$LINENO: result: $ac_file" >&5
3702 echo "${ECHO_T}$ac_file" >&6; }
3703 if test -z "$ac_file"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: C compiler cannot create executables
3710 See \`config.log' for more details." >&2;}
3711 { (exit 77); exit 77; }; }
3714 ac_exeext
=$ac_cv_exeext
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3721 # If not cross compiling, check that we can run a simple program.
3722 if test "$cross_compiling" != yes; then
3723 if { ac_try
='./$ac_file'
3724 { (case "(($ac_try" in
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 if test "$cross_compiling" = maybe; then
3738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details.
" >&5
3741 echo "$as_me: error
: cannot run C compiled programs.
3742 If you meant to cross compile
, use \
`--host'.
3743 See \`config.log
' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3757 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3758 echo "${ECHO_T}$cross_compiling" >&6; }
3760 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3762 if { (ac_try="$ac_link"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; then
3772 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3776 for ac_file
in conftest.exe conftest conftest.
*; do
3777 test -f "$ac_file" ||
continue
3779 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3780 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&5
3788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }
3793 rm -f conftest
$ac_cv_exeext
3794 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3795 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3797 rm -f conftest.
$ac_ext
3798 EXEEXT
=$ac_cv_exeext
3800 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3802 if test "${ac_cv_objext+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.
$ac_ext <<_ACEOF
3808 cat confdefs.h
>>conftest.
$ac_ext
3809 cat >>conftest.
$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3820 rm -f conftest.o conftest.obj
3821 if { (ac_try
="$ac_compile"
3823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log
' for more details." >&5
3845 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details.
" >&2;}
3847 { (exit 1); exit 1; }; }
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3853 echo "${ECHO_T}$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3858 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3859 echo $ECHO_N "(cached
) $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was
:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3908 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3910 GCC=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3914 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then
3916 echo $ECHO_N "(cached
) $ECHO_C" >&6
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 echo "$as_me: failed program was
:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3984 grep -v '^ *+' conftest.er1 >conftest.err
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3994 echo "$as_me: failed program was
:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4033 echo "$as_me: failed program was
:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4049 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4059 if test "$GCC" = yes; then
4065 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4066 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then
4068 echo $ECHO_N "(cached
) $ECHO_C" >&6
4070 ac_cv_prog_cc_c89=no
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4096 s = g (p, va_arg (v,int));
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 CC="$ac_save_CC $ac_arg"
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_prog_cc_c89=$ac_arg
4152 echo "$as_me: failed program was
:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4161 rm -f conftest.$ac_ext
4166 case "x
$ac_cv_prog_cc_c89" in
4168 { echo "$as_me:$LINENO: result
: none needed
" >&5
4169 echo "${ECHO_T}none needed
" >&6; } ;;
4171 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4172 echo "${ECHO_T}unsupported
" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4192 #### Some systems specify a CPP to use unless we are using GCC.
4193 #### Now that we know whether we are using GCC, we can decide whether
4194 #### to use that one.
4195 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4200 #### Some systems specify a CC to use unless we are using GCC.
4201 #### Now that we know whether we are using GCC, we can decide whether
4202 #### to use that one.
4203 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4204 test x$cc_specified != xyes
4209 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4211 CC="$CC $GCC_TEST_OPTIONS"
4214 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4216 CC="$CC $NON_GCC_TEST_OPTIONS"
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4226 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4227 # On Suns, sometimes $CPP names a directory.
4228 if test -n "$CPP" && test -d "$CPP"; then
4231 if test -z "$CPP"; then
4232 if test "${ac_cv_prog_CPP+set}" = set; then
4233 echo $ECHO_N "(cached
) $ECHO_C" >&6
4235 # Double quotes because CPP needs to be expanded
4236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error
" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4278 echo "$as_me: failed program was
:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 # Broken: fails on valid input.
4285 rm -f conftest.err conftest.$ac_ext
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4313 # Broken: success on invalid input.
4316 echo "$as_me: failed program was
:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 # Passes both tests.
4324 rm -f conftest.err conftest.$ac_ext
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4341 { echo "$as_me:$LINENO: result
: $CPP" >&5
4342 echo "${ECHO_T}$CPP" >&6; }
4344 for ac_c_preproc_warn_flag in '' yes
4346 # Use a header file that comes with gcc, so configuring glibc
4347 # with a fresh cross-compiler works.
4348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349 # <limits.h> exists even on freestanding compilers.
4350 # On the NeXT, cc -E runs the code through the compiler's parser,
4351 # not just through cpp. "Syntax error
" is here to catch this case.
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4359 # include <limits.h>
4361 # include <assert.h>
4365 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4383 echo "$as_me: failed program was
:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 # Broken: fails on valid input.
4390 rm -f conftest.err conftest.$ac_ext
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <ac_nonexistent.h>
4402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4414 (exit $ac_status); } >/dev/null && {
4415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4416 test ! -s conftest.err
4418 # Broken: success on invalid input.
4421 echo "$as_me: failed program was
:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 # Passes both tests.
4429 rm -f conftest.err conftest.$ac_ext
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then
4437 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4438 See \
`config.log' for more details." >&5
4439 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log
' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4447 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4452 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 # Extract the first word of "grep ggrep" to use in msg output
4457 if test -z "$GREP"; then
4458 set dummy grep ggrep; ac_prog_name=$2
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_path_GREP_found=false
4463 # Loop through the user's path and
test for each of PROGNAME-LIST
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4465 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_prog
in grep ggrep
; do
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474 # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4477 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4483 cat "conftest.in" "conftest.in" >"conftest.tmp"
4484 mv "conftest.tmp" "conftest.in"
4485 cp "conftest.in" "conftest.nl"
4486 echo 'GREP' >> "conftest.nl"
4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4488 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4489 ac_count
=`expr $ac_count + 1`
4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491 # Best one so far, save it but keep looking for a better one
4492 ac_cv_path_GREP
="$ac_path_GREP"
4493 ac_path_GREP_max
=$ac_count
4495 # 10*(2^10) chars as input seems more than enough
4496 test $ac_count -gt 10 && break
4498 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4502 $ac_path_GREP_found && break 3
4512 GREP
="$ac_cv_path_GREP"
4513 if test -z "$GREP"; then
4514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4515 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4516 { (exit 1); exit 1; }; }
4520 ac_cv_path_GREP
=$GREP
4525 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4526 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4527 GREP
="$ac_cv_path_GREP"
4530 { echo "$as_me:$LINENO: checking for egrep" >&5
4531 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4536 then ac_cv_path_EGREP
="$GREP -E"
4538 # Extract the first word of "egrep" to use in msg output
4539 if test -z "$EGREP"; then
4540 set dummy
egrep; ac_prog_name
=$2
4541 if test "${ac_cv_path_EGREP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_path_EGREP_found
=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4550 test -z "$as_dir" && as_dir
=.
4551 for ac_prog
in egrep; do
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4554 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556 # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4559 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4562 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 echo 'EGREP' >> "conftest.nl"
4569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4570 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4571 ac_count
=`expr $ac_count + 1`
4572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_EGREP
="$ac_path_EGREP"
4575 ac_path_EGREP_max
=$ac_count
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4580 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4584 $ac_path_EGREP_found && break 3
4594 EGREP
="$ac_cv_path_EGREP"
4595 if test -z "$EGREP"; then
4596 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4597 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4598 { (exit 1); exit 1; }; }
4602 ac_cv_path_EGREP
=$EGREP
4608 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4609 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4610 EGREP
="$ac_cv_path_EGREP"
4614 { echo "$as_me:$LINENO: checking for AIX" >&5
4615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "yes" >/dev
/null
2>&1; then
4629 { echo "$as_me:$LINENO: result: yes" >&5
4630 echo "${ECHO_T}yes" >&6; }
4631 cat >>confdefs.h
<<\_ACEOF
4632 #define _ALL_SOURCE 1
4636 { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4643 cat >>confdefs.h
<<\_ACEOF
4644 #define _GNU_SOURCE 1
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS
="$CFLAGS"
4653 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.
$ac_ext <<_ACEOF
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4669 rm -f conftest.
$ac_objext
4670 if { (ac_try
="$ac_compile"
4672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS="$SAVE_CFLAGS"
4704 #### Some other nice autoconf tests.
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4736 for ac_c_preproc_warn_flag in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4760 *) ac_try_echo
=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev
/null
&& {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.
$ac_ext >&5
4778 # Broken: fails on valid input.
4782 rm -f conftest.err conftest.
$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4821 rm -f conftest.err conftest.$ac_ext
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.
$ac_ext
4826 if $ac_preproc_ok; then
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4841 for ac_c_preproc_warn_flag
in '' yes
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 # include <limits.h>
4858 # include <assert.h>
4862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4902 *) ac_try_echo
=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev
/null
&& {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4915 # Broken: success on invalid input.
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.
$ac_ext >&5
4921 # Passes both tests.
4926 rm -f conftest.err conftest.
$ac_ext
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.
$ac_ext
4931 if $ac_preproc_ok; then
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4942 ac_cpp
='$CPP $CPPFLAGS'
4943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 # Account for people who put trailing slashes in PATH elements.
4973 .
/ | .
// |
/cC
/* | \
4974 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4975 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4981 for ac_prog
in ginstall scoinst
install; do
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4993 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL
=$ac_cv_path_install
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL
=$ac_install_sh
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5025 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5027 if test "x$RANLIB" = x
; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir
=.
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 RANLIB
=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB
=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib
; ac_word
=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir
=.
5084 for ac_exec_ext
in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5105 if test "x$ac_ct_RANLIB" = x
; then
5108 case $cross_compiling:$ac_tool_warned in
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned
=yes ;;
5118 RANLIB
=$ac_ct_RANLIB
5121 RANLIB
="$ac_cv_prog_RANLIB"
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info
; ac_word
=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 case $INSTALL_INFO in
5134 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info
; ac_word
=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 case $INSTALL_INFO in
5174 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 for as_dir
in /usr
/sbin
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info
; ac_word
=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 case $INSTALL_INFO in
5214 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir
=.
5222 for ac_exec_ext
in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5236 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy
gzip; ac_word
=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir
=.
5263 for ac_exec_ext
in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5288 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5290 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5293 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5295 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5299 late_LDFLAGS
=$LDFLAGS
5300 if test "$GCC" = yes; then
5301 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5303 LDFLAGS
="$LDFLAGS -znocombreloc"
5306 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5307 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 rm -f conftest.
$ac_objext conftest
$ac_exeext
5312 if { (ac_try
="$ac_link"
5314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest$ac_exeext &&
5328 $as_test_x conftest$ac_exeext; then
5329 { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 LDFLAGS=$late_LDFLAGS
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5341 conftest$ac_exeext conftest.$ac_ext
5343 #### Extract some information from the operating system and machine files.
5345 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5346 - which libraries the lib-src programs will want, and
5347 - whether the GNU malloc routines are usable..." >&5
5348 echo "$as_me: checking the machine- and system-dependent files to find out
5349 - which libraries the lib-src programs will want, and
5350 - whether the GNU malloc routines are usable..." >&6;}
5352 ### First figure out CFLAGS (which we use for running the compiler here)
5353 ### and REAL_CFLAGS (which we use for real compilation).
5354 ### The two are the same except on a few systems, where they are made
5355 ### different to work around various lossages. For example,
5356 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5357 ### as implying static linking.
5359 ### If the CFLAGS env var is specified, we use that value
5360 ### instead of the default.
5362 ### It's not important that this name contain the PID; you can't run
5363 ### two configures in the same directory and have anything work
5365 tempcname="conftest.c"
5368 #include "'${srcdir}'/src/'${opsysfile}'"
5369 #include "'${srcdir}'/src/'${machfile}'"
5370 #ifndef LIBS_MACHINE
5371 #define LIBS_MACHINE
5376 #ifndef C_SWITCH_SYSTEM
5377 #define C_SWITCH_SYSTEM
5379 #ifndef C_SWITCH_MACHINE
5380 #define C_SWITCH_MACHINE
5382 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5383 configure___ c_switch_system=C_SWITCH_SYSTEM
5384 configure___ c_switch_machine=C_SWITCH_MACHINE
5387 #define LIB_X11_LIB -lX11
5390 #ifndef LIBX11_MACHINE
5391 #define LIBX11_MACHINE
5394 #ifndef LIBX11_SYSTEM
5395 #define LIBX11_SYSTEM
5397 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5400 configure___ unexec=UNEXEC
5402 configure___ unexec=unexec.o
5405 #ifdef SYSTEM_MALLOC
5406 configure___ system_malloc=yes
5408 configure___ system_malloc=no
5411 #ifdef USE_MMAP_FOR_BUFFERS
5412 configure___ use_mmap_for_buffers=yes
5414 configure___ use_mmap_for_buffers=no
5417 #ifndef C_DEBUG_SWITCH
5418 #define C_DEBUG_SWITCH -g
5421 #ifndef C_OPTIMIZE_SWITCH
5423 #define C_OPTIMIZE_SWITCH -O2
5425 #define C_OPTIMIZE_SWITCH -O
5429 #ifndef C_WARNINGS_SWITCH
5430 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5433 #ifndef LD_SWITCH_MACHINE
5434 #define LD_SWITCH_MACHINE
5437 #ifndef LD_SWITCH_SYSTEM
5438 #define LD_SWITCH_SYSTEM
5441 #ifndef LD_SWITCH_X_SITE_AUX
5442 #define LD_SWITCH_X_SITE_AUX
5445 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5446 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5448 #ifdef THIS_IS_CONFIGURE
5450 /* Get the CFLAGS for tests in configure. */
5452 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5454 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5457 #else /* not THIS_IS_CONFIGURE */
5459 /* Get the CFLAGS for real compilation. */
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5463 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5466 #endif /* not THIS_IS_CONFIGURE */
5469 # The value of CPP is a quoted variable reference, so we need to do this
5470 # to get its actual value...
5471 CPP=`eval "echo $CPP"`
5472 eval `${CPP} -Isrc ${tempcname} \
5473 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5474 if test "x$SPECIFIED_CFLAGS" = x; then
5475 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5476 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5478 REAL_CFLAGS="$CFLAGS"
5482 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5484 ### Make sure subsequent tests use flags consistent with the build flags.
5486 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5487 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5494 # Check whether --enable-largefile was given.
5495 if test "${enable_largefile+set}" = set; then
5496 enableval=$enable_largefile;
5499 if test "$enable_largefile" != no; then
5501 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5502 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5503 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_cv_sys_largefile_CC=no
5507 if test "$GCC" != yes; then
5510 # IRIX 6.2 and later do not support large files by default,
5511 # so use the C compiler's -n32 option if that helps.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5539 *) ac_try_echo
=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1
>conftest.err
5546 cat conftest.err
>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.
$ac_objext; then
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.
$ac_ext >&5
5560 rm -f core conftest.err conftest.
$ac_objext
5562 rm -f conftest.
$ac_objext
5563 if { (ac_try
="$ac_compile"
5565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_cv_sys_largefile_CC=' -n32'; break
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5587 rm -f core conftest.err conftest.$ac_objext
5591 rm -f conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5595 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5596 if test "$ac_cv_sys_largefile_CC" != no; then
5597 CC=$CC$ac_cv_sys_largefile_CC
5600 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5601 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5602 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5633 *) ac_try_echo
=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1
>conftest.err
5640 cat conftest.err
>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.
$ac_objext; then
5646 ac_cv_sys_file_offset_bits
=no
; break
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.
$ac_ext >&5
5654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #define _FILE_OFFSET_BITS 64
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5679 rm -f conftest.
$ac_objext
5680 if { (ac_try
="$ac_compile"
5682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_file_offset_bits=64; break
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_sys_file_offset_bits=unknown
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5711 case $ac_cv_sys_file_offset_bits in #(
5714 cat >>confdefs.h <<_ACEOF
5715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5720 if test $ac_cv_sys_file_offset_bits = unknown; then
5721 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5722 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5723 if test "${ac_cv_sys_large_files+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5754 *) ac_try_echo
=$ac_try;;
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5759 grep -v '^ *+' conftest.er1
>conftest.err
5761 cat conftest.err
>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest.
$ac_objext; then
5767 ac_cv_sys_large_files
=no
; break
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.
$ac_ext >&5
5775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5776 cat >conftest.
$ac_ext <<_ACEOF
5779 cat confdefs.h
>>conftest.
$ac_ext
5780 cat >>conftest.
$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 rm -f conftest.
$ac_objext
5801 if { (ac_try
="$ac_compile"
5803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_sys_large_files=1; break
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_sys_large_files=unknown
5830 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5831 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5832 case $ac_cv_sys_large_files in #(
5835 cat >>confdefs.h <<_ACEOF
5836 #define _LARGE_FILES $ac_cv_sys_large_files
5846 ### The standard library on x86-64 GNU/Linux distributions can
5847 ### be located in either /usr/lib64 or /usr/lib.
5848 case "${canonical}" in
5849 x86_64-*-linux-gnu* )
5850 if test -d /usr/lib64; then
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_X86_64_LIB64_DIR 1
5862 if test "${with_sound}" != "no"; then
5863 # Sound support for GNU/Linux and the free BSDs.
5864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5866 if test "${ac_cv_header_stdc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5892 *) ac_try_echo
=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1
>conftest.err
5899 cat conftest.err
>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.
$ac_objext; then
5905 ac_cv_header_stdc
=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.
$ac_ext >&5
5910 ac_cv_header_stdc
=no
5913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.
$ac_ext <<_ACEOF
5920 cat confdefs.h
>>conftest.
$ac_ext
5921 cat >>conftest.
$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev
/null
2>&1; then
5930 ac_cv_header_stdc
=no
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev
/null
2>&1; then
5951 ac_cv_header_stdc
=no
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5993 rm -f conftest
$ac_exeext
5994 if { (ac_try
="$ac_link"
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6006 *) ac_try_echo
=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6020 ac_cv_header_stdc
=no
6022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6032 cat >>confdefs.h
<<\_ACEOF
6033 #define STDC_HEADERS 1
6038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6048 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6049 inttypes.h stdint.h unistd.h
6051 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6065 #include <$ac_header>
6067 rm -f conftest.
$ac_objext
6068 if { (ac_try
="$ac_compile"
6070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 eval "$as_ac_Header=yes"
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 eval "$as_ac_Header=no"
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_res=`eval echo '${'$as_ac_Header'}'`
6095 { echo "$as_me:$LINENO: result: $ac_res" >&5
6096 echo "${ECHO_T}$ac_res" >&6; }
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6110 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6112 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121 echo "${ECHO_T}$ac_res" >&6; }
6123 # Is the header compilable?
6124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 #include <$ac_header>
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6139 *) ac_try_echo
=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1
>conftest.err
6146 cat conftest.err
>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.
$ac_objext; then
6152 ac_header_compiler
=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 ac_header_compiler
=no
6160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6162 echo "${ECHO_T}$ac_header_compiler" >&6; }
6164 # Is the header present?
6165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6167 cat >conftest.
$ac_ext <<_ACEOF
6170 cat confdefs.h
>>conftest.
$ac_ext
6171 cat >>conftest.
$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <$ac_header>
6175 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null && {
6188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6191 ac_header_preproc=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_header_preproc=no
6199 rm -f conftest.err conftest.$ac_ext
6200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6201 echo "${ECHO_T}$ac_header_preproc" >&6; }
6203 # So? What about this header?
6204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6210 ac_header_preproc=yes
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 eval "$as_ac_Header=\$ac_header_preproc"
6235 ac_res=`eval echo '${'$as_ac_Header'}'`
6236 { echo "$as_me:$LINENO: result: $ac_res" >&5
6237 echo "${ECHO_T}$ac_res" >&6; }
6240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6249 # Emulation library used on NetBSD.
6250 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6251 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6252 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lossaudio $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6274 return _oss_ioctl ();
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6283 *) ac_try_echo
=$ac_try;;
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
6288 grep -v '^ *+' conftest.er1
>conftest.err
6290 cat conftest.err
>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest
$ac_exeext &&
6296 $as_test_x conftest
$ac_exeext; then
6297 ac_cv_lib_ossaudio__oss_ioctl
=yes
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6302 ac_cv_lib_ossaudio__oss_ioctl
=no
6305 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6306 conftest
$ac_exeext conftest.
$ac_ext
6307 LIBS
=$ac_check_lib_save_LIBS
6309 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6310 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6311 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6320 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6321 if test "X${with_pkg_config_prog}" != X
; then
6322 PKG_CONFIG
="${with_pkg_config_prog}"
6327 if test -z "$PKG_CONFIG"; then
6328 # Extract the first word of "pkg-config", so it can be a program name with args.
6329 set dummy pkg-config
; ac_word
=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir
=.
6345 for ac_exec_ext
in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6360 if test -n "$PKG_CONFIG"; then
6361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6371 if test "$PKG_CONFIG" = "no" ; then
6374 PKG_CONFIG_MIN_VERSION
=0.9.0
6375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6376 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6377 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6379 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6380 { echo "$as_me:$LINENO: result: yes" >&5
6381 echo "${ECHO_T}yes" >&6; }
6384 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6385 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6386 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6387 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6388 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6390 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6391 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6392 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6394 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6400 ## If we have a custom action on failure, don't print errors, but
6401 ## do set a variable so people can do so.
6402 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6414 if test $succeeded = yes; then
6420 if test $HAVE_ALSA = yes; then
6421 SAVE_CFLAGS
="$CFLAGS"
6422 SAVE_LDFLAGS
="$LDFLAGS"
6423 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6424 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <asoundlib.h>
6435 snd_lib_error_set_handler (0);
6440 rm -f conftest.
$ac_objext
6441 if { (ac_try
="$ac_compile"
6443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 emacs_alsa_normal=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 emacs_alsa_normal=no
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 if test "$emacs_alsa_normal" != yes; then
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <alsa/asoundlib.h>
6477 snd_lib_error_set_handler (0);
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6486 *) ac_try_echo
=$ac_try;;
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compile") 2>conftest.er1
6491 grep -v '^ *+' conftest.er1
>conftest.err
6493 cat conftest.err
>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && {
6496 test -z "$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 } && test -s conftest.
$ac_objext; then
6499 emacs_alsa_subdir
=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.
$ac_ext >&5
6504 emacs_alsa_subdir
=no
6507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6508 if test "$emacs_alsa_subdir" != yes; then
6509 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6510 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6511 { (exit 1); exit 1; }; }
6513 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6516 CFLAGS
="$SAVE_CFLAGS"
6517 LDFLAGS
="$SAVE_LDFLAGS"
6518 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6519 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6521 cat >>confdefs.h
<<\_ACEOF
6555 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6556 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6557 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6558 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_res
=`eval echo '${'$as_ac_Header'}'`
6569 { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6572 # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.
$ac_ext <<_ACEOF
6578 cat confdefs.h
>>conftest.
$ac_ext
6579 cat >>conftest.
$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6584 rm -f conftest.
$ac_objext
6585 if { (ac_try
="$ac_compile"
6587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_header_compiler=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_compiler=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <$ac_header>
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6627 *) ac_try_echo
=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1
>conftest.err
6634 cat conftest.err
>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev
/null
&& {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6640 ac_header_preproc
=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 ac_header_preproc
=no
6648 rm -f conftest.err conftest.
$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc
=yes
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 eval "$as_ac_Header=\$ac_header_preproc"
6684 ac_res
=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h
<<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6700 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6701 cat >conftest.
$ac_ext <<_ACEOF
6704 cat confdefs.h
>>conftest.
$ac_ext
6705 cat >>conftest.
$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <sys/personality.h>
6711 personality (PER_LINUX32)
6716 rm -f conftest.
$ac_objext
6717 if { (ac_try
="$ac_compile"
6719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 emacs_cv_personality_linux32=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 emacs_cv_personality_linux32=no
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6743 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6745 if test $emacs_cv_personality_linux32 = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_PERSONALITY_LINUX32 1
6754 for ac_header in term.h
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6773 *) ac_try_echo
=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1
>conftest.err
6780 cat conftest.err
>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev
/null
&& {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6786 eval "$as_ac_Header=yes"
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.
$ac_ext >&5
6791 eval "$as_ac_Header=no"
6794 rm -f conftest.err conftest.
$ac_ext
6796 ac_res
=`eval echo '${'$as_ac_Header'}'`
6797 { echo "$as_me:$LINENO: result: $ac_res" >&5
6798 echo "${ECHO_T}$ac_res" >&6; }
6799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800 cat >>confdefs.h
<<_ACEOF
6801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 cat >conftest.
$ac_ext <<_ACEOF
6816 cat confdefs.h
>>conftest.
$ac_ext
6817 cat >>conftest.
$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6832 rm -f conftest.
$ac_objext
6833 if { (ac_try
="$ac_compile"
6835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_header_stdc=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_header_stdc=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 if test $ac_cv_header_stdc = yes; then
6860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "memchr" >/dev/null 2>&1; then
6874 ac_cv_header_stdc=no
6880 if test $ac_cv_header_stdc = yes; then
6881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "free" >/dev/null 2>&1; then
6895 ac_cv_header_stdc=no
6901 if test $ac_cv_header_stdc = yes; then
6902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6903 if test "$cross_compiling" = yes; then
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 # define ISLOWER(c) \
6919 (('a' <= (c) && (c) <= 'i') \
6920 || ('j' <= (c) && (c) <= 'r') \
6921 || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930 for (i = 0; i < 256; i++)
6931 if (XOR (islower (i), ISLOWER (i))
6932 || toupper (i) != TOUPPER (i))
6937 rm -f conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6941 *) ac_try_echo
=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6948 { (case "(($ac_try" in
6949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_try") 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_header_stdc=no
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6974 if test $ac_cv_header_stdc = yes; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define STDC_HEADERS 1
6982 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_time+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/time.h>
7000 if ((struct tm *) 0)
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7010 *) ac_try_echo
=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.
$ac_objext; then
7023 ac_cv_header_time
=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_header_time
=no
7031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7034 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7035 if test $ac_cv_header_time = yes; then
7037 cat >>confdefs.h
<<\_ACEOF
7038 #define TIME_WITH_SYS_TIME 1
7043 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7044 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7045 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cat >conftest.
$ac_ext <<_ACEOF
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7066 rm -f conftest.
$ac_objext
7067 if { (ac_try
="$ac_compile"
7069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_compile") 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest.$ac_objext; then
7083 ac_cv_have_decl_sys_siglist=yes
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ac_cv_have_decl_sys_siglist=no
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7094 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7095 if test $ac_cv_have_decl_sys_siglist = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL_SYS_SIGLIST 1
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 0
7111 if test $ac_cv_have_decl_sys_siglist != yes; then
7112 # For Tru64, at least:
7113 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7114 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7115 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7128 #ifndef __sys_siglist
7129 (void) __sys_siglist;
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7140 *) ac_try_echo
=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.
$ac_objext; then
7153 ac_cv_have_decl___sys_siglist
=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.
$ac_ext >&5
7158 ac_cv_have_decl___sys_siglist
=no
7161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7164 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7165 if test $ac_cv_have_decl___sys_siglist = yes; then
7167 cat >>confdefs.h
<<_ACEOF
7168 #define HAVE_DECL___SYS_SIGLIST 1
7173 cat >>confdefs.h
<<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 0
7181 if test $ac_cv_have_decl___sys_siglist = yes; then
7183 cat >>confdefs.h
<<\_ACEOF
7184 #define sys_siglist __sys_siglist
7189 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7190 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7191 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <sys/types.h>
7201 #include <sys/wait.h>
7203 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7206 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7214 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7219 rm -f conftest.
$ac_objext
7220 if { (ac_try
="$ac_compile"
7222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7228 grep -v '^ *+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_header_sys_wait_h=yes
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ac_cv_header_sys_wait_h=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7248 if test $ac_cv_header_sys_wait_h = yes; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SYS_WAIT_H 1
7257 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7258 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7259 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 #ifdef TIME_WITH_SYS_TIME
7269 #include <sys/time.h>
7272 #ifdef HAVE_SYS_TIME_H
7273 #include <sys/time.h>
7284 static struct utimbuf x; x.actime = x.modtime;
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7293 *) ac_try_echo
=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1
>conftest.err
7300 cat conftest.err
>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.
$ac_objext; then
7306 emacs_cv_struct_utimbuf
=yes
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.
$ac_ext >&5
7311 emacs_cv_struct_utimbuf
=no
7314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7318 if test $emacs_cv_struct_utimbuf = yes; then
7320 cat >>confdefs.h
<<\_ACEOF
7321 #define HAVE_STRUCT_UTIMBUF 1
7326 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7327 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7328 if test "${ac_cv_type_signal+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7343 return *(signal (0, 0)) (0) == 1;
7348 rm -f conftest.
$ac_objext
7349 if { (ac_try
="$ac_compile"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_type_signal=int
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_type_signal=void
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7376 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7378 cat >>confdefs.h <<_ACEOF
7379 #define RETSIGTYPE $ac_cv_type_signal
7384 { echo "$as_me:$LINENO: checking for speed_t" >&5
7385 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7386 if test "${emacs_cv_speed_t+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <termios.h>
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7408 *) ac_try_echo
=$ac_try;;
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7413 grep -v '^ *+' conftest.er1
>conftest.err
7415 cat conftest.err
>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.
$ac_objext; then
7421 emacs_cv_speed_t
=yes
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.
$ac_ext >&5
7429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7432 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7433 if test $emacs_cv_speed_t = yes; then
7435 cat >>confdefs.h
<<\_ACEOF
7436 #define HAVE_SPEED_T 1
7441 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7442 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7443 if test "${emacs_cv_struct_timeval+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 cat >conftest.
$ac_ext <<_ACEOF
7449 cat confdefs.h
>>conftest.
$ac_ext
7450 cat >>conftest.
$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #ifdef TIME_WITH_SYS_TIME
7453 #include <sys/time.h>
7456 #ifdef HAVE_SYS_TIME_H
7457 #include <sys/time.h>
7465 static struct timeval x; x.tv_sec = x.tv_usec;
7470 rm -f conftest.
$ac_objext
7471 if { (ac_try
="$ac_compile"
7473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 emacs_cv_struct_timeval=yes
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 emacs_cv_struct_timeval=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7499 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7500 if test $emacs_cv_struct_timeval = yes; then
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_TIMEVAL 1
7508 { echo "$as_me:$LINENO: checking for struct exception" >&5
7509 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7510 if test "${emacs_cv_struct_exception+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7523 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7532 *) ac_try_echo
=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1
>conftest.err
7539 cat conftest.err
>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.
$ac_objext; then
7545 emacs_cv_struct_exception
=yes
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.
$ac_ext >&5
7550 emacs_cv_struct_exception
=no
7553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7556 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7557 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7558 if test $emacs_cv_struct_exception != yes; then
7560 cat >>confdefs.h
<<\_ACEOF
7561 #define NO_MATHERR 1
7567 for ac_header
in sys
/socket.h
7569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_res
=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7580 # Is the header compilable?
7581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7583 cat >conftest.
$ac_ext <<_ACEOF
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7590 #include <$ac_header>
7592 rm -f conftest.
$ac_objext
7593 if { (ac_try
="$ac_compile"
7595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_header_compiler=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_header_compiler=no
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6; }
7621 # Is the header present?
7622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7624 cat >conftest.$ac_ext <<_ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 #include <$ac_header>
7632 if { (ac_try="$ac_cpp conftest.$ac_ext"
7634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7635 *) ac_try_echo
=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7640 grep -v '^ *+' conftest.er1
>conftest.err
7642 cat conftest.err
>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev
/null
&& {
7645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7648 ac_header_preproc
=yes
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7653 ac_header_preproc
=no
7656 rm -f conftest.err conftest.
$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7658 echo "${ECHO_T}$ac_header_preproc" >&6; }
7660 # So? What about this header?
7661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7667 ac_header_preproc
=yes
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 eval "$as_ac_Header=\$ac_header_preproc"
7692 ac_res
=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h
<<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7707 for ac_header
in net
/if.h
7709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.
$ac_ext <<_ACEOF
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 #if HAVE_SYS_SOCKET_H
7723 #include <sys/socket.h>
7726 #include <$ac_header>
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 eval "$as_ac_Header=yes"
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 eval "$as_ac_Header=no"
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 ac_res=`eval echo '${'$as_ac_Header'}'`
7756 { echo "$as_me:$LINENO: result: $ac_res" >&5
7757 echo "${ECHO_T}$ac_res" >&6; }
7758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7770 if test "${ac_cv_struct_tm+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7786 int *p = &tm.tm_sec;
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7796 *) ac_try_echo
=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1
>conftest.err
7803 cat conftest.err
>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.
$ac_objext; then
7809 ac_cv_struct_tm
=time.h
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.
$ac_ext >&5
7814 ac_cv_struct_tm
=sys
/time.h
7817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7820 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7821 if test $ac_cv_struct_tm = sys
/time.h
; then
7823 cat >>confdefs.h
<<\_ACEOF
7824 #define TM_IN_SYS_TIME 1
7829 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7830 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7831 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.
$ac_ext <<_ACEOF
7837 cat confdefs.h
>>conftest.
$ac_ext
7838 cat >>conftest.
$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #include <$ac_cv_struct_tm>
7847 static struct tm ac_aggr;
7848 if (ac_aggr.tm_zone)
7854 rm -f conftest.
$ac_objext
7855 if { (ac_try
="$ac_compile"
7857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 ac_cv_member_struct_tm_tm_zone=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 #include <sys/types.h>
7883 #include <$ac_cv_struct_tm>
7889 static struct tm ac_aggr;
7890 if (sizeof ac_aggr.tm_zone)
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7900 *) ac_try_echo
=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.
$ac_objext; then
7913 ac_cv_member_struct_tm_tm_zone
=yes
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 ac_cv_member_struct_tm_tm_zone
=no
7921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7926 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7928 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7930 cat >>confdefs.h
<<_ACEOF
7931 #define HAVE_STRUCT_TM_TM_ZONE 1
7937 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define HAVE_TM_ZONE 1
7944 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7945 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7946 if test "${ac_cv_have_decl_tzname+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.
$ac_ext <<_ACEOF
7952 cat confdefs.h
>>conftest.
$ac_ext
7953 cat >>conftest.
$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7968 rm -f conftest.
$ac_objext
7969 if { (ac_try
="$ac_compile"
7971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_have_decl_tzname=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_have_decl_tzname=no
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7996 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7997 if test $ac_cv_have_decl_tzname = yes; then
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DECL_TZNAME 1
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 0
8013 { echo "$as_me:$LINENO: checking for tzname" >&5
8014 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8015 if test "${ac_cv_var_tzname+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8032 return tzname[0][0];
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8041 *) ac_try_echo
=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1
>conftest.err
8048 cat conftest.err
>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest
$ac_exeext &&
8054 $as_test_x conftest
$ac_exeext; then
8055 ac_cv_var_tzname
=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8064 conftest
$ac_exeext conftest.
$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8067 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8068 if test $ac_cv_var_tzname = yes; then
8070 cat >>confdefs.h
<<\_ACEOF
8071 #define HAVE_TZNAME 1
8077 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8078 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8079 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.
$ac_ext <<_ACEOF
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8093 static struct tm ac_aggr;
8094 if (ac_aggr.tm_gmtoff)
8100 rm -f conftest.
$ac_objext
8101 if { (ac_try
="$ac_compile"
8103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_tm_tm_gmtoff=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8133 static struct tm ac_aggr;
8134 if (sizeof ac_aggr.tm_gmtoff)
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8144 *) ac_try_echo
=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1
>conftest.err
8151 cat conftest.err
>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.
$ac_objext; then
8157 ac_cv_member_struct_tm_tm_gmtoff
=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.
$ac_ext >&5
8162 ac_cv_member_struct_tm_tm_gmtoff
=no
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8171 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8172 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8174 cat >>confdefs.h
<<\_ACEOF
8175 #define HAVE_TM_GMTOFF 1
8180 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8181 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8182 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 cat >conftest.
$ac_ext <<_ACEOF
8188 cat confdefs.h
>>conftest.
$ac_ext
8189 cat >>conftest.
$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8202 static struct ifreq ac_aggr;
8203 if (ac_aggr.ifr_flags)
8209 rm -f conftest.
$ac_objext
8210 if { (ac_try
="$ac_compile"
8212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8226 ac_cv_member_struct_ifreq_ifr_flags=yes
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 #if HAVE_SYS_SOCKET_H
8239 #include <sys/socket.h>
8248 static struct ifreq ac_aggr;
8249 if (sizeof ac_aggr.ifr_flags)
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8259 *) ac_try_echo
=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.
$ac_objext; then
8272 ac_cv_member_struct_ifreq_ifr_flags
=yes
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.
$ac_ext >&5
8277 ac_cv_member_struct_ifreq_ifr_flags
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8286 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8287 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8289 cat >>confdefs.h
<<_ACEOF
8290 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8295 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8296 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8297 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.
$ac_ext <<_ACEOF
8303 cat confdefs.h
>>conftest.
$ac_ext
8304 cat >>conftest.
$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 #if HAVE_SYS_SOCKET_H
8308 #include <sys/socket.h>
8317 static struct ifreq ac_aggr;
8318 if (ac_aggr.ifr_hwaddr)
8324 rm -f conftest.
$ac_objext
8325 if { (ac_try
="$ac_compile"
8327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8353 #if HAVE_SYS_SOCKET_H
8354 #include <sys/socket.h>
8363 static struct ifreq ac_aggr;
8364 if (sizeof ac_aggr.ifr_hwaddr)
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8374 *) ac_try_echo
=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1
>conftest.err
8381 cat conftest.err
>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.
$ac_objext; then
8387 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8401 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8402 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8404 cat >>confdefs.h
<<_ACEOF
8405 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8410 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8411 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8412 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 cat >conftest.
$ac_ext <<_ACEOF
8418 cat confdefs.h
>>conftest.
$ac_ext
8419 cat >>conftest.
$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #if HAVE_SYS_SOCKET_H
8423 #include <sys/socket.h>
8432 static struct ifreq ac_aggr;
8433 if (ac_aggr.ifr_netmask)
8439 rm -f conftest.
$ac_objext
8440 if { (ac_try
="$ac_compile"
8442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8456 ac_cv_member_struct_ifreq_ifr_netmask=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #if HAVE_SYS_SOCKET_H
8469 #include <sys/socket.h>
8478 static struct ifreq ac_aggr;
8479 if (sizeof ac_aggr.ifr_netmask)
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8489 *) ac_try_echo
=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.
$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.
$ac_ext >&5
8507 ac_cv_member_struct_ifreq_ifr_netmask
=no
8510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8519 cat >>confdefs.h
<<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8525 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.
$ac_ext <<_ACEOF
8533 cat confdefs.h
>>conftest.
$ac_ext
8534 cat >>conftest.
$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8554 rm -f conftest.
$ac_objext
8555 if { (ac_try
="$ac_compile"
8557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #if HAVE_SYS_SOCKET_H
8584 #include <sys/socket.h>
8593 static struct ifreq ac_aggr;
8594 if (sizeof ac_aggr.ifr_broadaddr)
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8604 *) ac_try_echo
=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1
>conftest.err
8611 cat conftest.err
>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest.
$ac_objext; then
8617 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8622 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8631 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8632 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8634 cat >>confdefs.h
<<_ACEOF
8635 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8640 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8641 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8642 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.
$ac_ext <<_ACEOF
8648 cat confdefs.h
>>conftest.
$ac_ext
8649 cat >>conftest.
$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #if HAVE_SYS_SOCKET_H
8653 #include <sys/socket.h>
8662 static struct ifreq ac_aggr;
8663 if (ac_aggr.ifr_addr)
8669 rm -f conftest.
$ac_objext
8670 if { (ac_try
="$ac_compile"
8672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_cv_member_struct_ifreq_ifr_addr=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #if HAVE_SYS_SOCKET_H
8699 #include <sys/socket.h>
8708 static struct ifreq ac_aggr;
8709 if (sizeof ac_aggr.ifr_addr)
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8719 *) ac_try_echo
=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1
>conftest.err
8726 cat conftest.err
>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.
$ac_objext; then
8732 ac_cv_member_struct_ifreq_ifr_addr
=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8737 ac_cv_member_struct_ifreq_ifr_addr
=no
8740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8746 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8747 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8749 cat >>confdefs.h
<<_ACEOF
8750 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8758 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8759 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8760 if test "$ac_cv_prog_cc_c89" != no
; then
8761 { echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6; }
8764 cat >>confdefs.h
<<\_ACEOF
8765 #define PROTOTYPES 1
8769 cat >>confdefs.h
<<\_ACEOF
8770 #define __PROTOTYPES 1
8774 { echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6; }
8778 { echo "$as_me:$LINENO: checking for working volatile" >&5
8779 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_volatile+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.
$ac_ext <<_ACEOF
8786 cat confdefs.h
>>conftest.
$ac_ext
8787 cat >>conftest.
$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8795 int * volatile y = (int *) 0;
8801 rm -f conftest.
$ac_objext
8802 if { (ac_try
="$ac_compile"
8804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1 >conftest.err
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.$ac_objext; then
8818 ac_cv_c_volatile=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8829 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8830 if test $ac_cv_c_volatile = no; then
8832 cat >>confdefs.h <<\_ACEOF
8838 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8840 if test "${ac_cv_c_const+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8853 /* FIXME: Include the comments suggested by Paul. */
8855 /* Ultrix mips cc rejects this. */
8856 typedef int charset[2];
8858 /* SunOS 4.1.1 cc rejects this. */
8859 char const *const *pcpcc;
8861 /* NEC SVR4.0.2 mips cc rejects this. */
8862 struct point {int x, y;};
8863 static struct point const zero = {0,0};
8864 /* AIX XL C 1.02.0.0 rejects this.
8865 It does not let you subtract one const X* pointer from another in
8866 an arm of an if-expression whose if-part is not a constant
8868 const char *g = "string";
8869 pcpcc = &g + (g ? g-g : 0);
8870 /* HPUX 7.0 cc rejects these. */
8872 ppc = (char**) pcpcc;
8873 pcpcc = (char const *const *) ppc;
8874 { /* SCO 3.2v4 cc rejects this. */
8876 char const *s = 0 ? (char *) 0 : (char const *) 0;
8881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8883 const int *foo = &x[0];
8886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8887 typedef const int *iptr;
8891 { /* AIX XL C 1.02.0.0 rejects this saying
8892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8893 struct s { int j; const int *ap[3]; };
8894 struct s *b; b->j = 5;
8896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8900 return !cs[0] && !zero.x;
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8911 *) ac_try_echo
=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1
>conftest.err
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.
$ac_objext; then
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8934 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8935 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8936 if test $ac_cv_c_const = no
; then
8938 cat >>confdefs.h
<<\_ACEOF
8944 { echo "$as_me:$LINENO: checking for void * support" >&5
8945 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8946 if test "${emacs_cv_void_star+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.
$ac_ext <<_ACEOF
8952 cat confdefs.h
>>conftest.
$ac_ext
8953 cat >>conftest.
$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8964 rm -f conftest.
$ac_objext
8965 if { (ac_try
="$ac_compile"
8967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8981 emacs_cv_void_star=yes
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 emacs_cv_void_star=no
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8992 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8993 if test $emacs_cv_void_star = yes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define POINTER_TYPE void
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE char
9009 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9011 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.make <<\_ACEOF
9018 @echo '@@@%%%=$(MAKE)=@@@%%%'
9020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9021 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9023 eval ac_cv_prog_make_${ac_make}_set=yes;;
9025 eval ac_cv_prog_make_${ac_make}_set=no;;
9029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9034 { echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6; }
9036 SET_MAKE="MAKE=${MAKE-make}"
9040 { echo "$as_me:$LINENO: checking for long file names" >&5
9041 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9042 if test "${ac_cv_sys_long_file_names+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 ac_cv_sys_long_file_names=yes
9046 # Test for long file names in all the places we know might matter:
9047 # . the current directory, where building will happen
9048 # $prefix/lib where we will be installing things
9049 # $exec_prefix/lib likewise
9050 # $TMPDIR if set, where it might want to write temporary files
9051 # /tmp where it might want to write temporary files
9054 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9055 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9056 # in the usual case where exec_prefix is '${prefix}'.
9058 . | /* | ?:[\\/]*) ;; #(
9061 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9062 ac_xdir=$ac_dir/cf$$
9063 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9064 ac_tf1=$ac_xdir/conftest9012345
9065 ac_tf2=$ac_xdir/conftest9012346
9066 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9067 ac_cv_sys_long_file_names=no
9068 rm -f -r "$ac_xdir" 2>/dev/null
9069 test $ac_cv_sys_long_file_names = no && break
9072 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9073 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9074 if test $ac_cv_sys_long_file_names = yes; then
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_LONG_FILE_NAMES 1
9083 #### Choose a window system.
9085 { echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9099 case $x_includes,$x_libraries in #(
9100 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9101 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9102 { (exit 1); exit 1; }; };; #(
9103 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9108 rm -f -r conftest.dir
9109 if mkdir conftest.dir; then
9111 cat >Imakefile <<'_ACEOF'
9113 @echo incroot='${INCROOT}'
9115 @echo usrlibdir='${USRLIBDIR}'
9117 @echo libdir='${LIBDIR}'
9119 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9121 for ac_var in incroot usrlibdir libdir; do
9122 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9125 for ac_extension in a so sl; do
9126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9128 ac_im_usrlibdir=$ac_im_libdir; break
9131 # Screen out bogus values from the imake configuration. They are
9132 # bogus both because they are the default anyway, and because
9133 # using them would break gcc on systems where it needs fixed includes.
9134 case $ac_im_incroot in
9135 /usr/include) ac_x_includes= ;;
9136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9138 case $ac_im_usrlibdir in
9140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9144 rm -f -r conftest.dir
9147 # Standard set of common directories for X headers.
9148 # Check X11 before X11Rn because it is often a symlink to the current release.
9160 /usr/local/X11/include
9161 /usr/local/X11R6/include
9162 /usr/local/X11R5/include
9163 /usr/local/X11R4/include
9165 /usr/local/include/X11
9166 /usr/local/include/X11R6
9167 /usr/local/include/X11R5
9168 /usr/local/include/X11R4
9172 /usr/XFree86/include/X11
9176 /usr/unsupported/include
9178 /usr/local/x11r5/include
9179 /usr/lpp/Xamples/include
9181 /usr/openwin/include
9182 /usr/openwin/share/include'
9184 if test "$ac_x_includes" = no; then
9185 # Guess where to find include files, by looking for Xlib.h.
9186 # First, try using that file with no special directory specified.
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9195 if { (ac_try="$ac_cpp conftest.$ac_ext"
9197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9198 *) ac_try_echo
=$ac_try;;
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1
>conftest.err
9205 cat conftest.err
>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev
/null
&& {
9208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9211 # We can compile using X headers with no special include directory.
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9217 for ac_dir
in $ac_x_header_dirs; do
9218 if test -r "$ac_dir/X11/Xlib.h"; then
9219 ac_x_includes
=$ac_dir
9225 rm -f conftest.err conftest.
$ac_ext
9226 fi # $ac_x_includes = no
9228 if test "$ac_x_libraries" = no
; then
9229 # Check for the libraries.
9230 # See if we find them without any special options.
9231 # Don't add to $LIBS permanently.
9234 cat >conftest.
$ac_ext <<_ACEOF
9237 cat confdefs.h
>>conftest.
$ac_ext
9238 cat >>conftest.
$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <X11/Xlib.h>
9249 rm -f conftest.
$ac_objext conftest
$ac_exeext
9250 if { (ac_try
="$ac_link"
9252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9268 # We can link X programs with no special library path.
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9277 # Don't even attempt the hair of trying to link an X program!
9278 for ac_extension in a so sl; do
9279 if test -r "$ac_dir/libX11.$ac_extension"; then
9280 ac_x_libraries=$ac_dir
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 fi # $ac_x_libraries = no
9291 case $ac_x_includes,$ac_x_libraries in #(
9293 # Didn't find X, or a directory has "'" in its name.
9294 ac_cv_have_x="have_x=no";; #(
9296 # Record where we found X for the cache.
9297 ac_cv_have_x="have_x=yes\
9298 ac_x_includes='$ac_x_includes'\
9299 ac_x_libraries='$ac_x_libraries'"
9305 eval "$ac_cv_have_x"
9308 if test "$have_x" != yes; then
9309 { echo "$as_me:$LINENO: result: $have_x" >&5
9310 echo "${ECHO_T}$have_x" >&6; }
9313 # If each of the values was on the command line, it overrides each guess.
9314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9316 # Update the cache value to reflect the command line values.
9317 ac_cv_have_x="have_x=yes\
9318 ac_x_includes='$x_includes'\
9319 ac_x_libraries='$x_libraries'"
9320 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9321 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9324 if test "$no_x" = yes; then
9330 if test "${x_libraries}" != NONE; then
9331 if test -n "${x_libraries}"; then
9332 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9333 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9335 x_default_search_path=""
9336 x_search_path=${x_libraries}
9337 if test -z "${x_search_path}"; then
9338 x_search_path=/usr/lib
9340 for x_library in `echo ${x_search_path}: | \
9341 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9343 ${x_library}/X11/%L/%T/%N%C%S:\
9344 ${x_library}/X11/%l/%T/%N%C%S:\
9345 ${x_library}/X11/%T/%N%C%S:\
9346 ${x_library}/X11/%L/%T/%N%S:\
9347 ${x_library}/X11/%l/%T/%N%S:\
9348 ${x_library}/X11/%T/%N%S"
9349 if test x"${x_default_search_path}" = x; then
9350 x_default_search_path=${x_search_path}
9352 x_default_search_path="${x_search_path}:${x_default_search_path}"
9356 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9357 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9360 if test x"${x_includes}" = x; then
9361 bitmapdir=/usr/include/X11/bitmaps
9363 # accumulate include directories that have X11 bitmap subdirectories
9365 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9366 if test -d "${bmd}/X11/bitmaps"; then
9367 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9369 if test -d "${bmd}/bitmaps"; then
9370 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9373 if test ${bmd_acc} != "dummyval"; then
9374 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9379 if test "${with_carbon}" != no; then
9380 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9381 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9382 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9383 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9387 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9389 # Is the header compilable?
9390 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9391 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9392 cat >conftest.$ac_ext <<_ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 $ac_includes_default
9399 #include <Carbon/Carbon.h>
9401 rm -f conftest.$ac_objext
9402 if { (ac_try="$ac_compile"
9404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9405 *) ac_try_echo
=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_compile") 2>conftest.er1
9410 grep -v '^ *+' conftest.er1
>conftest.err
9412 cat conftest.err
>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest.
$ac_objext; then
9418 ac_header_compiler
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_header_compiler
=no
9426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6; }
9430 # Is the header present?
9431 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9432 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9433 cat >conftest.
$ac_ext <<_ACEOF
9436 cat confdefs.h
>>conftest.
$ac_ext
9437 cat >>conftest.
$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <Carbon/Carbon.h>
9441 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null && {
9454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9457 ac_header_preproc=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_preproc=no
9465 rm -f conftest.err conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6; }
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9494 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9501 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9502 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9505 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9511 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9512 if test "${with_carbon+set}" != set \
9513 && test "${carbon_appdir_x+set}" != set; then
9514 for var in with_x with_x_toolkit with_gtk with_xim \
9515 with_xpm with_jpeg with_tiff with_gif with_png; do
9516 if eval test \"\${$var+set}\" = set; then
9523 if test "${HAVE_CARBON}" = yes; then
9527 case "${window_system}" in
9531 case "${with_x_toolkit}" in
9532 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9533 motif ) USE_X_TOOLKIT=MOTIF ;;
9535 USE_X_TOOLKIT=none ;;
9536 no ) USE_X_TOOLKIT=none ;;
9537 * ) USE_X_TOOLKIT=maybe ;;
9547 ### If we're using X11, we should use the X menu package.
9550 yes ) HAVE_MENUS=yes ;;
9553 if test "${opsys}" = "hpux9"; then
9554 case "${x_libraries}" in
9556 opsysfile="s/hpux9-x11r4.h"
9561 if test "${opsys}" = "hpux9shr"; then
9562 case "${x_libraries}" in
9564 opsysfile="s/hpux9shxr4.h"
9569 ### Compute the unexec source name from the object name.
9570 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9572 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9573 # Assume not, until told otherwise.
9576 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9577 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_get_state innocuous_malloc_get_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_get_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9597 # include <limits.h>
9599 # include <assert.h>
9602 #undef malloc_get_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9610 char malloc_get_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9621 return malloc_get_state ();
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9630 *) ac_try_echo
=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1
>conftest.err
9637 cat conftest.err
>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest
$ac_exeext &&
9643 $as_test_x conftest
$ac_exeext; then
9644 ac_cv_func_malloc_get_state
=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.
$ac_ext >&5
9649 ac_cv_func_malloc_get_state
=no
9652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9653 conftest
$ac_exeext conftest.
$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9657 if test $ac_cv_func_malloc_get_state = yes; then
9663 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9664 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9665 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.
$ac_ext <<_ACEOF
9671 cat confdefs.h
>>conftest.
$ac_ext
9672 cat >>conftest.
$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9676 #define malloc_set_state innocuous_malloc_set_state
9678 /* System header to define __stub macros and hopefully few prototypes,
9679 which can conflict with char malloc_set_state (); below.
9680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 <limits.h> exists even on freestanding compilers. */
9684 # include <limits.h>
9686 # include <assert.h>
9689 #undef malloc_set_state
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9697 char malloc_set_state ();
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9708 return malloc_set_state ();
9713 rm -f conftest.
$ac_objext conftest
$ac_exeext
9714 if { (ac_try
="$ac_link"
9716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_func_malloc_set_state=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_cv_func_malloc_set_state=no
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9743 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9744 if test $ac_cv_func_malloc_set_state = yes; then
9750 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9751 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9752 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 extern void (* __after_morecore_hook)();
9765 __after_morecore_hook = 0
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9774 *) ac_try_echo
=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1
>conftest.err
9781 cat conftest.err
>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest
$ac_exeext &&
9787 $as_test_x conftest
$ac_exeext; then
9788 emacs_cv_var___after_morecore_hook
=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9793 emacs_cv_var___after_morecore_hook
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9797 conftest
$ac_exeext conftest.
$ac_ext
9799 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9800 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9801 if test $emacs_cv_var___after_morecore_hook = no
; then
9804 if test "${system_malloc}" = "yes"; then
9807 (The GNU allocators don't work with this system configuration.)"
9809 if test "$doug_lea_malloc" = "yes" ; then
9810 if test "$GNU_MALLOC" = yes ; then
9812 (Using Doug Lea's new malloc from the GNU C Library.)"
9815 cat >>confdefs.h
<<\_ACEOF
9816 #define DOUG_LEA_MALLOC 1
9821 if test x
"${REL_ALLOC}" = x
; then
9822 REL_ALLOC
=${GNU_MALLOC}
9828 for ac_header
in stdlib.h unistd.h
9830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9834 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_res
=`eval echo '${'$as_ac_Header'}'`
9838 { echo "$as_me:$LINENO: result: $ac_res" >&5
9839 echo "${ECHO_T}$ac_res" >&6; }
9841 # Is the header compilable?
9842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9844 cat >conftest.
$ac_ext <<_ACEOF
9847 cat confdefs.h
>>conftest.
$ac_ext
9848 cat >>conftest.
$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #include <$ac_header>
9853 rm -f conftest.
$ac_objext
9854 if { (ac_try
="$ac_compile"
9856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 ac_header_compiler=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_header_compiler=no
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <$ac_header>
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9896 *) ac_try_echo
=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1
>conftest.err
9903 cat conftest.err
>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev
/null
&& {
9906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9909 ac_header_preproc
=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 ac_header_preproc
=no
9917 rm -f conftest.err conftest.
$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919 echo "${ECHO_T}$ac_header_preproc" >&6; }
9921 # So? What about this header?
9922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928 ac_header_preproc
=yes
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9948 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 eval "$as_ac_Header=\$ac_header_preproc"
9953 ac_res
=`eval echo '${'$as_ac_Header'}'`
9954 { echo "$as_me:$LINENO: result: $ac_res" >&5
9955 echo "${ECHO_T}$ac_res" >&6; }
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h
<<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9968 for ac_func
in getpagesize
9970 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9973 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.
$ac_ext <<_ACEOF
9979 cat confdefs.h
>>conftest.
$ac_ext
9980 cat >>conftest.
$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define $ac_func innocuous_$ac_func
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char $ac_func (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9992 # include <limits.h>
9994 # include <assert.h>
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined __stub_$ac_func || defined __stub___$ac_func
10016 return $ac_func ();
10021 rm -f conftest.
$ac_objext conftest
$ac_exeext
10022 if { (ac_try
="$ac_link"
10023 case "(($ac_try" in
10024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest$ac_exeext &&
10038 $as_test_x conftest$ac_exeext; then
10039 eval "$as_ac_var=yes"
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 eval "$as_ac_var=no"
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10050 ac_res=`eval echo '${'$as_ac_var'}'`
10051 { echo "$as_me:$LINENO: result: $ac_res" >&5
10052 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10061 { echo "$as_me:$LINENO: checking for working mmap" >&5
10062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 if test "$cross_compiling" = yes; then
10067 ac_cv_func_mmap_fixed_mapped=no
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 /* malloc might have been renamed as rpl_malloc. */
10079 /* Thanks to Mike Haertel and Jim Avera for this test.
10080 Here is a matrix of mmap possibilities:
10081 mmap private not fixed
10082 mmap private fixed at somewhere currently unmapped
10083 mmap private fixed at somewhere already mapped
10084 mmap shared not fixed
10085 mmap shared fixed at somewhere currently unmapped
10086 mmap shared fixed at somewhere already mapped
10087 For private mappings, we should verify that changes cannot be read()
10088 back from the file, nor mmap's back from the file at a different
10089 address. (There have been systems where private was not correctly
10090 implemented like the infamous i386 svr4.0, and systems where the
10091 VM page cache was not coherent with the file system buffer cache
10092 like early versions of FreeBSD and possibly contemporary NetBSD.)
10093 For shared mappings, we should conversely verify that changes get
10094 propagated back to all the places they're supposed to be.
10096 Grep wants private fixed already mapped.
10097 The main things grep needs to know about mmap are:
10098 * does it exist and is it safe to write into the mmap'd area
10099 * how to use it (BSD variants) */
10102 #include <sys/mman.h>
10104 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10108 /* This mess was copied from the GNU getpagesize.h. */
10109 #ifndef HAVE_GETPAGESIZE
10110 /* Assume that all systems that can run configure have sys/param.h. */
10111 # ifndef HAVE_SYS_PARAM_H
10112 # define HAVE_SYS_PARAM_H 1
10115 # ifdef _SC_PAGESIZE
10116 # define getpagesize() sysconf(_SC_PAGESIZE)
10117 # else /* no _SC_PAGESIZE */
10118 # ifdef HAVE_SYS_PARAM_H
10119 # include <sys/param.h>
10120 # ifdef EXEC_PAGESIZE
10121 # define getpagesize() EXEC_PAGESIZE
10122 # else /* no EXEC_PAGESIZE */
10124 # define getpagesize() NBPG * CLSIZE
10127 # endif /* no CLSIZE */
10128 # else /* no NBPG */
10130 # define getpagesize() NBPC
10131 # else /* no NBPC */
10133 # define getpagesize() PAGESIZE
10134 # endif /* PAGESIZE */
10135 # endif /* no NBPC */
10136 # endif /* no NBPG */
10137 # endif /* no EXEC_PAGESIZE */
10138 # else /* no HAVE_SYS_PARAM_H */
10139 # define getpagesize() 8192 /* punt totally */
10140 # endif /* no HAVE_SYS_PARAM_H */
10141 # endif /* no _SC_PAGESIZE */
10143 #endif /* no HAVE_GETPAGESIZE */
10148 char *data, *data2, *data3;
10152 pagesize = getpagesize ();
10154 /* First, make a file with some known garbage in it. */
10155 data = (char *) malloc (pagesize);
10158 for (i = 0; i < pagesize; ++i)
10159 *(data + i) = rand ();
10161 fd = creat ("conftest.mmap", 0600);
10164 if (write (fd, data, pagesize) != pagesize)
10168 /* Next, try to mmap the file at a fixed address which already has
10169 something else allocated at it. If we can, also make sure that
10170 we see the same garbage. */
10171 fd = open ("conftest.mmap", O_RDWR);
10174 data2 = (char *) malloc (2 * pagesize);
10177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10181 for (i = 0; i < pagesize; ++i)
10182 if (*(data + i) != *(data2 + i))
10185 /* Finally, make sure that changes to the mapped area do not
10186 percolate back to the file as seen by read(). (This is a bug on
10187 some variants of i386 svr4.0.) */
10188 for (i = 0; i < pagesize; ++i)
10189 *(data2 + i) = *(data2 + i) + 1;
10190 data3 = (char *) malloc (pagesize);
10193 if (read (fd, data3, pagesize) != pagesize)
10195 for (i = 0; i < pagesize; ++i)
10196 if (*(data + i) != *(data3 + i))
10202 rm -f conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10206 *) ac_try_echo
=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_func_mmap_fixed_mapped=yes
10224 echo "$as_me: program exited with status $ac_status" >&5
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ( exit $ac_status )
10229 ac_cv_func_mmap_fixed_mapped=no
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_MMAP 1
10245 rm -f conftest.mmap
10247 if test $use_mmap_for_buffers = yes; then
10251 LIBS="$libsrc_libs $LIBS"
10254 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10255 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10256 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldnet $LIBS"
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10278 return dnet_ntoa ();
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10287 *) ac_try_echo
=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest
$ac_exeext &&
10300 $as_test_x conftest
$ac_exeext; then
10301 ac_cv_lib_dnet_dnet_ntoa
=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.
$ac_ext >&5
10306 ac_cv_lib_dnet_dnet_ntoa
=no
10309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10310 conftest
$ac_exeext conftest.
$ac_ext
10311 LIBS
=$ac_check_lib_save_LIBS
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10316 cat >>confdefs.h
<<_ACEOF
10317 #define HAVE_LIBDNET 1
10320 LIBS
="-ldnet $LIBS"
10325 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10326 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS
=$LIBS
10331 LIBS
="-lXbsd $LIBS"
10332 cat >conftest.
$ac_ext <<_ACEOF
10335 cat confdefs.h
>>conftest.
$ac_ext
10336 cat >>conftest.
$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10348 rm -f conftest.
$ac_objext conftest
$ac_exeext
10349 if { (ac_try
="$ac_link"
10350 case "(($ac_try" in
10351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_lib_Xbsd_main=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_lib_Xbsd_main=no
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10379 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10380 if test $ac_cv_lib_Xbsd_main = yes; then
10381 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10386 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10387 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthreads $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10410 return cma_open ();
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10419 *) ac_try_echo
=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1
>conftest.err
10426 cat conftest.err
>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest
$ac_exeext &&
10432 $as_test_x conftest
$ac_exeext; then
10433 ac_cv_lib_pthreads_cma_open
=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.
$ac_ext >&5
10438 ac_cv_lib_pthreads_cma_open
=no
10441 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10442 conftest
$ac_exeext conftest.
$ac_ext
10443 LIBS
=$ac_check_lib_save_LIBS
10445 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10446 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10447 if test $ac_cv_lib_pthreads_cma_open = yes; then
10448 cat >>confdefs.h
<<_ACEOF
10449 #define HAVE_LIBPTHREADS 1
10452 LIBS
="-lpthreads $LIBS"
10457 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10458 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10459 if test -d /usr
/X386
/include
; then
10461 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10465 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10466 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10471 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10472 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10473 if test "${gdb_cv_bigtoc+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10479 *) gdb_cv_bigtoc
=-bbigtoc ;;
10482 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10483 cat >conftest.
$ac_ext <<_ACEOF
10486 cat confdefs.h
>>conftest.
$ac_ext
10487 cat >>conftest.
$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10498 rm -f conftest.
$ac_objext conftest
$ac_exeext
10499 if { (ac_try
="$ac_link"
10500 case "(($ac_try" in
10501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext &&
10515 $as_test_x conftest$ac_exeext; then
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10525 conftest$ac_exeext conftest.$ac_ext
10528 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10529 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10533 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10534 # used for the tests that follow. We set them back to REAL_CFLAGS and
10535 # REAL_CPPFLAGS later on.
10537 REAL_CPPFLAGS="$CPPFLAGS"
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10543 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH
10549 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10550 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10551 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10555 if test "${opsys}" = "gnu-linux"; then
10556 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10557 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10568 XOpenDisplay ("foo");
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10577 *) ac_try_echo
=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1
>conftest.err
10584 cat conftest.err
>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest
$ac_exeext &&
10590 $as_test_x conftest
$ac_exeext; then
10591 xlinux_first_failure
=no
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 xlinux_first_failure
=yes
10599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10600 conftest
$ac_exeext conftest.
$ac_ext
10601 if test "${xlinux_first_failure}" = "yes"; then
10602 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10603 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10604 OLD_CPPFLAGS
="$CPPFLAGS"
10606 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10607 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10608 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10609 LIBS
="$LIBS -b i486-linuxaout"
10610 cat >conftest.
$ac_ext <<_ACEOF
10613 cat confdefs.h
>>conftest.
$ac_ext
10614 cat >>conftest.
$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10620 XOpenDisplay ("foo");
10625 rm -f conftest.
$ac_objext conftest
$ac_exeext
10626 if { (ac_try
="$ac_link"
10627 case "(($ac_try" in
10628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 xlinux_second_failure=no
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 xlinux_second_failure=yes
10651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653 if test "${xlinux_second_failure}" = "yes"; then
10654 # If we get the same failure with -b, there is no use adding -b.
10655 # So take it out. This plays safe.
10656 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10657 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10658 CPPFLAGS="$OLD_CPPFLAGS"
10660 { echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6; }
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664 echo "${ECHO_T}yes" >&6; }
10667 { echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6; }
10672 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10673 # header files included from there.
10674 { echo "$as_me:$LINENO: checking for Xkb" >&5
10675 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <X11/Xlib.h>
10683 #include <X11/XKBlib.h>
10687 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10696 *) ac_try_echo
=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1
>conftest.err
10703 cat conftest.err
>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest
$ac_exeext &&
10709 $as_test_x conftest
$ac_exeext; then
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10719 conftest
$ac_exeext conftest.
$ac_ext
10720 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10721 echo "${ECHO_T}$emacs_xkb" >&6; }
10722 if test $emacs_xkb = yes; then
10724 cat >>confdefs.h
<<\_ACEOF
10725 #define HAVE_XKBGETKEYBOARD 1
10734 for ac_func
in XrmSetDatabase XScreenResourceString \
10735 XScreenNumberOfScreen XSetWMProtocols
10737 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.
$ac_ext <<_ACEOF
10746 cat confdefs.h
>>conftest.
$ac_ext
10747 cat >>conftest.
$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10759 # include <limits.h>
10761 # include <assert.h>
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10783 return $ac_func ();
10788 rm -f conftest.
$ac_objext conftest
$ac_exeext
10789 if { (ac_try
="$ac_link"
10790 case "(($ac_try" in
10791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 eval "$as_ac_var=yes"
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 eval "$as_ac_var=no"
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10817 ac_res=`eval echo '${'$as_ac_var'}'`
10818 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10830 if test "${window_system}" = "x11"; then
10831 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10832 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10833 if test "${emacs_cv_x11_version_6+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <X11/Xlib.h>
10846 #if XlibSpecificationRelease < 6
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10858 *) ac_try_echo
=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest
$ac_exeext &&
10871 $as_test_x conftest
$ac_exeext; then
10872 emacs_cv_x11_version_6
=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.
$ac_ext >&5
10877 emacs_cv_x11_version_6
=no
10880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10881 conftest
$ac_exeext conftest.
$ac_ext
10884 if test $emacs_cv_x11_version_6 = yes; then
10885 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10886 echo "${ECHO_T}6 or newer" >&6; }
10888 cat >>confdefs.h
<<\_ACEOF
10889 #define HAVE_X11R6 1
10893 { echo "$as_me:$LINENO: result: before 6" >&5
10894 echo "${ECHO_T}before 6" >&6; }
10898 if test "${window_system}" = "x11"; then
10899 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10900 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10901 if test "${emacs_cv_x11_version_5+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 cat >conftest.
$ac_ext <<_ACEOF
10907 cat confdefs.h
>>conftest.
$ac_ext
10908 cat >>conftest.
$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xlib.h>
10914 #if XlibSpecificationRelease < 5
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext
10923 if { (ac_try
="$ac_link"
10924 case "(($ac_try" in
10925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_link") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext &&
10939 $as_test_x conftest$ac_exeext; then
10940 emacs_cv_x11_version_5=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 emacs_cv_x11_version_5=no
10948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949 conftest$ac_exeext conftest.$ac_ext
10952 if test $emacs_cv_x11_version_5 = yes; then
10953 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10954 echo "${ECHO_T}5 or newer" >&6; }
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_X11R5 1
10963 { echo "$as_me:$LINENO: result: before 5" >&5
10964 echo "${ECHO_T}before 5" >&6; }
10969 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10972 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10973 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10974 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10975 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10976 { (exit 1); exit 1; }; };
10980 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10982 if test "X${with_pkg_config_prog}" != X; then
10983 PKG_CONFIG="${with_pkg_config_prog}"
10988 if test -z "$PKG_CONFIG"; then
10989 # Extract the first word of "pkg-config", so it can be a program name with args.
10990 set dummy pkg-config; ac_word=$2
10991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 case $PKG_CONFIG in
10998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11021 if test -n "$PKG_CONFIG"; then
11022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11032 if test "$PKG_CONFIG" = "no" ; then
11033 { { echo "$as_me:$LINENO: error:
11034 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11035 echo "$as_me: error:
11036 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11037 { (exit 1); exit 1; }; }
11039 PKG_CONFIG_MIN_VERSION=0.9.0
11040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11041 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11042 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11044 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11045 { echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6; }
11049 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11050 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11051 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11052 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11053 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11055 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11056 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11057 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11059 echo "${ECHO_T}$GTK_LIBS" >&6; }
11061 { echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6; }
11065 ## If we have a custom action on failure, don't print errors, but
11066 ## do set a variable so people can do so.
11067 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11068 echo $GTK_PKG_ERRORS
11074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11079 if test $succeeded = yes; then
11082 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11083 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11084 { (exit 1); exit 1; }; }
11089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS="$CFLAGS $GTK_CFLAGS"
11091 LIBS="$GTK_LIBS $LIBS"
11094 for ac_func in gtk_main
11096 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110 #define $ac_func innocuous_$ac_func
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func (); below.
11114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115 <limits.h> exists even on freestanding compilers. */
11118 # include <limits.h>
11120 # include <assert.h>
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined __stub_$ac_func || defined __stub___$ac_func
11142 return $ac_func ();
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11151 *) ac_try_echo
=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_link") 2>conftest.er1
11156 grep -v '^ *+' conftest.er1
>conftest.err
11158 cat conftest.err
>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && {
11161 test -z "$ac_c_werror_flag" ||
11162 test ! -s conftest.err
11163 } && test -s conftest
$ac_exeext &&
11164 $as_test_x conftest
$ac_exeext; then
11165 eval "$as_ac_var=yes"
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.
$ac_ext >&5
11170 eval "$as_ac_var=no"
11173 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11174 conftest
$ac_exeext conftest.
$ac_ext
11176 ac_res
=`eval echo '${'$as_ac_var'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_var'}'` = yes; then
11180 cat >>confdefs.h
<<_ACEOF
11181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 if test "${GTK_COMPILES}" != "yes"; then
11188 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11189 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11190 { (exit 1); exit 1; }; };
11195 cat >>confdefs.h
<<\_ACEOF
11201 if test "$with_toolkit_scroll_bars" != no
; then
11202 with_toolkit_scroll_bars
=yes
11205 HAVE_GTK_MULTIDISPLAY
=no
11207 for ac_func
in gdk_display_open
11209 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.
$ac_ext <<_ACEOF
11218 cat confdefs.h
>>conftest.
$ac_ext
11219 cat >>conftest.
$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11231 # include <limits.h>
11233 # include <assert.h>
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 return $ac_func ();
11260 rm -f conftest.
$ac_objext conftest
$ac_exeext
11261 if { (ac_try
="$ac_link"
11262 case "(($ac_try" in
11263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11296 HAVE_GTK_MULTIDISPLAY=yes
11300 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_GTK_MULTIDISPLAY 1
11307 HAVE_GTK_FILE_SELECTION=no
11309 for ac_func in gtk_file_selection_new
11311 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11357 return $ac_func ();
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11366 *) ac_try_echo
=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest
$ac_exeext &&
11379 $as_test_x conftest
$ac_exeext; then
11380 eval "$as_ac_var=yes"
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.
$ac_ext >&5
11385 eval "$as_ac_var=no"
11388 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11389 conftest
$ac_exeext conftest.
$ac_ext
11391 ac_res
=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h
<<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398 HAVE_GTK_FILE_SELECTION
=yes
11403 HAVE_GTK_FILE_CHOOSER
=no
11405 for ac_func
in gtk_file_chooser_dialog_new
11407 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.
$ac_ext <<_ACEOF
11416 cat confdefs.h
>>conftest.
$ac_ext
11417 cat >>conftest.
$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11429 # include <limits.h>
11431 # include <assert.h>
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 return $ac_func ();
11458 rm -f conftest.
$ac_objext conftest
$ac_exeext
11459 if { (ac_try
="$ac_link"
11460 case "(($ac_try" in
11461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 eval "$as_ac_var=no"
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11494 HAVE_GTK_FILE_CHOOSER=yes
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11511 for ac_header in pthread.h
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11540 *) ac_try_echo
=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1
>conftest.err
11547 cat conftest.err
>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.
$ac_objext; then
11553 ac_header_compiler
=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.
$ac_ext >&5
11558 ac_header_compiler
=no
11561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.
$ac_ext <<_ACEOF
11571 cat confdefs.h
>>conftest.
$ac_ext
11572 cat >>conftest.
$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11592 ac_header_preproc=yes
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_preproc=no
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 eval "$as_ac_Header=\$ac_header_preproc"
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11652 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11671 char pthread_self ();
11675 return pthread_self ();
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11684 *) ac_try_echo
=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1
>conftest.err
11691 cat conftest.err
>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest
$ac_exeext &&
11697 $as_test_x conftest
$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self
=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.
$ac_ext >&5
11703 ac_cv_lib_pthread_pthread_self
=no
11706 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11707 conftest
$ac_exeext conftest.
$ac_ext
11708 LIBS
=$ac_check_lib_save_LIBS
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD
=yes
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 GTK_LIBS
="$GTK_LIBS -lpthread"
11720 cat >>confdefs.h
<<\_ACEOF
11721 #define HAVE_GTK_AND_PTHREAD 1
11728 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11729 if test x
"${HAVE_X11R5}" = xyes
; then
11730 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11731 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11732 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.
$ac_ext <<_ACEOF
11738 cat confdefs.h
>>conftest.
$ac_ext
11739 cat >>conftest.
$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 #include <X11/Intrinsic.h>
11743 #include <X11/Xaw/Simple.h>
11752 rm -f conftest.
$ac_objext conftest
$ac_exeext
11753 if { (ac_try
="$ac_link"
11754 case "(($ac_try" in
11755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_link") 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest$ac_exeext &&
11769 $as_test_x conftest$ac_exeext; then
11770 emacs_cv_x11_version_5_with_xaw=yes
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 emacs_cv_x11_version_5_with_xaw=no
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11782 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11783 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11784 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11785 USE_X_TOOLKIT=LUCID
11787 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11788 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11789 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11790 { (exit 1); exit 1; }; }
11792 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11793 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11802 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11804 if test "${USE_X_TOOLKIT}" != "none"; then
11805 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11806 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11807 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Intrinsic.h>
11820 #if XtSpecificationRelease < 6
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11832 *) ac_try_echo
=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1
>conftest.err
11839 cat conftest.err
>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest
$ac_exeext &&
11845 $as_test_x conftest
$ac_exeext; then
11846 emacs_cv_x11_toolkit_version_6
=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.
$ac_ext >&5
11851 emacs_cv_x11_toolkit_version_6
=no
11854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11855 conftest
$ac_exeext conftest.
$ac_ext
11858 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11859 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11861 echo "${ECHO_T}6 or newer" >&6; }
11863 cat >>confdefs.h
<<\_ACEOF
11864 #define HAVE_X11XTR6 1
11868 { echo "$as_me:$LINENO: result: before 6" >&5
11869 echo "${ECHO_T}before 6" >&6; }
11873 if test x
$HAVE_X11XTR6 = xyes
; then
11874 LIBS
="-lXt -lSM -lICE $LIBS"
11879 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11880 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11881 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11886 cat >conftest.
$ac_ext <<_ACEOF
11889 cat confdefs.h
>>conftest.
$ac_ext
11890 cat >>conftest.
$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11899 char XmuConvertStandardSelection ();
11903 return XmuConvertStandardSelection ();
11908 rm -f conftest.
$ac_objext conftest
$ac_exeext
11909 if { (ac_try
="$ac_link"
11910 case "(($ac_try" in
11911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11938 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11939 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11940 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_LIBXMU 1
11949 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11952 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11953 if test "${HAVE_X11}" = "yes"; then
11954 if test "${USE_X_TOOLKIT}" != "none"; then
11956 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11957 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11958 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lXext $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11976 char XShapeQueryExtension ();
11980 return XShapeQueryExtension ();
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11989 *) ac_try_echo
=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1
>conftest.err
11996 cat conftest.err
>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest
$ac_exeext &&
12002 $as_test_x conftest
$ac_exeext; then
12003 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.
$ac_ext >&5
12008 ac_cv_lib_Xext_XShapeQueryExtension
=no
12011 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12012 conftest
$ac_exeext conftest.
$ac_ext
12013 LIBS
=$ac_check_lib_save_LIBS
12015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12016 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12017 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12018 cat >>confdefs.h
<<_ACEOF
12019 #define HAVE_LIBXEXT 1
12022 LIBS
="-lXext $LIBS"
12029 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12030 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12031 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12032 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.
$ac_ext <<_ACEOF
12038 cat confdefs.h
>>conftest.
$ac_ext
12039 cat >>conftest.
$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12045 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12048 Motif version prior to 2.1.
12054 rm -f conftest.
$ac_objext
12055 if { (ac_try
="$ac_compile"
12056 case "(($ac_try" in
12057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 emacs_cv_motif_version_2_1=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 emacs_cv_motif_version_2_1=no
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12082 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12083 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12084 if test $emacs_cv_motif_version_2_1 = yes; then
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_MOTIF_2_1 1
12091 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12092 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_check_lib_save_LIBS=$LIBS
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12111 char XpCreateContext ();
12115 return XpCreateContext ();
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12124 *) ac_try_echo
=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1
>conftest.err
12131 cat conftest.err
>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest
$ac_exeext &&
12137 $as_test_x conftest
$ac_exeext; then
12138 ac_cv_lib_Xp_XpCreateContext
=yes
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.
$ac_ext >&5
12143 ac_cv_lib_Xp_XpCreateContext
=no
12146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12151 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12152 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12156 if test ${HAVE_LIBXP} = yes; then
12158 cat >>confdefs.h
<<\_ACEOF
12159 #define HAVE_LIBXP 1
12164 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12165 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12166 if test "${emacs_cv_lesstif+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 # We put this in CFLAGS temporarily to precede other -I options
12170 # that might be in CFLAGS temporarily.
12171 # We put this in CPPFLAGS where it precedes the other -I options.
12172 OLD_CPPFLAGS
=$CPPFLAGS
12174 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12175 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12176 cat >conftest.
$ac_ext <<_ACEOF
12179 cat confdefs.h
>>conftest.
$ac_ext
12180 cat >>conftest.
$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12191 rm -f conftest.
$ac_objext
12192 if { (ac_try
="$ac_compile"
12193 case "(($ac_try" in
12194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_compile") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest.$ac_objext; then
12208 emacs_cv_lesstif=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 emacs_cv_lesstif=no
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12219 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12220 if test $emacs_cv_lesstif = yes; then
12221 # Make sure this -I option remains in CPPFLAGS after it is set
12222 # back to REAL_CPPFLAGS.
12223 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12224 # have those other -I options anyway. Ultimately, having this
12225 # directory ultimately in CPPFLAGS will be enough.
12226 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12227 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12230 CPPFLAGS=$OLD_CPPFLAGS
12235 ### Is -lXaw3d available?
12237 if test "${HAVE_X11}" = "yes"; then
12238 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12239 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12240 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12241 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <X11/Xaw3d/Scrollbar.h>
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12255 *) ac_try_echo
=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1
>conftest.err
12262 cat conftest.err
>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev
/null
&& {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12268 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.
$ac_ext >&5
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12276 rm -f conftest.err conftest.
$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12281 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_check_lib_save_LIBS
=$LIBS
12287 LIBS
="-lXaw3d $LIBS"
12288 cat >conftest.
$ac_ext <<_ACEOF
12291 cat confdefs.h
>>conftest.
$ac_ext
12292 cat >>conftest.
$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12301 char XawScrollbarSetThumb ();
12305 return XawScrollbarSetThumb ();
12310 rm -f conftest.
$ac_objext conftest
$ac_exeext
12311 if { (ac_try
="$ac_link"
12312 case "(($ac_try" in
12313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest$ac_exeext &&
12327 $as_test_x conftest$ac_exeext; then
12328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12340 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12341 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12342 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12349 if test "${HAVE_XAW3D}" = "yes"; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_XAW3D 1
12361 USE_TOOLKIT_SCROLL_BARS=no
12362 if test "${with_toolkit_scroll_bars}" != "no"; then
12363 if test "${USE_X_TOOLKIT}" != "none"; then
12364 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define USE_TOOLKIT_SCROLL_BARS 1
12370 USE_TOOLKIT_SCROLL_BARS=yes
12371 elif test "${HAVE_XAW3D}" = "yes"; then
12372 cat >>confdefs.h <<\_ACEOF
12373 #define USE_TOOLKIT_SCROLL_BARS 1
12376 USE_TOOLKIT_SCROLL_BARS=yes
12378 elif test "${HAVE_GTK}" = "yes"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12383 USE_TOOLKIT_SCROLL_BARS=yes
12384 elif test "${HAVE_CARBON}" = "yes"; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define USE_TOOLKIT_SCROLL_BARS 1
12389 USE_TOOLKIT_SCROLL_BARS=yes
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 #include <X11/Xlib.h>
12401 #include <X11/Xresource.h>
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12414 *) ac_try_echo
=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1
>conftest.err
12421 cat conftest.err
>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.
$ac_objext; then
12429 cat >>confdefs.h
<<\_ACEOF
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.
$ac_ext >&5
12440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12443 if test "${with_xim}" != "no"; then
12445 cat >>confdefs.h
<<\_ACEOF
12452 if test "${HAVE_XIM}" != "no"; then
12453 late_CFLAGS
=$CFLAGS
12454 if test "$GCC" = yes; then
12455 CFLAGS
="$CFLAGS --pedantic-errors"
12457 cat >conftest.
$ac_ext <<_ACEOF
12460 cat confdefs.h
>>conftest.
$ac_ext
12461 cat >>conftest.
$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12464 #include <X11/Xlib.h>
12465 #include <X11/Xresource.h>
12474 XPointer *client_data;
12476 /* If we're not using GCC, it's probably not XFree86, and this is
12477 probably right, but we can't use something like --pedantic-errors. */
12478 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12479 char*, XIMProc, XPointer*);
12481 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12487 rm -f conftest.
$ac_objext
12488 if { (ac_try
="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 emacs_cv_arg6_star=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 if test "$emacs_cv_arg6_star" = yes; then
12515 cat >>confdefs.h <<\_ACEOF
12516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer
12525 CFLAGS=$late_CFLAGS
12528 ### For font-backend
12529 if test "${USE_FONT_BACKEND}" = "yes"; then
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_FONT_BACKEND 1
12537 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12539 if test "${HAVE_X11}" = "yes"; then
12540 if test "x${with_freetype}" = "xno"; then
12543 if test "x${with_xft}" != "xno"; then
12545 if test "X${with_pkg_config_prog}" != X
; then
12546 PKG_CONFIG
="${with_pkg_config_prog}"
12552 if test -z "$PKG_CONFIG"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config
; ac_word
=$2
12555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 case $PKG_CONFIG in
12562 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12566 for as_dir
in $PATH
12569 test -z "$as_dir" && as_dir
=.
12570 for ac_exec_ext
in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12584 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12589 { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12596 if test "$PKG_CONFIG" = "no" ; then
12599 PKG_CONFIG_MIN_VERSION
=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12639 if test $succeeded = yes; then
12645 if test "$HAVE_XFT" != no
; then
12646 OLD_CPPFLAGS
="$CPPFLAGS"
12647 OLD_CFLAGS
="$CFLAGS"
12649 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12651 LIBS
="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12673 rm -f conftest.
$ac_objext
12674 if { (ac_try
="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_header_compiler=no
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12716 *) ac_try_echo
=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12721 grep -v '^ *+' conftest.er1
>conftest.err
12723 cat conftest.err
>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev
/null
&& {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12729 ac_header_preproc
=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.
$ac_ext >&5
12734 ac_header_preproc
=no
12737 rm -f conftest.err conftest.
$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc
=yes
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_check_lib_save_LIBS
=$LIBS
12784 LIBS
="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.
$ac_ext <<_ACEOF
12788 cat confdefs.h
>>conftest.
$ac_ext
12789 cat >>conftest.
$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12798 char XftFontOpen ();
12802 return XftFontOpen ();
12807 rm -f conftest.
$ac_objext conftest
$ac_exeext
12808 if { (ac_try
="$ac_link"
12809 case "(($ac_try" in
12810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_lib_Xft_XftFontOpen=no
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12847 if test "${HAVE_XFT}" = "yes"; then
12849 cat >>confdefs.h <<\_ACEOF
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12856 CFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12865 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12866 if test "${HAVE_XFT}" = "yes"; then
12868 elif test "x${with_freetype}" != "xno"; then
12869 if test "X${with_pkg_config_prog}" != X; then
12870 PKG_CONFIG="${with_pkg_config_prog}"
12876 if test -z "$PKG_CONFIG"; then
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 case $PKG_CONFIG in
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12920 if test "$PKG_CONFIG" = "no" ; then
12923 PKG_CONFIG_MIN_VERSION=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { echo "$as_me:$LINENO: checking for freetype2" >&5
12926 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12928 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12933 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12934 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12935 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12936 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12937 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12939 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12940 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12941 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12943 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12945 { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12949 ## If we have a custom action on failure, don't print errors
, but
12950 ## do set a variable so people can do so.
12951 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12963 if test $succeeded = yes; then
12969 if test "${HAVE_FREETYPE}" = "yes"; then
12973 if test -z "$PKG_CONFIG"; then
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config
; ac_word
=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 case $PKG_CONFIG in
12983 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12987 for as_dir
in $PATH
12990 test -z "$as_dir" && as_dir
=.
12991 for ac_exec_ext
in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13005 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13017 if test "$PKG_CONFIG" = "no" ; then
13020 PKG_CONFIG_MIN_VERSION
=0.9.0
13021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13022 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13023 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13025 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13026 { echo "$as_me:$LINENO: result: yes" >&5
13027 echo "${ECHO_T}yes" >&6; }
13030 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13031 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13032 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13033 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13034 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13036 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13037 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13038 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13039 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13040 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13042 { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 FONTCONFIG_CFLAGS
=""
13046 ## If we have a custom action on failure, don't print errors, but
13047 ## do set a variable so people can do so.
13048 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13060 if test $succeeded = yes; then
13066 if test "${HAVE_FC}" = "no"; then
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13073 cat >>confdefs.h
<<\_ACEOF
13074 #define HAVE_FREETYPE 1
13077 # Extract the first word of "libotf-config", so it can be a program name with args.
13078 set dummy libotf-config
; ac_word
=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 if test -n "$HAVE_LIBOTF"; then
13085 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13088 for as_dir
in $PATH
13091 test -z "$as_dir" && as_dir
=.
13092 for ac_exec_ext
in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_HAVE_LIBOTF
="yes"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13105 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13106 if test -n "$HAVE_LIBOTF"; then
13107 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13108 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13110 { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13115 if test "${HAVE_LIBOTF}" = "yes"; then
13117 cat >>confdefs.h
<<\_ACEOF
13118 #define HAVE_LIBOTF 1
13121 LIBOTF_CFLAGS
=`libotf-config --cflags`
13122 LIBOTF_LIBS
=`libotf-config --libs`
13134 ### Use -lXpm if available, unless `--with-xpm=no'.
13136 if test "${HAVE_X11}" = "yes"; then
13137 if test "${with_xpm}" != "no"; then
13138 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13139 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13140 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13141 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13145 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13147 # Is the header compilable?
13148 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13149 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13150 cat >conftest.
$ac_ext <<_ACEOF
13153 cat confdefs.h
>>conftest.
$ac_ext
13154 cat >>conftest.
$ac_ext <<_ACEOF
13155 /* end confdefs.h. */
13156 $ac_includes_default
13157 #include <X11/xpm.h>
13159 rm -f conftest.
$ac_objext
13160 if { (ac_try
="$ac_compile"
13161 case "(($ac_try" in
13162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13168 grep -v '^ *+' conftest.er1 >conftest.err
13170 cat conftest.err >&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13176 ac_header_compiler=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_header_compiler=no
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13186 echo "${ECHO_T}$ac_header_compiler" >&6; }
13188 # Is the header present?
13189 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13190 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13191 cat >conftest.$ac_ext <<_ACEOF
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 #include <X11/xpm.h>
13199 if { (ac_try="$ac_cpp conftest.$ac_ext"
13200 case "(($ac_try" in
13201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13202 *) ac_try_echo
=$ac_try;;
13204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13205 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1
>conftest.err
13209 cat conftest.err
>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } >/dev
/null
&& {
13212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13215 ac_header_preproc
=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.
$ac_ext >&5
13220 ac_header_preproc
=no
13223 rm -f conftest.err conftest.
$ac_ext
13224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13225 echo "${ECHO_T}$ac_header_preproc" >&6; }
13227 # So? What about this header?
13228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13230 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13231 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13232 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13233 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13234 ac_header_preproc
=yes
13237 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13238 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13240 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13242 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13243 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13244 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13245 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13246 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13247 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13248 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13252 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13253 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13254 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13259 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13260 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13263 if test $ac_cv_header_X11_xpm_h = yes; then
13264 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13265 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13266 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13267 echo $ECHO_N "(cached) $ECHO_C" >&6
13269 ac_check_lib_save_LIBS
=$LIBS
13270 LIBS
="-lXpm -lX11 $LIBS"
13271 cat >conftest.
$ac_ext <<_ACEOF
13274 cat confdefs.h
>>conftest.
$ac_ext
13275 cat >>conftest.
$ac_ext <<_ACEOF
13276 /* end confdefs.h. */
13278 /* Override any GCC internal prototype to avoid an error.
13279 Use char because int might match the return type of a GCC
13280 builtin and then its argument prototype would still apply. */
13284 char XpmReadFileToPixmap ();
13288 return XpmReadFileToPixmap ();
13293 rm -f conftest.
$ac_objext conftest
$ac_exeext
13294 if { (ac_try
="$ac_link"
13295 case "(($ac_try" in
13296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13297 *) ac_try_echo=$ac_try;;
13299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13300 (eval "$ac_link") 2>conftest.er1
13302 grep -v '^ *+' conftest.er1 >conftest.err
13304 cat conftest.err >&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); } && {
13307 test -z "$ac_c_werror_flag" ||
13308 test ! -s conftest.err
13309 } && test -s conftest$ac_exeext &&
13310 $as_test_x conftest$ac_exeext; then
13311 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13313 echo "$as_me: failed program was:" >&5
13314 sed 's/^/| /' conftest.$ac_ext >&5
13316 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13320 conftest$ac_exeext conftest.$ac_ext
13321 LIBS=$ac_check_lib_save_LIBS
13323 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13324 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13325 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13332 if test "${HAVE_XPM}" = "yes"; then
13333 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13334 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13335 cat >conftest.$ac_ext <<_ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h. */
13341 #include "X11/xpm.h"
13342 #ifndef XpmReturnAllocPixels
13343 no_return_alloc_pixels
13347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13348 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13356 if test "${HAVE_XPM}" = "yes"; then
13357 { echo "$as_me:$LINENO: result: yes" >&5
13358 echo "${ECHO_T}yes" >&6; }
13360 { echo "$as_me:$LINENO: result: no" >&5
13361 echo "${ECHO_T}no" >&6; }
13366 if test "${HAVE_XPM}" = "yes"; then
13368 cat >>confdefs.h <<\_ACEOF
13375 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13377 if test "${HAVE_X11}" = "yes"; then
13378 if test "${with_jpeg}" != "no"; then
13379 if test "${ac_cv_header_jerror_h+set}" = set; then
13380 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13381 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13382 if test "${ac_cv_header_jerror_h+set}" = set; then
13383 echo $ECHO_N "(cached) $ECHO_C" >&6
13385 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13386 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13388 # Is the header compilable?
13389 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13390 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13397 $ac_includes_default
13398 #include <jerror.h>
13400 rm -f conftest.$ac_objext
13401 if { (ac_try="$ac_compile"
13402 case "(($ac_try" in
13403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13404 *) ac_try_echo=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13409 grep -v '^
*+' conftest.er1 >conftest.err
13411 cat conftest.err >&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } && {
13414 test -z "$ac_c_werror_flag" ||
13415 test ! -s conftest.err
13416 } && test -s conftest.$ac_objext; then
13417 ac_header_compiler=yes
13419 echo "$as_me: failed program was:" >&5
13420 sed 's
/^
/|
/' conftest.$ac_ext >&5
13422 ac_header_compiler=no
13425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13427 echo "${ECHO_T}$ac_header_compiler" >&6; }
13429 # Is the header present?
13430 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13431 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13438 #include <jerror.h>
13440 if { (ac_try="$ac_cpp conftest.$ac_ext"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13448 grep -v '^
*+' conftest.er1 >conftest.err
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } >/dev/null && {
13453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13454 test ! -s conftest.err
13456 ac_header_preproc=yes
13458 echo "$as_me: failed program was:" >&5
13459 sed 's
/^
/|
/' conftest.$ac_ext >&5
13461 ac_header_preproc=no
13464 rm -f conftest.err conftest.$ac_ext
13465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13466 echo "${ECHO_T}$ac_header_preproc" >&6; }
13468 # So? What about this header?
13469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13471 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13472 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13473 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13474 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13475 ac_header_preproc=yes
13478 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13479 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13481 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13482 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13483 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13484 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13485 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13486 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13487 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13488 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13489 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13493 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13494 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13495 if test "${ac_cv_header_jerror_h+set}" = set; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13498 ac_cv_header_jerror_h=$ac_header_preproc
13500 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13501 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13504 if test $ac_cv_header_jerror_h = yes; then
13505 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13506 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13507 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13508 echo $ECHO_N "(cached) $ECHO_C" >&6
13510 ac_check_lib_save_LIBS=$LIBS
13511 LIBS="-ljpeg $LIBS"
13512 cat >conftest.$ac_ext <<_ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h. */
13519 /* Override any GCC internal prototype to avoid an error.
13520 Use char because int might match the return type of a GCC
13521 builtin and then its argument prototype would still apply. */
13525 char jpeg_destroy_compress ();
13529 return jpeg_destroy_compress ();
13534 rm -f conftest.$ac_objext conftest$ac_exeext
13535 if { (ac_try="$ac_link"
13536 case "(($ac_try" in
13537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13538 *) ac_try_echo=$ac_try;;
13540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13541 (eval "$ac_link") 2>conftest.er1
13543 grep -v '^
*+' conftest.er1 >conftest.err
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } && {
13548 test -z "$ac_c_werror_flag" ||
13549 test ! -s conftest.err
13550 } && test -s conftest$ac_exeext &&
13551 $as_test_x conftest$ac_exeext; then
13552 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13554 echo "$as_me: failed program was:" >&5
13555 sed 's
/^
/|
/' conftest.$ac_ext >&5
13557 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13561 conftest$ac_exeext conftest.$ac_ext
13562 LIBS=$ac_check_lib_save_LIBS
13564 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13565 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13566 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13576 if test "${HAVE_JPEG}" = "yes"; then
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_JPEG 1
13581 cat >conftest.$ac_ext <<_ACEOF
13584 cat confdefs.h >>conftest.$ac_ext
13585 cat >>conftest.$ac_ext <<_ACEOF
13586 /* end confdefs.h. */
13587 #include <jpeglib.h>
13588 version=JPEG_LIB_VERSION
13591 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13592 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13593 cat >>confdefs.h <<\_ACEOF
13594 #define HAVE_JPEG 1
13598 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13599 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13607 ### Use -lpng if available, unless `--with-png=no'.
13609 if test "${HAVE_X11}" = "yes"; then
13610 if test "${with_png}" != "no"; then
13611 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13612 # in /usr/include/libpng.
13615 for ac_header
in png.h libpng
/png.h
13617 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13618 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_res
=`eval echo '${'$as_ac_Header'}'`
13625 { echo "$as_me:$LINENO: result: $ac_res" >&5
13626 echo "${ECHO_T}$ac_res" >&6; }
13628 # Is the header compilable?
13629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13631 cat >conftest.
$ac_ext <<_ACEOF
13634 cat confdefs.h
>>conftest.
$ac_ext
13635 cat >>conftest.
$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 $ac_includes_default
13638 #include <$ac_header>
13640 rm -f conftest.
$ac_objext
13641 if { (ac_try
="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13649 grep -v '^ *+' conftest.er1 >conftest.err
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest.$ac_objext; then
13657 ac_header_compiler=yes
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13662 ac_header_compiler=no
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13667 echo "${ECHO_T}$ac_header_compiler" >&6; }
13669 # Is the header present?
13670 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13671 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <$ac_header>
13680 if { (ac_try="$ac_cpp conftest.$ac_ext"
13681 case "(($ac_try" in
13682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13683 *) ac_try_echo
=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1
>conftest.err
13690 cat conftest.err
>&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev
/null
&& {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13696 ac_header_preproc
=yes
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.
$ac_ext >&5
13701 ac_header_preproc
=no
13704 rm -f conftest.err conftest.
$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 echo "${ECHO_T}$ac_header_preproc" >&6; }
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13712 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13714 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc
=yes
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13719 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13721 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13723 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13725 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13729 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
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 eval "$as_ac_Header=\$ac_header_preproc"
13740 ac_res
=`eval echo '${'$as_ac_Header'}'`
13741 { echo "$as_me:$LINENO: result: $ac_res" >&5
13742 echo "${ECHO_T}$ac_res" >&6; }
13745 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13746 cat >>confdefs.h
<<_ACEOF
13747 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13754 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13755 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13756 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13757 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 ac_check_lib_save_LIBS
=$LIBS
13761 LIBS
="-lpng -lz -lm $LIBS"
13762 cat >conftest.
$ac_ext <<_ACEOF
13765 cat confdefs.h
>>conftest.
$ac_ext
13766 cat >>conftest.
$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13769 /* Override any GCC internal prototype to avoid an error.
13770 Use char because int might match the return type of a GCC
13771 builtin and then its argument prototype would still apply. */
13775 char png_get_channels ();
13779 return png_get_channels ();
13784 rm -f conftest.
$ac_objext conftest
$ac_exeext
13785 if { (ac_try
="$ac_link"
13786 case "(($ac_try" in
13787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13788 *) ac_try_echo=$ac_try;;
13790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13791 (eval "$ac_link") 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } && {
13798 test -z "$ac_c_werror_flag" ||
13799 test ! -s conftest.err
13800 } && test -s conftest$ac_exeext &&
13801 $as_test_x conftest$ac_exeext; then
13802 ac_cv_lib_png_png_get_channels=yes
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13807 ac_cv_lib_png_png_get_channels=no
13810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13811 conftest$ac_exeext conftest.$ac_ext
13812 LIBS=$ac_check_lib_save_LIBS
13814 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13815 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13816 if test $ac_cv_lib_png_png_get_channels = yes; then
13823 if test "${HAVE_PNG}" = "yes"; then
13825 cat >>confdefs.h <<\_ACEOF
13832 ### Use -ltiff if available, unless `--with-tiff=no
'.
13834 if test "${HAVE_X11}" = "yes"; then
13835 if test "${with_tiff}" != "no"; then
13836 if test "${ac_cv_header_tiffio_h+set}" = set; then
13837 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13838 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13839 if test "${ac_cv_header_tiffio_h+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13843 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13845 # Is the header compilable?
13846 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13847 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 $ac_includes_default
13855 #include <tiffio.h>
13857 rm -f conftest.$ac_objext
13858 if { (ac_try="$ac_compile"
13859 case "(($ac_try" in
13860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13861 *) ac_try_echo=$ac_try;;
13863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13864 (eval "$ac_compile") 2>conftest.er1
13866 grep -v '^
*+' conftest.er1 >conftest.err
13868 cat conftest.err >&5
13869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870 (exit $ac_status); } && {
13871 test -z "$ac_c_werror_flag" ||
13872 test ! -s conftest.err
13873 } && test -s conftest.$ac_objext; then
13874 ac_header_compiler=yes
13876 echo "$as_me: failed program was:" >&5
13877 sed 's
/^
/|
/' conftest.$ac_ext >&5
13879 ac_header_compiler=no
13882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13884 echo "${ECHO_T}$ac_header_compiler" >&6; }
13886 # Is the header present?
13887 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13888 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13889 cat >conftest.$ac_ext <<_ACEOF
13892 cat confdefs.h >>conftest.$ac_ext
13893 cat >>conftest.$ac_ext <<_ACEOF
13894 /* end confdefs.h. */
13895 #include <tiffio.h>
13897 if { (ac_try="$ac_cpp conftest.$ac_ext"
13898 case "(($ac_try" in
13899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13900 *) ac_try_echo=$ac_try;;
13902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13905 grep -v '^
*+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } >/dev/null && {
13910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13911 test ! -s conftest.err
13913 ac_header_preproc=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's
/^
/|
/' conftest.$ac_ext >&5
13918 ac_header_preproc=no
13921 rm -f conftest.err conftest.$ac_ext
13922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13923 echo "${ECHO_T}$ac_header_preproc" >&6; }
13925 # So? What about this header?
13926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13928 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13929 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13930 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13931 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13932 ac_header_preproc=yes
13935 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13936 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13938 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13939 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13940 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13941 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13942 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13943 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13944 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13945 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13946 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13950 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13951 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13952 if test "${ac_cv_header_tiffio_h+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 ac_cv_header_tiffio_h=$ac_header_preproc
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13961 if test $ac_cv_header_tiffio_h = yes; then
13963 # At least one tiff package requires the jpeg library.
13964 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13965 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13966 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13967 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13968 echo $ECHO_N "(cached) $ECHO_C" >&6
13970 ac_check_lib_save_LIBS=$LIBS
13971 LIBS="-ltiff $tifflibs $LIBS"
13972 cat >conftest.$ac_ext <<_ACEOF
13975 cat confdefs.h >>conftest.$ac_ext
13976 cat >>conftest.$ac_ext <<_ACEOF
13977 /* end confdefs.h. */
13979 /* Override any GCC internal prototype to avoid an error.
13980 Use char because int might match the return type of a GCC
13981 builtin and then its argument prototype would still apply. */
13985 char TIFFGetVersion ();
13989 return TIFFGetVersion ();
13994 rm -f conftest.$ac_objext conftest$ac_exeext
13995 if { (ac_try="$ac_link"
13996 case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_link") 2>conftest.er1
14003 grep -v '^
*+' conftest.er1 >conftest.err
14005 cat conftest.err >&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); } && {
14008 test -z "$ac_c_werror_flag" ||
14009 test ! -s conftest.err
14010 } && test -s conftest$ac_exeext &&
14011 $as_test_x conftest$ac_exeext; then
14012 ac_cv_lib_tiff_TIFFGetVersion=yes
14014 echo "$as_me: failed program was:" >&5
14015 sed 's
/^
/|
/' conftest.$ac_ext >&5
14017 ac_cv_lib_tiff_TIFFGetVersion=no
14020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14021 conftest$ac_exeext conftest.$ac_ext
14022 LIBS=$ac_check_lib_save_LIBS
14024 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14025 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14026 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14035 if test "${HAVE_TIFF}" = "yes"; then
14037 cat >>confdefs.h <<\_ACEOF
14038 #define HAVE_TIFF 1
14044 ### Use -lgif if available, unless `--with-gif=no'.
14046 if test "${HAVE_X11}" = "yes"; then
14047 if test "${with_gif}" != "no"; then
14048 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14049 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14050 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14055 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14057 # Is the header compilable?
14058 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14059 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14060 cat >conftest.
$ac_ext <<_ACEOF
14063 cat confdefs.h
>>conftest.
$ac_ext
14064 cat >>conftest.
$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14067 #include <gif_lib.h>
14069 rm -f conftest.
$ac_objext
14070 if { (ac_try
="$ac_compile"
14071 case "(($ac_try" in
14072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
14086 ac_header_compiler=yes
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 ac_header_compiler=no
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14096 echo "${ECHO_T}$ac_header_compiler" >&6; }
14098 # Is the header present?
14099 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14100 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14101 cat >conftest.$ac_ext <<_ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 #include <gif_lib.h>
14109 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev
/null
&& {
14122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14125 ac_header_preproc
=yes
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.
$ac_ext >&5
14130 ac_header_preproc
=no
14133 rm -f conftest.err conftest.
$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14135 echo "${ECHO_T}$ac_header_preproc" >&6; }
14137 # So? What about this header?
14138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14140 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14141 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14143 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14144 ac_header_preproc
=yes
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14148 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14150 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14152 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14153 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14154 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14155 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14156 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14157 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14158 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
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 ac_cv_header_gif_lib_h
=$ac_header_preproc
14169 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14170 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14173 if test $ac_cv_header_gif_lib_h = yes; then
14174 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14175 # Earlier versions can crash Emacs.
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_check_lib_save_LIBS
=$LIBS
14182 LIBS
="-lungif $LIBS"
14183 cat >conftest.
$ac_ext <<_ACEOF
14186 cat confdefs.h
>>conftest.
$ac_ext
14187 cat >>conftest.
$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char EGifPutExtensionLast ();
14200 return EGifPutExtensionLast ();
14205 rm -f conftest.
$ac_objext conftest
$ac_exeext
14206 if { (ac_try
="$ac_link"
14207 case "(($ac_try" in
14208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest$ac_exeext &&
14222 $as_test_x conftest$ac_exeext; then
14223 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.$ac_ext >&5
14228 ac_cv_lib_ungif_EGifPutExtensionLast=no
14231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14232 conftest$ac_exeext conftest.$ac_ext
14233 LIBS=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14246 if test "${HAVE_GIF}" = "yes"; then
14248 cat >>confdefs.h <<\_ACEOF
14255 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14256 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14257 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14262 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14264 # Is the header compilable?
14265 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14266 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 $ac_includes_default
14274 #include <malloc/malloc.h>
14276 rm -f conftest.$ac_objext
14277 if { (ac_try="$ac_compile"
14278 case "(($ac_try" in
14279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14280 *) ac_try_echo
=$ac_try;;
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_compile") 2>conftest.er1
14285 grep -v '^ *+' conftest.er1
>conftest.err
14287 cat conftest.err
>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest.
$ac_objext; then
14293 ac_header_compiler
=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.
$ac_ext >&5
14298 ac_header_compiler
=no
14301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303 echo "${ECHO_T}$ac_header_compiler" >&6; }
14305 # Is the header present?
14306 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14307 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14308 cat >conftest.
$ac_ext <<_ACEOF
14311 cat confdefs.h
>>conftest.
$ac_ext
14312 cat >>conftest.
$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 #include <malloc/malloc.h>
14316 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14317 case "(($ac_try" in
14318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null && {
14329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14332 ac_header_preproc=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_header_preproc=no
14340 rm -f conftest.err conftest.$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14342 echo "${ECHO_T}$ac_header_preproc" >&6; }
14344 # So? What about this header?
14345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14347 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14348 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14350 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14351 ac_header_preproc=yes
14354 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14355 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14357 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14359 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14361 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14363 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14365 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14369 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14370 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14371 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14376 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14377 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14380 if test $ac_cv_header_malloc_malloc_h = yes; then
14382 cat >>confdefs.h <<\_ACEOF
14383 #define HAVE_MALLOC_MALLOC_H 1
14390 ### Use Mac OS X Carbon API to implement GUI.
14391 if test "${HAVE_CARBON}" = "yes"; then
14393 cat >>confdefs.h <<\_ACEOF
14394 #define HAVE_CARBON 1
14397 ## Specify the install directory
14399 if test "${carbon_appdir_x}" != ""; then
14400 case ${carbon_appdir_x} in
14401 y | ye | yes) carbon_appdir=/Applications ;;
14402 * ) carbon_appdir=${carbon_appdir_x} ;;
14405 # We also have mouse menus.
14409 ### Use session management (-lSM -lICE) if available
14411 if test "${HAVE_X11}" = "yes"; then
14412 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14413 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14414 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14419 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14421 # Is the header compilable?
14422 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14423 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 $ac_includes_default
14431 #include <X11/SM/SMlib.h>
14433 rm -f conftest.$ac_objext
14434 if { (ac_try="$ac_compile"
14435 case "(($ac_try" in
14436 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14437 *) ac_try_echo
=$ac_try;;
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440 (eval "$ac_compile") 2>conftest.er1
14442 grep -v '^ *+' conftest.er1
>conftest.err
14444 cat conftest.err
>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } && {
14447 test -z "$ac_c_werror_flag" ||
14448 test ! -s conftest.err
14449 } && test -s conftest.
$ac_objext; then
14450 ac_header_compiler
=yes
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.
$ac_ext >&5
14455 ac_header_compiler
=no
14458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14460 echo "${ECHO_T}$ac_header_compiler" >&6; }
14462 # Is the header present?
14463 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14464 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 #include <X11/SM/SMlib.h>
14473 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14474 case "(($ac_try" in
14475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } >/dev/null && {
14486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14489 ac_header_preproc=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_header_preproc=no
14497 rm -f conftest.err conftest.$ac_ext
14498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14499 echo "${ECHO_T}$ac_header_preproc" >&6; }
14501 # So? What about this header?
14502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14504 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14505 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14507 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14508 ac_header_preproc=yes
14511 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14512 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14514 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14516 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14517 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14518 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14520 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14521 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14522 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14526 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14527 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14528 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14533 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14534 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14537 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14538 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14539 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14540 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 ac_check_lib_save_LIBS=$LIBS
14544 LIBS="-lSM -lICE $LIBS"
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14558 char SmcOpenConnection ();
14562 return SmcOpenConnection ();
14567 rm -f conftest.$ac_objext conftest$ac_exeext
14568 if { (ac_try="$ac_link"
14569 case "(($ac_try" in
14570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14571 *) ac_try_echo
=$ac_try;;
14573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14574 (eval "$ac_link") 2>conftest.er1
14576 grep -v '^ *+' conftest.er1
>conftest.err
14578 cat conftest.err
>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } && {
14581 test -z "$ac_c_werror_flag" ||
14582 test ! -s conftest.err
14583 } && test -s conftest
$ac_exeext &&
14584 $as_test_x conftest
$ac_exeext; then
14585 ac_cv_lib_SM_SmcOpenConnection
=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.
$ac_ext >&5
14590 ac_cv_lib_SM_SmcOpenConnection
=no
14593 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14594 conftest
$ac_exeext conftest.
$ac_ext
14595 LIBS
=$ac_check_lib_save_LIBS
14597 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14598 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14599 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14607 if test "${HAVE_X_SM}" = "yes"; then
14609 cat >>confdefs.h
<<\_ACEOF
14610 #define HAVE_X_SM 1
14615 *) LIBS
="-lSM -lICE $LIBS" ;;
14620 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14621 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14622 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14623 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14624 echo $ECHO_N "(cached) $ECHO_C" >&6
14626 cat >conftest.
$ac_ext <<_ACEOF
14629 cat confdefs.h
>>conftest.
$ac_ext
14630 cat >>conftest.
$ac_ext <<_ACEOF
14631 /* end confdefs.h. */
14641 rm -f conftest.
$ac_objext conftest
$ac_exeext
14642 if { (ac_try
="$ac_link"
14643 case "(($ac_try" in
14644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14645 *) ac_try_echo=$ac_try;;
14647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14648 (eval "$ac_link") 2>conftest.er1
14650 grep -v '^ *+' conftest.er1 >conftest.err
14652 cat conftest.err >&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); } && {
14655 test -z "$ac_c_werror_flag" ||
14656 test ! -s conftest.err
14657 } && test -s conftest$ac_exeext &&
14658 $as_test_x conftest$ac_exeext; then
14659 emacs_cv_netdb_declares_h_errno=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 emacs_cv_netdb_declares_h_errno=no
14667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14668 conftest$ac_exeext conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14671 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14672 if test $emacs_cv_netdb_declares_h_errno = yes; then
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_H_ERRNO 1
14680 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14681 # for constant arguments. Useless!
14682 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14683 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14684 if test "${ac_cv_working_alloca_h+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 cat >conftest.$ac_ext <<_ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 #include <alloca.h>
14697 char *p = (char *) alloca (2 * sizeof (int));
14703 rm -f conftest.$ac_objext conftest$ac_exeext
14704 if { (ac_try="$ac_link"
14705 case "(($ac_try" in
14706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14707 *) ac_try_echo
=$ac_try;;
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14712 grep -v '^ *+' conftest.er1
>conftest.err
14714 cat conftest.err
>&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } && {
14717 test -z "$ac_c_werror_flag" ||
14718 test ! -s conftest.err
14719 } && test -s conftest
$ac_exeext &&
14720 $as_test_x conftest
$ac_exeext; then
14721 ac_cv_working_alloca_h
=yes
14723 echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.
$ac_ext >&5
14726 ac_cv_working_alloca_h
=no
14729 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14730 conftest
$ac_exeext conftest.
$ac_ext
14732 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14733 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14734 if test $ac_cv_working_alloca_h = yes; then
14736 cat >>confdefs.h
<<\_ACEOF
14737 #define HAVE_ALLOCA_H 1
14742 { echo "$as_me:$LINENO: checking for alloca" >&5
14743 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14744 if test "${ac_cv_func_alloca_works+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 cat >conftest.
$ac_ext <<_ACEOF
14750 cat confdefs.h
>>conftest.
$ac_ext
14751 cat >>conftest.
$ac_ext <<_ACEOF
14752 /* end confdefs.h. */
14754 # define alloca __builtin_alloca
14757 # include <malloc.h>
14758 # define alloca _alloca
14760 # ifdef HAVE_ALLOCA_H
14761 # include <alloca.h>
14766 # ifndef alloca /* predefined by HP cc +Olibcalls */
14777 char *p = (char *) alloca (1);
14783 rm -f conftest.
$ac_objext conftest
$ac_exeext
14784 if { (ac_try
="$ac_link"
14785 case "(($ac_try" in
14786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_link") 2>conftest.er1
14792 grep -v '^ *+' conftest.er1 >conftest.err
14794 cat conftest.err >&5
14795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14796 (exit $ac_status); } && {
14797 test -z "$ac_c_werror_flag" ||
14798 test ! -s conftest.err
14799 } && test -s conftest$ac_exeext &&
14800 $as_test_x conftest$ac_exeext; then
14801 ac_cv_func_alloca_works=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 ac_cv_func_alloca_works=no
14809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14810 conftest$ac_exeext conftest.$ac_ext
14812 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14813 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14815 if test $ac_cv_func_alloca_works = yes; then
14817 cat >>confdefs.h <<\_ACEOF
14818 #define HAVE_ALLOCA 1
14822 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14823 # that cause trouble. Some versions do not even contain alloca or
14824 # contain a buggy version. If you still want to use their alloca,
14825 # use ar to extract alloca.o from them instead of compiling alloca.c.
14827 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14829 cat >>confdefs.h <<\_ACEOF
14834 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14835 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14836 if test "${ac_cv_os_cray+set}" = set; then
14837 echo $ECHO_N "(cached
) $ECHO_C" >&6
14839 cat >conftest.$ac_ext <<_ACEOF
14842 cat confdefs.h >>conftest.$ac_ext
14843 cat >>conftest.$ac_ext <<_ACEOF
14844 /* end confdefs.h. */
14845 #if defined CRAY && ! defined CRAY2
14852 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14853 $EGREP "webecray
" >/dev/null 2>&1; then
14861 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14862 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14863 if test $ac_cv_os_cray = yes; then
14864 for ac_func in _getb67 GETB67 getb67; do
14865 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14866 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14867 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14868 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached
) $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14887 # include <limits.h>
14889 # include <assert.h>
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_$ac_func || defined __stub___$ac_func
14911 return $ac_func ();
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14925 grep -v '^ *+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 eval "$as_ac_var=yes"
14936 echo "$as_me: failed program was
:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 eval "$as_ac_var=no
"
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14945 ac_res=`eval echo '${'$as_ac_var'}'`
14946 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_var'}'` = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define CRAY_STACKSEG_END $ac_func
14960 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14961 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14962 if test "${ac_cv_c_stack_direction+set}" = set; then
14963 echo $ECHO_N "(cached
) $ECHO_C" >&6
14965 if test "$cross_compiling" = yes; then
14966 ac_cv_c_stack_direction=0
14968 cat >conftest.$ac_ext <<_ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 $ac_includes_default
14976 find_stack_direction ()
14978 static char *addr = 0;
14983 return find_stack_direction ();
14986 return (&dummy > addr) ? 1 : -1;
14992 return find_stack_direction () < 0;
14995 rm -f conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>&5
15004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15006 { (case "(($ac_try" in
15007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15008 *) ac_try_echo=$ac_try;;
15010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_try") 2>&5
15013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15014 (exit $ac_status); }; }; then
15015 ac_cv_c_stack_direction=1
15017 echo "$as_me: program exited with status
$ac_status" >&5
15018 echo "$as_me: failed program was
:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15021 ( exit $ac_status )
15022 ac_cv_c_stack_direction=-1
15024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15029 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15030 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15032 cat >>confdefs.h <<_ACEOF
15033 #define STACK_DIRECTION $ac_cv_c_stack_direction
15040 # fmod, logb, and frexp are found in -lm on most systems.
15041 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15043 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15044 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15045 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15046 echo $ECHO_N "(cached
) $ECHO_C" >&6
15048 ac_check_lib_save_LIBS=$LIBS
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest$ac_exeext &&
15089 $as_test_x conftest$ac_exeext; then
15090 ac_cv_lib_m_sqrt=yes
15092 echo "$as_me: failed program was
:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_cv_lib_m_sqrt=no
15098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15102 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15103 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15104 if test $ac_cv_lib_m_sqrt = yes; then
15105 cat >>confdefs.h <<_ACEOF
15106 #define HAVE_LIBM 1
15114 # Check for mail-locking functions in a "mail" library. Probably this should
15115 # have the same check as for liblockfile below.
15117 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15118 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15119 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15120 echo $ECHO_N "(cached
) $ECHO_C" >&6
15122 ac_check_lib_save_LIBS=$LIBS
15123 LIBS="-lmail $LIBS"
15124 cat >conftest.$ac_ext <<_ACEOF
15127 cat confdefs.h >>conftest.$ac_ext
15128 cat >>conftest.$ac_ext <<_ACEOF
15129 /* end confdefs.h. */
15131 /* Override any GCC internal prototype to avoid an error.
15132 Use char because int might match the return type of a GCC
15133 builtin and then its argument prototype would still apply. */
15141 return maillock ();
15146 rm -f conftest.$ac_objext conftest$ac_exeext
15147 if { (ac_try="$ac_link"
15148 case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_link") 2>conftest.er1
15155 grep -v '^ *+' conftest.er1 >conftest.err
15157 cat conftest.err >&5
15158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15159 (exit $ac_status); } && {
15160 test -z "$ac_c_werror_flag" ||
15161 test ! -s conftest.err
15162 } && test -s conftest$ac_exeext &&
15163 $as_test_x conftest$ac_exeext; then
15164 ac_cv_lib_mail_maillock=yes
15166 echo "$as_me: failed program was
:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_lib_mail_maillock=no
15172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15173 conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15176 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15177 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15178 if test $ac_cv_lib_mail_maillock = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_LIBMAIL 1
15183 LIBS="-lmail $LIBS"
15188 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15189 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15190 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15191 echo $ECHO_N "(cached
) $ECHO_C" >&6
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-llockfile $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 /* Override any GCC internal prototype to avoid an error.
15203 Use char because int might match the return type of a GCC
15204 builtin and then its argument prototype would still apply. */
15212 return maillock ();
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15226 grep -v '^ *+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 ac_cv_lib_lockfile_maillock=yes
15237 echo "$as_me: failed program was
:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_lib_lockfile_maillock=no
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15247 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15248 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15249 if test $ac_cv_lib_lockfile_maillock = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251 #define HAVE_LIBLOCKFILE 1
15254 LIBS="-llockfile $LIBS"
15258 # If we have the shared liblockfile, assume we must use it for mail
15259 # locking (e.g. Debian). If we couldn't link against liblockfile
15260 # (no liblockfile.a installed), ensure that we don't need to.
15261 if test "$ac_cv_lib_lockfile_maillock" = no; then
15262 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15263 set dummy liblockfile.so; ac_word=$2
15264 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15265 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15266 if test "${ac_cv_prog_liblockfile+set}" = set; then
15267 echo $ECHO_N "(cached
) $ECHO_C" >&6
15269 if test -n "$liblockfile"; then
15270 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15273 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15274 for as_dir in $as_dummy
15277 test -z "$as_dir" && as_dir=.
15278 for ac_exec_ext in '' $ac_executable_extensions; do
15279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15280 ac_cv_prog_liblockfile="yes"
15281 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15288 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15291 liblockfile=$ac_cv_prog_liblockfile
15292 if test -n "$liblockfile"; then
15293 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15294 echo "${ECHO_T}$liblockfile" >&6; }
15296 { echo "$as_me:$LINENO: result
: no
" >&5
15297 echo "${ECHO_T}no
" >&6; }
15301 if test $ac_cv_prog_liblockfile = yes; then
15302 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15303 This probably means that movemail could lose mail.
15304 There may be a \`development' package to
install containing liblockfile.
" >&5
15305 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15306 This probably means that movemail could lose mail.
15307 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15308 { (exit 1); exit 1; }; }
15313 for ac_func in touchlock
15315 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15316 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15317 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15318 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15319 echo $ECHO_N "(cached
) $ECHO_C" >&6
15321 cat >conftest.$ac_ext <<_ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15328 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15329 #define $ac_func innocuous_$ac_func
15331 /* System header to define __stub macros and hopefully few prototypes,
15332 which can conflict with char $ac_func (); below.
15333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15334 <limits.h> exists even on freestanding compilers. */
15337 # include <limits.h>
15339 # include <assert.h>
15344 /* Override any GCC internal prototype to avoid an error.
15345 Use char because int might match the return type of a GCC
15346 builtin and then its argument prototype would still apply. */
15351 /* The GNU C library defines this for functions which it implements
15352 to always fail with ENOSYS. Some functions are actually named
15353 something starting with __ and the normal name is an alias. */
15354 #if defined __stub_$ac_func || defined __stub___$ac_func
15361 return $ac_func ();
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (ac_try="$ac_link"
15368 case "(($ac_try" in
15369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15370 *) ac_try_echo=$ac_try;;
15372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15373 (eval "$ac_link") 2>conftest.er1
15375 grep -v '^ *+' conftest.er1 >conftest.err
15377 cat conftest.err >&5
15378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15379 (exit $ac_status); } && {
15380 test -z "$ac_c_werror_flag" ||
15381 test ! -s conftest.err
15382 } && test -s conftest$ac_exeext &&
15383 $as_test_x conftest$ac_exeext; then
15384 eval "$as_ac_var=yes"
15386 echo "$as_me: failed program was
:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15389 eval "$as_ac_var=no
"
15392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15393 conftest$ac_exeext conftest.$ac_ext
15395 ac_res=`eval echo '${'$as_ac_var'}'`
15396 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15397 echo "${ECHO_T}$ac_res" >&6; }
15398 if test `eval echo '${'$as_ac_var'}'` = yes; then
15399 cat >>confdefs.h <<_ACEOF
15400 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15407 for ac_header in maillock.h
15409 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15411 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15412 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15414 echo $ECHO_N "(cached
) $ECHO_C" >&6
15416 ac_res=`eval echo '${'$as_ac_Header'}'`
15417 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15418 echo "${ECHO_T}$ac_res" >&6; }
15420 # Is the header compilable?
15421 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15422 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15423 cat >conftest.$ac_ext <<_ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h. */
15429 $ac_includes_default
15430 #include <$ac_header>
15432 rm -f conftest.$ac_objext
15433 if { (ac_try="$ac_compile"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_compile") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest.$ac_objext; then
15449 ac_header_compiler=yes
15451 echo "$as_me: failed program was
:" >&5
15452 sed 's/^/| /' conftest.$ac_ext >&5
15454 ac_header_compiler=no
15457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15458 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15459 echo "${ECHO_T}$ac_header_compiler" >&6; }
15461 # Is the header present?
15462 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15463 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15464 cat >conftest.$ac_ext <<_ACEOF
15467 cat confdefs.h >>conftest.$ac_ext
15468 cat >>conftest.$ac_ext <<_ACEOF
15469 /* end confdefs.h. */
15470 #include <$ac_header>
15472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15484 (exit $ac_status); } >/dev/null && {
15485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15486 test ! -s conftest.err
15488 ac_header_preproc=yes
15490 echo "$as_me: failed program was
:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15493 ac_header_preproc=no
15496 rm -f conftest.err conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15498 echo "${ECHO_T}$ac_header_preproc" >&6; }
15500 # So? What about this header?
15501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15504 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15505 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15507 ac_header_preproc=yes
15510 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15511 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15512 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15513 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15514 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15515 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15516 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15517 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15518 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15520 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15521 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15525 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15526 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15528 echo $ECHO_N "(cached
) $ECHO_C" >&6
15530 eval "$as_ac_Header=\
$ac_header_preproc"
15532 ac_res=`eval echo '${'$as_ac_Header'}'`
15533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538 cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15616 for ac_func in gethostname getdomainname dup2 \
15617 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15618 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15619 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15620 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15621 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15622 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15623 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15624 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15626 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15627 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15628 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15629 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15630 echo $ECHO_N "(cached
) $ECHO_C" >&6
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15640 #define $ac_func innocuous_$ac_func
15642 /* System header to define __stub macros and hopefully few prototypes,
15643 which can conflict with char $ac_func (); below.
15644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15645 <limits.h> exists even on freestanding compilers. */
15648 # include <limits.h>
15650 # include <assert.h>
15655 /* Override any GCC internal prototype to avoid an error.
15656 Use char because int might match the return type of a GCC
15657 builtin and then its argument prototype would still apply. */
15662 /* The GNU C library defines this for functions which it implements
15663 to always fail with ENOSYS. Some functions are actually named
15664 something starting with __ and the normal name is an alias. */
15665 #if defined __stub_$ac_func || defined __stub___$ac_func
15672 return $ac_func ();
15677 rm -f conftest.$ac_objext conftest$ac_exeext
15678 if { (ac_try="$ac_link"
15679 case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15684 (eval "$ac_link") 2>conftest.er1
15686 grep -v '^ *+' conftest.er1 >conftest.err
15688 cat conftest.err >&5
15689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15690 (exit $ac_status); } && {
15691 test -z "$ac_c_werror_flag" ||
15692 test ! -s conftest.err
15693 } && test -s conftest$ac_exeext &&
15694 $as_test_x conftest$ac_exeext; then
15695 eval "$as_ac_var=yes"
15697 echo "$as_me: failed program was
:" >&5
15698 sed 's/^/| /' conftest.$ac_ext >&5
15700 eval "$as_ac_var=no
"
15703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15704 conftest$ac_exeext conftest.$ac_ext
15706 ac_res=`eval echo '${'$as_ac_var'}'`
15707 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15708 echo "${ECHO_T}$ac_res" >&6; }
15709 if test `eval echo '${'$as_ac_var'}'` = yes; then
15710 cat >>confdefs.h <<_ACEOF
15711 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15719 for ac_header in sys/un.h
15721 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15722 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15723 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15724 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15725 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15726 echo $ECHO_N "(cached
) $ECHO_C" >&6
15728 ac_res=`eval echo '${'$as_ac_Header'}'`
15729 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15732 # Is the header compilable?
15733 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15734 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15735 cat >conftest.$ac_ext <<_ACEOF
15738 cat confdefs.h >>conftest.$ac_ext
15739 cat >>conftest.$ac_ext <<_ACEOF
15740 /* end confdefs.h. */
15741 $ac_includes_default
15742 #include <$ac_header>
15744 rm -f conftest.$ac_objext
15745 if { (ac_try="$ac_compile"
15746 case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_compile") 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15757 (exit $ac_status); } && {
15758 test -z "$ac_c_werror_flag" ||
15759 test ! -s conftest.err
15760 } && test -s conftest.$ac_objext; then
15761 ac_header_compiler=yes
15763 echo "$as_me: failed program was
:" >&5
15764 sed 's/^/| /' conftest.$ac_ext >&5
15766 ac_header_compiler=no
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15771 echo "${ECHO_T}$ac_header_compiler" >&6; }
15773 # Is the header present?
15774 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15775 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 #include <$ac_header>
15784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15792 grep -v '^ *+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15796 (exit $ac_status); } >/dev/null && {
15797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15798 test ! -s conftest.err
15800 ac_header_preproc=yes
15802 echo "$as_me: failed program was
:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15816 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15819 ac_header_preproc=yes
15822 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15823 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15824 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15825 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15826 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15827 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15828 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15829 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15832 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15833 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15840 echo $ECHO_N "(cached
) $ECHO_C" >&6
15842 eval "$as_ac_Header=\
$ac_header_preproc"
15844 ac_res=`eval echo '${'$as_ac_Header'}'`
15845 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15846 echo "${ECHO_T}$ac_res" >&6; }
15849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15850 cat >>confdefs.h <<_ACEOF
15851 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15863 for ac_header in $ac_header_list
15865 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15867 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15868 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15869 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15870 echo $ECHO_N "(cached
) $ECHO_C" >&6
15872 ac_res=`eval echo '${'$as_ac_Header'}'`
15873 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15874 echo "${ECHO_T}$ac_res" >&6; }
15876 # Is the header compilable?
15877 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15878 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 $ac_includes_default
15886 #include <$ac_header>
15888 rm -f conftest.$ac_objext
15889 if { (ac_try="$ac_compile"
15890 case "(($ac_try" in
15891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15892 *) ac_try_echo=$ac_try;;
15894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15895 (eval "$ac_compile") 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15901 (exit $ac_status); } && {
15902 test -z "$ac_c_werror_flag" ||
15903 test ! -s conftest.err
15904 } && test -s conftest.$ac_objext; then
15905 ac_header_compiler=yes
15907 echo "$as_me: failed program was
:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_header_compiler=no
15913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15915 echo "${ECHO_T}$ac_header_compiler" >&6; }
15917 # Is the header present?
15918 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15919 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 #include <$ac_header>
15928 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15929 case "(($ac_try" in
15930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15931 *) ac_try_echo=$ac_try;;
15933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15934 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15936 grep -v '^ *+' conftest.er1 >conftest.err
15938 cat conftest.err >&5
15939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15940 (exit $ac_status); } >/dev/null && {
15941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15942 test ! -s conftest.err
15944 ac_header_preproc=yes
15946 echo "$as_me: failed program was
:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 ac_header_preproc=no
15952 rm -f conftest.err conftest.$ac_ext
15953 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15954 echo "${ECHO_T}$ac_header_preproc" >&6; }
15956 # So? What about this header?
15957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15959 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15960 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15961 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15962 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15963 ac_header_preproc=yes
15966 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15967 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15968 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15969 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15970 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15971 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15972 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15973 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15974 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15975 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15976 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15977 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15981 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15982 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15984 echo $ECHO_N "(cached
) $ECHO_C" >&6
15986 eval "$as_ac_Header=\
$ac_header_preproc"
15988 ac_res=`eval echo '${'$as_ac_Header'}'`
15989 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15994 cat >>confdefs.h <<_ACEOF
15995 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16010 for ac_func in $ac_func_list
16012 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16013 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16014 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16015 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16016 echo $ECHO_N "(cached
) $ECHO_C" >&6
16018 cat >conftest.$ac_ext <<_ACEOF
16021 cat confdefs.h >>conftest.$ac_ext
16022 cat >>conftest.$ac_ext <<_ACEOF
16023 /* end confdefs.h. */
16024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16026 #define $ac_func innocuous_$ac_func
16028 /* System header to define __stub macros and hopefully few prototypes,
16029 which can conflict with char $ac_func (); below.
16030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16031 <limits.h> exists even on freestanding compilers. */
16034 # include <limits.h>
16036 # include <assert.h>
16041 /* Override any GCC internal prototype to avoid an error.
16042 Use char because int might match the return type of a GCC
16043 builtin and then its argument prototype would still apply. */
16048 /* The GNU C library defines this for functions which it implements
16049 to always fail with ENOSYS. Some functions are actually named
16050 something starting with __ and the normal name is an alias. */
16051 #if defined __stub_$ac_func || defined __stub___$ac_func
16058 return $ac_func ();
16063 rm -f conftest.$ac_objext conftest$ac_exeext
16064 if { (ac_try="$ac_link"
16065 case "(($ac_try" in
16066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067 *) ac_try_echo=$ac_try;;
16069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16070 (eval "$ac_link") 2>conftest.er1
16072 grep -v '^ *+' conftest.er1 >conftest.err
16074 cat conftest.err >&5
16075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest$ac_exeext &&
16080 $as_test_x conftest$ac_exeext; then
16081 eval "$as_ac_var=yes"
16083 echo "$as_me: failed program was
:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 eval "$as_ac_var=no
"
16089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16090 conftest$ac_exeext conftest.$ac_ext
16092 ac_res=`eval echo '${'$as_ac_var'}'`
16093 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16095 if test `eval echo '${'$as_ac_var'}'` = yes; then
16096 cat >>confdefs.h <<_ACEOF
16097 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16119 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16120 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16121 if test "${ac_cv_func_working_mktime+set}" = set; then
16122 echo $ECHO_N "(cached
) $ECHO_C" >&6
16124 if test "$cross_compiling" = yes; then
16125 ac_cv_func_working_mktime=no
16127 cat >conftest.$ac_ext <<_ACEOF
16130 cat confdefs.h >>conftest.$ac_ext
16131 cat >>conftest.$ac_ext <<_ACEOF
16132 /* end confdefs.h. */
16133 /* Test program from Paul Eggert and Tony Leneis. */
16134 #ifdef TIME_WITH_SYS_TIME
16135 # include <sys/time.h>
16138 # ifdef HAVE_SYS_TIME_H
16139 # include <sys/time.h>
16145 #include <stdlib.h>
16147 #ifdef HAVE_UNISTD_H
16148 # include <unistd.h>
16152 # define alarm(X) /* empty */
16155 /* Work around redefinition to rpl_putenv by other config tests. */
16158 static time_t time_t_max;
16159 static time_t time_t_min;
16161 /* Values we'll use to set the TZ environment variable. */
16162 static char *tz_strings[] = {
16163 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16164 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16166 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16168 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16169 Based on a problem report from Andreas Jaeger. */
16171 spring_forward_gap ()
16173 /* glibc (up to about 1998-10-07) failed this test. */
16176 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16177 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16178 on systems that don't support the Olson extension, or don't have the
16179 full zoneinfo tables installed. */
16180 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16189 return mktime (&tm) != (time_t) -1;
16197 return ! (lt = localtime (&now)) || mktime (lt) == now;
16204 return (mktime_test1 (now)
16205 && mktime_test1 ((time_t) (time_t_max - now))
16206 && mktime_test1 ((time_t) (time_t_min + now)));
16212 /* Based on code from Ariel Faigon. */
16222 return tm.tm_mon == 2 && tm.tm_mday == 31;
16231 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16232 now = mktime (&tm);
16233 if (now != (time_t) -1)
16235 struct tm *lt = localtime (&now);
16237 && lt->tm_year == tm.tm_year
16238 && lt->tm_mon == tm.tm_mon
16239 && lt->tm_mday == tm.tm_mday
16240 && lt->tm_hour == tm.tm_hour
16241 && lt->tm_min == tm.tm_min
16242 && lt->tm_sec == tm.tm_sec
16243 && lt->tm_yday == tm.tm_yday
16244 && lt->tm_wday == tm.tm_wday
16245 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16246 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16255 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16256 ignoring leap seconds. */
16257 unsigned long int answer = 2527315200UL;
16261 tm.tm_year = 2050 - 1900;
16264 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16267 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16268 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16269 on systems that don't support the Olson extension, or don't have the
16270 full zoneinfo tables installed. */
16271 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16275 /* Check that the result is either a failure, or close enough
16276 to the correct answer that we can assume the discrepancy is
16277 due to leap seconds. */
16278 return (t == (time_t) -1
16279 || (0 < t && answer - 120 <= t && t <= answer + 120));
16288 /* This test makes some buggy mktime implementations loop.
16289 Give up after 60 seconds; a mktime slower than that
16290 isn't worth using anyway. */
16293 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16296 if ((time_t) -1 < 0)
16297 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16299 delta = time_t_max / 997; /* a suitable prime number */
16300 for (i = 0; i < N_STRINGS; i++)
16303 putenv (tz_strings[i]);
16305 for (t = 0; t <= time_t_max - delta; t += delta)
16306 if (! mktime_test (t))
16308 if (! (mktime_test ((time_t) 1)
16309 && mktime_test ((time_t) (60 * 60))
16310 && mktime_test ((time_t) (60 * 60 * 24))))
16313 for (j = 1; 0 < j; j *= 2)
16314 if (! bigtime_test (j))
16316 if (! bigtime_test (j - 1))
16319 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16322 rm -f conftest$ac_exeext
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16329 (eval "$ac_link") 2>&5
16331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16333 { (case "(($ac_try" in
16334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16335 *) ac_try_echo=$ac_try;;
16337 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16338 (eval "$ac_try") 2>&5
16340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16341 (exit $ac_status); }; }; then
16342 ac_cv_func_working_mktime=yes
16344 echo "$as_me: program exited with status
$ac_status" >&5
16345 echo "$as_me: failed program was
:" >&5
16346 sed 's/^/| /' conftest.$ac_ext >&5
16348 ( exit $ac_status )
16349 ac_cv_func_working_mktime=no
16351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16356 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16357 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16358 if test $ac_cv_func_working_mktime = no; then
16359 case " $LIBOBJS " in
16360 *" mktime.
$ac_objext "* ) ;;
16361 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16367 if test "$ac_cv_func_working_mktime" = no; then
16369 cat >>confdefs.h <<\_ACEOF
16370 #define BROKEN_MKTIME 1
16375 ac_have_func=no # yes means we've found a way to get the load average.
16377 # Make sure getloadavg.c is where it belongs, at configure-time.
16378 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16379 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16380 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16381 { (exit 1); exit 1; }; }
16385 # Check for getloadavg, but be sure not to touch the cache variable.
16386 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16387 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16388 if test "${ac_cv_func_getloadavg+set}" = set; then
16389 echo $ECHO_N "(cached
) $ECHO_C" >&6
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16399 #define getloadavg innocuous_getloadavg
16401 /* System header to define __stub macros and hopefully few prototypes,
16402 which can conflict with char getloadavg (); below.
16403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16404 <limits.h> exists even on freestanding compilers. */
16407 # include <limits.h>
16409 # include <assert.h>
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16420 char getloadavg ();
16421 /* The GNU C library defines this for functions which it implements
16422 to always fail with ENOSYS. Some functions are actually named
16423 something starting with __ and the normal name is an alias. */
16424 #if defined __stub_getloadavg || defined __stub___getloadavg
16431 return getloadavg ();
16436 rm -f conftest.$ac_objext conftest$ac_exeext
16437 if { (ac_try="$ac_link"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_link") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16449 (exit $ac_status); } && {
16450 test -z "$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 } && test -s conftest$ac_exeext &&
16453 $as_test_x conftest$ac_exeext; then
16454 ac_cv_func_getloadavg=yes
16456 echo "$as_me: failed program was
:" >&5
16457 sed 's/^/| /' conftest.$ac_ext >&5
16459 ac_cv_func_getloadavg=no
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16465 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16466 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16467 if test $ac_cv_func_getloadavg = yes; then
16472 ) && ac_have_func=yes
16474 # On HPUX9, an unprivileged user can get load averages through this function.
16476 for ac_func in pstat_getdynamic
16478 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16479 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16480 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16481 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached
) $ECHO_C" >&6
16484 cat >conftest.$ac_ext <<_ACEOF
16487 cat confdefs.h >>conftest.$ac_ext
16488 cat >>conftest.$ac_ext <<_ACEOF
16489 /* end confdefs.h. */
16490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16492 #define $ac_func innocuous_$ac_func
16494 /* System header to define __stub macros and hopefully few prototypes,
16495 which can conflict with char $ac_func (); below.
16496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16497 <limits.h> exists even on freestanding compilers. */
16500 # include <limits.h>
16502 # include <assert.h>
16507 /* Override any GCC internal prototype to avoid an error.
16508 Use char because int might match the return type of a GCC
16509 builtin and then its argument prototype would still apply. */
16514 /* The GNU C library defines this for functions which it implements
16515 to always fail with ENOSYS. Some functions are actually named
16516 something starting with __ and the normal name is an alias. */
16517 #if defined __stub_$ac_func || defined __stub___$ac_func
16524 return $ac_func ();
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 eval "$as_ac_var=yes"
16549 echo "$as_me: failed program was
:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 eval "$as_ac_var=no
"
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16558 ac_res=`eval echo '${'$as_ac_var'}'`
16559 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16560 echo "${ECHO_T}$ac_res" >&6; }
16561 if test `eval echo '${'$as_ac_var'}'` = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16570 # Solaris has libkstat which does not require root.
16572 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16573 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16574 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16575 echo $ECHO_N "(cached
) $ECHO_C" >&6
16577 ac_check_lib_save_LIBS=$LIBS
16578 LIBS="-lkstat $LIBS"
16579 cat >conftest.$ac_ext <<_ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16586 /* Override any GCC internal prototype to avoid an error.
16587 Use char because int might match the return type of a GCC
16588 builtin and then its argument prototype would still apply. */
16592 char kstat_open ();
16596 return kstat_open ();
16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (ac_try="$ac_link"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16608 (eval "$ac_link") 2>conftest.er1
16610 grep -v '^ *+' conftest.er1 >conftest.err
16612 cat conftest.err >&5
16613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16614 (exit $ac_status); } && {
16615 test -z "$ac_c_werror_flag" ||
16616 test ! -s conftest.err
16617 } && test -s conftest$ac_exeext &&
16618 $as_test_x conftest$ac_exeext; then
16619 ac_cv_lib_kstat_kstat_open=yes
16621 echo "$as_me: failed program was
:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ac_cv_lib_kstat_kstat_open=no
16627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16628 conftest$ac_exeext conftest.$ac_ext
16629 LIBS=$ac_check_lib_save_LIBS
16631 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16632 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16633 if test $ac_cv_lib_kstat_kstat_open = yes; then
16634 cat >>confdefs.h <<_ACEOF
16635 #define HAVE_LIBKSTAT 1
16638 LIBS="-lkstat $LIBS"
16642 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16644 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16645 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16646 # to get the right answer into the cache.
16647 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16648 if test $ac_have_func = no; then
16649 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16650 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16651 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16652 echo $ECHO_N "(cached
) $ECHO_C" >&6
16654 ac_check_lib_save_LIBS=$LIBS
16656 cat >conftest.$ac_ext <<_ACEOF
16659 cat confdefs.h >>conftest.$ac_ext
16660 cat >>conftest.$ac_ext <<_ACEOF
16661 /* end confdefs.h. */
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16673 return elf_begin ();
16678 rm -f conftest.$ac_objext conftest$ac_exeext
16679 if { (ac_try="$ac_link"
16680 case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_link") 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16691 (exit $ac_status); } && {
16692 test -z "$ac_c_werror_flag" ||
16693 test ! -s conftest.err
16694 } && test -s conftest$ac_exeext &&
16695 $as_test_x conftest$ac_exeext; then
16696 ac_cv_lib_elf_elf_begin=yes
16698 echo "$as_me: failed program was
:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_cv_lib_elf_elf_begin=no
16704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16705 conftest$ac_exeext conftest.$ac_ext
16706 LIBS=$ac_check_lib_save_LIBS
16708 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16709 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16710 if test $ac_cv_lib_elf_elf_begin = yes; then
16715 if test $ac_have_func = no; then
16716 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16717 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16718 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16719 echo $ECHO_N "(cached
) $ECHO_C" >&6
16721 ac_check_lib_save_LIBS=$LIBS
16723 cat >conftest.$ac_ext <<_ACEOF
16726 cat confdefs.h >>conftest.$ac_ext
16727 cat >>conftest.$ac_ext <<_ACEOF
16728 /* end confdefs.h. */
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16740 return kvm_open ();
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (ac_try="$ac_link"
16747 case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_link") 2>conftest.er1
16754 grep -v '^ *+' conftest.er1 >conftest.err
16756 cat conftest.err >&5
16757 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16758 (exit $ac_status); } && {
16759 test -z "$ac_c_werror_flag" ||
16760 test ! -s conftest.err
16761 } && test -s conftest$ac_exeext &&
16762 $as_test_x conftest$ac_exeext; then
16763 ac_cv_lib_kvm_kvm_open=yes
16765 echo "$as_me: failed program was
:" >&5
16766 sed 's/^/| /' conftest.$ac_ext >&5
16768 ac_cv_lib_kvm_kvm_open=no
16771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16772 conftest$ac_exeext conftest.$ac_ext
16773 LIBS=$ac_check_lib_save_LIBS
16775 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16776 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16777 if test $ac_cv_lib_kvm_kvm_open = yes; then
16781 # Check for the 4.4BSD definition of getloadavg.
16782 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16783 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16784 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16785 echo $ECHO_N "(cached
) $ECHO_C" >&6
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lutil $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16802 char getloadavg ();
16806 return getloadavg ();
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext &&
16828 $as_test_x conftest$ac_exeext; then
16829 ac_cv_lib_util_getloadavg=yes
16831 echo "$as_me: failed program was
:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_lib_util_getloadavg=no
16837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LIBS=$ac_check_lib_save_LIBS
16841 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16843 if test $ac_cv_lib_util_getloadavg = yes; then
16844 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16849 if test $ac_have_func = no; then
16850 # There is a commonly available library for RS/6000 AIX.
16851 # Since it is not a standard part of AIX, it might be installed locally.
16852 ac_getloadavg_LIBS=$LIBS
16853 LIBS="-L/usr
/local
/lib
$LIBS"
16854 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16855 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16856 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16857 echo $ECHO_N "(cached
) $ECHO_C" >&6
16859 ac_check_lib_save_LIBS=$LIBS
16860 LIBS="-lgetloadavg $LIBS"
16861 cat >conftest.$ac_ext <<_ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16874 char getloadavg ();
16878 return getloadavg ();
16883 rm -f conftest.$ac_objext conftest$ac_exeext
16884 if { (ac_try="$ac_link"
16885 case "(($ac_try" in
16886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16887 *) ac_try_echo=$ac_try;;
16889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16890 (eval "$ac_link") 2>conftest.er1
16892 grep -v '^ *+' conftest.er1 >conftest.err
16894 cat conftest.err >&5
16895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16896 (exit $ac_status); } && {
16897 test -z "$ac_c_werror_flag" ||
16898 test ! -s conftest.err
16899 } && test -s conftest$ac_exeext &&
16900 $as_test_x conftest$ac_exeext; then
16901 ac_cv_lib_getloadavg_getloadavg=yes
16903 echo "$as_me: failed program was
:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16906 ac_cv_lib_getloadavg_getloadavg=no
16909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16910 conftest$ac_exeext conftest.$ac_ext
16911 LIBS=$ac_check_lib_save_LIBS
16913 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16914 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16915 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16916 LIBS="-lgetloadavg $LIBS"
16918 LIBS=$ac_getloadavg_LIBS
16923 # Make sure it is really in the library, if we think we found it,
16924 # otherwise set up the replacement function.
16926 for ac_func in getloadavg
16928 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16929 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16930 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16931 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16932 echo $ECHO_N "(cached
) $ECHO_C" >&6
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16942 #define $ac_func innocuous_$ac_func
16944 /* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func (); below.
16946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16947 <limits.h> exists even on freestanding compilers. */
16950 # include <limits.h>
16952 # include <assert.h>
16957 /* Override any GCC internal prototype to avoid an error.
16958 Use char because int might match the return type of a GCC
16959 builtin and then its argument prototype would still apply. */
16964 /* The GNU C library defines this for functions which it implements
16965 to always fail with ENOSYS. Some functions are actually named
16966 something starting with __ and the normal name is an alias. */
16967 #if defined __stub_$ac_func || defined __stub___$ac_func
16974 return $ac_func ();
16979 rm -f conftest.$ac_objext conftest$ac_exeext
16980 if { (ac_try="$ac_link"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_link") 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16992 (exit $ac_status); } && {
16993 test -z "$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 } && test -s conftest$ac_exeext &&
16996 $as_test_x conftest$ac_exeext; then
16997 eval "$as_ac_var=yes"
16999 echo "$as_me: failed program was
:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 eval "$as_ac_var=no
"
17005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17006 conftest$ac_exeext conftest.$ac_ext
17008 ac_res=`eval echo '${'$as_ac_var'}'`
17009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17010 echo "${ECHO_T}$ac_res" >&6; }
17011 if test `eval echo '${'$as_ac_var'}'` = yes; then
17012 cat >>confdefs.h <<_ACEOF
17013 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17017 case " $LIBOBJS " in
17018 *" getloadavg.
$ac_objext "* ) ;;
17019 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17024 cat >>confdefs.h <<\_ACEOF
17025 #define C_GETLOADAVG 1
17028 # Figure out what our getloadavg.c needs.
17030 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17031 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17032 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17033 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17034 echo $ECHO_N "(cached
) $ECHO_C" >&6
17036 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17037 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17039 # Is the header compilable?
17040 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17041 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17042 cat >conftest.$ac_ext <<_ACEOF
17045 cat confdefs.h >>conftest.$ac_ext
17046 cat >>conftest.$ac_ext <<_ACEOF
17047 /* end confdefs.h. */
17048 $ac_includes_default
17049 #include <sys/dg_sys_info.h>
17051 rm -f conftest.$ac_objext
17052 if { (ac_try="$ac_compile"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_compile") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest.$ac_objext; then
17068 ac_header_compiler=yes
17070 echo "$as_me: failed program was
:" >&5
17071 sed 's/^/| /' conftest.$ac_ext >&5
17073 ac_header_compiler=no
17076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17077 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17078 echo "${ECHO_T}$ac_header_compiler" >&6; }
17080 # Is the header present?
17081 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17082 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17083 cat >conftest.$ac_ext <<_ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h. */
17089 #include <sys/dg_sys_info.h>
17091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17092 case "(($ac_try" in
17093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17094 *) ac_try_echo=$ac_try;;
17096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17103 (exit $ac_status); } >/dev/null && {
17104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17105 test ! -s conftest.err
17107 ac_header_preproc=yes
17109 echo "$as_me: failed program was
:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17112 ac_header_preproc=no
17115 rm -f conftest.err conftest.$ac_ext
17116 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17117 echo "${ECHO_T}$ac_header_preproc" >&6; }
17119 # So? What about this header?
17120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17122 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17123 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17124 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17125 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17126 ac_header_preproc=yes
17129 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17130 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17131 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17132 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17133 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17134 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17135 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17136 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17137 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17138 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17139 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17140 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17144 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17145 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17146 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17147 echo $ECHO_N "(cached
) $ECHO_C" >&6
17149 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17151 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17152 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17155 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17158 cat >>confdefs.h <<\_ACEOF
17163 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17164 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17165 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17166 echo $ECHO_N "(cached
) $ECHO_C" >&6
17168 ac_check_lib_save_LIBS=$LIBS
17170 cat >conftest.$ac_ext <<_ACEOF
17173 cat confdefs.h >>conftest.$ac_ext
17174 cat >>conftest.$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17177 /* Override any GCC internal prototype to avoid an error.
17178 Use char because int might match the return type of a GCC
17179 builtin and then its argument prototype would still apply. */
17183 char dg_sys_info ();
17187 return dg_sys_info ();
17192 rm -f conftest.$ac_objext conftest$ac_exeext
17193 if { (ac_try="$ac_link"
17194 case "(($ac_try" in
17195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17196 *) ac_try_echo=$ac_try;;
17198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17199 (eval "$ac_link") 2>conftest.er1
17201 grep -v '^ *+' conftest.er1 >conftest.err
17203 cat conftest.err >&5
17204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17205 (exit $ac_status); } && {
17206 test -z "$ac_c_werror_flag" ||
17207 test ! -s conftest.err
17208 } && test -s conftest$ac_exeext &&
17209 $as_test_x conftest$ac_exeext; then
17210 ac_cv_lib_dgc_dg_sys_info=yes
17212 echo "$as_me: failed program was
:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_cv_lib_dgc_dg_sys_info=no
17218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17219 conftest$ac_exeext conftest.$ac_ext
17220 LIBS=$ac_check_lib_save_LIBS
17222 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17223 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17224 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_LIBDGC 1
17237 if test "${ac_cv_header_locale_h+set}" = set; then
17238 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17239 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17240 if test "${ac_cv_header_locale_h+set}" = set; then
17241 echo $ECHO_N "(cached
) $ECHO_C" >&6
17243 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17244 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17246 # Is the header compilable?
17247 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17248 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17249 cat >conftest.$ac_ext <<_ACEOF
17252 cat confdefs.h >>conftest.$ac_ext
17253 cat >>conftest.$ac_ext <<_ACEOF
17254 /* end confdefs.h. */
17255 $ac_includes_default
17256 #include <locale.h>
17258 rm -f conftest.$ac_objext
17259 if { (ac_try="$ac_compile"
17260 case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_compile") 2>conftest.er1
17267 grep -v '^ *+' conftest.er1 >conftest.err
17269 cat conftest.err >&5
17270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17271 (exit $ac_status); } && {
17272 test -z "$ac_c_werror_flag" ||
17273 test ! -s conftest.err
17274 } && test -s conftest.$ac_objext; then
17275 ac_header_compiler=yes
17277 echo "$as_me: failed program was
:" >&5
17278 sed 's/^/| /' conftest.$ac_ext >&5
17280 ac_header_compiler=no
17283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17284 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17285 echo "${ECHO_T}$ac_header_compiler" >&6; }
17287 # Is the header present?
17288 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17289 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17290 cat >conftest.$ac_ext <<_ACEOF
17293 cat confdefs.h >>conftest.$ac_ext
17294 cat >>conftest.$ac_ext <<_ACEOF
17295 /* end confdefs.h. */
17296 #include <locale.h>
17298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17310 (exit $ac_status); } >/dev/null && {
17311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17314 ac_header_preproc=yes
17316 echo "$as_me: failed program was
:" >&5
17317 sed 's/^/| /' conftest.$ac_ext >&5
17319 ac_header_preproc=no
17322 rm -f conftest.err conftest.$ac_ext
17323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17324 echo "${ECHO_T}$ac_header_preproc" >&6; }
17326 # So? What about this header?
17327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17329 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17330 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17331 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17332 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17333 ac_header_preproc=yes
17336 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17337 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17338 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17339 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17340 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17341 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17342 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17343 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17344 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17345 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17346 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17347 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17351 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17352 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17353 if test "${ac_cv_header_locale_h+set}" = set; then
17354 echo $ECHO_N "(cached
) $ECHO_C" >&6
17356 ac_cv_header_locale_h=$ac_header_preproc
17358 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17359 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17365 for ac_func in setlocale
17367 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17368 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17369 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17370 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17371 echo $ECHO_N "(cached
) $ECHO_C" >&6
17373 cat >conftest.$ac_ext <<_ACEOF
17376 cat confdefs.h >>conftest.$ac_ext
17377 cat >>conftest.$ac_ext <<_ACEOF
17378 /* end confdefs.h. */
17379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17381 #define $ac_func innocuous_$ac_func
17383 /* System header to define __stub macros and hopefully few prototypes,
17384 which can conflict with char $ac_func (); below.
17385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17386 <limits.h> exists even on freestanding compilers. */
17389 # include <limits.h>
17391 # include <assert.h>
17396 /* Override any GCC internal prototype to avoid an error.
17397 Use char because int might match the return type of a GCC
17398 builtin and then its argument prototype would still apply. */
17403 /* The GNU C library defines this for functions which it implements
17404 to always fail with ENOSYS. Some functions are actually named
17405 something starting with __ and the normal name is an alias. */
17406 #if defined __stub_$ac_func || defined __stub___$ac_func
17413 return $ac_func ();
17418 rm -f conftest.$ac_objext conftest$ac_exeext
17419 if { (ac_try="$ac_link"
17420 case "(($ac_try" in
17421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17422 *) ac_try_echo=$ac_try;;
17424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17425 (eval "$ac_link") 2>conftest.er1
17427 grep -v '^ *+' conftest.er1 >conftest.err
17429 cat conftest.err >&5
17430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17431 (exit $ac_status); } && {
17432 test -z "$ac_c_werror_flag" ||
17433 test ! -s conftest.err
17434 } && test -s conftest$ac_exeext &&
17435 $as_test_x conftest$ac_exeext; then
17436 eval "$as_ac_var=yes"
17438 echo "$as_me: failed program was
:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 eval "$as_ac_var=no
"
17444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17445 conftest$ac_exeext conftest.$ac_ext
17447 ac_res=`eval echo '${'$as_ac_var'}'`
17448 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17449 echo "${ECHO_T}$ac_res" >&6; }
17450 if test `eval echo '${'$as_ac_var'}'` = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17459 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17460 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17461 # Irix 4.0.5F has the header but not the library.
17462 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17465 cat >>confdefs.h <<\_ACEOF
17471 if test $ac_have_func = no; then
17472 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17473 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17474 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17475 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17476 echo $ECHO_N "(cached
) $ECHO_C" >&6
17478 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17479 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17481 # Is the header compilable?
17482 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17483 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17484 cat >conftest.$ac_ext <<_ACEOF
17487 cat confdefs.h >>conftest.$ac_ext
17488 cat >>conftest.$ac_ext <<_ACEOF
17489 /* end confdefs.h. */
17490 $ac_includes_default
17491 #include <inq_stats/cpustats.h>
17493 rm -f conftest.$ac_objext
17494 if { (ac_try="$ac_compile"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_compile") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest.$ac_objext; then
17510 ac_header_compiler=yes
17512 echo "$as_me: failed program was
:" >&5
17513 sed 's/^/| /' conftest.$ac_ext >&5
17515 ac_header_compiler=no
17518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17519 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17520 echo "${ECHO_T}$ac_header_compiler" >&6; }
17522 # Is the header present?
17523 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17524 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 #include <inq_stats/cpustats.h>
17533 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17545 (exit $ac_status); } >/dev/null && {
17546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17549 ac_header_preproc=yes
17551 echo "$as_me: failed program was
:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_preproc=no
17557 rm -f conftest.err conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17559 echo "${ECHO_T}$ac_header_preproc" >&6; }
17561 # So? What about this header?
17562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17564 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17565 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17566 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17567 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17568 ac_header_preproc=yes
17571 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17572 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17573 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17574 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17575 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17576 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17577 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17578 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17579 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17580 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17581 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17582 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17586 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17587 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17588 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17589 echo $ECHO_N "(cached
) $ECHO_C" >&6
17591 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17593 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17594 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17597 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17600 cat >>confdefs.h <<\_ACEOF
17605 cat >>confdefs.h <<\_ACEOF
17614 if test $ac_have_func = no; then
17615 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17616 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17617 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17618 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17619 echo $ECHO_N "(cached
) $ECHO_C" >&6
17621 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17622 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17624 # Is the header compilable?
17625 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17626 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17633 $ac_includes_default
17634 #include <sys/cpustats.h>
17636 rm -f conftest.$ac_objext
17637 if { (ac_try="$ac_compile"
17638 case "(($ac_try" in
17639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640 *) ac_try_echo=$ac_try;;
17642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17643 (eval "$ac_compile") 2>conftest.er1
17645 grep -v '^ *+' conftest.er1 >conftest.err
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17649 (exit $ac_status); } && {
17650 test -z "$ac_c_werror_flag" ||
17651 test ! -s conftest.err
17652 } && test -s conftest.$ac_objext; then
17653 ac_header_compiler=yes
17655 echo "$as_me: failed program was
:" >&5
17656 sed 's/^/| /' conftest.$ac_ext >&5
17658 ac_header_compiler=no
17661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17662 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17663 echo "${ECHO_T}$ac_header_compiler" >&6; }
17665 # Is the header present?
17666 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17667 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17668 cat >conftest.$ac_ext <<_ACEOF
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 #include <sys/cpustats.h>
17676 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17677 case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17688 (exit $ac_status); } >/dev/null && {
17689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17690 test ! -s conftest.err
17692 ac_header_preproc=yes
17694 echo "$as_me: failed program was
:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_header_preproc=no
17700 rm -f conftest.err conftest.$ac_ext
17701 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17702 echo "${ECHO_T}$ac_header_preproc" >&6; }
17704 # So? What about this header?
17705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17707 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17708 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17709 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17710 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17711 ac_header_preproc=yes
17714 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17715 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17716 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17717 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17718 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17719 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17720 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17721 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17722 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17723 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17724 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17725 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17729 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17730 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17731 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17732 echo $ECHO_N "(cached
) $ECHO_C" >&6
17734 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17736 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17737 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17740 if test $ac_cv_header_sys_cpustats_h = yes; then
17741 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17750 if test $ac_have_func = no; then
17752 for ac_header in mach/mach.h
17754 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17755 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17756 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17757 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17759 echo $ECHO_N "(cached
) $ECHO_C" >&6
17761 ac_res=`eval echo '${'$as_ac_Header'}'`
17762 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17763 echo "${ECHO_T}$ac_res" >&6; }
17765 # Is the header compilable?
17766 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17767 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 $ac_includes_default
17775 #include <$ac_header>
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_compile") 2>conftest.er1
17786 grep -v '^ *+' conftest.er1 >conftest.err
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest.$ac_objext; then
17794 ac_header_compiler=yes
17796 echo "$as_me: failed program was
:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 ac_header_compiler=no
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17804 echo "${ECHO_T}$ac_header_compiler" >&6; }
17806 # Is the header present?
17807 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17808 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 #include <$ac_header>
17817 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17825 grep -v '^ *+' conftest.er1 >conftest.err
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17829 (exit $ac_status); } >/dev/null && {
17830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17833 ac_header_preproc=yes
17835 echo "$as_me: failed program was
:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_header_preproc=no
17841 rm -f conftest.err conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17843 echo "${ECHO_T}$ac_header_preproc" >&6; }
17845 # So? What about this header?
17846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17848 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17849 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17850 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17852 ac_header_preproc=yes
17855 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17856 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17857 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17858 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17859 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17860 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17861 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17862 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17863 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17865 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17866 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17870 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17871 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17872 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17873 echo $ECHO_N "(cached
) $ECHO_C" >&6
17875 eval "$as_ac_Header=\
$ac_header_preproc"
17877 ac_res=`eval echo '${'$as_ac_Header'}'`
17878 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17879 echo "${ECHO_T}$ac_res" >&6; }
17882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17894 for ac_header in nlist.h
17896 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17898 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17899 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17901 echo $ECHO_N "(cached
) $ECHO_C" >&6
17903 ac_res=`eval echo '${'$as_ac_Header'}'`
17904 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17905 echo "${ECHO_T}$ac_res" >&6; }
17907 # Is the header compilable?
17908 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17909 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17910 cat >conftest.$ac_ext <<_ACEOF
17913 cat confdefs.h >>conftest.$ac_ext
17914 cat >>conftest.$ac_ext <<_ACEOF
17915 /* end confdefs.h. */
17916 $ac_includes_default
17917 #include <$ac_header>
17919 rm -f conftest.$ac_objext
17920 if { (ac_try="$ac_compile"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_compile") 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest.$ac_objext; then
17936 ac_header_compiler=yes
17938 echo "$as_me: failed program was
:" >&5
17939 sed 's/^/| /' conftest.$ac_ext >&5
17941 ac_header_compiler=no
17944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17946 echo "${ECHO_T}$ac_header_compiler" >&6; }
17948 # Is the header present?
17949 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17950 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #include <$ac_header>
17959 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17960 case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17971 (exit $ac_status); } >/dev/null && {
17972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17975 ac_header_preproc=yes
17977 echo "$as_me: failed program was
:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_preproc=no
17983 rm -f conftest.err conftest.$ac_ext
17984 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17985 echo "${ECHO_T}$ac_header_preproc" >&6; }
17987 # So? What about this header?
17988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17990 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17991 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17992 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17994 ac_header_preproc=yes
17997 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17998 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17999 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18000 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18001 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18002 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18003 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18004 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18005 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18007 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18008 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18012 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18013 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18015 echo $ECHO_N "(cached
) $ECHO_C" >&6
18017 eval "$as_ac_Header=\
$ac_header_preproc"
18019 ac_res=`eval echo '${'$as_ac_Header'}'`
18020 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18021 echo "${ECHO_T}$ac_res" >&6; }
18024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18025 cat >>confdefs.h <<_ACEOF
18026 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18028 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18029 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18030 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18031 echo $ECHO_N "(cached
) $ECHO_C" >&6
18033 cat >conftest.$ac_ext <<_ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18044 static struct nlist ac_aggr;
18045 if (ac_aggr.n_un.n_name)
18051 rm -f conftest.$ac_objext
18052 if { (ac_try="$ac_compile"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_compile") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); } && {
18065 test -z "$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18067 } && test -s conftest.$ac_objext; then
18068 ac_cv_member_struct_nlist_n_un_n_name=yes
18070 echo "$as_me: failed program was
:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18084 static struct nlist ac_aggr;
18085 if (sizeof ac_aggr.n_un.n_name)
18091 rm -f conftest.$ac_objext
18092 if { (ac_try="$ac_compile"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_compile") 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18104 (exit $ac_status); } && {
18105 test -z "$ac_c_werror_flag" ||
18106 test ! -s conftest.err
18107 } && test -s conftest.$ac_objext; then
18108 ac_cv_member_struct_nlist_n_un_n_name=yes
18110 echo "$as_me: failed program was
:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 ac_cv_member_struct_nlist_n_un_n_name=no
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18121 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18122 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18123 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18125 cat >>confdefs.h <<_ACEOF
18126 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18130 cat >>confdefs.h <<\_ACEOF
18131 #define NLIST_NAME_UNION 1
18145 # Some definitions of getloadavg require that the program be installed setgid.
18146 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18147 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18148 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18149 echo $ECHO_N "(cached
) $ECHO_C" >&6
18151 cat >conftest.$ac_ext <<_ACEOF
18154 cat confdefs.h >>conftest.$ac_ext
18155 cat >>conftest.$ac_ext <<_ACEOF
18156 /* end confdefs.h. */
18157 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18158 #ifdef LDAV_PRIVILEGED
18159 Yowza Am I SETGID yet
18162 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18163 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18164 ac_cv_func_getloadavg_setgid=yes
18166 ac_cv_func_getloadavg_setgid=no
18171 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18172 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18173 if test $ac_cv_func_getloadavg_setgid = yes; then
18176 cat >>confdefs.h <<\_ACEOF
18177 #define GETLOADAVG_PRIVILEGED 1
18184 if test $ac_cv_func_getloadavg_setgid = yes; then
18185 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18186 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18187 if test "${ac_cv_group_kmem+set}" = set; then
18188 echo $ECHO_N "(cached
) $ECHO_C" >&6
18190 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18191 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18192 # If we got an error (system does not support symlinks), try without -L.
18193 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18194 ac_cv_group_kmem=`echo $ac_ls_output \
18195 | sed -ne 's/[ ][ ]*/ /g;
18196 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18200 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18201 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18202 KMEM_GROUP=$ac_cv_group_kmem
18204 if test "x
$ac_save_LIBS" = x; then
18205 GETLOADAVG_LIBS=$LIBS
18207 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18213 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18214 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18215 if test "${ac_cv_sys_largefile_source+set}" = set; then
18216 echo $ECHO_N "(cached
) $ECHO_C" >&6
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18229 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18251 $as_test_x conftest$ac_exeext; then
18252 ac_cv_sys_largefile_source=no; break
18254 echo "$as_me: failed program was
:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18261 conftest$ac_exeext conftest.$ac_ext
18262 cat >conftest.$ac_ext <<_ACEOF
18265 cat confdefs.h >>conftest.$ac_ext
18266 cat >>conftest.$ac_ext <<_ACEOF
18267 /* end confdefs.h. */
18268 #define _LARGEFILE_SOURCE 1
18273 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18278 rm -f conftest.$ac_objext conftest$ac_exeext
18279 if { (ac_try="$ac_link"
18280 case "(($ac_try" in
18281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18282 *) ac_try_echo=$ac_try;;
18284 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18285 (eval "$ac_link") 2>conftest.er1
18287 grep -v '^ *+' conftest.er1 >conftest.err
18289 cat conftest.err >&5
18290 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18291 (exit $ac_status); } && {
18292 test -z "$ac_c_werror_flag" ||
18293 test ! -s conftest.err
18294 } && test -s conftest$ac_exeext &&
18295 $as_test_x conftest$ac_exeext; then
18296 ac_cv_sys_largefile_source=1; break
18298 echo "$as_me: failed program was
:" >&5
18299 sed 's/^/| /' conftest.$ac_ext >&5
18304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18305 conftest$ac_exeext conftest.$ac_ext
18306 ac_cv_sys_largefile_source=unknown
18310 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18312 case $ac_cv_sys_largefile_source in #(
18315 cat >>confdefs.h <<_ACEOF
18316 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18322 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18323 # in glibc 2.1.3, but that breaks too many other things.
18324 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18325 if test $ac_cv_sys_largefile_source != unknown; then
18327 cat >>confdefs.h <<\_ACEOF
18328 #define HAVE_FSEEKO 1
18334 # Configure getopt.
18335 # getopt.m4 serial 10
18337 # The getopt module assume you want GNU getopt, with getopt_long etc,
18338 # rather than vanilla POSIX getopt. This means your your code should
18339 # always include <getopt.h> for the getopt prototypes.
18351 # Prerequisites of lib/getopt*.
18358 for ac_header in getopt.h
18360 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18362 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18363 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18364 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18365 echo $ECHO_N "(cached
) $ECHO_C" >&6
18367 ac_res=`eval echo '${'$as_ac_Header'}'`
18368 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18371 # Is the header compilable?
18372 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18373 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18374 cat >conftest.$ac_ext <<_ACEOF
18377 cat confdefs.h >>conftest.$ac_ext
18378 cat >>conftest.$ac_ext <<_ACEOF
18379 /* end confdefs.h. */
18380 $ac_includes_default
18381 #include <$ac_header>
18383 rm -f conftest.$ac_objext
18384 if { (ac_try="$ac_compile"
18385 case "(($ac_try" in
18386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18387 *) ac_try_echo=$ac_try;;
18389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18390 (eval "$ac_compile") 2>conftest.er1
18392 grep -v '^ *+' conftest.er1 >conftest.err
18394 cat conftest.err >&5
18395 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18396 (exit $ac_status); } && {
18397 test -z "$ac_c_werror_flag" ||
18398 test ! -s conftest.err
18399 } && test -s conftest.$ac_objext; then
18400 ac_header_compiler=yes
18402 echo "$as_me: failed program was
:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ac_header_compiler=no
18408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18409 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18410 echo "${ECHO_T}$ac_header_compiler" >&6; }
18412 # Is the header present?
18413 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18414 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18415 cat >conftest.$ac_ext <<_ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h. */
18421 #include <$ac_header>
18423 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18424 case "(($ac_try" in
18425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18426 *) ac_try_echo=$ac_try;;
18428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18429 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18431 grep -v '^ *+' conftest.er1 >conftest.err
18433 cat conftest.err >&5
18434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18435 (exit $ac_status); } >/dev/null && {
18436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18437 test ! -s conftest.err
18439 ac_header_preproc=yes
18441 echo "$as_me: failed program was
:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_header_preproc=no
18447 rm -f conftest.err conftest.$ac_ext
18448 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18449 echo "${ECHO_T}$ac_header_preproc" >&6; }
18451 # So? What about this header?
18452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18454 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18455 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18456 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18458 ac_header_preproc=yes
18461 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18462 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18463 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18464 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18465 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18466 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18467 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18468 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18469 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18471 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18472 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18476 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18477 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18478 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18479 echo $ECHO_N "(cached
) $ECHO_C" >&6
18481 eval "$as_ac_Header=\
$ac_header_preproc"
18483 ac_res=`eval echo '${'$as_ac_Header'}'`
18484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18485 echo "${ECHO_T}$ac_res" >&6; }
18488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18489 cat >>confdefs.h <<_ACEOF
18490 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18499 if test -z "$GETOPT_H"; then
18501 for ac_func in getopt_long_only
18503 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18504 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18505 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18506 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18507 echo $ECHO_N "(cached
) $ECHO_C" >&6
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18516 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18517 #define $ac_func innocuous_$ac_func
18519 /* System header to define __stub macros and hopefully few prototypes,
18520 which can conflict with char $ac_func (); below.
18521 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18522 <limits.h> exists even on freestanding compilers. */
18525 # include <limits.h>
18527 # include <assert.h>
18532 /* Override any GCC internal prototype to avoid an error.
18533 Use char because int might match the return type of a GCC
18534 builtin and then its argument prototype would still apply. */
18539 /* The GNU C library defines this for functions which it implements
18540 to always fail with ENOSYS. Some functions are actually named
18541 something starting with __ and the normal name is an alias. */
18542 #if defined __stub_$ac_func || defined __stub___$ac_func
18549 return $ac_func ();
18554 rm -f conftest.$ac_objext conftest$ac_exeext
18555 if { (ac_try="$ac_link"
18556 case "(($ac_try" in
18557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18558 *) ac_try_echo=$ac_try;;
18560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18561 (eval "$ac_link") 2>conftest.er1
18563 grep -v '^ *+' conftest.er1 >conftest.err
18565 cat conftest.err >&5
18566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18567 (exit $ac_status); } && {
18568 test -z "$ac_c_werror_flag" ||
18569 test ! -s conftest.err
18570 } && test -s conftest$ac_exeext &&
18571 $as_test_x conftest$ac_exeext; then
18572 eval "$as_ac_var=yes"
18574 echo "$as_me: failed program was
:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 eval "$as_ac_var=no
"
18580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18581 conftest$ac_exeext conftest.$ac_ext
18583 ac_res=`eval echo '${'$as_ac_var'}'`
18584 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18585 echo "${ECHO_T}$ac_res" >&6; }
18586 if test `eval echo '${'$as_ac_var'}'` = yes; then
18587 cat >>confdefs.h <<_ACEOF
18588 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18598 if test -z "$GETOPT_H"; then
18599 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18600 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18601 if test "${ac_cv_have_decl_optreset+set}" = set; then
18602 echo $ECHO_N "(cached
) $ECHO_C" >&6
18604 cat >conftest.$ac_ext <<_ACEOF
18607 cat confdefs.h >>conftest.$ac_ext
18608 cat >>conftest.$ac_ext <<_ACEOF
18609 /* end confdefs.h. */
18610 #include <getopt.h>
18623 rm -f conftest.$ac_objext
18624 if { (ac_try="$ac_compile"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_compile") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest.$ac_objext; then
18640 ac_cv_have_decl_optreset=yes
18642 echo "$as_me: failed program was
:" >&5
18643 sed 's/^/| /' conftest.$ac_ext >&5
18645 ac_cv_have_decl_optreset=no
18648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18650 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18651 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18652 if test $ac_cv_have_decl_optreset = yes; then
18658 if test -z "$GETOPT_H"; then
18659 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18660 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18661 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18662 echo $ECHO_N "(cached
) $ECHO_C" >&6
18664 if test "$cross_compiling" = yes; then
18665 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18666 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18667 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18668 echo $ECHO_N "(cached
) $ECHO_C" >&6
18670 cat >conftest.$ac_ext <<_ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h. */
18676 #include <getopt.h>
18681 #ifndef getopt_clip
18682 (void) getopt_clip;
18689 rm -f conftest.$ac_objext
18690 if { (ac_try="$ac_compile"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_compile") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest.$ac_objext; then
18706 ac_cv_have_decl_getopt_clip=yes
18708 echo "$as_me: failed program was
:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_have_decl_getopt_clip=no
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18717 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18718 if test $ac_cv_have_decl_getopt_clip = yes; then
18719 gl_cv_func_gnu_getopt=no
18721 gl_cv_func_gnu_getopt=yes
18725 cat >conftest.$ac_ext <<_ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 #include <getopt.h>
18737 myargv[0] = "conftest
";
18740 return getopt (2, myargv, "+a
") != '?';
18746 rm -f conftest$ac_exeext
18747 if { (ac_try="$ac_link"
18748 case "(($ac_try" in
18749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18750 *) ac_try_echo=$ac_try;;
18752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18753 (eval "$ac_link") 2>&5
18755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18756 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18757 { (case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_try") 2>&5
18764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18765 (exit $ac_status); }; }; then
18766 gl_cv_func_gnu_getopt=yes
18768 echo "$as_me: program exited with status
$ac_status" >&5
18769 echo "$as_me: failed program was
:" >&5
18770 sed 's/^/| /' conftest.$ac_ext >&5
18772 ( exit $ac_status )
18773 gl_cv_func_gnu_getopt=no
18775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18780 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18781 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18782 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18789 if test -n "$GETOPT_H"; then
18794 cat >>confdefs.h <<\_ACEOF
18795 #define __GETOPT_PREFIX rpl_
18801 GETOPTOBJS='getopt.o getopt1.o'
18808 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18809 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18810 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18811 echo $ECHO_N "(cached
) $ECHO_C" >&6
18813 # Use it with a single arg.
18814 cat >conftest.$ac_ext <<_ACEOF
18817 cat confdefs.h >>conftest.$ac_ext
18818 cat >>conftest.$ac_ext <<_ACEOF
18819 /* end confdefs.h. */
18820 $ac_includes_default
18829 rm -f conftest.$ac_objext
18830 if { (ac_try="$ac_compile"
18831 case "(($ac_try" in
18832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18833 *) ac_try_echo=$ac_try;;
18835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18836 (eval "$ac_compile") 2>conftest.er1
18838 grep -v '^ *+' conftest.er1 >conftest.err
18840 cat conftest.err >&5
18841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18842 (exit $ac_status); } && {
18843 test -z "$ac_c_werror_flag" ||
18844 test ! -s conftest.err
18845 } && test -s conftest.$ac_objext; then
18846 ac_cv_func_getpgrp_void=no
18848 echo "$as_me: failed program was
:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18851 ac_cv_func_getpgrp_void=yes
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18858 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18859 if test $ac_cv_func_getpgrp_void = yes; then
18861 cat >>confdefs.h <<\_ACEOF
18862 #define GETPGRP_VOID 1
18869 for ac_func in strftime
18871 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18872 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18873 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18874 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18875 echo $ECHO_N "(cached
) $ECHO_C" >&6
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18885 #define $ac_func innocuous_$ac_func
18887 /* System header to define __stub macros and hopefully few prototypes,
18888 which can conflict with char $ac_func (); below.
18889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18890 <limits.h> exists even on freestanding compilers. */
18893 # include <limits.h>
18895 # include <assert.h>
18900 /* Override any GCC internal prototype to avoid an error.
18901 Use char because int might match the return type of a GCC
18902 builtin and then its argument prototype would still apply. */
18907 /* The GNU C library defines this for functions which it implements
18908 to always fail with ENOSYS. Some functions are actually named
18909 something starting with __ and the normal name is an alias. */
18910 #if defined __stub_$ac_func || defined __stub___$ac_func
18917 return $ac_func ();
18922 rm -f conftest.$ac_objext conftest$ac_exeext
18923 if { (ac_try="$ac_link"
18924 case "(($ac_try" in
18925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18926 *) ac_try_echo=$ac_try;;
18928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18929 (eval "$ac_link") 2>conftest.er1
18931 grep -v '^ *+' conftest.er1 >conftest.err
18933 cat conftest.err >&5
18934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18935 (exit $ac_status); } && {
18936 test -z "$ac_c_werror_flag" ||
18937 test ! -s conftest.err
18938 } && test -s conftest$ac_exeext &&
18939 $as_test_x conftest$ac_exeext; then
18940 eval "$as_ac_var=yes"
18942 echo "$as_me: failed program was
:" >&5
18943 sed 's/^/| /' conftest.$ac_ext >&5
18945 eval "$as_ac_var=no
"
18948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18949 conftest$ac_exeext conftest.$ac_ext
18951 ac_res=`eval echo '${'$as_ac_var'}'`
18952 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18953 echo "${ECHO_T}$ac_res" >&6; }
18954 if test `eval echo '${'$as_ac_var'}'` = yes; then
18955 cat >>confdefs.h <<_ACEOF
18956 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18960 # strftime is in -lintl on SCO UNIX.
18961 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18962 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18963 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18964 echo $ECHO_N "(cached
) $ECHO_C" >&6
18966 ac_check_lib_save_LIBS=$LIBS
18967 LIBS="-lintl $LIBS"
18968 cat >conftest.$ac_ext <<_ACEOF
18971 cat confdefs.h >>conftest.$ac_ext
18972 cat >>conftest.$ac_ext <<_ACEOF
18973 /* end confdefs.h. */
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18985 return strftime ();
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18999 grep -v '^ *+' conftest.er1 >conftest.err
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest$ac_exeext &&
19007 $as_test_x conftest$ac_exeext; then
19008 ac_cv_lib_intl_strftime=yes
19010 echo "$as_me: failed program was
:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19013 ac_cv_lib_intl_strftime=no
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19018 LIBS=$ac_check_lib_save_LIBS
19020 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19021 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19022 if test $ac_cv_lib_intl_strftime = yes; then
19023 cat >>confdefs.h <<\_ACEOF
19024 #define HAVE_STRFTIME 1
19027 LIBS="-lintl $LIBS"
19036 for ac_func in grantpt
19038 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19039 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19040 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19041 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19042 echo $ECHO_N "(cached
) $ECHO_C" >&6
19044 cat >conftest.$ac_ext <<_ACEOF
19047 cat confdefs.h >>conftest.$ac_ext
19048 cat >>conftest.$ac_ext <<_ACEOF
19049 /* end confdefs.h. */
19050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19052 #define $ac_func innocuous_$ac_func
19054 /* System header to define __stub macros and hopefully few prototypes,
19055 which can conflict with char $ac_func (); below.
19056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19057 <limits.h> exists even on freestanding compilers. */
19060 # include <limits.h>
19062 # include <assert.h>
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19074 /* The GNU C library defines this for functions which it implements
19075 to always fail with ENOSYS. Some functions are actually named
19076 something starting with __ and the normal name is an alias. */
19077 #if defined __stub_$ac_func || defined __stub___$ac_func
19084 return $ac_func ();
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19102 (exit $ac_status); } && {
19103 test -z "$ac_c_werror_flag" ||
19104 test ! -s conftest.err
19105 } && test -s conftest$ac_exeext &&
19106 $as_test_x conftest$ac_exeext; then
19107 eval "$as_ac_var=yes"
19109 echo "$as_me: failed program was
:" >&5
19110 sed 's/^/| /' conftest.$ac_ext >&5
19112 eval "$as_ac_var=no
"
19115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19116 conftest$ac_exeext conftest.$ac_ext
19118 ac_res=`eval echo '${'$as_ac_var'}'`
19119 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19120 echo "${ECHO_T}$ac_res" >&6; }
19121 if test `eval echo '${'$as_ac_var'}'` = yes; then
19122 cat >>confdefs.h <<_ACEOF
19123 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19130 # PTY-related GNU extensions.
19132 for ac_func in getpt
19134 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19135 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19136 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19137 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19138 echo $ECHO_N "(cached
) $ECHO_C" >&6
19140 cat >conftest.$ac_ext <<_ACEOF
19143 cat confdefs.h >>conftest.$ac_ext
19144 cat >>conftest.$ac_ext <<_ACEOF
19145 /* end confdefs.h. */
19146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19148 #define $ac_func innocuous_$ac_func
19150 /* System header to define __stub macros and hopefully few prototypes,
19151 which can conflict with char $ac_func (); below.
19152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19153 <limits.h> exists even on freestanding compilers. */
19156 # include <limits.h>
19158 # include <assert.h>
19163 /* Override any GCC internal prototype to avoid an error.
19164 Use char because int might match the return type of a GCC
19165 builtin and then its argument prototype would still apply. */
19170 /* The GNU C library defines this for functions which it implements
19171 to always fail with ENOSYS. Some functions are actually named
19172 something starting with __ and the normal name is an alias. */
19173 #if defined __stub_$ac_func || defined __stub___$ac_func
19180 return $ac_func ();
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19194 grep -v '^ *+' conftest.er1 >conftest.err
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 eval "$as_ac_var=yes"
19205 echo "$as_me: failed program was
:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19208 eval "$as_ac_var=no
"
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19214 ac_res=`eval echo '${'$as_ac_var'}'`
19215 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19216 echo "${ECHO_T}$ac_res" >&6; }
19217 if test `eval echo '${'$as_ac_var'}'` = yes; then
19218 cat >>confdefs.h <<_ACEOF
19219 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19226 # Check this now, so that we will NOT find the above functions in ncurses.
19227 # That is because we have not set up to link ncurses in lib-src.
19228 # It's better to believe a function is not available
19229 # than to expect to find it in ncurses.
19231 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19232 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19233 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19234 echo $ECHO_N "(cached
) $ECHO_C" >&6
19236 ac_check_lib_save_LIBS=$LIBS
19237 LIBS="-lncurses $LIBS"
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19245 /* Override any GCC internal prototype to avoid an error.
19246 Use char because int might match the return type of a GCC
19247 builtin and then its argument prototype would still apply. */
19260 rm -f conftest.$ac_objext conftest$ac_exeext
19261 if { (ac_try="$ac_link"
19262 case "(($ac_try" in
19263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19264 *) ac_try_echo=$ac_try;;
19266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19267 (eval "$ac_link") 2>conftest.er1
19269 grep -v '^ *+' conftest.er1 >conftest.err
19271 cat conftest.err >&5
19272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19273 (exit $ac_status); } && {
19274 test -z "$ac_c_werror_flag" ||
19275 test ! -s conftest.err
19276 } && test -s conftest$ac_exeext &&
19277 $as_test_x conftest$ac_exeext; then
19278 ac_cv_lib_ncurses_tparm=yes
19280 echo "$as_me: failed program was
:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19283 ac_cv_lib_ncurses_tparm=no
19286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19287 conftest$ac_exeext conftest.$ac_ext
19288 LIBS=$ac_check_lib_save_LIBS
19290 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19291 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19292 if test $ac_cv_lib_ncurses_tparm = yes; then
19293 cat >>confdefs.h <<_ACEOF
19294 #define HAVE_LIBNCURSES 1
19297 LIBS="-lncurses $LIBS"
19302 # Do we need the Hesiod library to provide the support routines?
19303 if test "$with_hesiod" = yes ; then
19304 # Don't set $LIBS here -- see comments above.
19306 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19307 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19308 if test "${ac_cv_func_res_send+set}" = set; then
19309 echo $ECHO_N "(cached
) $ECHO_C" >&6
19311 cat >conftest.$ac_ext <<_ACEOF
19314 cat confdefs.h >>conftest.$ac_ext
19315 cat >>conftest.$ac_ext <<_ACEOF
19316 /* end confdefs.h. */
19317 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19319 #define res_send innocuous_res_send
19321 /* System header to define __stub macros and hopefully few prototypes,
19322 which can conflict with char res_send (); below.
19323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19324 <limits.h> exists even on freestanding compilers. */
19327 # include <limits.h>
19329 # include <assert.h>
19334 /* Override any GCC internal prototype to avoid an error.
19335 Use char because int might match the return type of a GCC
19336 builtin and then its argument prototype would still apply. */
19341 /* The GNU C library defines this for functions which it implements
19342 to always fail with ENOSYS. Some functions are actually named
19343 something starting with __ and the normal name is an alias. */
19344 #if defined __stub_res_send || defined __stub___res_send
19351 return res_send ();
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360 *) ac_try_echo=$ac_try;;
19362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19363 (eval "$ac_link") 2>conftest.er1
19365 grep -v '^ *+' conftest.er1 >conftest.err
19367 cat conftest.err >&5
19368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19369 (exit $ac_status); } && {
19370 test -z "$ac_c_werror_flag" ||
19371 test ! -s conftest.err
19372 } && test -s conftest$ac_exeext &&
19373 $as_test_x conftest$ac_exeext; then
19374 ac_cv_func_res_send=yes
19376 echo "$as_me: failed program was
:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_func_res_send=no
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383 conftest$ac_exeext conftest.$ac_ext
19385 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19386 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19387 if test $ac_cv_func_res_send = yes; then
19390 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19391 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19392 if test "${ac_cv_func___res_send+set}" = set; then
19393 echo $ECHO_N "(cached
) $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19402 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19403 #define __res_send innocuous___res_send
19405 /* System header to define __stub macros and hopefully few prototypes,
19406 which can conflict with char __res_send (); below.
19407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19408 <limits.h> exists even on freestanding compilers. */
19411 # include <limits.h>
19413 # include <assert.h>
19418 /* Override any GCC internal prototype to avoid an error.
19419 Use char because int might match the return type of a GCC
19420 builtin and then its argument prototype would still apply. */
19424 char __res_send ();
19425 /* The GNU C library defines this for functions which it implements
19426 to always fail with ENOSYS. Some functions are actually named
19427 something starting with __ and the normal name is an alias. */
19428 #if defined __stub___res_send || defined __stub_____res_send
19435 return __res_send ();
19440 rm -f conftest.$ac_objext conftest$ac_exeext
19441 if { (ac_try="$ac_link"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_link") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19453 (exit $ac_status); } && {
19454 test -z "$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 } && test -s conftest$ac_exeext &&
19457 $as_test_x conftest$ac_exeext; then
19458 ac_cv_func___res_send=yes
19460 echo "$as_me: failed program was
:" >&5
19461 sed 's/^/| /' conftest.$ac_ext >&5
19463 ac_cv_func___res_send=no
19466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19467 conftest$ac_exeext conftest.$ac_ext
19469 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19470 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19471 if test $ac_cv_func___res_send = yes; then
19474 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19475 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19476 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19477 echo $ECHO_N "(cached
) $ECHO_C" >&6
19479 ac_check_lib_save_LIBS=$LIBS
19480 LIBS="-lresolv $LIBS"
19481 cat >conftest.$ac_ext <<_ACEOF
19484 cat confdefs.h >>conftest.$ac_ext
19485 cat >>conftest.$ac_ext <<_ACEOF
19486 /* end confdefs.h. */
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply. */
19498 return res_send ();
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 ac_cv_lib_resolv_res_send=yes
19523 echo "$as_me: failed program was
:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_lib_resolv_res_send=no
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19531 LIBS=$ac_check_lib_save_LIBS
19533 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19534 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19535 if test $ac_cv_lib_resolv_res_send = yes; then
19538 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19539 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19540 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19541 echo $ECHO_N "(cached
) $ECHO_C" >&6
19543 ac_check_lib_save_LIBS=$LIBS
19544 LIBS="-lresolv $LIBS"
19545 cat >conftest.$ac_ext <<_ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19552 /* Override any GCC internal prototype to avoid an error.
19553 Use char because int might match the return type of a GCC
19554 builtin and then its argument prototype would still apply. */
19558 char __res_send ();
19562 return __res_send ();
19567 rm -f conftest.$ac_objext conftest$ac_exeext
19568 if { (ac_try="$ac_link"
19569 case "(($ac_try" in
19570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19571 *) ac_try_echo=$ac_try;;
19573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19574 (eval "$ac_link") 2>conftest.er1
19576 grep -v '^ *+' conftest.er1 >conftest.err
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19580 (exit $ac_status); } && {
19581 test -z "$ac_c_werror_flag" ||
19582 test ! -s conftest.err
19583 } && test -s conftest$ac_exeext &&
19584 $as_test_x conftest$ac_exeext; then
19585 ac_cv_lib_resolv___res_send=yes
19587 echo "$as_me: failed program was
:" >&5
19588 sed 's/^/| /' conftest.$ac_ext >&5
19590 ac_cv_lib_resolv___res_send=no
19593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19594 conftest$ac_exeext conftest.$ac_ext
19595 LIBS=$ac_check_lib_save_LIBS
19597 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19598 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19599 if test $ac_cv_lib_resolv___res_send = yes; then
19609 if test "$resolv" = yes ; then
19612 cat >>confdefs.h <<\_ACEOF
19613 #define HAVE_LIBRESOLV 1
19619 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19620 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19621 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19622 echo $ECHO_N "(cached
) $ECHO_C" >&6
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19632 #define hes_getmailhost innocuous_hes_getmailhost
19634 /* System header to define __stub macros and hopefully few prototypes,
19635 which can conflict with char hes_getmailhost (); below.
19636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19637 <limits.h> exists even on freestanding compilers. */
19640 # include <limits.h>
19642 # include <assert.h>
19645 #undef hes_getmailhost
19647 /* Override any GCC internal prototype to avoid an error.
19648 Use char because int might match the return type of a GCC
19649 builtin and then its argument prototype would still apply. */
19653 char hes_getmailhost ();
19654 /* The GNU C library defines this for functions which it implements
19655 to always fail with ENOSYS. Some functions are actually named
19656 something starting with __ and the normal name is an alias. */
19657 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19664 return hes_getmailhost ();
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext &&
19686 $as_test_x conftest$ac_exeext; then
19687 ac_cv_func_hes_getmailhost=yes
19689 echo "$as_me: failed program was
:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19692 ac_cv_func_hes_getmailhost=no
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696 conftest$ac_exeext conftest.$ac_ext
19698 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19699 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19700 if test $ac_cv_func_hes_getmailhost = yes; then
19703 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19704 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19705 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19706 echo $ECHO_N "(cached
) $ECHO_C" >&6
19708 ac_check_lib_save_LIBS=$LIBS
19709 LIBS="-lhesiod $RESOLVLIB $LIBS"
19710 cat >conftest.$ac_ext <<_ACEOF
19713 cat confdefs.h >>conftest.$ac_ext
19714 cat >>conftest.$ac_ext <<_ACEOF
19715 /* end confdefs.h. */
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19723 char hes_getmailhost ();
19727 return hes_getmailhost ();
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19750 ac_cv_lib_hesiod_hes_getmailhost=yes
19752 echo "$as_me: failed program was
:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19755 ac_cv_lib_hesiod_hes_getmailhost=no
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 LIBS=$ac_check_lib_save_LIBS
19762 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19763 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19764 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19766 cat >>confdefs.h <<\_ACEOF
19767 #define HAVE_LIBHESIOD 1
19778 # These tell us which Kerberos-related libraries to use.
19779 if test "${with_kerberos+set}" = set; then
19781 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19782 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19783 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19784 echo $ECHO_N "(cached
) $ECHO_C" >&6
19786 ac_check_lib_save_LIBS=$LIBS
19787 LIBS="-lcom_err $LIBS"
19788 cat >conftest.$ac_ext <<_ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19795 /* Override any GCC internal prototype to avoid an error.
19796 Use char because int might match the return type of a GCC
19797 builtin and then its argument prototype would still apply. */
19810 rm -f conftest.$ac_objext conftest$ac_exeext
19811 if { (ac_try="$ac_link"
19812 case "(($ac_try" in
19813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19814 *) ac_try_echo=$ac_try;;
19816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19817 (eval "$ac_link") 2>conftest.er1
19819 grep -v '^ *+' conftest.er1 >conftest.err
19821 cat conftest.err >&5
19822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19823 (exit $ac_status); } && {
19824 test -z "$ac_c_werror_flag" ||
19825 test ! -s conftest.err
19826 } && test -s conftest$ac_exeext &&
19827 $as_test_x conftest$ac_exeext; then
19828 ac_cv_lib_com_err_com_err=yes
19830 echo "$as_me: failed program was
:" >&5
19831 sed 's/^/| /' conftest.$ac_ext >&5
19833 ac_cv_lib_com_err_com_err=no
19836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19837 conftest$ac_exeext conftest.$ac_ext
19838 LIBS=$ac_check_lib_save_LIBS
19840 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19841 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19842 if test $ac_cv_lib_com_err_com_err = yes; then
19843 cat >>confdefs.h <<_ACEOF
19844 #define HAVE_LIBCOM_ERR 1
19847 LIBS="-lcom_err $LIBS"
19852 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19853 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19854 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19855 echo $ECHO_N "(cached
) $ECHO_C" >&6
19857 ac_check_lib_save_LIBS=$LIBS
19858 LIBS="-lk5crypto $LIBS"
19859 cat >conftest.$ac_ext <<_ACEOF
19862 cat confdefs.h >>conftest.$ac_ext
19863 cat >>conftest.$ac_ext <<_ACEOF
19864 /* end confdefs.h. */
19866 /* Override any GCC internal prototype to avoid an error.
19867 Use char because int might match the return type of a GCC
19868 builtin and then its argument prototype would still apply. */
19872 char mit_des_cbc_encrypt ();
19876 return mit_des_cbc_encrypt ();
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19899 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19901 echo "$as_me: failed program was
:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19904 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19909 LIBS=$ac_check_lib_save_LIBS
19911 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19912 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19913 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19914 cat >>confdefs.h <<_ACEOF
19915 #define HAVE_LIBK5CRYPTO 1
19918 LIBS="-lk5crypto $LIBS"
19923 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19924 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19925 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19926 echo $ECHO_N "(cached
) $ECHO_C" >&6
19928 ac_check_lib_save_LIBS=$LIBS
19929 LIBS="-lcrypto $LIBS"
19930 cat >conftest.$ac_ext <<_ACEOF
19933 cat confdefs.h >>conftest.$ac_ext
19934 cat >>conftest.$ac_ext <<_ACEOF
19935 /* end confdefs.h. */
19937 /* Override any GCC internal prototype to avoid an error.
19938 Use char because int might match the return type of a GCC
19939 builtin and then its argument prototype would still apply. */
19943 char mit_des_cbc_encrypt ();
19947 return mit_des_cbc_encrypt ();
19952 rm -f conftest.$ac_objext conftest$ac_exeext
19953 if { (ac_try="$ac_link"
19954 case "(($ac_try" in
19955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956 *) ac_try_echo=$ac_try;;
19958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19959 (eval "$ac_link") 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19965 (exit $ac_status); } && {
19966 test -z "$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19968 } && test -s conftest$ac_exeext &&
19969 $as_test_x conftest$ac_exeext; then
19970 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19972 echo "$as_me: failed program was
:" >&5
19973 sed 's/^/| /' conftest.$ac_ext >&5
19975 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19979 conftest$ac_exeext conftest.$ac_ext
19980 LIBS=$ac_check_lib_save_LIBS
19982 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19983 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19984 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19985 cat >>confdefs.h <<_ACEOF
19986 #define HAVE_LIBCRYPTO 1
19989 LIBS="-lcrypto $LIBS"
19994 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19995 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19996 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19997 echo $ECHO_N "(cached
) $ECHO_C" >&6
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-lkrb5 $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20014 char krb5_init_context ();
20018 return krb5_init_context ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_krb5_krb5_init_context=yes
20043 echo "$as_me: failed program was
:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_cv_lib_krb5_krb5_init_context=no
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20054 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20055 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define HAVE_LIBKRB5 1
20060 LIBS="-lkrb5 $LIBS"
20064 if test "${with_kerberos5+set}" != set; then
20066 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20067 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20068 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20069 echo $ECHO_N "(cached
) $ECHO_C" >&6
20071 ac_check_lib_save_LIBS=$LIBS
20072 LIBS="-ldes425 $LIBS"
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20080 /* Override any GCC internal prototype to avoid an error.
20081 Use char because int might match the return type of a GCC
20082 builtin and then its argument prototype would still apply. */
20086 char des_cbc_encrypt ();
20090 return des_cbc_encrypt ();
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (ac_try="$ac_link"
20097 case "(($ac_try" in
20098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20099 *) ac_try_echo=$ac_try;;
20101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20102 (eval "$ac_link") 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20108 (exit $ac_status); } && {
20109 test -z "$ac_c_werror_flag" ||
20110 test ! -s conftest.err
20111 } && test -s conftest$ac_exeext &&
20112 $as_test_x conftest$ac_exeext; then
20113 ac_cv_lib_des425_des_cbc_encrypt=yes
20115 echo "$as_me: failed program was
:" >&5
20116 sed 's/^/| /' conftest.$ac_ext >&5
20118 ac_cv_lib_des425_des_cbc_encrypt=no
20121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20122 conftest$ac_exeext conftest.$ac_ext
20123 LIBS=$ac_check_lib_save_LIBS
20125 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20126 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20127 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_LIBDES425 1
20132 LIBS="-ldes425 $LIBS"
20136 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20137 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20138 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20139 echo $ECHO_N "(cached
) $ECHO_C" >&6
20141 ac_check_lib_save_LIBS=$LIBS
20143 cat >conftest.$ac_ext <<_ACEOF
20146 cat confdefs.h >>conftest.$ac_ext
20147 cat >>conftest.$ac_ext <<_ACEOF
20148 /* end confdefs.h. */
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20156 char des_cbc_encrypt ();
20160 return des_cbc_encrypt ();
20165 rm -f conftest.$ac_objext conftest$ac_exeext
20166 if { (ac_try="$ac_link"
20167 case "(($ac_try" in
20168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20169 *) ac_try_echo=$ac_try;;
20171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20172 (eval "$ac_link") 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20178 (exit $ac_status); } && {
20179 test -z "$ac_c_werror_flag" ||
20180 test ! -s conftest.err
20181 } && test -s conftest$ac_exeext &&
20182 $as_test_x conftest$ac_exeext; then
20183 ac_cv_lib_des_des_cbc_encrypt=yes
20185 echo "$as_me: failed program was
:" >&5
20186 sed 's/^/| /' conftest.$ac_ext >&5
20188 ac_cv_lib_des_des_cbc_encrypt=no
20191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20195 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20196 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20197 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_LIBDES 1
20209 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20210 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20211 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20212 echo $ECHO_N "(cached
) $ECHO_C" >&6
20214 ac_check_lib_save_LIBS=$LIBS
20215 LIBS="-lkrb4 $LIBS"
20216 cat >conftest.$ac_ext <<_ACEOF
20219 cat confdefs.h >>conftest.$ac_ext
20220 cat >>conftest.$ac_ext <<_ACEOF
20221 /* end confdefs.h. */
20223 /* Override any GCC internal prototype to avoid an error.
20224 Use char because int might match the return type of a GCC
20225 builtin and then its argument prototype would still apply. */
20229 char krb_get_cred ();
20233 return krb_get_cred ();
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_lib_krb4_krb_get_cred=yes
20258 echo "$as_me: failed program was
:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_cv_lib_krb4_krb_get_cred=no
20264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20265 conftest$ac_exeext conftest.$ac_ext
20266 LIBS=$ac_check_lib_save_LIBS
20268 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20269 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20270 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20271 cat >>confdefs.h <<_ACEOF
20272 #define HAVE_LIBKRB4 1
20275 LIBS="-lkrb4 $LIBS"
20279 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20280 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20281 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20282 echo $ECHO_N "(cached
) $ECHO_C" >&6
20284 ac_check_lib_save_LIBS=$LIBS
20286 cat >conftest.$ac_ext <<_ACEOF
20289 cat confdefs.h >>conftest.$ac_ext
20290 cat >>conftest.$ac_ext <<_ACEOF
20291 /* end confdefs.h. */
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20299 char krb_get_cred ();
20303 return krb_get_cred ();
20308 rm -f conftest.$ac_objext conftest$ac_exeext
20309 if { (ac_try="$ac_link"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_link") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest$ac_exeext &&
20325 $as_test_x conftest$ac_exeext; then
20326 ac_cv_lib_krb_krb_get_cred=yes
20328 echo "$as_me: failed program was
:" >&5
20329 sed 's/^/| /' conftest.$ac_ext >&5
20331 ac_cv_lib_krb_krb_get_cred=no
20334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20335 conftest$ac_exeext conftest.$ac_ext
20336 LIBS=$ac_check_lib_save_LIBS
20338 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20339 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20340 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20341 cat >>confdefs.h <<_ACEOF
20342 #define HAVE_LIBKRB 1
20353 if test "${with_kerberos5+set}" = set; then
20355 for ac_header in krb5.h
20357 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20359 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20360 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20362 echo $ECHO_N "(cached
) $ECHO_C" >&6
20364 ac_res=`eval echo '${'$as_ac_Header'}'`
20365 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20366 echo "${ECHO_T}$ac_res" >&6; }
20368 # Is the header compilable?
20369 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20370 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20371 cat >conftest.$ac_ext <<_ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377 $ac_includes_default
20378 #include <$ac_header>
20380 rm -f conftest.$ac_objext
20381 if { (ac_try="$ac_compile"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_compile") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20393 (exit $ac_status); } && {
20394 test -z "$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20396 } && test -s conftest.$ac_objext; then
20397 ac_header_compiler=yes
20399 echo "$as_me: failed program was
:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_header_compiler=no
20405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20407 echo "${ECHO_T}$ac_header_compiler" >&6; }
20409 # Is the header present?
20410 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20411 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20412 cat >conftest.$ac_ext <<_ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418 #include <$ac_header>
20420 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20421 case "(($ac_try" in
20422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20423 *) ac_try_echo=$ac_try;;
20425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20426 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20428 grep -v '^ *+' conftest.er1 >conftest.err
20430 cat conftest.err >&5
20431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20432 (exit $ac_status); } >/dev/null && {
20433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20434 test ! -s conftest.err
20436 ac_header_preproc=yes
20438 echo "$as_me: failed program was
:" >&5
20439 sed 's/^/| /' conftest.$ac_ext >&5
20441 ac_header_preproc=no
20444 rm -f conftest.err conftest.$ac_ext
20445 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20446 echo "${ECHO_T}$ac_header_preproc" >&6; }
20448 # So? What about this header?
20449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20451 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20452 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20453 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20455 ac_header_preproc=yes
20458 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20459 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20460 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20461 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20462 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20463 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20464 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20465 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20466 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20468 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20469 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20473 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20474 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20475 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20476 echo $ECHO_N "(cached
) $ECHO_C" >&6
20478 eval "$as_ac_Header=\
$ac_header_preproc"
20480 ac_res=`eval echo '${'$as_ac_Header'}'`
20481 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20482 echo "${ECHO_T}$ac_res" >&6; }
20485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20496 for ac_header in des.h
20498 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20503 echo $ECHO_N "(cached
) $ECHO_C" >&6
20505 ac_res=`eval echo '${'$as_ac_Header'}'`
20506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20507 echo "${ECHO_T}$ac_res" >&6; }
20509 # Is the header compilable?
20510 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20511 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 $ac_includes_default
20519 #include <$ac_header>
20521 rm -f conftest.$ac_objext
20522 if { (ac_try="$ac_compile"
20523 case "(($ac_try" in
20524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20525 *) ac_try_echo=$ac_try;;
20527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20528 (eval "$ac_compile") 2>conftest.er1
20530 grep -v '^ *+' conftest.er1 >conftest.err
20532 cat conftest.err >&5
20533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20534 (exit $ac_status); } && {
20535 test -z "$ac_c_werror_flag" ||
20536 test ! -s conftest.err
20537 } && test -s conftest.$ac_objext; then
20538 ac_header_compiler=yes
20540 echo "$as_me: failed program was
:" >&5
20541 sed 's/^/| /' conftest.$ac_ext >&5
20543 ac_header_compiler=no
20546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20548 echo "${ECHO_T}$ac_header_compiler" >&6; }
20550 # Is the header present?
20551 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20552 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20553 cat >conftest.$ac_ext <<_ACEOF
20556 cat confdefs.h >>conftest.$ac_ext
20557 cat >>conftest.$ac_ext <<_ACEOF
20558 /* end confdefs.h. */
20559 #include <$ac_header>
20561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20573 (exit $ac_status); } >/dev/null && {
20574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20577 ac_header_preproc=yes
20579 echo "$as_me: failed program was
:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_header_preproc=no
20585 rm -f conftest.err conftest.$ac_ext
20586 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20587 echo "${ECHO_T}$ac_header_preproc" >&6; }
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20592 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20593 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20596 ac_header_preproc=yes
20599 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20600 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20601 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20602 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20603 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20604 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20605 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20606 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20607 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20609 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20610 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20614 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20615 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20617 echo $ECHO_N "(cached
) $ECHO_C" >&6
20619 eval "$as_ac_Header=\
$ac_header_preproc"
20621 ac_res=`eval echo '${'$as_ac_Header'}'`
20622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20623 echo "${ECHO_T}$ac_res" >&6; }
20626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20627 cat >>confdefs.h <<_ACEOF
20628 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20633 for ac_header in kerberosIV/des.h
20635 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20636 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20637 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20638 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20640 echo $ECHO_N "(cached
) $ECHO_C" >&6
20642 ac_res=`eval echo '${'$as_ac_Header'}'`
20643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20644 echo "${ECHO_T}$ac_res" >&6; }
20646 # Is the header compilable?
20647 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20648 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20649 cat >conftest.$ac_ext <<_ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 $ac_includes_default
20656 #include <$ac_header>
20658 rm -f conftest.$ac_objext
20659 if { (ac_try="$ac_compile"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_compile") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20671 (exit $ac_status); } && {
20672 test -z "$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20674 } && test -s conftest.$ac_objext; then
20675 ac_header_compiler=yes
20677 echo "$as_me: failed program was
:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_header_compiler=no
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20685 echo "${ECHO_T}$ac_header_compiler" >&6; }
20687 # Is the header present?
20688 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20689 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20690 cat >conftest.$ac_ext <<_ACEOF
20693 cat confdefs.h >>conftest.$ac_ext
20694 cat >>conftest.$ac_ext <<_ACEOF
20695 /* end confdefs.h. */
20696 #include <$ac_header>
20698 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20699 case "(($ac_try" in
20700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701 *) ac_try_echo=$ac_try;;
20703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20704 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20710 (exit $ac_status); } >/dev/null && {
20711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20712 test ! -s conftest.err
20714 ac_header_preproc=yes
20716 echo "$as_me: failed program was
:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_header_preproc=no
20722 rm -f conftest.err conftest.$ac_ext
20723 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20724 echo "${ECHO_T}$ac_header_preproc" >&6; }
20726 # So? What about this header?
20727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20729 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20730 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20731 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20733 ac_header_preproc=yes
20736 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20737 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20738 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20739 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20740 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20741 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20742 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20743 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20744 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20746 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20747 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20751 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20752 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20754 echo $ECHO_N "(cached
) $ECHO_C" >&6
20756 eval "$as_ac_Header=\
$ac_header_preproc"
20758 ac_res=`eval echo '${'$as_ac_Header'}'`
20759 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20760 echo "${ECHO_T}$ac_res" >&6; }
20763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20764 cat >>confdefs.h <<_ACEOF
20765 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20770 for ac_header in kerberos/des.h
20772 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20773 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20777 echo $ECHO_N "(cached
) $ECHO_C" >&6
20779 ac_res=`eval echo '${'$as_ac_Header'}'`
20780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20781 echo "${ECHO_T}$ac_res" >&6; }
20783 # Is the header compilable?
20784 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20785 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20786 cat >conftest.$ac_ext <<_ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h. */
20792 $ac_includes_default
20793 #include <$ac_header>
20795 rm -f conftest.$ac_objext
20796 if { (ac_try="$ac_compile"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_compile") 2>conftest.er1
20804 grep -v '^ *+' conftest.er1 >conftest.err
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest.$ac_objext; then
20812 ac_header_compiler=yes
20814 echo "$as_me: failed program was
:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20817 ac_header_compiler=no
20820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20821 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20822 echo "${ECHO_T}$ac_header_compiler" >&6; }
20824 # Is the header present?
20825 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20826 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20827 cat >conftest.$ac_ext <<_ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h. */
20833 #include <$ac_header>
20835 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20836 case "(($ac_try" in
20837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20838 *) ac_try_echo=$ac_try;;
20840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20841 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20843 grep -v '^ *+' conftest.er1 >conftest.err
20845 cat conftest.err >&5
20846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20847 (exit $ac_status); } >/dev/null && {
20848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20849 test ! -s conftest.err
20851 ac_header_preproc=yes
20853 echo "$as_me: failed program was
:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20856 ac_header_preproc=no
20859 rm -f conftest.err conftest.$ac_ext
20860 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20861 echo "${ECHO_T}$ac_header_preproc" >&6; }
20863 # So? What about this header?
20864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20866 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20867 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20870 ac_header_preproc=yes
20873 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20874 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20875 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20876 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20877 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20878 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20879 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20880 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20881 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20883 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20884 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20888 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20889 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20891 echo $ECHO_N "(cached
) $ECHO_C" >&6
20893 eval "$as_ac_Header=\
$ac_header_preproc"
20895 ac_res=`eval echo '${'$as_ac_Header'}'`
20896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20897 echo "${ECHO_T}$ac_res" >&6; }
20900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20901 cat >>confdefs.h <<_ACEOF
20902 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20918 for ac_header in krb.h
20920 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20921 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20922 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20923 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20924 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20925 echo $ECHO_N "(cached
) $ECHO_C" >&6
20927 ac_res=`eval echo '${'$as_ac_Header'}'`
20928 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20929 echo "${ECHO_T}$ac_res" >&6; }
20931 # Is the header compilable?
20932 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20933 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 $ac_includes_default
20941 #include <$ac_header>
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest.$ac_objext; then
20960 ac_header_compiler=yes
20962 echo "$as_me: failed program was
:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_header_compiler=no
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20969 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20970 echo "${ECHO_T}$ac_header_compiler" >&6; }
20972 # Is the header present?
20973 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20974 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 #include <$ac_header>
20983 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20984 case "(($ac_try" in
20985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986 *) ac_try_echo=$ac_try;;
20988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20989 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20991 grep -v '^ *+' conftest.er1 >conftest.err
20993 cat conftest.err >&5
20994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20995 (exit $ac_status); } >/dev/null && {
20996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20997 test ! -s conftest.err
20999 ac_header_preproc=yes
21001 echo "$as_me: failed program was
:" >&5
21002 sed 's/^/| /' conftest.$ac_ext >&5
21004 ac_header_preproc=no
21007 rm -f conftest.err conftest.$ac_ext
21008 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21009 echo "${ECHO_T}$ac_header_preproc" >&6; }
21011 # So? What about this header?
21012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21014 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21015 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21016 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21017 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21018 ac_header_preproc=yes
21021 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21022 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21023 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21024 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21025 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21026 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21027 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21028 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21029 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21031 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21032 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21036 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21037 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached
) $ECHO_C" >&6
21041 eval "$as_ac_Header=\
$ac_header_preproc"
21043 ac_res=`eval echo '${'$as_ac_Header'}'`
21044 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21045 echo "${ECHO_T}$ac_res" >&6; }
21048 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21049 cat >>confdefs.h <<_ACEOF
21050 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21055 for ac_header in kerberosIV/krb.h
21057 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21059 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21060 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21061 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21062 echo $ECHO_N "(cached
) $ECHO_C" >&6
21064 ac_res=`eval echo '${'$as_ac_Header'}'`
21065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21066 echo "${ECHO_T}$ac_res" >&6; }
21068 # Is the header compilable?
21069 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21070 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 $ac_includes_default
21078 #include <$ac_header>
21080 rm -f conftest.$ac_objext
21081 if { (ac_try="$ac_compile"
21082 case "(($ac_try" in
21083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21084 *) ac_try_echo=$ac_try;;
21086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21087 (eval "$ac_compile") 2>conftest.er1
21089 grep -v '^ *+' conftest.er1 >conftest.err
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21093 (exit $ac_status); } && {
21094 test -z "$ac_c_werror_flag" ||
21095 test ! -s conftest.err
21096 } && test -s conftest.$ac_objext; then
21097 ac_header_compiler=yes
21099 echo "$as_me: failed program was
:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_header_compiler=no
21105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21106 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21107 echo "${ECHO_T}$ac_header_compiler" >&6; }
21109 # Is the header present?
21110 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21111 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21118 #include <$ac_header>
21120 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21132 (exit $ac_status); } >/dev/null && {
21133 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21134 test ! -s conftest.err
21136 ac_header_preproc=yes
21138 echo "$as_me: failed program was
:" >&5
21139 sed 's/^/| /' conftest.$ac_ext >&5
21141 ac_header_preproc=no
21144 rm -f conftest.err conftest.$ac_ext
21145 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21146 echo "${ECHO_T}$ac_header_preproc" >&6; }
21148 # So? What about this header?
21149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21151 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21152 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21153 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21155 ac_header_preproc=yes
21158 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21159 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21160 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21161 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21162 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21163 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21164 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21165 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21166 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21168 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21169 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21173 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21174 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21175 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21176 echo $ECHO_N "(cached
) $ECHO_C" >&6
21178 eval "$as_ac_Header=\
$ac_header_preproc"
21180 ac_res=`eval echo '${'$as_ac_Header'}'`
21181 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21182 echo "${ECHO_T}$ac_res" >&6; }
21185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21186 cat >>confdefs.h <<_ACEOF
21187 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21192 for ac_header in kerberos/krb.h
21194 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21195 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21196 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21197 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21198 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21199 echo $ECHO_N "(cached
) $ECHO_C" >&6
21201 ac_res=`eval echo '${'$as_ac_Header'}'`
21202 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21203 echo "${ECHO_T}$ac_res" >&6; }
21205 # Is the header compilable?
21206 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21207 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21208 cat >conftest.$ac_ext <<_ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h. */
21214 $ac_includes_default
21215 #include <$ac_header>
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221 *) ac_try_echo=$ac_try;;
21223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21224 (eval "$ac_compile") 2>conftest.er1
21226 grep -v '^ *+' conftest.er1 >conftest.err
21228 cat conftest.err >&5
21229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21230 (exit $ac_status); } && {
21231 test -z "$ac_c_werror_flag" ||
21232 test ! -s conftest.err
21233 } && test -s conftest.$ac_objext; then
21234 ac_header_compiler=yes
21236 echo "$as_me: failed program was
:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_header_compiler=no
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21244 echo "${ECHO_T}$ac_header_compiler" >&6; }
21246 # Is the header present?
21247 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21248 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21255 #include <$ac_header>
21257 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21258 case "(($ac_try" in
21259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21260 *) ac_try_echo=$ac_try;;
21262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21263 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21265 grep -v '^ *+' conftest.er1 >conftest.err
21267 cat conftest.err >&5
21268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21269 (exit $ac_status); } >/dev/null && {
21270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21271 test ! -s conftest.err
21273 ac_header_preproc=yes
21275 echo "$as_me: failed program was
:" >&5
21276 sed 's/^/| /' conftest.$ac_ext >&5
21278 ac_header_preproc=no
21281 rm -f conftest.err conftest.$ac_ext
21282 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21283 echo "${ECHO_T}$ac_header_preproc" >&6; }
21285 # So? What about this header?
21286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21288 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21289 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21290 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21292 ac_header_preproc=yes
21295 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21296 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21297 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21298 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21299 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21300 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21301 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21302 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21303 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21305 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21306 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21310 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21311 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21312 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21313 echo $ECHO_N "(cached
) $ECHO_C" >&6
21315 eval "$as_ac_Header=\
$ac_header_preproc"
21317 ac_res=`eval echo '${'$as_ac_Header'}'`
21318 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21319 echo "${ECHO_T}$ac_res" >&6; }
21322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21341 for ac_header in com_err.h
21343 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21344 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21345 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21346 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21348 echo $ECHO_N "(cached
) $ECHO_C" >&6
21350 ac_res=`eval echo '${'$as_ac_Header'}'`
21351 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21352 echo "${ECHO_T}$ac_res" >&6; }
21354 # Is the header compilable?
21355 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21356 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21357 cat >conftest.$ac_ext <<_ACEOF
21360 cat confdefs.h >>conftest.$ac_ext
21361 cat >>conftest.$ac_ext <<_ACEOF
21362 /* end confdefs.h. */
21363 $ac_includes_default
21364 #include <$ac_header>
21366 rm -f conftest.$ac_objext
21367 if { (ac_try="$ac_compile"
21368 case "(($ac_try" in
21369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21370 *) ac_try_echo=$ac_try;;
21372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21373 (eval "$ac_compile") 2>conftest.er1
21375 grep -v '^ *+' conftest.er1 >conftest.err
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21379 (exit $ac_status); } && {
21380 test -z "$ac_c_werror_flag" ||
21381 test ! -s conftest.err
21382 } && test -s conftest.$ac_objext; then
21383 ac_header_compiler=yes
21385 echo "$as_me: failed program was
:" >&5
21386 sed 's/^/| /' conftest.$ac_ext >&5
21388 ac_header_compiler=no
21391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21393 echo "${ECHO_T}$ac_header_compiler" >&6; }
21395 # Is the header present?
21396 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21397 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #include <$ac_header>
21406 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21407 case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21414 grep -v '^ *+' conftest.er1 >conftest.err
21416 cat conftest.err >&5
21417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21418 (exit $ac_status); } >/dev/null && {
21419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21420 test ! -s conftest.err
21422 ac_header_preproc=yes
21424 echo "$as_me: failed program was
:" >&5
21425 sed 's/^/| /' conftest.$ac_ext >&5
21427 ac_header_preproc=no
21430 rm -f conftest.err conftest.$ac_ext
21431 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21432 echo "${ECHO_T}$ac_header_preproc" >&6; }
21434 # So? What about this header?
21435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21437 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21438 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21439 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21441 ac_header_preproc=yes
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21445 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21447 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21448 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21449 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21450 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21451 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21452 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21454 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21455 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21459 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21460 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21462 echo $ECHO_N "(cached
) $ECHO_C" >&6
21464 eval "$as_ac_Header=\
$ac_header_preproc"
21466 ac_res=`eval echo '${'$as_ac_Header'}'`
21467 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21468 echo "${ECHO_T}$ac_res" >&6; }
21471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21472 cat >>confdefs.h <<_ACEOF
21473 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21482 # Solaris requires -lintl if you want strerror (which calls dgettext)
21483 # to return localized messages.
21485 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21486 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21487 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21488 echo $ECHO_N "(cached
) $ECHO_C" >&6
21490 ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-lintl $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h. */
21499 /* Override any GCC internal prototype to avoid an error.
21500 Use char because int might match the return type of a GCC
21501 builtin and then its argument prototype would still apply. */
21509 return dgettext ();
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_link") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest$ac_exeext &&
21531 $as_test_x conftest$ac_exeext; then
21532 ac_cv_lib_intl_dgettext=yes
21534 echo "$as_me: failed program was
:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21537 ac_cv_lib_intl_dgettext=no
21540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21541 conftest$ac_exeext conftest.$ac_ext
21542 LIBS=$ac_check_lib_save_LIBS
21544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21545 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21546 if test $ac_cv_lib_intl_dgettext = yes; then
21547 cat >>confdefs.h <<_ACEOF
21548 #define HAVE_LIBINTL 1
21551 LIBS="-lintl $LIBS"
21556 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21557 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21558 if test "${emacs_cv_localtime_cache+set}" = set; then
21559 echo $ECHO_N "(cached
) $ECHO_C" >&6
21561 if test x$ac_cv_func_tzset = xyes; then
21562 if test "$cross_compiling" = yes; then
21563 # If we have tzset, assume the worst when cross-compiling.
21564 emacs_cv_localtime_cache=yes
21566 cat >conftest.$ac_ext <<_ACEOF
21569 cat confdefs.h >>conftest.$ac_ext
21570 cat >>conftest.$ac_ext <<_ACEOF
21571 /* end confdefs.h. */
21573 extern char **environ;
21577 for (to = from = environ; (*to = *from); from++)
21578 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21581 char TZ_GMT0[] = "TZ
=GMT0
";
21582 char TZ_PST8[] = "TZ
=PST8
";
21585 time_t now = time ((time_t *) 0);
21586 int hour_GMT0, hour_unset;
21587 if (putenv (TZ_GMT0) != 0)
21589 hour_GMT0 = localtime (&now)->tm_hour;
21591 hour_unset = localtime (&now)->tm_hour;
21592 if (putenv (TZ_PST8) != 0)
21594 if (localtime (&now)->tm_hour == hour_GMT0)
21597 if (localtime (&now)->tm_hour != hour_unset)
21602 rm -f conftest$ac_exeext
21603 if { (ac_try="$ac_link"
21604 case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_link") 2>&5
21611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21613 { (case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_try") 2>&5
21620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21621 (exit $ac_status); }; }; then
21622 emacs_cv_localtime_cache=no
21624 echo "$as_me: program exited with status
$ac_status" >&5
21625 echo "$as_me: failed program was
:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21628 ( exit $ac_status )
21629 emacs_cv_localtime_cache=yes
21631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21636 # If we lack tzset, report that localtime does not cache TZ,
21637 # since we can't invalidate the cache if we don't have tzset.
21638 emacs_cv_localtime_cache=no
21641 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21642 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21643 if test $emacs_cv_localtime_cache = yes; then
21645 cat >>confdefs.h <<\_ACEOF
21646 #define LOCALTIME_CACHE 1
21651 if test "x
$HAVE_TIMEVAL" = xyes; then
21653 for ac_func in gettimeofday
21655 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21656 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21657 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21658 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21659 echo $ECHO_N "(cached
) $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h. */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21669 #define $ac_func innocuous_$ac_func
21671 /* System header to define __stub macros and hopefully few prototypes,
21672 which can conflict with char $ac_func (); below.
21673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674 <limits.h> exists even on freestanding compilers. */
21677 # include <limits.h>
21679 # include <assert.h>
21684 /* Override any GCC internal prototype to avoid an error.
21685 Use char because int might match the return type of a GCC
21686 builtin and then its argument prototype would still apply. */
21691 /* The GNU C library defines this for functions which it implements
21692 to always fail with ENOSYS. Some functions are actually named
21693 something starting with __ and the normal name is an alias. */
21694 #if defined __stub_$ac_func || defined __stub___$ac_func
21701 return $ac_func ();
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_link") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1 >conftest.err
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest$ac_exeext &&
21723 $as_test_x conftest$ac_exeext; then
21724 eval "$as_ac_var=yes"
21726 echo "$as_me: failed program was
:" >&5
21727 sed 's/^/| /' conftest.$ac_ext >&5
21729 eval "$as_ac_var=no
"
21732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21733 conftest$ac_exeext conftest.$ac_ext
21735 ac_res=`eval echo '${'$as_ac_var'}'`
21736 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21738 if test `eval echo '${'$as_ac_var'}'` = yes; then
21739 cat >>confdefs.h <<_ACEOF
21740 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21746 if test $ac_cv_func_gettimeofday = yes; then
21747 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21748 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21749 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21750 echo $ECHO_N "(cached
) $ECHO_C" >&6
21752 cat >conftest.$ac_ext <<_ACEOF
21755 cat confdefs.h >>conftest.$ac_ext
21756 cat >>conftest.$ac_ext <<_ACEOF
21757 /* end confdefs.h. */
21759 #ifdef TIME_WITH_SYS_TIME
21760 #include <sys/time.h>
21763 #ifdef HAVE_SYS_TIME_H
21764 #include <sys/time.h>
21772 struct timeval time;
21773 gettimeofday (&time, 0);
21778 rm -f conftest.$ac_objext
21779 if { (ac_try="$ac_compile"
21780 case "(($ac_try" in
21781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21782 *) ac_try_echo=$ac_try;;
21784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21785 (eval "$ac_compile") 2>conftest.er1
21787 grep -v '^ *+' conftest.er1 >conftest.err
21789 cat conftest.err >&5
21790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21791 (exit $ac_status); } && {
21792 test -z "$ac_c_werror_flag" ||
21793 test ! -s conftest.err
21794 } && test -s conftest.$ac_objext; then
21795 emacs_cv_gettimeofday_two_arguments=yes
21797 echo "$as_me: failed program was
:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21800 emacs_cv_gettimeofday_two_arguments=no
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21806 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21807 if test $emacs_cv_gettimeofday_two_arguments = no; then
21809 cat >>confdefs.h <<\_ACEOF
21810 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21818 { echo "$as_me:$LINENO: checking
for socket
" >&5
21819 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21820 if test "${ac_cv_func_socket+set}" = set; then
21821 echo $ECHO_N "(cached
) $ECHO_C" >&6
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21831 #define socket innocuous_socket
21833 /* System header to define __stub macros and hopefully few prototypes,
21834 which can conflict with char socket (); below.
21835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21836 <limits.h> exists even on freestanding compilers. */
21839 # include <limits.h>
21841 # include <assert.h>
21846 /* Override any GCC internal prototype to avoid an error.
21847 Use char because int might match the return type of a GCC
21848 builtin and then its argument prototype would still apply. */
21853 /* The GNU C library defines this for functions which it implements
21854 to always fail with ENOSYS. Some functions are actually named
21855 something starting with __ and the normal name is an alias. */
21856 #if defined __stub_socket || defined __stub___socket
21868 rm -f conftest.$ac_objext conftest$ac_exeext
21869 if { (ac_try="$ac_link"
21870 case "(($ac_try" in
21871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21872 *) ac_try_echo=$ac_try;;
21874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21875 (eval "$ac_link") 2>conftest.er1
21877 grep -v '^ *+' conftest.er1 >conftest.err
21879 cat conftest.err >&5
21880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21881 (exit $ac_status); } && {
21882 test -z "$ac_c_werror_flag" ||
21883 test ! -s conftest.err
21884 } && test -s conftest$ac_exeext &&
21885 $as_test_x conftest$ac_exeext; then
21886 ac_cv_func_socket=yes
21888 echo "$as_me: failed program was
:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_cv_func_socket=no
21894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21895 conftest$ac_exeext conftest.$ac_ext
21897 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21898 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21899 if test $ac_cv_func_socket = yes; then
21905 if test $ok_so_far = yes; then
21906 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21907 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21908 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21909 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21910 echo $ECHO_N "(cached
) $ECHO_C" >&6
21912 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21913 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21915 # Is the header compilable?
21916 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21917 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21918 cat >conftest.$ac_ext <<_ACEOF
21921 cat confdefs.h >>conftest.$ac_ext
21922 cat >>conftest.$ac_ext <<_ACEOF
21923 /* end confdefs.h. */
21924 $ac_includes_default
21925 #include <netinet/in.h>
21927 rm -f conftest.$ac_objext
21928 if { (ac_try="$ac_compile"
21929 case "(($ac_try" in
21930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931 *) ac_try_echo=$ac_try;;
21933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21934 (eval "$ac_compile") 2>conftest.er1
21936 grep -v '^ *+' conftest.er1 >conftest.err
21938 cat conftest.err >&5
21939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21940 (exit $ac_status); } && {
21941 test -z "$ac_c_werror_flag" ||
21942 test ! -s conftest.err
21943 } && test -s conftest.$ac_objext; then
21944 ac_header_compiler=yes
21946 echo "$as_me: failed program was
:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21949 ac_header_compiler=no
21952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21953 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21954 echo "${ECHO_T}$ac_header_compiler" >&6; }
21956 # Is the header present?
21957 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21958 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 #include <netinet/in.h>
21967 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21968 case "(($ac_try" in
21969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970 *) ac_try_echo=$ac_try;;
21972 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21973 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21975 grep -v '^ *+' conftest.er1 >conftest.err
21977 cat conftest.err >&5
21978 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21979 (exit $ac_status); } >/dev/null && {
21980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21981 test ! -s conftest.err
21983 ac_header_preproc=yes
21985 echo "$as_me: failed program was
:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_header_preproc=no
21991 rm -f conftest.err conftest.$ac_ext
21992 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21993 echo "${ECHO_T}$ac_header_preproc" >&6; }
21995 # So? What about this header?
21996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21998 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21999 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22000 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22001 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22002 ac_header_preproc=yes
22005 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22006 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22007 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22008 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22009 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22010 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22011 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22012 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22013 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22014 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22015 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22016 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22020 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22021 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22022 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22023 echo $ECHO_N "(cached
) $ECHO_C" >&6
22025 ac_cv_header_netinet_in_h=$ac_header_preproc
22027 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22028 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22031 if test $ac_cv_header_netinet_in_h = yes; then
22039 if test $ok_so_far = yes; then
22040 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22041 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22042 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22043 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22044 echo $ECHO_N "(cached
) $ECHO_C" >&6
22046 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22047 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22049 # Is the header compilable?
22050 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22051 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22052 cat >conftest.$ac_ext <<_ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 $ac_includes_default
22059 #include <arpa/inet.h>
22061 rm -f conftest.$ac_objext
22062 if { (ac_try="$ac_compile"
22063 case "(($ac_try" in
22064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22065 *) ac_try_echo=$ac_try;;
22067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22068 (eval "$ac_compile") 2>conftest.er1
22070 grep -v '^ *+' conftest.er1 >conftest.err
22072 cat conftest.err >&5
22073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22074 (exit $ac_status); } && {
22075 test -z "$ac_c_werror_flag" ||
22076 test ! -s conftest.err
22077 } && test -s conftest.$ac_objext; then
22078 ac_header_compiler=yes
22080 echo "$as_me: failed program was
:" >&5
22081 sed 's/^/| /' conftest.$ac_ext >&5
22083 ac_header_compiler=no
22086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22088 echo "${ECHO_T}$ac_header_compiler" >&6; }
22090 # Is the header present?
22091 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22092 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22099 #include <arpa/inet.h>
22101 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22102 case "(($ac_try" in
22103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104 *) ac_try_echo=$ac_try;;
22106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22107 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22109 grep -v '^ *+' conftest.er1 >conftest.err
22111 cat conftest.err >&5
22112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22113 (exit $ac_status); } >/dev/null && {
22114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22115 test ! -s conftest.err
22117 ac_header_preproc=yes
22119 echo "$as_me: failed program was
:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 ac_header_preproc=no
22125 rm -f conftest.err conftest.$ac_ext
22126 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22127 echo "${ECHO_T}$ac_header_preproc" >&6; }
22129 # So? What about this header?
22130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22132 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22133 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22134 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22135 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22136 ac_header_preproc=yes
22139 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22140 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22141 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22142 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22143 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22144 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22145 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22146 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22147 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22148 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22149 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22150 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22154 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22155 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22156 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22157 echo $ECHO_N "(cached
) $ECHO_C" >&6
22159 ac_cv_header_arpa_inet_h=$ac_header_preproc
22161 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22162 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22165 if test $ac_cv_header_arpa_inet_h = yes; then
22173 if test $ok_so_far = yes; then
22175 cat >>confdefs.h <<\_ACEOF
22176 #define HAVE_INET_SOCKETS 1
22182 for ac_header in sys/ioctl.h
22184 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22186 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22187 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached
) $ECHO_C" >&6
22191 ac_res=`eval echo '${'$as_ac_Header'}'`
22192 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22193 echo "${ECHO_T}$ac_res" >&6; }
22195 # Is the header compilable?
22196 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22197 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22198 cat >conftest.$ac_ext <<_ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 $ac_includes_default
22205 #include <$ac_header>
22207 rm -f conftest.$ac_objext
22208 if { (ac_try="$ac_compile"
22209 case "(($ac_try" in
22210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22211 *) ac_try_echo=$ac_try;;
22213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22214 (eval "$ac_compile") 2>conftest.er1
22216 grep -v '^ *+' conftest.er1 >conftest.err
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest.$ac_objext; then
22224 ac_header_compiler=yes
22226 echo "$as_me: failed program was
:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22229 ac_header_compiler=no
22232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22233 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22234 echo "${ECHO_T}$ac_header_compiler" >&6; }
22236 # Is the header present?
22237 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22238 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
22247 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22252 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22253 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22255 grep -v '^ *+' conftest.er1 >conftest.err
22257 cat conftest.err >&5
22258 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22259 (exit $ac_status); } >/dev/null && {
22260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22261 test ! -s conftest.err
22263 ac_header_preproc=yes
22265 echo "$as_me: failed program was
:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_header_preproc=no
22271 rm -f conftest.err conftest.$ac_ext
22272 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22273 echo "${ECHO_T}$ac_header_preproc" >&6; }
22275 # So? What about this header?
22276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22278 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22279 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22280 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22282 ac_header_preproc=yes
22285 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22286 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22287 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22288 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22289 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22290 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22291 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22292 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22293 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22295 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22296 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22300 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22301 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22302 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22303 echo $ECHO_N "(cached
) $ECHO_C" >&6
22305 eval "$as_ac_Header=\
$ac_header_preproc"
22307 ac_res=`eval echo '${'$as_ac_Header'}'`
22308 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22309 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22322 if test -f /usr/lpp/X11/bin/smt.exp; then
22324 cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_AIX_SMT_EXP 1
22330 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22331 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22332 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22333 { echo "$as_me:$LINENO: result
: yes" >&5
22334 echo "${ECHO_T}yes" >&6; }
22336 cat >>confdefs.h <<\_ACEOF
22337 #define HAVE_DEV_PTMX 1
22341 { echo "$as_me:$LINENO: result
: no
" >&5
22342 echo "${ECHO_T}no
" >&6; }
22345 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22346 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22347 if test "${ac_cv_type_pid_t+set}" = set; then
22348 echo $ECHO_N "(cached
) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 $ac_includes_default
22357 typedef pid_t ac__type_new_;
22361 if ((ac__type_new_ *) 0)
22363 if (sizeof (ac__type_new_))
22369 rm -f conftest.$ac_objext
22370 if { (ac_try="$ac_compile"
22371 case "(($ac_try" in
22372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22373 *) ac_try_echo=$ac_try;;
22375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22376 (eval "$ac_compile") 2>conftest.er1
22378 grep -v '^ *+' conftest.er1 >conftest.err
22380 cat conftest.err >&5
22381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22382 (exit $ac_status); } && {
22383 test -z "$ac_c_werror_flag" ||
22384 test ! -s conftest.err
22385 } && test -s conftest.$ac_objext; then
22386 ac_cv_type_pid_t=yes
22388 echo "$as_me: failed program was
:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22391 ac_cv_type_pid_t=no
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22397 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22398 if test $ac_cv_type_pid_t = yes; then
22402 cat >>confdefs.h <<_ACEOF
22409 for ac_header in vfork.h
22411 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22413 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22414 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22415 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22416 echo $ECHO_N "(cached
) $ECHO_C" >&6
22418 ac_res=`eval echo '${'$as_ac_Header'}'`
22419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22420 echo "${ECHO_T}$ac_res" >&6; }
22422 # Is the header compilable?
22423 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22424 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22425 cat >conftest.$ac_ext <<_ACEOF
22428 cat confdefs.h >>conftest.$ac_ext
22429 cat >>conftest.$ac_ext <<_ACEOF
22430 /* end confdefs.h. */
22431 $ac_includes_default
22432 #include <$ac_header>
22434 rm -f conftest.$ac_objext
22435 if { (ac_try="$ac_compile"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_compile") 2>conftest.er1
22443 grep -v '^ *+' conftest.er1 >conftest.err
22445 cat conftest.err >&5
22446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22447 (exit $ac_status); } && {
22448 test -z "$ac_c_werror_flag" ||
22449 test ! -s conftest.err
22450 } && test -s conftest.$ac_objext; then
22451 ac_header_compiler=yes
22453 echo "$as_me: failed program was
:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22456 ac_header_compiler=no
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22460 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22461 echo "${ECHO_T}$ac_header_compiler" >&6; }
22463 # Is the header present?
22464 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22465 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22466 cat >conftest.$ac_ext <<_ACEOF
22469 cat confdefs.h >>conftest.$ac_ext
22470 cat >>conftest.$ac_ext <<_ACEOF
22471 /* end confdefs.h. */
22472 #include <$ac_header>
22474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22482 grep -v '^ *+' conftest.er1 >conftest.err
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22486 (exit $ac_status); } >/dev/null && {
22487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22490 ac_header_preproc=yes
22492 echo "$as_me: failed program was
:" >&5
22493 sed 's/^/| /' conftest.$ac_ext >&5
22495 ac_header_preproc=no
22498 rm -f conftest.err conftest.$ac_ext
22499 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22500 echo "${ECHO_T}$ac_header_preproc" >&6; }
22502 # So? What about this header?
22503 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22505 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22506 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22507 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22508 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22509 ac_header_preproc=yes
22512 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22513 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22514 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22515 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22516 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22517 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22518 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22519 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22520 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22521 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22522 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22523 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22530 echo $ECHO_N "(cached
) $ECHO_C" >&6
22532 eval "$as_ac_Header=\
$ac_header_preproc"
22534 ac_res=`eval echo '${'$as_ac_Header'}'`
22535 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22536 echo "${ECHO_T}$ac_res" >&6; }
22539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22540 cat >>confdefs.h <<_ACEOF
22541 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22550 for ac_func in fork vfork
22552 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22553 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22554 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22555 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22556 echo $ECHO_N "(cached
) $ECHO_C" >&6
22558 cat >conftest.$ac_ext <<_ACEOF
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22566 #define $ac_func innocuous_$ac_func
22568 /* System header to define __stub macros and hopefully few prototypes,
22569 which can conflict with char $ac_func (); below.
22570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22571 <limits.h> exists even on freestanding compilers. */
22574 # include <limits.h>
22576 # include <assert.h>
22581 /* Override any GCC internal prototype to avoid an error.
22582 Use char because int might match the return type of a GCC
22583 builtin and then its argument prototype would still apply. */
22588 /* The GNU C library defines this for functions which it implements
22589 to always fail with ENOSYS. Some functions are actually named
22590 something starting with __ and the normal name is an alias. */
22591 #if defined __stub_$ac_func || defined __stub___$ac_func
22598 return $ac_func ();
22603 rm -f conftest.$ac_objext conftest$ac_exeext
22604 if { (ac_try="$ac_link"
22605 case "(($ac_try" in
22606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22607 *) ac_try_echo=$ac_try;;
22609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22610 (eval "$ac_link") 2>conftest.er1
22612 grep -v '^ *+' conftest.er1 >conftest.err
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22616 (exit $ac_status); } && {
22617 test -z "$ac_c_werror_flag" ||
22618 test ! -s conftest.err
22619 } && test -s conftest$ac_exeext &&
22620 $as_test_x conftest$ac_exeext; then
22621 eval "$as_ac_var=yes"
22623 echo "$as_me: failed program was
:" >&5
22624 sed 's/^/| /' conftest.$ac_ext >&5
22626 eval "$as_ac_var=no
"
22629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22630 conftest$ac_exeext conftest.$ac_ext
22632 ac_res=`eval echo '${'$as_ac_var'}'`
22633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22634 echo "${ECHO_T}$ac_res" >&6; }
22635 if test `eval echo '${'$as_ac_var'}'` = yes; then
22636 cat >>confdefs.h <<_ACEOF
22637 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22643 if test "x
$ac_cv_func_fork" = xyes; then
22644 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22645 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22646 if test "${ac_cv_func_fork_works+set}" = set; then
22647 echo $ECHO_N "(cached
) $ECHO_C" >&6
22649 if test "$cross_compiling" = yes; then
22650 ac_cv_func_fork_works=cross
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22663 /* By Ruediger Kuhlmann. */
22664 return fork () < 0;
22670 rm -f conftest$ac_exeext
22671 if { (ac_try="$ac_link"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_link") 2>&5
22679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22681 { (case "(($ac_try" in
22682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22683 *) ac_try_echo=$ac_try;;
22685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22686 (eval "$ac_try") 2>&5
22688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_cv_func_fork_works=yes
22692 echo "$as_me: program exited with status
$ac_status" >&5
22693 echo "$as_me: failed program was
:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ( exit $ac_status )
22697 ac_cv_func_fork_works=no
22699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22705 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22708 ac_cv_func_fork_works=$ac_cv_func_fork
22710 if test "x
$ac_cv_func_fork_works" = xcross; then
22712 *-*-amigaos* | *-*-msdosdjgpp*)
22713 # Override, as these systems have only a dummy fork() stub
22714 ac_cv_func_fork_works=no
22717 ac_cv_func_fork_works=yes
22720 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22721 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22723 ac_cv_func_vfork_works=$ac_cv_func_vfork
22724 if test "x
$ac_cv_func_vfork" = xyes; then
22725 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22726 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22727 if test "${ac_cv_func_vfork_works+set}" = set; then
22728 echo $ECHO_N "(cached
) $ECHO_C" >&6
22730 if test "$cross_compiling" = yes; then
22731 ac_cv_func_vfork_works=cross
22733 cat >conftest.$ac_ext <<_ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h. */
22739 /* Thanks to Paul Eggert for this test. */
22740 $ac_includes_default
22741 #include <sys/wait.h>
22742 #ifdef HAVE_VFORK_H
22743 # include <vfork.h>
22745 /* On some sparc systems, changes by the child to local and incoming
22746 argument registers are propagated back to the parent. The compiler
22747 is told about this with #include <vfork.h>, but some compilers
22748 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22749 static variable whose address is put into a register that is
22750 clobbered by the vfork. */
22753 sparc_address_test (int arg)
22755 sparc_address_test (arg) int arg;
22758 static pid_t child;
22776 pid_t parent = getpid ();
22779 sparc_address_test (0);
22784 /* Here is another test for sparc vfork register problems. This
22785 test uses lots of local variables, at least as many local
22786 variables as main has allocated so far including compiler
22787 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22788 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22789 reuse the register of parent for one of the local variables,
22790 since it will think that parent can't possibly be used any more
22791 in this routine. Assigning to the local variable will thus
22792 munge parent in the parent process. */
22794 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22795 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22796 /* Convince the compiler that p..p7 are live; otherwise, it might
22797 use the same hardware register for all 8 local variables. */
22798 if (p != p1 || p != p2 || p != p3 || p != p4
22799 || p != p5 || p != p6 || p != p7)
22802 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22803 from child file descriptors. If the child closes a descriptor
22804 before it execs or exits, this munges the parent's descriptor
22805 as well. Test for this by closing stdout in the child. */
22806 _exit(close(fileno(stdout)) != 0);
22811 while (wait(&status) != child)
22814 /* Was there some problem with vforking? */
22817 /* Did the child fail? (This shouldn't happen.) */
22820 /* Did the vfork/compiler bug occur? */
22821 || parent != getpid()
22823 /* Did the file descriptor bug occur? */
22824 || fstat(fileno(stdout), &st) != 0
22829 rm -f conftest$ac_exeext
22830 if { (ac_try="$ac_link"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22836 (eval "$ac_link") 2>&5
22838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22840 { (case "(($ac_try" in
22841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22842 *) ac_try_echo=$ac_try;;
22844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22845 (eval "$ac_try") 2>&5
22847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22848 (exit $ac_status); }; }; then
22849 ac_cv_func_vfork_works=yes
22851 echo "$as_me: program exited with status
$ac_status" >&5
22852 echo "$as_me: failed program was
:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 ( exit $ac_status )
22856 ac_cv_func_vfork_works=no
22858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22863 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22864 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22867 if test "x
$ac_cv_func_fork_works" = xcross; then
22868 ac_cv_func_vfork_works=$ac_cv_func_vfork
22869 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22870 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22873 if test "x
$ac_cv_func_vfork_works" = xyes; then
22875 cat >>confdefs.h <<\_ACEOF
22876 #define HAVE_WORKING_VFORK 1
22881 cat >>confdefs.h <<\_ACEOF
22886 if test "x
$ac_cv_func_fork_works" = xyes; then
22888 cat >>confdefs.h <<\_ACEOF
22889 #define HAVE_WORKING_FORK 1
22895 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22896 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22897 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22898 echo $ECHO_N "(cached
) $ECHO_C" >&6
22900 cat >conftest.$ac_ext <<_ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h. */
22906 #include <langinfo.h>
22910 char* cs = nl_langinfo(CODESET);
22915 rm -f conftest.$ac_objext conftest$ac_exeext
22916 if { (ac_try="$ac_link"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_link") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest$ac_exeext &&
22932 $as_test_x conftest$ac_exeext; then
22933 emacs_cv_langinfo_codeset=yes
22935 echo "$as_me: failed program was
:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 emacs_cv_langinfo_codeset=no
22941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22942 conftest$ac_exeext conftest.$ac_ext
22945 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22946 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22947 if test $emacs_cv_langinfo_codeset = yes; then
22949 cat >>confdefs.h <<\_ACEOF
22950 #define HAVE_LANGINFO_CODESET 1
22955 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22956 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22957 if test "${ac_cv_type_size_t+set}" = set; then
22958 echo $ECHO_N "(cached
) $ECHO_C" >&6
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22967 typedef size_t ac__type_new_;
22971 if ((ac__type_new_ *) 0)
22973 if (sizeof (ac__type_new_))
22979 rm -f conftest.$ac_objext
22980 if { (ac_try="$ac_compile"
22981 case "(($ac_try" in
22982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983 *) ac_try_echo=$ac_try;;
22985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22986 (eval "$ac_compile") 2>conftest.er1
22988 grep -v '^ *+' conftest.er1 >conftest.err
22990 cat conftest.err >&5
22991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22992 (exit $ac_status); } && {
22993 test -z "$ac_c_werror_flag" ||
22994 test ! -s conftest.err
22995 } && test -s conftest.$ac_objext; then
22996 ac_cv_type_size_t=yes
22998 echo "$as_me: failed program was
:" >&5
22999 sed 's/^/| /' conftest.$ac_ext >&5
23001 ac_cv_type_size_t=no
23004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23007 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23008 if test $ac_cv_type_size_t = yes; then
23010 cat >>confdefs.h <<_ACEOF
23011 #define HAVE_SIZE_T 1
23018 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23019 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23020 if test "${ac_cv_type_mbstate_t+set}" = set; then
23021 echo $ECHO_N "(cached
) $ECHO_C" >&6
23023 cat >conftest.$ac_ext <<_ACEOF
23026 cat confdefs.h >>conftest.$ac_ext
23027 cat >>conftest.$ac_ext <<_ACEOF
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 # include <wchar.h>
23034 mbstate_t x; return sizeof x;
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_cv_type_mbstate_t=yes
23058 echo "$as_me: failed program was
:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23061 ac_cv_type_mbstate_t=no
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23066 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23067 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23068 if test $ac_cv_type_mbstate_t = yes; then
23070 cat >>confdefs.h <<\_ACEOF
23071 #define HAVE_MBSTATE_T 1
23076 cat >>confdefs.h <<\_ACEOF
23077 #define mbstate_t int
23082 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23083 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23084 if test "${emacs_cv_c_restrict+set}" = set; then
23085 echo $ECHO_N "(cached
) $ECHO_C" >&6
23087 cat >conftest.$ac_ext <<_ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h. */
23093 void fred (int *restrict x);
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106 *) ac_try_echo=$ac_try;;
23108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23109 (eval "$ac_compile") 2>conftest.er1
23111 grep -v '^ *+' conftest.er1 >conftest.err
23113 cat conftest.err >&5
23114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23115 (exit $ac_status); } && {
23116 test -z "$ac_c_werror_flag" ||
23117 test ! -s conftest.err
23118 } && test -s conftest.$ac_objext; then
23119 emacs_cv_c_restrict=yes
23121 echo "$as_me: failed program was
:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23124 cat >conftest.$ac_ext <<_ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h. */
23130 void fred (int *__restrict x);
23139 rm -f conftest.$ac_objext
23140 if { (ac_try="$ac_compile"
23141 case "(($ac_try" in
23142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143 *) ac_try_echo=$ac_try;;
23145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23146 (eval "$ac_compile") 2>conftest.er1
23148 grep -v '^ *+' conftest.er1 >conftest.err
23150 cat conftest.err >&5
23151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23152 (exit $ac_status); } && {
23153 test -z "$ac_c_werror_flag" ||
23154 test ! -s conftest.err
23155 } && test -s conftest.$ac_objext; then
23156 emacs_cv_c_restrict=__restrict
23158 echo "$as_me: failed program was
:" >&5
23159 sed 's/^/| /' conftest.$ac_ext >&5
23161 emacs_cv_c_restrict=no
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23170 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23171 case "$emacs_cv_c_restrict" in
23172 yes) emacs_restrict=restrict;;
23173 no) emacs_restrict="";;
23174 *) emacs_restrict="$emacs_cv_c_restrict";;
23176 if test "$emacs_restrict" != __restrict; then
23178 cat >>confdefs.h <<_ACEOF
23179 #define __restrict $emacs_restrict
23184 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23185 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23186 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23187 echo $ECHO_N "(cached
) $ECHO_C" >&6
23189 cat >conftest.$ac_ext <<_ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 void fred (int x[__restrict]);
23204 rm -f conftest.$ac_objext
23205 if { (ac_try="$ac_compile"
23206 case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_compile") 2>conftest.er1
23213 grep -v '^ *+' conftest.er1 >conftest.err
23215 cat conftest.err >&5
23216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23217 (exit $ac_status); } && {
23218 test -z "$ac_c_werror_flag" ||
23219 test ! -s conftest.err
23220 } && test -s conftest.$ac_objext; then
23221 emacs_cv_c_restrict_arr=yes
23223 echo "$as_me: failed program was
:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 emacs_cv_c_restrict_arr=no
23229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23231 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23232 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23233 if test "$emacs_cv_c_restrict_arr" = yes; then
23235 cat >>confdefs.h <<\_ACEOF
23236 #define __restrict_arr __restrict
23243 # Set up the CFLAGS for real compilation, so we can substitute it.
23244 CFLAGS="$REAL_CFLAGS"
23245 CPPFLAGS="$REAL_CPPFLAGS"
23247 #### Find out which version of Emacs this is.
23248 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23249 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23250 if test x"${version}" = x; then
23251 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23252 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23253 { (exit 1); exit 1; }; }
23256 ### Specify what sort of things we'll be editing into Makefile and config.h.
23257 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23293 cat >>confdefs.h <<_ACEOF
23294 #define EMACS_CONFIGURATION "${canonical}"
23298 cat >>confdefs.h <<_ACEOF
23299 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23303 cat >>confdefs.h <<_ACEOF
23304 #define config_machfile "${machfile}"
23308 cat >>confdefs.h <<_ACEOF
23309 #define config_opsysfile "${opsysfile}"
23313 cat >>confdefs.h <<_ACEOF
23314 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23318 cat >>confdefs.h <<_ACEOF
23319 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23323 cat >>confdefs.h <<_ACEOF
23324 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23328 cat >>confdefs.h <<_ACEOF
23329 #define UNEXEC_SRC ${UNEXEC_SRC}
23333 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23335 cat >>confdefs.h <<\_ACEOF
23336 #define HAVE_X_WINDOWS 1
23340 if test "${USE_X_TOOLKIT}" != "none
" ; then
23342 cat >>confdefs.h <<\_ACEOF
23343 #define USE_X_TOOLKIT 1
23347 if test "${HAVE_X11}" = "yes" ; then
23349 cat >>confdefs.h <<\_ACEOF
23354 if test "${HAVE_XFREE386}" = "yes" ; then
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_XFREE386 1
23361 if test "${HAVE_MENUS}" = "yes" ; then
23363 cat >>confdefs.h <<\_ACEOF
23364 #define HAVE_MENUS 1
23368 if test "${GNU_MALLOC}" = "yes" ; then
23370 cat >>confdefs.h <<\_ACEOF
23371 #define GNU_MALLOC 1
23375 if test "${REL_ALLOC}" = "yes" ; then
23377 cat >>confdefs.h <<\_ACEOF
23378 #define REL_ALLOC 1
23387 #### Report on what we decided to do.
23388 #### Report GTK as a toolkit, even if it doesn't use Xt.
23389 #### It makes printing result more understandable as using GTK sets
23390 #### toolkit_scroll_bars to yes by default.
23391 if test "${HAVE_GTK}" = "yes"; then
23396 Configured
for \
`${canonical}'.
23398 Where should the build process find the source code? ${srcdir}
23399 What operating system and machine description files should Emacs use?
23400 \`${opsysfile}' and \`${machfile}'
23401 What compiler should emacs be built with?
${CC} ${CFLAGS}
23402 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23403 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23404 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23405 What window system should Emacs use?
${window_system}
23406 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23408 if test -n "${x_includes}"; then
23409 echo " Where
do we
find X Windows header files?
${x_includes}"
23411 echo " Where
do we
find X Windows header files? Standard
dirs"
23413 if test -n "${x_libraries}"; then
23414 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23416 echo " Where
do we
find X Windows libraries? Standard
dirs"
23419 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23420 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23421 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23422 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23423 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23424 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23425 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23428 if test $USE_XASSERTS = yes; then
23429 echo " Compiling with asserts turned on.
"
23430 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23434 if test "$USE_X_TOOLKIT" = GTK; then
23435 case "$canonical" in
23437 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23438 will probably get a crash on startup. If this happens
, please use another
23439 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23446 # Remove any trailing slashes in these variables.
23447 test "${prefix}" != NONE &&
23448 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23449 test "${exec_prefix}" != NONE &&
23450 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23452 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23453 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23454 ## from Makefile.c can correctly provide the arg `-traditional' to the
23457 cat >conftest.$ac_ext <<_ACEOF
23460 cat confdefs.h >>conftest.$ac_ext
23461 cat >>conftest.$ac_ext <<_ACEOF
23462 /* end confdefs.h. */
23465 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23466 $EGREP "yes..
yes" >/dev/null 2>&1; then
23467 CPP_NEED_TRADITIONAL=no
23469 CPP_NEED_TRADITIONAL=yes
23474 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23476 ac_config_commands="$ac_config_commands default
"
23478 cat >confcache <<\_ACEOF
23479 # This file is a shell script that caches the results of configure
23480 # tests run on this system so they can be shared between configure
23481 # scripts and configure runs, see configure's option --config-cache.
23482 # It is not useful on other systems. If it contains results you don't
23483 # want to keep, you may remove or edit it.
23485 # config.status only pays attention to the cache file if you give it
23486 # the --recheck option to rerun configure.
23488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23490 # following values.
23494 # The following way of writing the cache mishandles newlines in values,
23495 # but we know of no workaround that is simple, portable, and efficient.
23496 # So, we kill variables containing newlines.
23497 # Ultrix sh set writes to stderr and can't be redirected directly,
23498 # and sets the high bit in the cache file unless we assign to the vars.
23500 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23501 eval ac_val=\$$ac_var
23505 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23506 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23509 _ | IFS | as_nl) ;; #(
23510 *) $as_unset $ac_var ;;
23516 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23517 *${as_nl}ac_space=\ *)
23518 # `set' does not quote correctly, so add quotes (double-quote
23519 # substitution turns \\\\ into \\, and sed turns \\ into \).
23522 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23525 # `set' quotes correctly as required by POSIX, so do not add quotes.
23526 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23535 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23537 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23540 if test -w "$cache_file"; then
23541 test "x
$cache_file" != "x
/dev
/null
" &&
23542 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23543 echo "$as_me: updating cache
$cache_file" >&6;}
23544 cat confcache >$cache_file
23546 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23547 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23552 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23553 # Let make expand exec_prefix.
23554 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23556 DEFS=-DHAVE_CONFIG_H
23560 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23561 # 1. Remove the extension, and $U if already installed.
23562 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23563 ac_i=`echo "$ac_i" | sed "$ac_script"`
23564 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23565 # will be set to the directory where LIBOBJS objects are built.
23566 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23567 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23569 LIBOBJS=$ac_libobjs
23571 LTLIBOBJS=$ac_ltlibobjs
23575 : ${CONFIG_STATUS=./config.status}
23576 ac_clean_files_save=$ac_clean_files
23577 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23578 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23579 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23580 cat >$CONFIG_STATUS <<_ACEOF
23582 # Generated by $as_me.
23583 # Run this file to recreate the current configuration.
23584 # Compiler output produced by configure, useful for debugging
23585 # configure, is in config.log if it exists.
23588 ac_cs_recheck=false
23590 SHELL=\${CONFIG_SHELL-$SHELL}
23593 cat >>$CONFIG_STATUS <<\_ACEOF
23594 ## --------------------- ##
23595 ## M4sh Initialization. ##
23596 ## --------------------- ##
23598 # Be more Bourne compatible
23599 DUALCASE=1; export DUALCASE # for MKS sh
23600 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23604 # is contrary to our usage. Disable this feature.
23605 alias -g '${1+"$@"}'='"$@
"'
23606 setopt NO_GLOB_SUBST
23608 case `(set -o) 2>/dev/null` in
23609 *posix*) set -o posix ;;
23618 # Avoid depending upon Character Ranges.
23619 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23620 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23621 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23622 as_cr_digits='0123456789'
23623 as_cr_alnum=$as_cr_Letters$as_cr_digits
23625 # The user is always right.
23626 if test "${PATH_SEPARATOR+set}" != set; then
23627 echo "#! /bin/sh" >conf$$.sh
23628 echo "exit 0" >>conf$$.sh
23630 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23638 # Support unset when possible.
23639 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23647 # We need space, tab and new line, in precisely that order. Quoting is
23648 # there to prevent editors from complaining about space-tab.
23649 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23650 # splitting by setting IFS to empty value.)
23655 # Find who we are. Look in the path if we contain no directory separator.
23657 *[\\/]* ) as_myself
=$0 ;;
23658 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23659 for as_dir
in $PATH
23662 test -z "$as_dir" && as_dir
=.
23663 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23669 # We did not find ourselves, most probably we were run as `sh COMMAND'
23670 # in which case we are not to be found in the path.
23671 if test "x$as_myself" = x
; then
23674 if test ! -f "$as_myself"; then
23675 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23676 { (exit 1); exit 1; }
23679 # Work around bugs in pre-3.0 UWIN ksh.
23680 for as_var
in ENV MAIL MAILPATH
23681 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23689 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23690 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23691 LC_TELEPHONE LC_TIME
23693 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23694 eval $as_var=C
; export $as_var
23696 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23700 # Required to use basename.
23701 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23702 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23708 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23709 as_basename
=basename
23715 # Name of the executable.
23716 as_me
=`$as_basename -- "$0" ||
23717 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23718 X"$0" : 'X\(//\)$' \| \
23719 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23721 sed '/^.*\/\([^/][^/]*\)\/*$/{
23740 as_lineno_1
=$LINENO
23741 as_lineno_2
=$LINENO
23742 test "x$as_lineno_1" != "x$as_lineno_2" &&
23743 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23745 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23746 # uniformly replaced by the line number. The first 'sed' inserts a
23747 # line-number line after each line using $LINENO; the second 'sed'
23748 # does the real work. The second script uses 'N' to pair each
23749 # line-number line with the line containing $LINENO, and appends
23750 # trailing '-' during substitution so that $LINENO is not a special
23751 # case at line end.
23752 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23753 # scripts with optimization help from Paolo Bonzini. Blame Lee
23754 # E. McMahon (1931-1989) for sed's syntax. :-)
23766 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23769 ' >$as_me.lineno
&&
23770 chmod +x
"$as_me.lineno" ||
23771 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23772 { (exit 1); exit 1; }; }
23774 # Don't try to exec as it changes $[0], causing all sort of problems
23775 # (the dirname of $[0] is not the place where we might find the
23776 # original and so on. Autoconf is especially sensitive to this).
23777 .
"./$as_me.lineno"
23778 # Exit status is that of the last command.
23783 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23789 ECHO_C
= ECHO_N
= ECHO_T
=
23790 case `echo -n x` in
23792 case `echo 'x\c'` in
23793 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23800 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23801 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23807 rm -f conf$$ conf$$.exe conf$$.
file
23808 if test -d conf$$.dir
; then
23809 rm -f conf$$.dir
/conf$$.
file
23815 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23817 # ... but there are two gotchas:
23818 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23819 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23820 # In both cases, we have to default to `cp -p'.
23821 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23823 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23828 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23829 rmdir conf$$.dir
2>/dev
/null
23831 if mkdir
-p .
2>/dev
/null
; then
23834 test -d .
/-p && rmdir .
/-p
23838 if test -x / >/dev
/null
2>&1; then
23839 as_test_x
='test -x'
23841 if ls -dL / >/dev
/null
2>&1; then
23848 if test -d "$1"; then
23854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23855 ???[sx]*):;;*)false;;esac;fi
23859 as_executable_p
=$as_test_x
23861 # Sed expression to map a string onto a valid CPP name.
23862 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23864 # Sed expression to map a string onto a valid variable name.
23865 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23870 # Save the log message, to keep $[0] and so on meaningful, and to
23871 # report actual input values of CONFIG_FILES etc. instead of their
23872 # values after options handling.
23874 This file was extended by $as_me, which was
23875 generated by GNU Autoconf 2.61. Invocation command line was
23877 CONFIG_FILES = $CONFIG_FILES
23878 CONFIG_HEADERS = $CONFIG_HEADERS
23879 CONFIG_LINKS = $CONFIG_LINKS
23880 CONFIG_COMMANDS = $CONFIG_COMMANDS
23883 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23888 cat >>$CONFIG_STATUS <<_ACEOF
23889 # Files that config.status was made for.
23890 config_files="$ac_config_files"
23891 config_headers="$ac_config_headers"
23892 config_commands="$ac_config_commands"
23896 cat >>$CONFIG_STATUS <<\_ACEOF
23898 \`$as_me' instantiates files from templates according to the
23899 current configuration.
23901 Usage: $0 [OPTIONS] [FILE]...
23903 -h, --help print this help, then exit
23904 -V, --version print version number and configuration settings, then exit
23905 -q, --quiet do not print progress messages
23906 -d, --debug don't remove temporary files
23907 --recheck update $as_me by reconfiguring in the same conditions
23908 --file=FILE[:TEMPLATE]
23909 instantiate the configuration file FILE
23910 --header=FILE[:TEMPLATE]
23911 instantiate the configuration header FILE
23913 Configuration files:
23916 Configuration headers:
23919 Configuration commands:
23922 Report bugs to <bug-autoconf@gnu.org>."
23925 cat >>$CONFIG_STATUS <<_ACEOF
23928 configured by $0, generated by GNU Autoconf 2.61,
23929 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23931 Copyright (C) 2006 Free Software Foundation, Inc.
23932 This config.status script is free software; the Free Software Foundation
23933 gives unlimited permission to copy, distribute and modify it."
23940 cat >>$CONFIG_STATUS <<\_ACEOF
23941 # If no file are specified by the user, then we need to provide default
23942 # value. By we need to know if files were specified by the user.
23948 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23949 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23960 # Handling of the options.
23961 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23963 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23964 echo "$ac_cs_version"; exit ;;
23965 --debug |
--debu |
--deb |
--de |
--d |
-d )
23967 --file |
--fil |
--fi |
--f )
23969 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23970 ac_need_defaults
=false
;;
23971 --header |
--heade |
--head |
--hea )
23973 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23974 ac_need_defaults
=false
;;
23976 # Conflict between --help and --header
23977 { echo "$as_me: error: ambiguous option: $1
23978 Try \`$0 --help' for more information." >&2
23979 { (exit 1); exit 1; }; };;
23980 --help |
--hel |
-h )
23981 echo "$ac_cs_usage"; exit ;;
23982 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23983 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23986 # This is an error.
23987 -*) { echo "$as_me: error: unrecognized option: $1
23988 Try \`$0 --help' for more information." >&2
23989 { (exit 1); exit 1; }; } ;;
23991 *) ac_config_targets
="$ac_config_targets $1"
23992 ac_need_defaults
=false
;;
23998 ac_configure_extra_args
=
24000 if $ac_cs_silent; then
24002 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24006 cat >>$CONFIG_STATUS <<_ACEOF
24007 if \$ac_cs_recheck; then
24008 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24009 CONFIG_SHELL=$SHELL
24010 export CONFIG_SHELL
24011 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24015 cat >>$CONFIG_STATUS <<\_ACEOF
24019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24020 ## Running $as_me. ##
24026 cat >>$CONFIG_STATUS <<_ACEOF
24030 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24034 cat >>$CONFIG_STATUS <<\_ACEOF
24036 # Handling of arguments.
24037 for ac_config_target
in $ac_config_targets
24039 case $ac_config_target in
24040 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24041 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24042 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24043 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24044 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24045 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24046 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24047 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24048 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24049 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24050 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24051 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24053 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24054 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24055 { (exit 1); exit 1; }; };;
24060 # If the user did not use the arguments to specify the items to instantiate,
24061 # then the envvar interface is used. Set only those that are not.
24062 # We use the long form for the default assignment because of an extremely
24063 # bizarre bug on SunOS 4.1.3.
24064 if $ac_need_defaults; then
24065 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24066 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24067 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24070 # Have a temporary directory for convenience. Make it in the build tree
24071 # simply because there is no reason against having it here, and in addition,
24072 # creating and moving files from /tmp can sometimes cause problems.
24073 # Hook for its removal unless debugging.
24074 # Note that there is a small window in which the directory will not be cleaned:
24075 # after its creation but before its name has been assigned to `$tmp'.
24079 trap 'exit_status=$?
24080 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24082 trap '{ (exit 1); exit 1; }' 1 2 13 15
24084 # Create a (secure) tmp directory for tmp files.
24087 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24088 test -n "$tmp" && test -d "$tmp"
24091 tmp
=.
/conf$$
-$RANDOM
24092 (umask 077 && mkdir
"$tmp")
24095 echo "$me: cannot create a temporary directory in ." >&2
24096 { (exit 1); exit 1; }
24100 # Set up the sed scripts for CONFIG_FILES section.
24103 # No need to generate the scripts if there are no CONFIG_FILES.
24104 # This happens for instance when ./config.status config.h
24105 if test -n "$CONFIG_FILES"; then
24112 for ac_last_try
in false false false false false
:; do
24113 cat >conf$
$subs.
sed <<_ACEOF
24114 SHELL!$SHELL$ac_delim
24115 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24116 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24117 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24118 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24119 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24120 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24121 exec_prefix!$exec_prefix$ac_delim
24122 prefix!$prefix$ac_delim
24123 program_transform_name!$program_transform_name$ac_delim
24124 bindir!$bindir$ac_delim
24125 sbindir!$sbindir$ac_delim
24126 libexecdir!$libexecdir$ac_delim
24127 datarootdir!$datarootdir$ac_delim
24128 datadir!$datadir$ac_delim
24129 sysconfdir!$sysconfdir$ac_delim
24130 sharedstatedir!$sharedstatedir$ac_delim
24131 localstatedir!$localstatedir$ac_delim
24132 includedir!$includedir$ac_delim
24133 oldincludedir!$oldincludedir$ac_delim
24134 docdir!$docdir$ac_delim
24135 infodir!$infodir$ac_delim
24136 htmldir!$htmldir$ac_delim
24137 dvidir!$dvidir$ac_delim
24138 pdfdir!$pdfdir$ac_delim
24139 psdir!$psdir$ac_delim
24140 libdir!$libdir$ac_delim
24141 localedir!$localedir$ac_delim
24142 mandir!$mandir$ac_delim
24143 DEFS!$DEFS$ac_delim
24144 ECHO_C!$ECHO_C$ac_delim
24145 ECHO_N!$ECHO_N$ac_delim
24146 ECHO_T!$ECHO_T$ac_delim
24147 LIBS!$LIBS$ac_delim
24148 build_alias!$build_alias$ac_delim
24149 host_alias!$host_alias$ac_delim
24150 target_alias!$target_alias$ac_delim
24151 MAINT!$MAINT$ac_delim
24152 build!$build$ac_delim
24153 build_cpu!$build_cpu$ac_delim
24154 build_vendor!$build_vendor$ac_delim
24155 build_os!$build_os$ac_delim
24156 host!$host$ac_delim
24157 host_cpu!$host_cpu$ac_delim
24158 host_vendor!$host_vendor$ac_delim
24159 host_os!$host_os$ac_delim
24161 CFLAGS!$CFLAGS$ac_delim
24162 LDFLAGS!$LDFLAGS$ac_delim
24163 CPPFLAGS!$CPPFLAGS$ac_delim
24164 ac_ct_CC!$ac_ct_CC$ac_delim
24165 EXEEXT!$EXEEXT$ac_delim
24166 OBJEXT!$OBJEXT$ac_delim
24168 GREP!$GREP$ac_delim
24169 EGREP!$EGREP$ac_delim
24170 LN_S!$LN_S$ac_delim
24171 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24172 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24173 INSTALL_DATA!$INSTALL_DATA$ac_delim
24174 RANLIB!$RANLIB$ac_delim
24175 INSTALL_INFO!$INSTALL_INFO$ac_delim
24176 GZIP_PROG!$GZIP_PROG$ac_delim
24177 LIBSOUND!$LIBSOUND$ac_delim
24178 PKG_CONFIG!$PKG_CONFIG$ac_delim
24179 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24180 ALSA_LIBS!$ALSA_LIBS$ac_delim
24181 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24182 SET_MAKE!$SET_MAKE$ac_delim
24183 XMKMF!$XMKMF$ac_delim
24184 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24185 GTK_LIBS!$GTK_LIBS$ac_delim
24186 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24187 XFT_LIBS!$XFT_LIBS$ac_delim
24188 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24189 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24190 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24191 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24192 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24193 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24194 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24195 ALLOCA!$ALLOCA$ac_delim
24196 liblockfile!$liblockfile$ac_delim
24197 LIBOBJS!$LIBOBJS$ac_delim
24198 NEED_SETGID!$NEED_SETGID$ac_delim
24199 KMEM_GROUP!$KMEM_GROUP$ac_delim
24200 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24201 GETOPT_H!$GETOPT_H$ac_delim
24202 GETOPTOBJS!$GETOPTOBJS$ac_delim
24203 version!$version$ac_delim
24204 configuration!$configuration$ac_delim
24205 canonical!$canonical$ac_delim
24206 srcdir!$srcdir$ac_delim
24207 lispdir!$lispdir$ac_delim
24208 locallisppath!$locallisppath$ac_delim
24209 lisppath!$lisppath$ac_delim
24210 x_default_search_path!$x_default_search_path$ac_delim
24213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24215 elif $ac_last_try; then
24216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24218 { (exit 1); exit 1; }; }
24220 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24224 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24225 if test -n "$ac_eof"; then
24226 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24227 ac_eof
=`expr $ac_eof + 1`
24230 cat >>$CONFIG_STATUS <<_ACEOF
24231 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24236 s/^/s,@/; s/!/@,|#_!!_#|/
24239 s/'"$ac_delim"'$/,g/; t
24241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24242 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24243 rm -f conf$
$subs.
sed
24244 cat >>$CONFIG_STATUS <<_ACEOF
24250 for ac_last_try
in false false false false false
:; do
24251 cat >conf$
$subs.
sed <<_ACEOF
24252 etcdir!$etcdir$ac_delim
24253 archlibdir!$archlibdir$ac_delim
24254 bitmapdir!$bitmapdir$ac_delim
24255 gamedir!$gamedir$ac_delim
24256 gameuser!$gameuser$ac_delim
24257 c_switch_system!$c_switch_system$ac_delim
24258 c_switch_machine!$c_switch_machine$ac_delim
24259 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24260 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24261 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24262 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24263 machfile!$machfile$ac_delim
24264 opsysfile!$opsysfile$ac_delim
24265 carbon_appdir!$carbon_appdir$ac_delim
24266 LTLIBOBJS!$LTLIBOBJS$ac_delim
24269 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24271 elif $ac_last_try; then
24272 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24273 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24274 { (exit 1); exit 1; }; }
24276 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24280 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24281 if test -n "$ac_eof"; then
24282 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24283 ac_eof
=`expr $ac_eof + 1`
24286 cat >>$CONFIG_STATUS <<_ACEOF
24287 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24291 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24292 s/^/s,@/; s/!/@,|#_!!_#|/
24295 s/'"$ac_delim"'$/,g/; t
24297 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24298 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24299 rm -f conf$
$subs.
sed
24300 cat >>$CONFIG_STATUS <<_ACEOF
24307 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24308 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24309 # trailing colons and then remove the whole line if VPATH becomes empty
24310 # (actually we leave an empty line to preserve line numbers).
24311 if test "x$srcdir" = x.
; then
24312 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24313 s/:*\$(srcdir):*/:/
24314 s/:*\${srcdir}:*/:/
24316 s/^\([^=]*=[ ]*\):*/\1/
24322 cat >>$CONFIG_STATUS <<\_ACEOF
24323 fi # test -n "$CONFIG_FILES"
24326 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24329 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24331 case $ac_mode$ac_tag in
24333 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24334 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24335 { (exit 1); exit 1; }; };;
24336 :[FH
]-) ac_tag
=-:-;;
24337 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24354 -) ac_f
="$tmp/stdin";;
24355 *) # Look for the file first in the build tree, then in the source tree
24356 # (if the path is not absolute). The absolute path cannot be DOS-style,
24357 # because $ac_f cannot contain `:'.
24361 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24363 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24364 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24365 { (exit 1); exit 1; }; };;
24367 ac_file_inputs
="$ac_file_inputs $ac_f"
24370 # Let's still pretend it is `configure' which instantiates (i.e., don't
24371 # use $as_me), people would be surprised to read:
24372 # /* config.h. Generated by config.status. */
24373 configure_input
="Generated from "`IFS=:
24374 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24375 if test x
"$ac_file" != x-
; then
24376 configure_input
="$ac_file. $configure_input"
24377 { echo "$as_me:$LINENO: creating $ac_file" >&5
24378 echo "$as_me: creating $ac_file" >&6;}
24382 *:-:* |
*:-) cat >"$tmp/stdin";;
24387 ac_dir
=`$as_dirname -- "$ac_file" ||
24388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24389 X"$ac_file" : 'X\(//\)[^/]' \| \
24390 X"$ac_file" : 'X\(//\)$' \| \
24391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24397 /^X\(\/\/\)[^/].*/{
24412 -*) as_dir
=.
/$as_dir;;
24414 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24418 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24419 *) as_qdir
=$as_dir;;
24421 as_dirs
="'$as_qdir' $as_dirs"
24422 as_dir
=`$as_dirname -- "$as_dir" ||
24423 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$as_dir" : 'X\(//\)[^/]' \| \
24425 X"$as_dir" : 'X\(//\)$' \| \
24426 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24432 /^X\(\/\/\)[^/].*/{
24445 test -d "$as_dir" && break
24447 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24448 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24449 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24450 { (exit 1); exit 1; }; }; }
24454 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24456 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24457 # A ".." for each directory in $ac_dir_suffix.
24458 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24459 case $ac_top_builddir_sub in
24460 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24461 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24464 ac_abs_top_builddir
=$ac_pwd
24465 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24466 # for backward compatibility:
24467 ac_top_builddir
=$ac_top_build_prefix
24470 .
) # We are building in place.
24472 ac_top_srcdir
=$ac_top_builddir_sub
24473 ac_abs_top_srcdir
=$ac_pwd ;;
24474 [\\/]* | ?
:[\\/]* ) # Absolute name.
24475 ac_srcdir
=$srcdir$ac_dir_suffix;
24476 ac_top_srcdir
=$srcdir
24477 ac_abs_top_srcdir
=$srcdir ;;
24478 *) # Relative name.
24479 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24480 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24481 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24483 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24493 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24494 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24498 cat >>$CONFIG_STATUS <<\_ACEOF
24499 # If the template does not know about datarootdir, expand it.
24500 # FIXME: This hack should be removed a few years after 2.60.
24501 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24503 case `sed -n '/datarootdir/ {
24512 ' $ac_file_inputs` in
24513 *datarootdir
*) ac_datarootdir_seen
=yes;;
24514 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24515 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24516 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24518 cat >>$CONFIG_STATUS <<_ACEOF
24519 ac_datarootdir_hack='
24520 s&@datadir@&$datadir&g
24521 s&@docdir@&$docdir&g
24522 s&@infodir@&$infodir&g
24523 s&@localedir@&$localedir&g
24524 s&@mandir@&$mandir&g
24525 s&\\\${datarootdir}&$datarootdir&g' ;;
24529 # Neutralize VPATH when `$srcdir' = `.'.
24530 # Shell code in configure.ac might set extrasub.
24531 # FIXME: do we really want to maintain this feature?
24532 cat >>$CONFIG_STATUS <<_ACEOF
24536 cat >>$CONFIG_STATUS <<\_ACEOF
24538 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24539 s
&@configure_input@
&$configure_input&;t t
24540 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24541 s
&@srcdir@
&$ac_srcdir&;t t
24542 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24543 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24544 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24545 s
&@builddir@
&$ac_builddir&;t t
24546 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24547 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24548 s
&@INSTALL@
&$ac_INSTALL&;t t
24549 $ac_datarootdir_hack
24550 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24553 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24555 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24556 which seems to be undefined. Please make sure it is defined." >&5
24557 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24558 which seems to be undefined. Please make sure it is defined." >&2;}
24562 -) cat "$tmp/out"; rm -f "$tmp/out";;
24563 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24572 # Transform confdefs.h into a sed script `conftest.defines', that
24573 # substitutes the proper values into config.h.in to produce config.h.
24574 rm -f conftest.defines conftest.
tail
24575 # First, append a space to every undef/define line, to ease matching.
24576 echo 's/$/ /' >conftest.defines
24577 # Then, protect against being on the right side of a sed subst, or in
24578 # an unquoted here document, in config.status. If some macros were
24579 # called several times there might be several #defines for the same
24580 # symbol, which is useless. But do not sort them, since the last
24581 # AC_DEFINE must be honored.
24582 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24583 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24584 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24585 # PARAMS is the parameter list in the macro definition--in most cases, it's
24586 # just an empty string.
24587 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24588 ac_dB
='\\)[ (].*,\\1define\\2'
24596 s/^[ ]*#[ ]*define[ ][ ]*//
24601 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24602 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24603 ' >>conftest.defines
24605 # Remove the space that was appended to ease matching.
24606 # Then replace #undef with comments. This is necessary, for
24607 # example, in the case of _POSIX_SOURCE, which is predefined and required
24608 # on some systems where configure will not decide to define it.
24609 # (The regexp can be short, since the line contains either #define or #undef.)
24611 s,^[ #]*u.*,/* & */,' >>conftest.defines
24613 # Break up conftest.defines:
24614 ac_max_sed_lines
=50
24616 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24617 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24618 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24620 ac_in
='$ac_file_inputs'
24621 ac_out
='"$tmp/out1"'
24622 ac_nxt
='"$tmp/out2"'
24626 # Write a here document:
24627 cat >>$CONFIG_STATUS <<_ACEOF
24628 # First, check the format of the line:
24629 cat >"\$tmp/defines.sed" <<\\CEOF
24630 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24631 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24635 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24637 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24638 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24639 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24640 grep . conftest.
tail >/dev
/null ||
break
24641 rm -f conftest.defines
24642 mv conftest.
tail conftest.defines
24644 rm -f conftest.defines conftest.
tail
24646 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24647 cat >>$CONFIG_STATUS <<\_ACEOF
24648 if test x
"$ac_file" != x-
; then
24649 echo "/* $configure_input */" >"$tmp/config.h"
24650 cat "$ac_result" >>"$tmp/config.h"
24651 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24652 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24653 echo "$as_me: $ac_file is unchanged" >&6;}
24656 mv "$tmp/config.h" $ac_file
24659 echo "/* $configure_input */"
24665 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24666 echo "$as_me: executing $ac_file commands" >&6;}
24671 case $ac_file$ac_mode in
24674 ### Make the necessary directories, if they don't exist.
24675 for dir
in etc lisp
; do
24676 test -d ${dir} || mkdir
${dir}
24679 # Build src/Makefile from ${srcdir}/src/Makefile.c
24680 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24681 # This must be done after src/config.h is built, since we rely on that file.
24683 # Now get this: Some word that is part of the ${srcdir} directory name
24684 # or the ${configuration} value might, just might, happen to be an
24685 # identifier like `sun4' or `i386' or something, and be predefined by
24686 # the C preprocessor to some helpful value like 1, or maybe the empty
24687 # string. Needless to say consequent macro substitutions are less
24688 # than conducive to the makefile finding the correct directory.
24689 undefs
="`echo $top_srcdir $configuration $canonical |
24690 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24691 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24694 echo creating src
/epaths.h
24695 ${MAKE-make} epaths-force
24697 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24698 # `..' to `. .' unless invoked with -traditional
24700 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24701 CPPFLAGS
="$CPPFLAGS -traditional"
24704 echo creating lib-src
/Makefile
24706 rm -f junk.c junk1.c junk2.c
24707 sed -e '/start of cpp stuff/q' \
24708 < Makefile.c
> junk1.c
24709 sed -e '1,/start of cpp stuff/d'\
24710 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24711 < Makefile.c
> junk.c
24712 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24713 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24714 cat junk1.c junk2.c
> Makefile.new
24715 rm -f junk.c junk1.c junk2.c
24716 chmod 444 Makefile.new
24717 mv -f Makefile.new Makefile
24720 echo creating src
/Makefile
24722 rm -f junk.c junk1.c junk2.c
24723 sed -e '/start of cpp stuff/q' \
24724 < Makefile.c
> junk1.c
24725 sed -e '1,/start of cpp stuff/d'\
24726 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24727 < Makefile.c
> junk.c
24728 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24729 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24731 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24732 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24733 cat junk1.c junk2.c
> Makefile.new
24734 rm -f junk.c junk1.c junk2.c
24735 chmod 444 Makefile.new
24736 mv -f Makefile.new Makefile
24739 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24740 echo creating src
/.gdbinit
24741 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24744 # This is how we know whether to re-run configure in certain cases.
24745 touch src
/config.stamp
24753 { (exit 0); exit 0; }
24755 chmod +x
$CONFIG_STATUS
24756 ac_clean_files
=$ac_clean_files_save
24759 # configure is writing to config.log, and then calls config.status.
24760 # config.status does its own redirection, appending to config.log.
24761 # Unfortunately, on DOS this fails, as config.log is still kept open
24762 # by configure, so config.status won't be able to write to it; its
24763 # output is simply discarded. So we exec the FD to /dev/null,
24764 # effectively closing config.log, so it can be properly (re)opened and
24765 # appended to by config.status. When coming back to configure, we
24766 # need to make the FD available again.
24767 if test "$no_create" != yes; then
24769 ac_config_status_args
=
24770 test "$silent" = yes &&
24771 ac_config_status_args
="$ac_config_status_args --quiet"
24773 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24775 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24776 # would make configure fail if this is the last instruction.
24777 $ac_cs_success ||
{ (exit 1); exit 1; }