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 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3030 ## -Xs prevents spurious whitespace.
3031 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3033 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3038 ## Watch out for a compiler that we know will not work.
3039 case "${canonical}" in
3040 *-solaris* |
*-sunos5* )
3041 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3042 ## /usr/ucb/cc doesn't work;
3043 ## we should find some other compiler that does work.
3051 machine
=sparc opsys
=nextstep
3055 m68
*-tadpole-sysv* )
3056 machine
=tad68k opsys
=usg5-3
3060 tahoe-tahoe-bsd4.2
* )
3061 machine
=tahoe opsys
=bsd4-2
3063 tahoe-tahoe-bsd4.3
* )
3064 machine
=tahoe opsys
=bsd4-3
3067 ## Tandem Integrity S2
3069 machine
=tandem-s2 opsys
=usg5-3
3073 m88k-tektronix-sysv3
* )
3074 machine
=tekxd88 opsys
=usg5-3
3077 ## Tektronix 16000 box (6130?)
3078 ns16k-tektronix-bsd
* )
3079 machine
=ns16000 opsys
=bsd4-2
3082 ## src/m/tek4300.h hints that this is a m68k machine.
3083 m68
*-tektronix-bsd* )
3084 machine
=tek4300 opsys
=bsd4-3
3088 ## We seem to have lost the machine-description file titan.h!
3090 machine
=titan opsys
=usg5-3
3093 ## Ustation E30 (SS5E)
3094 m68
*-unisys-uniplus* )
3095 machine
=ustation opsystem
=unipl5-2
3101 case "${canonical}" in
3102 *-bsd4.1
* ) opsys
=bsd4-1
;;
3103 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3104 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3105 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3106 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3107 *-vms* ) opsys
=vms
;;
3113 ns16k-whitechapel-
* )
3115 ## We don't know what sort of OS runs on these; we'll let the
3116 ## operating system guessing code below try.
3121 machine
=wicat opsys
=usg5-2
3126 machine
=ia64 opsys
=gnu-linux
3129 ## Intel 386 machines where we don't care about the manufacturer
3132 case "${canonical}" in
3133 *-cygwin ) opsys
=cygwin
;;
3134 *-darwin* ) opsys
=darwin
3135 CPP
="${CC-cc} -E -no-cpp-precomp"
3137 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3138 *-isc2.2
* ) opsys
=isc2-2
;;
3139 *-isc4.0
* ) opsys
=isc4-0
;;
3140 *-isc4.
* ) opsys
=isc4-1
3141 GCC_TEST_OPTIONS
=-posix
3142 NON_GCC_TEST_OPTIONS
=-Xp
3144 *-isc* ) opsys
=isc3-0
;;
3145 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3146 *-esix* ) opsys
=esix
;;
3147 *-xenix* ) opsys
=xenix
;;
3148 *-linux-gnu* ) opsys
=gnu-linux
;;
3149 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3150 *-sco3.2v5
* ) opsys
=sco5
3151 NON_GNU_CPP
=/lib
/cpp
3152 # Prevent -belf from being passed to $CPP.
3153 # /lib/cpp does not accept it.
3154 OVERRIDE_CPPFLAGS
=" "
3156 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3157 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3158 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3159 *-386bsd* ) opsys
=386bsd
;;
3160 *-nextstep* ) opsys
=nextstep
;;
3161 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3165 ## m68k Linux-based GNU system
3167 machine
=m68k opsys
=gnu-linux
3170 ## Mips Linux-based GNU system
3171 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3172 machine
=mips opsys
=gnu-linux
3176 sparc-fujitsu-sysv4
* )
3177 machine
=sparc opsys
=uxpds
3178 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3183 f301-fujitsu-uxpv4.1
)
3184 machine
=f301 opsys
=uxpv
3187 ## AMD x86-64 Linux-based GNU system
3188 x86_64-
*-linux-gnu* )
3189 machine
=amdx86-64 opsys
=gnu-linux
3192 ## Tensilica Xtensa Linux-based GNU system
3193 xtensa-
*-linux-gnu* )
3194 machine
=xtensa opsys
=gnu-linux
3202 ### If the code above didn't choose an operating system, just choose
3203 ### an operating system based on the configuration name. You really
3204 ### only want to use this when you have no idea what the right
3205 ### operating system is; if you know what operating systems a machine
3206 ### runs, it's cleaner to make it explicit in the case statement
3208 if test x
"${opsys}" = x
; then
3209 case "${canonical}" in
3210 *-gnu* ) opsys
=gnu
;;
3211 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3212 *-bsd4.2
) opsys
=bsd4-2
;;
3213 *-bsd4.3
) opsys
=bsd4-3
;;
3214 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3215 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3216 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3217 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3218 *-sysv4.2uw
* ) opsys
=unixware
;;
3219 *-sysv5uw* ) opsys
=unixware
;;
3220 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3221 *-sysv4.1
* |
*-sysvr4.1
* )
3222 NON_GNU_CPP
=/usr
/lib
/cpp
3224 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3225 if [ x
$NON_GNU_CPP = x
]; then
3226 if [ -f /usr
/ccs
/lib
/cpp
]; then
3227 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3229 NON_GNU_CPP
=/lib
/cpp
3233 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3242 if test $unported = yes; then
3243 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3244 Check \`etc/MACHINES' for recognized configuration names." >&5
3245 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3247 { (exit 1); exit 1; }; }
3250 machfile
="m/${machine}.h"
3251 opsysfile
="s/${opsys}.h"
3254 #### Choose a compiler.
3255 test -n "$CC" && cc_specified
=yes
3257 # Save the value of CFLAGS that the user specified.
3258 SPECIFIED_CFLAGS
="$CFLAGS"
3261 "yes" ) CC
="gcc" GCC
=yes ;;
3262 "no" ) : ${CC=cc} ;;
3266 ac_cpp
='$CPP $CPPFLAGS'
3267 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC
="$CC" # Let the user override the test.
3281 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3285 test -z "$as_dir" && as_dir
=.
3286 for ac_exec_ext
in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 if test -n "$CC"; then
3300 { echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6; }
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3309 if test -z "$ac_cv_prog_CC"; then
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc
; ac_word
=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3321 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3325 test -z "$as_dir" && as_dir
=.
3326 for ac_exec_ext
in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_ac_ct_CC
="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341 echo "${ECHO_T}$ac_ct_CC" >&6; }
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3347 if test "x$ac_ct_CC" = x
; then
3350 case $cross_compiling:$ac_tool_warned in
3352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet. If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&5
3355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3358 ac_tool_warned
=yes ;;
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_CC+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC
="$CC" # Let the user override the test.
3378 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir
=.
3383 for ac_exec_ext
in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 if test -n "$CC"; then
3397 { echo "$as_me:$LINENO: result: $CC" >&5
3398 echo "${ECHO_T}$CC" >&6; }
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc
; ac_word
=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC
="$CC" # Let the user override the test.
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected
=yes
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy
$ac_cv_prog_CC
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3447 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3453 if test -n "$CC"; then
3454 { echo "$as_me:$LINENO: result: $CC" >&5
3455 echo "${ECHO_T}$CC" >&6; }
3457 { echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6; }
3463 if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog
in cl.exe
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC
="$CC" # Let the user override the test.
3477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir
=.
3482 for ac_exec_ext
in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CC"; then
3496 { echo "$as_me:$LINENO: result: $CC" >&5
3497 echo "${ECHO_T}$CC" >&6; }
3499 { echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6; }
3504 test -n "$CC" && break
3507 if test -z "$CC"; then
3509 for ac_prog
in cl.exe
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy
$ac_prog; ac_word
=$2
3513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir
=.
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CC
="$ac_prog"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6; }
3543 { echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6; }
3548 test -n "$ac_ct_CC" && break
3551 if test "x$ac_ct_CC" = x
; then
3554 case $cross_compiling:$ac_tool_warned in
3556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3557 whose name does not start with the host triplet. If you think this
3558 configuration is useful to you, please write to autoconf@gnu.org." >&5
3559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3560 whose name does not start with the host triplet. If you think this
3561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3562 ac_tool_warned
=yes ;;
3571 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3572 See \`config.log' for more details." >&5
3573 echo "$as_me: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&2;}
3575 { (exit 1); exit 1; }; }
3577 # Provide some information about the compiler.
3578 echo "$as_me:$LINENO: checking for C compiler version" >&5
3579 ac_compiler
=`set X $ac_compile; echo $2`
3580 { (ac_try
="$ac_compiler --version >&5"
3582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compiler --version >&5") 2>&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590 { (ac_try="$ac_compiler -v >&5"
3592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3593 *) ac_try_echo
=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compiler -v >&5") 2>&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 { (ac_try
="$ac_compiler -V >&5"
3602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compiler -V >&5") 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3626 ac_clean_files_save=$ac_clean_files
3627 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3628 # Try to create an executable without -o first, disregard a.out.
3629 # It will help us diagnose broken compilers, and finding out an intuition
3631 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3632 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3633 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3635 # List of possible output files, starting from the most likely.
3636 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3637 # only as a last resort. b.out is created by i960 compilers.
3638 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3640 # The IRIX 6 linker writes into existing files which may not be
3641 # executable, retaining their permissions. Remove them first so a
3642 # subsequent execution test works.
3644 for ac_file in $ac_files
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3653 if { (ac_try="$ac_link_default"
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_link_default") 2>&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; then
3663 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3666 # so that the user can short-circuit this test for compilers unknown to
3668 for ac_file
in $ac_files ''
3670 test -f "$ac_file" ||
continue
3672 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3675 # We found the default executable, but exeext='' is most
3679 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3681 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3683 # We set ac_cv_exeext here because the later test for it is not
3684 # safe: cross compilers may not add the suffix if given an `-o'
3685 # argument, so we may need to know it at that point already.
3686 # Even if this section looks crufty: it has the advantage of
3693 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3699 { echo "$as_me:$LINENO: result: $ac_file" >&5
3700 echo "${ECHO_T}$ac_file" >&6; }
3701 if test -z "$ac_file"; then
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.
$ac_ext >&5
3705 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&2;}
3709 { (exit 77); exit 77; }; }
3712 ac_exeext
=$ac_cv_exeext
3714 # Check that the compiler produces executables we can run. If not, either
3715 # the compiler is broken, or we cross compile.
3716 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3717 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3718 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3719 # If not cross compiling, check that we can run a simple program.
3720 if test "$cross_compiling" != yes; then
3721 if { ac_try
='./$ac_file'
3722 { (case "(($ac_try" in
3723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3733 if test "$cross_compiling" = maybe; then
3736 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details.
" >&5
3739 echo "$as_me: error
: cannot run C compiled programs.
3740 If you meant to cross compile
, use \
`--host'.
3741 See \`config.log
' for more details." >&2;}
3742 { (exit 1); exit 1; }; }
3746 { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3749 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3750 ac_clean_files=$ac_clean_files_save
3751 # Check that the compiler produces executables we can run. If not, either
3752 # the compiler is broken, or we cross compile.
3753 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3754 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3755 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3756 echo "${ECHO_T}$cross_compiling" >&6; }
3758 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3759 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3760 if { (ac_try="$ac_link"
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_link") 2>&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; then
3770 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3771 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3772 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3774 for ac_file
in conftest.exe conftest conftest.
*; do
3775 test -f "$ac_file" ||
continue
3777 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3778 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3784 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3785 See \`config.log' for more details." >&5
3786 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&2;}
3788 { (exit 1); exit 1; }; }
3791 rm -f conftest
$ac_cv_exeext
3792 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3793 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3795 rm -f conftest.
$ac_ext
3796 EXEEXT
=$ac_cv_exeext
3798 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3799 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3800 if test "${ac_cv_objext+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 cat >conftest.
$ac_ext <<_ACEOF
3806 cat confdefs.h
>>conftest.
$ac_ext
3807 cat >>conftest.
$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3818 rm -f conftest.o conftest.obj
3819 if { (ac_try
="$ac_compile"
3821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_compile") 2>&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; then
3829 for ac_file in conftest.o conftest.obj conftest.*; do
3830 test -f "$ac_file" || continue;
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3842 See \`config.log
' for more details." >&5
3843 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log' for more details.
" >&2;}
3845 { (exit 1); exit 1; }; }
3848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3850 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3851 echo "${ECHO_T}$ac_cv_objext" >&6; }
3852 OBJEXT=$ac_cv_objext
3854 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3855 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3857 echo $ECHO_N "(cached
) $ECHO_C" >&6
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3896 echo "$as_me: failed program was
:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3908 GCC=`test $ac_compiler_gnu = yes && echo yes`
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3912 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then
3914 echo $ECHO_N "(cached
) $ECHO_C" >&6
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3920 cat >conftest.$ac_ext <<_ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3942 (eval "$ac_compile") 2>conftest.er1
3944 grep -v '^ *+' conftest.er1 >conftest.err
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3948 (exit $ac_status); } && {
3949 test -z "$ac_c_werror_flag" ||
3950 test ! -s conftest.err
3951 } && test -s conftest.$ac_objext; then
3954 echo "$as_me: failed program was
:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3958 cat >conftest.$ac_ext <<_ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3973 rm -f conftest.$ac_objext
3974 if { (ac_try="$ac_compile"
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_compile") 2>conftest.er1
3982 grep -v '^ *+' conftest.er1 >conftest.err
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3986 (exit $ac_status); } && {
3987 test -z "$ac_c_werror_flag" ||
3988 test ! -s conftest.err
3989 } && test -s conftest.$ac_objext; then
3992 echo "$as_me: failed program was
:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3997 cat >conftest.$ac_ext <<_ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4021 grep -v '^ *+' conftest.er1 >conftest.err
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4031 echo "$as_me: failed program was
:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4046 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4047 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4057 if test "$GCC" = yes; then
4063 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4064 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4065 if test "${ac_cv_prog_cc_c89+set}" = set; then
4066 echo $ECHO_N "(cached
) $ECHO_C" >&6
4068 ac_cv_prog_cc_c89=no
4070 cat >conftest.$ac_ext <<_ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4078 #include <sys/types.h>
4079 #include <sys/stat.h>
4080 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4081 struct buf { int x; };
4082 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4083 static char *e (p, i)
4089 static char *f (char * (*g) (char **, int), char **p, ...)
4094 s = g (p, va_arg (v,int));
4099 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4100 function prototypes and stuff, but not '\xHH' hex character constants.
4101 These don't provoke an error unfortunately, instead are silently treated
4102 as 'x'. The following induces an error, until -std is added to get
4103 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4104 array size at least. It's necessary to write '\x00'==0 to get something
4105 that's true only with -std. */
4106 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4108 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4109 inside strings and character constants. */
4111 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4113 int test (int i, double x);
4114 struct s1 {int (*f) (int a);};
4115 struct s2 {int (*f) (double a);};
4116 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4122 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4127 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4128 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4130 CC="$ac_save_CC $ac_arg"
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_cv_prog_cc_c89=$ac_arg
4150 echo "$as_me: failed program was
:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4156 rm -f core conftest.err conftest.$ac_objext
4157 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4159 rm -f conftest.$ac_ext
4164 case "x
$ac_cv_prog_cc_c89" in
4166 { echo "$as_me:$LINENO: result
: none needed
" >&5
4167 echo "${ECHO_T}none needed
" >&6; } ;;
4169 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4170 echo "${ECHO_T}unsupported
" >&6; } ;;
4172 CC="$CC $ac_cv_prog_cc_c89"
4173 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4174 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4185 # On Suns, sometimes $CPP names a directory.
4186 if test -n "$CPP" && test -d "$CPP"; then
4190 #### Some systems specify a CPP to use unless we are using GCC.
4191 #### Now that we know whether we are using GCC, we can decide whether
4192 #### to use that one.
4193 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4198 #### Some systems specify a CC to use unless we are using GCC.
4199 #### Now that we know whether we are using GCC, we can decide whether
4200 #### to use that one.
4201 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4202 test x$cc_specified != xyes
4207 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4209 CC="$CC $GCC_TEST_OPTIONS"
4212 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4214 CC="$CC $NON_GCC_TEST_OPTIONS"
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4224 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4225 # On Suns, sometimes $CPP names a directory.
4226 if test -n "$CPP" && test -d "$CPP"; then
4229 if test -z "$CPP"; then
4230 if test "${ac_cv_prog_CPP+set}" = set; then
4231 echo $ECHO_N "(cached
) $ECHO_C" >&6
4233 # Double quotes because CPP needs to be expanded
4234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4237 for ac_c_preproc_warn_flag in '' yes
4239 # Use a header file that comes with gcc, so configuring glibc
4240 # with a fresh cross-compiler works.
4241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4242 # <limits.h> exists even on freestanding compilers.
4243 # On the NeXT, cc -E runs the code through the compiler's parser,
4244 # not just through cpp. "Syntax error
" is here to catch this case.
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4252 # include <limits.h>
4254 # include <assert.h>
4258 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4270 (exit $ac_status); } >/dev/null && {
4271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4276 echo "$as_me: failed program was
:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4279 # Broken: fails on valid input.
4283 rm -f conftest.err conftest.$ac_ext
4285 # OK, works on sane cases. Now check whether nonexistent headers
4286 # can be detected and how.
4287 cat >conftest.$ac_ext <<_ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4307 (exit $ac_status); } >/dev/null && {
4308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4311 # Broken: success on invalid input.
4314 echo "$as_me: failed program was
:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 # Passes both tests.
4322 rm -f conftest.err conftest.$ac_ext
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then
4339 { echo "$as_me:$LINENO: result
: $CPP" >&5
4340 echo "${ECHO_T}$CPP" >&6; }
4342 for ac_c_preproc_warn_flag in '' yes
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error
" is here to catch this case.
4350 cat >conftest.$ac_ext <<_ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4357 # include <limits.h>
4359 # include <assert.h>
4363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4371 grep -v '^ *+' conftest.er1 >conftest.err
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4375 (exit $ac_status); } >/dev/null && {
4376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4381 echo "$as_me: failed program was
:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4384 # Broken: fails on valid input.
4388 rm -f conftest.err conftest.$ac_ext
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat >conftest.$ac_ext <<_ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4408 grep -v '^ *+' conftest.er1 >conftest.err
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4416 # Broken: success on invalid input.
4419 echo "$as_me: failed program was
:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4422 # Passes both tests.
4427 rm -f conftest.err conftest.$ac_ext
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.$ac_ext
4432 if $ac_preproc_ok; then
4435 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4436 See \
`config.log' for more details." >&5
4437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log
' for more details." >&2;}
4439 { (exit 1); exit 1; }; }
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4445 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4449 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4450 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 # Extract the first word of "grep ggrep" to use in msg output
4455 if test -z "$GREP"; then
4456 set dummy grep ggrep; ac_prog_name=$2
4457 if test "${ac_cv_path_GREP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_path_GREP_found=false
4461 # Loop through the user's path and
test for each of PROGNAME-LIST
4462 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4463 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4466 test -z "$as_dir" && as_dir
=.
4467 for ac_prog
in grep ggrep
; do
4468 for ac_exec_ext
in '' $ac_executable_extensions; do
4469 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4470 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4471 # Check for GNU ac_path_GREP and select it if it is found.
4472 # Check for GNU $ac_path_GREP
4473 case `"$ac_path_GREP" --version 2>&1` in
4475 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4478 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
4484 echo 'GREP' >> "conftest.nl"
4485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4486 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4487 ac_count
=`expr $ac_count + 1`
4488 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_GREP
="$ac_path_GREP"
4491 ac_path_GREP_max
=$ac_count
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4496 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4500 $ac_path_GREP_found && break 3
4510 GREP
="$ac_cv_path_GREP"
4511 if test -z "$GREP"; then
4512 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4513 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4514 { (exit 1); exit 1; }; }
4518 ac_cv_path_GREP
=$GREP
4523 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4524 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4525 GREP
="$ac_cv_path_GREP"
4528 { echo "$as_me:$LINENO: checking for egrep" >&5
4529 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_EGREP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4534 then ac_cv_path_EGREP
="$GREP -E"
4536 # Extract the first word of "egrep" to use in msg output
4537 if test -z "$EGREP"; then
4538 set dummy
egrep; ac_prog_name
=$2
4539 if test "${ac_cv_path_EGREP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_path_EGREP_found
=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4545 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4548 test -z "$as_dir" && as_dir
=.
4549 for ac_prog
in egrep; do
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4557 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4560 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4568 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4569 ac_count
=`expr $ac_count + 1`
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP
="$ac_path_EGREP"
4573 ac_path_EGREP_max
=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4582 $ac_path_EGREP_found && break 3
4592 EGREP
="$ac_cv_path_EGREP"
4593 if test -z "$EGREP"; then
4594 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4595 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4596 { (exit 1); exit 1; }; }
4600 ac_cv_path_EGREP
=$EGREP
4606 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4607 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4608 EGREP
="$ac_cv_path_EGREP"
4612 { echo "$as_me:$LINENO: checking for AIX" >&5
4613 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4614 cat >conftest.
$ac_ext <<_ACEOF
4617 cat confdefs.h
>>conftest.
$ac_ext
4618 cat >>conftest.
$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "yes" >/dev
/null
2>&1; then
4627 { echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6; }
4629 cat >>confdefs.h
<<\_ACEOF
4630 #define _ALL_SOURCE 1
4634 { echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6; }
4641 cat >>confdefs.h
<<\_ACEOF
4642 #define _GNU_SOURCE 1
4647 ### Use -Wno-pointer-sign if the compiler supports it
4648 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4649 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4650 SAVE_CFLAGS
="$CFLAGS"
4651 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4652 cat >conftest.
$ac_ext <<_ACEOF
4655 cat confdefs.h
>>conftest.
$ac_ext
4656 cat >>conftest.
$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4667 rm -f conftest.
$ac_objext
4668 if { (ac_try
="$ac_compile"
4670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_compile") 2>conftest.er1
4676 grep -v '^ *+' conftest.er1 >conftest.err
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test $has_option = yes; then
4694 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4696 { echo "$as_me:$LINENO: result: $has_option" >&5
4697 echo "${ECHO_T}$has_option" >&6; }
4698 CFLAGS="$SAVE_CFLAGS"
4702 #### Some other nice autoconf tests.
4704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4707 if test "$LN_S" = "ln -s"; then
4708 { echo "$as_me:$LINENO: result: yes" >&5
4709 echo "${ECHO_T}yes" >&6; }
4711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4712 echo "${ECHO_T}no, using $LN_S" >&6; }
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4721 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4722 # On Suns, sometimes $CPP names a directory.
4723 if test -n "$CPP" && test -d "$CPP"; then
4726 if test -z "$CPP"; then
4727 if test "${ac_cv_prog_CPP+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4730 # Double quotes because CPP needs to be expanded
4731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4734 for ac_c_preproc_warn_flag in '' yes
4736 # Use a header file that comes with gcc, so configuring glibc
4737 # with a fresh cross-compiler works.
4738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4739 # <limits.h> exists even on freestanding compilers.
4740 # On the NeXT, cc -E runs the code through the compiler's parser,
4741 # not just through cpp. "Syntax error" is here to catch this case.
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4749 # include <limits.h>
4751 # include <assert.h>
4755 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4758 *) ac_try_echo
=$ac_try;;
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 grep -v '^ *+' conftest.er1
>conftest.err
4765 cat conftest.err
>&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev
/null
&& {
4768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.
$ac_ext >&5
4776 # Broken: fails on valid input.
4780 rm -f conftest.err conftest.
$ac_ext
4782 # OK, works on sane cases. Now check whether nonexistent headers
4783 # can be detected and how.
4784 cat >conftest.
$ac_ext <<_ACEOF
4787 cat confdefs.h
>>conftest.
$ac_ext
4788 cat >>conftest.
$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <ac_nonexistent.h>
4792 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null && {
4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4808 # Broken: success on invalid input.
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4814 # Passes both tests.
4819 rm -f conftest.err conftest.$ac_ext
4822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4823 rm -f conftest.err conftest.
$ac_ext
4824 if $ac_preproc_ok; then
4836 { echo "$as_me:$LINENO: result: $CPP" >&5
4837 echo "${ECHO_T}$CPP" >&6; }
4839 for ac_c_preproc_warn_flag
in '' yes
4841 # Use a header file that comes with gcc, so configuring glibc
4842 # with a fresh cross-compiler works.
4843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4844 # <limits.h> exists even on freestanding compilers.
4845 # On the NeXT, cc -E runs the code through the compiler's parser,
4846 # not just through cpp. "Syntax error" is here to catch this case.
4847 cat >conftest.
$ac_ext <<_ACEOF
4850 cat confdefs.h
>>conftest.
$ac_ext
4851 cat >>conftest.
$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4854 # include <limits.h>
4856 # include <assert.h>
4860 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null && {
4873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 # Broken: fails on valid input.
4885 rm -f conftest.err conftest.$ac_ext
4887 # OK, works on sane cases. Now check whether nonexistent headers
4888 # can be detected and how.
4889 cat >conftest.$ac_ext <<_ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4897 if { (ac_try="$ac_cpp conftest.$ac_ext"
4899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4900 *) ac_try_echo
=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1
>conftest.err
4907 cat conftest.err
>&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev
/null
&& {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4913 # Broken: success on invalid input.
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.
$ac_ext >&5
4919 # Passes both tests.
4924 rm -f conftest.err conftest.
$ac_ext
4927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4928 rm -f conftest.err conftest.
$ac_ext
4929 if $ac_preproc_ok; then
4932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4933 See \`config.log' for more details." >&5
4934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&2;}
4936 { (exit 1); exit 1; }; }
4940 ac_cpp
='$CPP $CPPFLAGS'
4941 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4945 # Find a good install program. We prefer a C program (faster),
4946 # so one script is as good as another. But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4959 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4960 if test -z "$INSTALL"; then
4961 if test "${ac_cv_path_install+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4968 test -z "$as_dir" && as_dir
=.
4969 # Account for people who put trailing slashes in PATH elements.
4971 .
/ | .
// |
/cC
/* | \
4972 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4973 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4976 # OSF1 and SCO ODT 3.0 have their own names for install.
4977 # Don't use installbsd from OSF since it installs stuff as root
4979 for ac_prog
in ginstall scoinst
install; do
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4982 if test $ac_prog = install &&
4983 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4984 # AIX install. It has an incompatible calling convention.
4986 elif test $ac_prog = install &&
4987 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4988 # program-specific install script used by HP pwplus--don't use.
4991 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5004 if test "${ac_cv_path_install+set}" = set; then
5005 INSTALL
=$ac_cv_path_install
5007 # As a last resort, use the slow shell script. Don't cache a
5008 # value for INSTALL within a source directory, because that will
5009 # break other packages using the cache if that directory is
5010 # removed, or if the value is a relative name.
5011 INSTALL
=$ac_install_sh
5014 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5015 echo "${ECHO_T}$INSTALL" >&6; }
5017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5018 # It thinks the first close brace ends the variable substitution.
5019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5023 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5025 if test "x$RANLIB" = x
; then
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5028 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_prog_RANLIB+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 if test -n "$RANLIB"; then
5035 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir
=.
5042 for ac_exec_ext
in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5054 RANLIB
=$ac_cv_prog_RANLIB
5055 if test -n "$RANLIB"; then
5056 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5057 echo "${ECHO_T}$RANLIB" >&6; }
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5065 if test -z "$ac_cv_prog_RANLIB"; then
5066 ac_ct_RANLIB
=$RANLIB
5067 # Extract the first word of "ranlib", so it can be a program name with args.
5068 set dummy ranlib
; ac_word
=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if test -n "$ac_ct_RANLIB"; then
5075 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir
=.
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5095 if test -n "$ac_ct_RANLIB"; then
5096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5103 if test "x$ac_ct_RANLIB" = x
; then
5106 case $cross_compiling:$ac_tool_warned in
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5112 whose name does not start with the host triplet. If you think this
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5114 ac_tool_warned
=yes ;;
5116 RANLIB
=$ac_ct_RANLIB
5119 RANLIB
="$ac_cv_prog_RANLIB"
5123 # Extract the first word of "install-info", so it can be a program name with args.
5124 set dummy install-info
; ac_word
=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 case $INSTALL_INFO in
5132 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5139 test -z "$as_dir" && as_dir
=.
5140 for ac_exec_ext
in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5154 if test -n "$INSTALL_INFO"; then
5155 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5156 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5158 { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5163 # Extract the first word of "install-info", so it can be a program name with args.
5164 set dummy install-info
; ac_word
=$2
5165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5167 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5170 case $INSTALL_INFO in
5172 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5176 for as_dir
in /usr
/sbin
5179 test -z "$as_dir" && as_dir
=.
5180 for ac_exec_ext
in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5193 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5194 if test -n "$INSTALL_INFO"; then
5195 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5196 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5198 { echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6; }
5203 # Extract the first word of "install-info", so it can be a program name with args.
5204 set dummy install-info
; ac_word
=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 case $INSTALL_INFO in
5212 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5215 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir
=.
5220 for ac_exec_ext
in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5234 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5235 if test -n "$INSTALL_INFO"; then
5236 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5237 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5239 { echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6; }
5244 # Extract the first word of "gzip", so it can be a program name with args.
5245 set dummy
gzip; ac_word
=$2
5246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5253 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5275 if test -n "$GZIP_PROG"; then
5276 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5277 echo "${ECHO_T}$GZIP_PROG" >&6; }
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5286 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5288 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5291 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5293 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5297 late_LDFLAGS
=$LDFLAGS
5298 if test "$GCC" = yes; then
5299 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5301 LDFLAGS
="$LDFLAGS -znocombreloc"
5304 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5305 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5306 cat >conftest.
$ac_ext <<_ACEOF
5309 rm -f conftest.
$ac_objext conftest
$ac_exeext
5310 if { (ac_try
="$ac_link"
5312 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_link") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest$ac_exeext &&
5326 $as_test_x conftest$ac_exeext; then
5327 { echo "$as_me:$LINENO: result: yes" >&5
5328 echo "${ECHO_T}yes" >&6; }
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5333 LDFLAGS=$late_LDFLAGS
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5339 conftest$ac_exeext conftest.$ac_ext
5341 #### Extract some information from the operating system and machine files.
5343 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5344 - which libraries the lib-src programs will want, and
5345 - whether the GNU malloc routines are usable..." >&5
5346 echo "$as_me: checking the machine- and system-dependent files to find out
5347 - which libraries the lib-src programs will want, and
5348 - whether the GNU malloc routines are usable..." >&6;}
5350 ### First figure out CFLAGS (which we use for running the compiler here)
5351 ### and REAL_CFLAGS (which we use for real compilation).
5352 ### The two are the same except on a few systems, where they are made
5353 ### different to work around various lossages. For example,
5354 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5355 ### as implying static linking.
5357 ### If the CFLAGS env var is specified, we use that value
5358 ### instead of the default.
5360 ### It's not important that this name contain the PID; you can't run
5361 ### two configures in the same directory and have anything work
5363 tempcname="conftest.c"
5366 #include "'${srcdir}'/src/'${opsysfile}'"
5367 #include "'${srcdir}'/src/'${machfile}'"
5368 #ifndef LIBS_MACHINE
5369 #define LIBS_MACHINE
5374 #ifndef C_SWITCH_SYSTEM
5375 #define C_SWITCH_SYSTEM
5377 #ifndef C_SWITCH_MACHINE
5378 #define C_SWITCH_MACHINE
5380 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5381 configure___ c_switch_system=C_SWITCH_SYSTEM
5382 configure___ c_switch_machine=C_SWITCH_MACHINE
5385 #define LIB_X11_LIB -lX11
5388 #ifndef LIBX11_MACHINE
5389 #define LIBX11_MACHINE
5392 #ifndef LIBX11_SYSTEM
5393 #define LIBX11_SYSTEM
5395 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5398 configure___ unexec=UNEXEC
5400 configure___ unexec=unexec.o
5403 #ifdef SYSTEM_MALLOC
5404 configure___ system_malloc=yes
5406 configure___ system_malloc=no
5409 #ifdef USE_MMAP_FOR_BUFFERS
5410 configure___ use_mmap_for_buffers=yes
5412 configure___ use_mmap_for_buffers=no
5415 #ifndef C_DEBUG_SWITCH
5416 #define C_DEBUG_SWITCH -g
5419 #ifndef C_OPTIMIZE_SWITCH
5421 #define C_OPTIMIZE_SWITCH -O2
5423 #define C_OPTIMIZE_SWITCH -O
5427 #ifndef C_WARNINGS_SWITCH
5428 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5431 #ifndef LD_SWITCH_MACHINE
5432 #define LD_SWITCH_MACHINE
5435 #ifndef LD_SWITCH_SYSTEM
5436 #define LD_SWITCH_SYSTEM
5439 #ifndef LD_SWITCH_X_SITE_AUX
5440 #define LD_SWITCH_X_SITE_AUX
5443 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5444 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5446 #ifdef THIS_IS_CONFIGURE
5448 /* Get the CFLAGS for tests in configure. */
5450 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5452 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5455 #else /* not THIS_IS_CONFIGURE */
5457 /* Get the CFLAGS for real compilation. */
5459 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5464 #endif /* not THIS_IS_CONFIGURE */
5467 # The value of CPP is a quoted variable reference, so we need to do this
5468 # to get its actual value...
5469 CPP=`eval "echo $CPP"`
5470 eval `${CPP} -Isrc ${tempcname} \
5471 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5472 if test "x$SPECIFIED_CFLAGS" = x; then
5473 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5474 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5476 REAL_CFLAGS="$CFLAGS"
5480 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5482 ### Make sure subsequent tests use flags consistent with the build flags.
5484 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5485 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5487 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5492 # Check whether --enable-largefile was given.
5493 if test "${enable_largefile+set}" = set; then
5494 enableval=$enable_largefile;
5497 if test "$enable_largefile" != no; then
5499 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5500 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5501 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 ac_cv_sys_largefile_CC=no
5505 if test "$GCC" != yes; then
5508 # IRIX 6.2 and later do not support large files by default,
5509 # so use the C compiler's -n32 option if that helps.
5510 cat >conftest.$ac_ext <<_ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5537 *) ac_try_echo
=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1
>conftest.err
5544 cat conftest.err
>&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.
$ac_objext; then
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5558 rm -f core conftest.err conftest.
$ac_objext
5560 rm -f conftest.
$ac_objext
5561 if { (ac_try
="$ac_compile"
5563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5569 grep -v '^ *+' conftest.er1 >conftest.err
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_sys_largefile_CC=' -n32'; break
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5585 rm -f core conftest.err conftest.$ac_objext
5589 rm -f conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5593 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5594 if test "$ac_cv_sys_largefile_CC" != no; then
5595 CC=$CC$ac_cv_sys_largefile_CC
5598 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5599 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5600 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5631 *) ac_try_echo
=$ac_try;;
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5636 grep -v '^ *+' conftest.er1
>conftest.err
5638 cat conftest.err
>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.
$ac_objext; then
5644 ac_cv_sys_file_offset_bits
=no
; break
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.
$ac_ext >&5
5652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5653 cat >conftest.
$ac_ext <<_ACEOF
5656 cat confdefs.h
>>conftest.
$ac_ext
5657 cat >>conftest.
$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #define _FILE_OFFSET_BITS 64
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5677 rm -f conftest.
$ac_objext
5678 if { (ac_try
="$ac_compile"
5680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5686 grep -v '^ *+' conftest.er1 >conftest.err
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_sys_file_offset_bits=64; break
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_cv_sys_file_offset_bits=unknown
5707 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5708 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5709 case $ac_cv_sys_file_offset_bits in #(
5712 cat >>confdefs.h <<_ACEOF
5713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5718 if test $ac_cv_sys_file_offset_bits = unknown; then
5719 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5720 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5721 if test "${ac_cv_sys_large_files+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5752 *) ac_try_echo
=$ac_try;;
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5757 grep -v '^ *+' conftest.er1
>conftest.err
5759 cat conftest.err
>&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.
$ac_objext; then
5765 ac_cv_sys_large_files
=no
; break
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.
$ac_ext >&5
5773 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5774 cat >conftest.
$ac_ext <<_ACEOF
5777 cat confdefs.h
>>conftest.
$ac_ext
5778 cat >>conftest.
$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #define _LARGE_FILES 1
5781 #include <sys/types.h>
5782 /* Check that off_t can represent 2**63 - 1 correctly.
5783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5784 since some C++ compilers masquerading as C compilers
5785 incorrectly reject 9223372036854775807. */
5786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5788 && LARGE_OFF_T % 2147483647 == 1)
5798 rm -f conftest.
$ac_objext
5799 if { (ac_try
="$ac_compile"
5801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5807 grep -v '^ *+' conftest.er1 >conftest.err
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_cv_sys_large_files=1; break
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_sys_large_files=unknown
5828 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5829 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5830 case $ac_cv_sys_large_files in #(
5833 cat >>confdefs.h <<_ACEOF
5834 #define _LARGE_FILES $ac_cv_sys_large_files
5844 ### The standard library on x86-64 GNU/Linux distributions can
5845 ### be located in either /usr/lib64 or /usr/lib.
5846 case "${canonical}" in
5847 x86_64-*-linux-gnu* )
5848 if test -d /usr/lib64; then
5850 cat >>confdefs.h <<\_ACEOF
5851 #define HAVE_X86_64_LIB64_DIR 1
5860 if test "${with_sound}" != "no"; then
5861 # Sound support for GNU/Linux and the free BSDs.
5862 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5864 if test "${ac_cv_header_stdc+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5890 *) ac_try_echo
=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1
>conftest.err
5897 cat conftest.err
>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.
$ac_objext; then
5903 ac_cv_header_stdc
=yes
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.
$ac_ext >&5
5908 ac_cv_header_stdc
=no
5911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5913 if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.
$ac_ext <<_ACEOF
5918 cat confdefs.h
>>conftest.
$ac_ext
5919 cat >>conftest.
$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev
/null
2>&1; then
5928 ac_cv_header_stdc
=no
5934 if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat >conftest.
$ac_ext <<_ACEOF
5939 cat confdefs.h
>>conftest.
$ac_ext
5940 cat >>conftest.
$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "free" >/dev
/null
2>&1; then
5949 ac_cv_header_stdc
=no
5955 if test $ac_cv_header_stdc = yes; then
5956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5957 if test "$cross_compiling" = yes; then
5960 cat >conftest.
$ac_ext <<_ACEOF
5963 cat confdefs.h
>>conftest.
$ac_ext
5964 cat >>conftest.
$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5968 #if ((' ' & 0x0FF) == 0x020)
5969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5972 # define ISLOWER(c) \
5973 (('a' <= (c) && (c) <= 'i') \
5974 || ('j' <= (c) && (c) <= 'r') \
5975 || ('s' <= (c) && (c) <= 'z'))
5976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5984 for (i = 0; i < 256; i++)
5985 if (XOR (islower (i), ISLOWER (i))
5986 || toupper (i) != TOUPPER (i))
5991 rm -f conftest
$ac_exeext
5992 if { (ac_try
="$ac_link"
5994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_link") 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6004 *) ac_try_echo
=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.
$ac_ext >&5
6018 ac_cv_header_stdc
=no
6020 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6028 if test $ac_cv_header_stdc = yes; then
6030 cat >>confdefs.h
<<\_ACEOF
6031 #define STDC_HEADERS 1
6036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6046 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6047 inttypes.h stdint.h unistd.h
6049 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6052 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 cat >conftest.
$ac_ext <<_ACEOF
6058 cat confdefs.h
>>conftest.
$ac_ext
6059 cat >>conftest.
$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6063 #include <$ac_header>
6065 rm -f conftest.
$ac_objext
6066 if { (ac_try
="$ac_compile"
6068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6074 grep -v '^ *+' conftest.er1 >conftest.err
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 eval "$as_ac_Header=yes"
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6087 eval "$as_ac_Header=no"
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 ac_res=`eval echo '${'$as_ac_Header'}'`
6093 { echo "$as_me:$LINENO: result: $ac_res" >&5
6094 echo "${ECHO_T}$ac_res" >&6; }
6095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6096 cat >>confdefs.h <<_ACEOF
6097 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6108 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6110 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6121 # Is the header compilable?
6122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6124 cat >conftest.$ac_ext <<_ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6131 #include <$ac_header>
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6137 *) ac_try_echo
=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1
>conftest.err
6144 cat conftest.err
>&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.
$ac_objext; then
6150 ac_header_compiler
=yes
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.
$ac_ext >&5
6155 ac_header_compiler
=no
6158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6; }
6162 # Is the header present?
6163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6165 cat >conftest.
$ac_ext <<_ACEOF
6168 cat confdefs.h
>>conftest.
$ac_ext
6169 cat >>conftest.
$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6173 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6181 grep -v '^ *+' conftest.er1 >conftest.err
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null && {
6186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6189 ac_header_preproc=yes
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_header_preproc=no
6197 rm -f conftest.err conftest.$ac_ext
6198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6199 echo "${ECHO_T}$ac_header_preproc" >&6; }
6201 # So? What about this header?
6202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6208 ac_header_preproc=yes
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 eval "$as_ac_Header=\$ac_header_preproc"
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6247 # Emulation library used on NetBSD.
6248 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6250 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lossaudio $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6272 return _oss_ioctl ();
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6281 *) ac_try_echo
=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1
>conftest.err
6288 cat conftest.err
>&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest
$ac_exeext &&
6294 $as_test_x conftest
$ac_exeext; then
6295 ac_cv_lib_ossaudio__oss_ioctl
=yes
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.
$ac_ext >&5
6300 ac_cv_lib_ossaudio__oss_ioctl
=no
6303 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6304 conftest
$ac_exeext conftest.
$ac_ext
6305 LIBS
=$ac_check_lib_save_LIBS
6307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6309 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6318 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6319 if test "X${with_pkg_config_prog}" != X
; then
6320 PKG_CONFIG
="${with_pkg_config_prog}"
6325 if test -z "$PKG_CONFIG"; then
6326 # Extract the first word of "pkg-config", so it can be a program name with args.
6327 set dummy pkg-config
; ac_word
=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6342 test -z "$as_dir" && as_dir
=.
6343 for ac_exec_ext
in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6357 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6358 if test -n "$PKG_CONFIG"; then
6359 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6360 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6369 if test "$PKG_CONFIG" = "no" ; then
6372 PKG_CONFIG_MIN_VERSION
=0.9.0
6373 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6374 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6375 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6377 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6378 { echo "$as_me:$LINENO: result: yes" >&5
6379 echo "${ECHO_T}yes" >&6; }
6382 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6383 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6384 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6386 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6388 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6389 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6390 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6391 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6392 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6398 ## If we have a custom action on failure, don't print errors, but
6399 ## do set a variable so people can do so.
6400 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6412 if test $succeeded = yes; then
6418 if test $HAVE_ALSA = yes; then
6419 SAVE_CFLAGS
="$CFLAGS"
6420 SAVE_LDFLAGS
="$LDFLAGS"
6421 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6422 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6423 cat >conftest.
$ac_ext <<_ACEOF
6426 cat confdefs.h
>>conftest.
$ac_ext
6427 cat >>conftest.
$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <asoundlib.h>
6433 snd_lib_error_set_handler (0);
6438 rm -f conftest.
$ac_objext
6439 if { (ac_try
="$ac_compile"
6441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6447 grep -v '^ *+' conftest.er1 >conftest.err
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest.$ac_objext; then
6455 emacs_alsa_normal=yes
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 emacs_alsa_normal=no
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 if test "$emacs_alsa_normal" != yes; then
6465 cat >conftest.$ac_ext <<_ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <alsa/asoundlib.h>
6475 snd_lib_error_set_handler (0);
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6484 *) ac_try_echo
=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6489 grep -v '^ *+' conftest.er1
>conftest.err
6491 cat conftest.err
>&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.
$ac_objext; then
6497 emacs_alsa_subdir
=yes
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.
$ac_ext >&5
6502 emacs_alsa_subdir
=no
6505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6506 if test "$emacs_alsa_subdir" != yes; then
6507 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6508 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6509 { (exit 1); exit 1; }; }
6511 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6514 CFLAGS
="$SAVE_CFLAGS"
6515 LDFLAGS
="$SAVE_LDFLAGS"
6516 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6517 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6519 cat >>confdefs.h
<<\_ACEOF
6553 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6554 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6555 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6556 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6559 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6563 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_res
=`eval echo '${'$as_ac_Header'}'`
6567 { echo "$as_me:$LINENO: result: $ac_res" >&5
6568 echo "${ECHO_T}$ac_res" >&6; }
6570 # Is the header compilable?
6571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6573 cat >conftest.
$ac_ext <<_ACEOF
6576 cat confdefs.h
>>conftest.
$ac_ext
6577 cat >>conftest.
$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 #include <$ac_header>
6582 rm -f conftest.
$ac_objext
6583 if { (ac_try
="$ac_compile"
6585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_compile") 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_objext; then
6599 ac_header_compiler=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_header_compiler=no
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609 echo "${ECHO_T}$ac_header_compiler" >&6; }
6611 # Is the header present?
6612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <$ac_header>
6622 if { (ac_try="$ac_cpp conftest.$ac_ext"
6624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6625 *) ac_try_echo
=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1
>conftest.err
6632 cat conftest.err
>&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } >/dev
/null
&& {
6635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6638 ac_header_preproc
=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.
$ac_ext >&5
6643 ac_header_preproc
=no
6646 rm -f conftest.err conftest.
$ac_ext
6647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6; }
6650 # So? What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657 ac_header_preproc
=yes
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6677 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 eval "$as_ac_Header=\$ac_header_preproc"
6682 ac_res
=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688 cat >>confdefs.h
<<_ACEOF
6689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6698 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6699 cat >conftest.
$ac_ext <<_ACEOF
6702 cat confdefs.h
>>conftest.
$ac_ext
6703 cat >>conftest.
$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <sys/personality.h>
6709 personality (PER_LINUX32)
6714 rm -f conftest.
$ac_objext
6715 if { (ac_try
="$ac_compile"
6717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6723 grep -v '^ *+' conftest.er1 >conftest.err
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6731 emacs_cv_personality_linux32=yes
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6736 emacs_cv_personality_linux32=no
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6741 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6743 if test $emacs_cv_personality_linux32 = yes; then
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_PERSONALITY_LINUX32 1
6752 for ac_header in term.h
6754 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6760 cat >conftest.$ac_ext <<_ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <$ac_header>
6768 if { (ac_try="$ac_cpp conftest.$ac_ext"
6770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6771 *) ac_try_echo
=$ac_try;;
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6776 grep -v '^ *+' conftest.er1
>conftest.err
6778 cat conftest.err
>&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } >/dev
/null
&& {
6781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6784 eval "$as_ac_Header=yes"
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.
$ac_ext >&5
6789 eval "$as_ac_Header=no"
6792 rm -f conftest.err conftest.
$ac_ext
6794 ac_res
=`eval echo '${'$as_ac_Header'}'`
6795 { echo "$as_me:$LINENO: result: $ac_res" >&5
6796 echo "${ECHO_T}$ac_res" >&6; }
6797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6798 cat >>confdefs.h
<<_ACEOF
6799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 cat >conftest.
$ac_ext <<_ACEOF
6814 cat confdefs.h
>>conftest.
$ac_ext
6815 cat >>conftest.
$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6830 rm -f conftest.
$ac_objext
6831 if { (ac_try
="$ac_compile"
6833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6839 grep -v '^ *+' conftest.er1 >conftest.err
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 ac_cv_header_stdc=yes
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6852 ac_cv_header_stdc=no
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 if test $ac_cv_header_stdc = yes; then
6858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "memchr" >/dev/null 2>&1; then
6872 ac_cv_header_stdc=no
6878 if test $ac_cv_header_stdc = yes; then
6879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6880 cat >conftest.$ac_ext <<_ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "free" >/dev/null 2>&1; then
6893 ac_cv_header_stdc=no
6899 if test $ac_cv_header_stdc = yes; then
6900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6901 if test "$cross_compiling" = yes; then
6904 cat >conftest.$ac_ext <<_ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6912 #if ((' ' & 0x0FF) == 0x020)
6913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6916 # define ISLOWER(c) \
6917 (('a' <= (c) && (c) <= 'i') \
6918 || ('j' <= (c) && (c) <= 'r') \
6919 || ('s' <= (c) && (c) <= 'z'))
6920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6928 for (i = 0; i < 256; i++)
6929 if (XOR (islower (i), ISLOWER (i))
6930 || toupper (i) != TOUPPER (i))
6935 rm -f conftest$ac_exeext
6936 if { (ac_try="$ac_link"
6938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6939 *) ac_try_echo
=$ac_try;;
6941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6942 (eval "$ac_link") 2>&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6946 { (case "(($ac_try" in
6947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_try") 2>&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6957 echo "$as_me: program exited with status $ac_status" >&5
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6962 ac_cv_header_stdc=no
6964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6970 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6971 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6972 if test $ac_cv_header_stdc = yes; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define STDC_HEADERS 1
6980 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6981 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6982 if test "${ac_cv_header_time+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.$ac_ext <<_ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <sys/types.h>
6992 #include <sys/time.h>
6998 if ((struct tm *) 0)
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7008 *) ac_try_echo
=$ac_try;;
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_compile") 2>conftest.er1
7013 grep -v '^ *+' conftest.er1
>conftest.err
7015 cat conftest.err
>&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest.
$ac_objext; then
7021 ac_cv_header_time
=yes
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.
$ac_ext >&5
7026 ac_cv_header_time
=no
7029 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7031 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7032 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7033 if test $ac_cv_header_time = yes; then
7035 cat >>confdefs.h
<<\_ACEOF
7036 #define TIME_WITH_SYS_TIME 1
7041 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7042 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7043 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7046 cat >conftest.
$ac_ext <<_ACEOF
7049 cat confdefs.h
>>conftest.
$ac_ext
7050 cat >>conftest.
$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7064 rm -f conftest.
$ac_objext
7065 if { (ac_try
="$ac_compile"
7067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 ac_cv_have_decl_sys_siglist=yes
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7086 ac_cv_have_decl_sys_siglist=no
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7092 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7093 if test $ac_cv_have_decl_sys_siglist = yes; then
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_DECL_SYS_SIGLIST 1
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_DECL_SYS_SIGLIST 0
7109 if test $ac_cv_have_decl_sys_siglist != yes; then
7110 # For Tru64, at least:
7111 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7112 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7113 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7126 #ifndef __sys_siglist
7127 (void) __sys_siglist;
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7138 *) ac_try_echo
=$ac_try;;
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7143 grep -v '^ *+' conftest.er1
>conftest.err
7145 cat conftest.err
>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.
$ac_objext; then
7151 ac_cv_have_decl___sys_siglist
=yes
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.
$ac_ext >&5
7156 ac_cv_have_decl___sys_siglist
=no
7159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7162 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7163 if test $ac_cv_have_decl___sys_siglist = yes; then
7165 cat >>confdefs.h
<<_ACEOF
7166 #define HAVE_DECL___SYS_SIGLIST 1
7171 cat >>confdefs.h
<<_ACEOF
7172 #define HAVE_DECL___SYS_SIGLIST 0
7179 if test $ac_cv_have_decl___sys_siglist = yes; then
7181 cat >>confdefs.h
<<\_ACEOF
7182 #define sys_siglist __sys_siglist
7187 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7188 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7189 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.
$ac_ext <<_ACEOF
7195 cat confdefs.h
>>conftest.
$ac_ext
7196 cat >>conftest.
$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <sys/wait.h>
7201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7217 rm -f conftest.
$ac_objext
7218 if { (ac_try
="$ac_compile"
7220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_compile") 2>conftest.er1
7226 grep -v '^ *+' conftest.er1 >conftest.err
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest.$ac_objext; then
7234 ac_cv_header_sys_wait_h=yes
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 ac_cv_header_sys_wait_h=no
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7245 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7246 if test $ac_cv_header_sys_wait_h = yes; then
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_SYS_WAIT_H 1
7255 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7256 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7257 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 #ifdef TIME_WITH_SYS_TIME
7267 #include <sys/time.h>
7270 #ifdef HAVE_SYS_TIME_H
7271 #include <sys/time.h>
7282 static struct utimbuf x; x.actime = x.modtime;
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7291 *) ac_try_echo
=$ac_try;;
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7296 grep -v '^ *+' conftest.er1
>conftest.err
7298 cat conftest.err
>&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.
$ac_objext; then
7304 emacs_cv_struct_utimbuf
=yes
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.
$ac_ext >&5
7309 emacs_cv_struct_utimbuf
=no
7312 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7314 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7315 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7316 if test $emacs_cv_struct_utimbuf = yes; then
7318 cat >>confdefs.h
<<\_ACEOF
7319 #define HAVE_STRUCT_UTIMBUF 1
7324 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7325 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7326 if test "${ac_cv_type_signal+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.
$ac_ext <<_ACEOF
7332 cat confdefs.h
>>conftest.
$ac_ext
7333 cat >>conftest.
$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <sys/types.h>
7341 return *(signal (0, 0)) (0) == 1;
7346 rm -f conftest.
$ac_objext
7347 if { (ac_try
="$ac_compile"
7349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7355 grep -v '^ *+' conftest.er1 >conftest.err
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_cv_type_signal=int
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7368 ac_cv_type_signal=void
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7373 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7374 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7376 cat >>confdefs.h <<_ACEOF
7377 #define RETSIGTYPE $ac_cv_type_signal
7382 { echo "$as_me:$LINENO: checking for speed_t" >&5
7383 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7384 if test "${emacs_cv_speed_t+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7387 cat >conftest.$ac_ext <<_ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #include <termios.h>
7402 rm -f conftest.$ac_objext
7403 if { (ac_try="$ac_compile"
7405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7406 *) ac_try_echo
=$ac_try;;
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_compile") 2>conftest.er1
7411 grep -v '^ *+' conftest.er1
>conftest.err
7413 cat conftest.err
>&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest.
$ac_objext; then
7419 emacs_cv_speed_t
=yes
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.
$ac_ext >&5
7427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7429 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7430 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7431 if test $emacs_cv_speed_t = yes; then
7433 cat >>confdefs.h
<<\_ACEOF
7434 #define HAVE_SPEED_T 1
7439 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7440 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7441 if test "${emacs_cv_struct_timeval+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.
$ac_ext <<_ACEOF
7447 cat confdefs.h
>>conftest.
$ac_ext
7448 cat >>conftest.
$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 #ifdef TIME_WITH_SYS_TIME
7451 #include <sys/time.h>
7454 #ifdef HAVE_SYS_TIME_H
7455 #include <sys/time.h>
7463 static struct timeval x; x.tv_sec = x.tv_usec;
7468 rm -f conftest.
$ac_objext
7469 if { (ac_try
="$ac_compile"
7471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 emacs_cv_struct_timeval=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 emacs_cv_struct_timeval=no
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7496 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7497 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7498 if test $emacs_cv_struct_timeval = yes; then
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_TIMEVAL 1
7506 { echo "$as_me:$LINENO: checking for struct exception" >&5
7507 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7508 if test "${emacs_cv_struct_exception+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7521 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7529 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7530 *) ac_try_echo
=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1
>conftest.err
7537 cat conftest.err
>&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.
$ac_objext; then
7543 emacs_cv_struct_exception
=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.
$ac_ext >&5
7548 emacs_cv_struct_exception
=no
7551 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7553 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7554 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7555 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7556 if test $emacs_cv_struct_exception != yes; then
7558 cat >>confdefs.h
<<\_ACEOF
7559 #define NO_MATHERR 1
7565 for ac_header
in sys
/socket.h
7567 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7568 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7571 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 ac_res
=`eval echo '${'$as_ac_Header'}'`
7575 { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7578 # Is the header compilable?
7579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7581 cat >conftest.
$ac_ext <<_ACEOF
7584 cat confdefs.h
>>conftest.
$ac_ext
7585 cat >>conftest.
$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 #include <$ac_header>
7590 rm -f conftest.
$ac_objext
7591 if { (ac_try
="$ac_compile"
7593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7599 grep -v '^ *+' conftest.er1 >conftest.err
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7607 ac_header_compiler=yes
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 ac_header_compiler=no
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7617 echo "${ECHO_T}$ac_header_compiler" >&6; }
7619 # Is the header present?
7620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 #include <$ac_header>
7630 if { (ac_try="$ac_cpp conftest.$ac_ext"
7632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7633 *) ac_try_echo
=$ac_try;;
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7638 grep -v '^ *+' conftest.er1
>conftest.err
7640 cat conftest.err
>&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } >/dev
/null
&& {
7643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7646 ac_header_preproc
=yes
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.
$ac_ext >&5
7651 ac_header_preproc
=no
7654 rm -f conftest.err conftest.
$ac_ext
7655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7656 echo "${ECHO_T}$ac_header_preproc" >&6; }
7658 # So? What about this header?
7659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7665 ac_header_preproc
=yes
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7685 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7688 eval "$as_ac_Header=\$ac_header_preproc"
7690 ac_res
=`eval echo '${'$as_ac_Header'}'`
7691 { echo "$as_me:$LINENO: result: $ac_res" >&5
7692 echo "${ECHO_T}$ac_res" >&6; }
7695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7696 cat >>confdefs.h
<<_ACEOF
7697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705 for ac_header
in net
/if.h
7707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.
$ac_ext <<_ACEOF
7716 cat confdefs.h
>>conftest.
$ac_ext
7717 cat >>conftest.
$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7720 #if HAVE_SYS_SOCKET_H
7721 #include <sys/socket.h>
7724 #include <$ac_header>
7726 rm -f conftest.
$ac_objext
7727 if { (ac_try
="$ac_compile"
7729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1 >conftest.err
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 eval "$as_ac_Header=yes"
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7748 eval "$as_ac_Header=no"
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 ac_res=`eval echo '${'$as_ac_Header'}'`
7754 { echo "$as_me:$LINENO: result: $ac_res" >&5
7755 echo "${ECHO_T}$ac_res" >&6; }
7756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7766 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7767 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7768 if test "${ac_cv_struct_tm+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 cat >conftest.$ac_ext <<_ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7784 int *p = &tm.tm_sec;
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7794 *) ac_try_echo
=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7799 grep -v '^ *+' conftest.er1
>conftest.err
7801 cat conftest.err
>&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.
$ac_objext; then
7807 ac_cv_struct_tm
=time.h
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.
$ac_ext >&5
7812 ac_cv_struct_tm
=sys
/time.h
7815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7819 if test $ac_cv_struct_tm = sys
/time.h
; then
7821 cat >>confdefs.h
<<\_ACEOF
7822 #define TM_IN_SYS_TIME 1
7827 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7828 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7829 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 cat >conftest.
$ac_ext <<_ACEOF
7835 cat confdefs.h
>>conftest.
$ac_ext
7836 cat >>conftest.
$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <sys/types.h>
7839 #include <$ac_cv_struct_tm>
7845 static struct tm ac_aggr;
7846 if (ac_aggr.tm_zone)
7852 rm -f conftest.
$ac_objext
7853 if { (ac_try
="$ac_compile"
7855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
7861 grep -v '^ *+' conftest.er1 >conftest.err
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest.$ac_objext; then
7869 ac_cv_member_struct_tm_tm_zone=yes
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7874 cat >conftest.$ac_ext <<_ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <sys/types.h>
7881 #include <$ac_cv_struct_tm>
7887 static struct tm ac_aggr;
7888 if (sizeof ac_aggr.tm_zone)
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7898 *) ac_try_echo
=$ac_try;;
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7903 grep -v '^ *+' conftest.er1
>conftest.err
7905 cat conftest.err
>&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.
$ac_objext; then
7911 ac_cv_member_struct_tm_tm_zone
=yes
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.
$ac_ext >&5
7916 ac_cv_member_struct_tm_tm_zone
=no
7919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7925 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7926 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7928 cat >>confdefs.h
<<_ACEOF
7929 #define HAVE_STRUCT_TM_TM_ZONE 1
7935 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7937 cat >>confdefs.h
<<\_ACEOF
7938 #define HAVE_TM_ZONE 1
7942 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7943 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7944 if test "${ac_cv_have_decl_tzname+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 cat >conftest.
$ac_ext <<_ACEOF
7950 cat confdefs.h
>>conftest.
$ac_ext
7951 cat >>conftest.
$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7966 rm -f conftest.
$ac_objext
7967 if { (ac_try
="$ac_compile"
7969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && {
7980 test -z "$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 } && test -s conftest.$ac_objext; then
7983 ac_cv_have_decl_tzname=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 ac_cv_have_decl_tzname=no
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7994 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7995 if test $ac_cv_have_decl_tzname = yes; then
7997 cat >>confdefs.h <<_ACEOF
7998 #define HAVE_DECL_TZNAME 1
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_DECL_TZNAME 0
8011 { echo "$as_me:$LINENO: checking for tzname" >&5
8012 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8013 if test "${ac_cv_var_tzname+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 #if !HAVE_DECL_TZNAME
8024 extern char *tzname[];
8030 return tzname[0][0];
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8039 *) ac_try_echo
=$ac_try;;
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8044 grep -v '^ *+' conftest.er1
>conftest.err
8046 cat conftest.err
>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest
$ac_exeext &&
8052 $as_test_x conftest
$ac_exeext; then
8053 ac_cv_var_tzname
=yes
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.
$ac_ext >&5
8061 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8062 conftest
$ac_exeext conftest.
$ac_ext
8064 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8065 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8066 if test $ac_cv_var_tzname = yes; then
8068 cat >>confdefs.h
<<\_ACEOF
8069 #define HAVE_TZNAME 1
8075 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8076 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8077 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 cat >conftest.
$ac_ext <<_ACEOF
8083 cat confdefs.h
>>conftest.
$ac_ext
8084 cat >>conftest.
$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8091 static struct tm ac_aggr;
8092 if (ac_aggr.tm_gmtoff)
8098 rm -f conftest.
$ac_objext
8099 if { (ac_try
="$ac_compile"
8101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8107 grep -v '^ *+' conftest.er1 >conftest.err
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_cv_member_struct_tm_tm_gmtoff=yes
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8120 cat >conftest.$ac_ext <<_ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8131 static struct tm ac_aggr;
8132 if (sizeof ac_aggr.tm_gmtoff)
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8142 *) ac_try_echo
=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1
>conftest.err
8149 cat conftest.err
>&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.
$ac_objext; then
8155 ac_cv_member_struct_tm_tm_gmtoff
=yes
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.
$ac_ext >&5
8160 ac_cv_member_struct_tm_tm_gmtoff
=no
8163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8166 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8168 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8169 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8170 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8172 cat >>confdefs.h
<<\_ACEOF
8173 #define HAVE_TM_GMTOFF 1
8178 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8179 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8180 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 cat >conftest.
$ac_ext <<_ACEOF
8186 cat confdefs.h
>>conftest.
$ac_ext
8187 cat >>conftest.
$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 $ac_includes_default
8190 #if HAVE_SYS_SOCKET_H
8191 #include <sys/socket.h>
8200 static struct ifreq ac_aggr;
8201 if (ac_aggr.ifr_flags)
8207 rm -f conftest.
$ac_objext
8208 if { (ac_try
="$ac_compile"
8210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_cv_member_struct_ifreq_ifr_flags=yes
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8229 cat >conftest.$ac_ext <<_ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 $ac_includes_default
8236 #if HAVE_SYS_SOCKET_H
8237 #include <sys/socket.h>
8246 static struct ifreq ac_aggr;
8247 if (sizeof ac_aggr.ifr_flags)
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8257 *) ac_try_echo
=$ac_try;;
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8262 grep -v '^ *+' conftest.er1
>conftest.err
8264 cat conftest.err
>&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.
$ac_objext; then
8270 ac_cv_member_struct_ifreq_ifr_flags
=yes
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.
$ac_ext >&5
8275 ac_cv_member_struct_ifreq_ifr_flags
=no
8278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8284 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8285 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8287 cat >>confdefs.h
<<_ACEOF
8288 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8293 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8294 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8295 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 cat >conftest.
$ac_ext <<_ACEOF
8301 cat confdefs.h
>>conftest.
$ac_ext
8302 cat >>conftest.
$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8305 #if HAVE_SYS_SOCKET_H
8306 #include <sys/socket.h>
8315 static struct ifreq ac_aggr;
8316 if (ac_aggr.ifr_hwaddr)
8322 rm -f conftest.
$ac_objext
8323 if { (ac_try
="$ac_compile"
8325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_compile") 2>conftest.er1
8331 grep -v '^ *+' conftest.er1 >conftest.err
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
8338 } && test -s conftest.$ac_objext; then
8339 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8344 cat >conftest.$ac_ext <<_ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 #if HAVE_SYS_SOCKET_H
8352 #include <sys/socket.h>
8361 static struct ifreq ac_aggr;
8362 if (sizeof ac_aggr.ifr_hwaddr)
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8372 *) ac_try_echo
=$ac_try;;
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8377 grep -v '^ *+' conftest.er1
>conftest.err
8379 cat conftest.err
>&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.
$ac_objext; then
8385 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.
$ac_ext >&5
8390 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8399 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8400 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8402 cat >>confdefs.h
<<_ACEOF
8403 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8408 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8409 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8410 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8413 cat >conftest.
$ac_ext <<_ACEOF
8416 cat confdefs.h
>>conftest.
$ac_ext
8417 cat >>conftest.
$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 #if HAVE_SYS_SOCKET_H
8421 #include <sys/socket.h>
8430 static struct ifreq ac_aggr;
8431 if (ac_aggr.ifr_netmask)
8437 rm -f conftest.
$ac_objext
8438 if { (ac_try
="$ac_compile"
8440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8446 grep -v '^ *+' conftest.er1 >conftest.err
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.$ac_objext; then
8454 ac_cv_member_struct_ifreq_ifr_netmask=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #if HAVE_SYS_SOCKET_H
8467 #include <sys/socket.h>
8476 static struct ifreq ac_aggr;
8477 if (sizeof ac_aggr.ifr_netmask)
8483 rm -f conftest.$ac_objext
8484 if { (ac_try="$ac_compile"
8486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8487 *) ac_try_echo
=$ac_try;;
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8492 grep -v '^ *+' conftest.er1
>conftest.err
8494 cat conftest.err
>&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.
$ac_objext; then
8500 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.
$ac_ext >&5
8505 ac_cv_member_struct_ifreq_ifr_netmask
=no
8508 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8514 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8515 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8517 cat >>confdefs.h
<<_ACEOF
8518 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8523 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8524 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8525 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 cat >conftest.
$ac_ext <<_ACEOF
8531 cat confdefs.h
>>conftest.
$ac_ext
8532 cat >>conftest.
$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8535 #if HAVE_SYS_SOCKET_H
8536 #include <sys/socket.h>
8545 static struct ifreq ac_aggr;
8546 if (ac_aggr.ifr_broadaddr)
8552 rm -f conftest.
$ac_objext
8553 if { (ac_try
="$ac_compile"
8555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_compile") 2>conftest.er1
8561 grep -v '^ *+' conftest.er1 >conftest.err
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest.$ac_objext; then
8569 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 #if HAVE_SYS_SOCKET_H
8582 #include <sys/socket.h>
8591 static struct ifreq ac_aggr;
8592 if (sizeof ac_aggr.ifr_broadaddr)
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8602 *) ac_try_echo
=$ac_try;;
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8607 grep -v '^ *+' conftest.er1
>conftest.err
8609 cat conftest.err
>&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.
$ac_objext; then
8615 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.
$ac_ext >&5
8620 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8626 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8629 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8630 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8632 cat >>confdefs.h
<<_ACEOF
8633 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8638 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8639 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8640 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.
$ac_ext <<_ACEOF
8646 cat confdefs.h
>>conftest.
$ac_ext
8647 cat >>conftest.
$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 #if HAVE_SYS_SOCKET_H
8651 #include <sys/socket.h>
8660 static struct ifreq ac_aggr;
8661 if (ac_aggr.ifr_addr)
8667 rm -f conftest.
$ac_objext
8668 if { (ac_try
="$ac_compile"
8670 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1 >conftest.err
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_cv_member_struct_ifreq_ifr_addr=yes
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8689 cat >conftest.$ac_ext <<_ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8706 static struct ifreq ac_aggr;
8707 if (sizeof ac_aggr.ifr_addr)
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8717 *) ac_try_echo
=$ac_try;;
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8722 grep -v '^ *+' conftest.er1
>conftest.err
8724 cat conftest.err
>&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.
$ac_objext; then
8730 ac_cv_member_struct_ifreq_ifr_addr
=yes
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.
$ac_ext >&5
8735 ac_cv_member_struct_ifreq_ifr_addr
=no
8738 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8743 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8744 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8745 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8747 cat >>confdefs.h
<<_ACEOF
8748 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8756 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8757 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8758 if test "$ac_cv_prog_cc_c89" != no
; then
8759 { echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6; }
8762 cat >>confdefs.h
<<\_ACEOF
8763 #define PROTOTYPES 1
8767 cat >>confdefs.h
<<\_ACEOF
8768 #define __PROTOTYPES 1
8772 { echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6; }
8776 { echo "$as_me:$LINENO: checking for working volatile" >&5
8777 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8778 if test "${ac_cv_c_volatile+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8781 cat >conftest.
$ac_ext <<_ACEOF
8784 cat confdefs.h
>>conftest.
$ac_ext
8785 cat >>conftest.
$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8793 int * volatile y = (int *) 0;
8799 rm -f conftest.
$ac_objext
8800 if { (ac_try
="$ac_compile"
8802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8808 grep -v '^ *+' conftest.er1 >conftest.err
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_c_volatile=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8827 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8828 if test $ac_cv_c_volatile = no; then
8830 cat >>confdefs.h <<\_ACEOF
8836 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8838 if test "${ac_cv_c_const+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8841 cat >conftest.$ac_ext <<_ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8851 /* FIXME: Include the comments suggested by Paul. */
8853 /* Ultrix mips cc rejects this. */
8854 typedef int charset[2];
8856 /* SunOS 4.1.1 cc rejects this. */
8857 char const *const *pcpcc;
8859 /* NEC SVR4.0.2 mips cc rejects this. */
8860 struct point {int x, y;};
8861 static struct point const zero = {0,0};
8862 /* AIX XL C 1.02.0.0 rejects this.
8863 It does not let you subtract one const X* pointer from another in
8864 an arm of an if-expression whose if-part is not a constant
8866 const char *g = "string";
8867 pcpcc = &g + (g ? g-g : 0);
8868 /* HPUX 7.0 cc rejects these. */
8870 ppc = (char**) pcpcc;
8871 pcpcc = (char const *const *) ppc;
8872 { /* SCO 3.2v4 cc rejects this. */
8874 char const *s = 0 ? (char *) 0 : (char const *) 0;
8879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8881 const int *foo = &x[0];
8884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8885 typedef const int *iptr;
8889 { /* AIX XL C 1.02.0.0 rejects this saying
8890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8891 struct s { int j; const int *ap[3]; };
8892 struct s *b; b->j = 5;
8894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8898 return !cs[0] && !zero.x;
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8909 *) ac_try_echo
=$ac_try;;
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_compile") 2>conftest.er1
8914 grep -v '^ *+' conftest.er1
>conftest.err
8916 cat conftest.err
>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest.
$ac_objext; then
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.
$ac_ext >&5
8930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8932 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8933 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8934 if test $ac_cv_c_const = no
; then
8936 cat >>confdefs.h
<<\_ACEOF
8942 { echo "$as_me:$LINENO: checking for void * support" >&5
8943 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8944 if test "${emacs_cv_void_star+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8947 cat >conftest.
$ac_ext <<_ACEOF
8950 cat confdefs.h
>>conftest.
$ac_ext
8951 cat >>conftest.
$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8962 rm -f conftest.
$ac_objext
8963 if { (ac_try
="$ac_compile"
8965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8971 grep -v '^ *+' conftest.er1 >conftest.err
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.$ac_objext; then
8979 emacs_cv_void_star=yes
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 emacs_cv_void_star=no
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8990 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8991 if test $emacs_cv_void_star = yes; then
8992 cat >>confdefs.h <<\_ACEOF
8993 #define POINTER_TYPE void
8997 cat >>confdefs.h <<\_ACEOF
8998 #define POINTER_TYPE char
9007 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9008 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9009 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9010 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 cat >conftest.make <<\_ACEOF
9016 @echo '@@@%%%=$(MAKE)=@@@%%%'
9018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9019 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9021 eval ac_cv_prog_make_${ac_make}_set=yes;;
9023 eval ac_cv_prog_make_${ac_make}_set=no;;
9027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9028 { echo "$as_me:$LINENO: result: yes" >&5
9029 echo "${ECHO_T}yes" >&6; }
9032 { echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6; }
9034 SET_MAKE="MAKE=${MAKE-make}"
9038 { echo "$as_me:$LINENO: checking for long file names" >&5
9039 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9040 if test "${ac_cv_sys_long_file_names+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 ac_cv_sys_long_file_names=yes
9044 # Test for long file names in all the places we know might matter:
9045 # . the current directory, where building will happen
9046 # $prefix/lib where we will be installing things
9047 # $exec_prefix/lib likewise
9048 # $TMPDIR if set, where it might want to write temporary files
9049 # /tmp where it might want to write temporary files
9052 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9053 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9054 # in the usual case where exec_prefix is '${prefix}'.
9056 . | /* | ?:[\\/]*) ;; #(
9059 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9060 ac_xdir=$ac_dir/cf$$
9061 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9062 ac_tf1=$ac_xdir/conftest9012345
9063 ac_tf2=$ac_xdir/conftest9012346
9064 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9065 ac_cv_sys_long_file_names=no
9066 rm -f -r "$ac_xdir" 2>/dev/null
9067 test $ac_cv_sys_long_file_names = no && break
9070 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9071 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9072 if test $ac_cv_sys_long_file_names = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_LONG_FILE_NAMES 1
9081 #### Choose a window system.
9083 { echo "$as_me:$LINENO: checking for X" >&5
9084 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9087 # Check whether --with-x was given.
9088 if test "${with_x+set}" = set; then
9092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9093 if test "x$with_x" = xno; then
9094 # The user explicitly disabled X.
9097 case $x_includes,$x_libraries in #(
9098 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9099 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9100 { (exit 1); exit 1; }; };; #(
9101 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes=no ac_x_libraries=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir; then
9109 cat >Imakefile <<'_ACEOF'
9111 @echo incroot='${INCROOT}'
9113 @echo usrlibdir='${USRLIBDIR}'
9115 @echo libdir='${LIBDIR}'
9117 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var in incroot usrlibdir libdir; do
9120 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension in a so sl; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir=$ac_im_libdir; break
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr/include) ac_x_includes= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9136 case $ac_im_usrlibdir in
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9142 rm -f -r conftest.dir
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9158 /usr/local/X11/include
9159 /usr/local/X11R6/include
9160 /usr/local/X11R5/include
9161 /usr/local/X11R4/include
9163 /usr/local/include/X11
9164 /usr/local/include/X11R6
9165 /usr/local/include/X11R5
9166 /usr/local/include/X11R4
9170 /usr/XFree86/include/X11
9174 /usr/unsupported/include
9176 /usr/local/x11r5/include
9177 /usr/lpp/Xamples/include
9179 /usr/openwin/include
9180 /usr/openwin/share/include'
9182 if test "$ac_x_includes" = no; then
9183 # Guess where to find include files, by looking for Xlib.h.
9184 # First, try using that file with no special directory specified.
9185 cat >conftest.$ac_ext <<_ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9193 if { (ac_try="$ac_cpp conftest.$ac_ext"
9195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9196 *) ac_try_echo
=$ac_try;;
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9201 grep -v '^ *+' conftest.er1
>conftest.err
9203 cat conftest.err
>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev
/null
&& {
9206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9207 test ! -s conftest.err
9209 # We can compile using X headers with no special include directory.
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.
$ac_ext >&5
9215 for ac_dir
in $ac_x_header_dirs; do
9216 if test -r "$ac_dir/X11/Xlib.h"; then
9217 ac_x_includes
=$ac_dir
9223 rm -f conftest.err conftest.
$ac_ext
9224 fi # $ac_x_includes = no
9226 if test "$ac_x_libraries" = no
; then
9227 # Check for the libraries.
9228 # See if we find them without any special options.
9229 # Don't add to $LIBS permanently.
9232 cat >conftest.
$ac_ext <<_ACEOF
9235 cat confdefs.h
>>conftest.
$ac_ext
9236 cat >>conftest.
$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <X11/Xlib.h>
9247 rm -f conftest.
$ac_objext conftest
$ac_exeext
9248 if { (ac_try
="$ac_link"
9250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
9256 grep -v '^ *+' conftest.er1 >conftest.err
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest$ac_exeext &&
9264 $as_test_x conftest$ac_exeext; then
9266 # We can link X programs with no special library path.
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9273 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9275 # Don't even attempt the hair of trying to link an X program!
9276 for ac_extension in a so sl; do
9277 if test -r "$ac_dir/libX11.$ac_extension"; then
9278 ac_x_libraries=$ac_dir
9285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi # $ac_x_libraries = no
9289 case $ac_x_includes,$ac_x_libraries in #(
9291 # Didn't find X, or a directory has "'" in its name.
9292 ac_cv_have_x="have_x=no";; #(
9294 # Record where we found X for the cache.
9295 ac_cv_have_x="have_x=yes\
9296 ac_x_includes='$ac_x_includes'\
9297 ac_x_libraries='$ac_x_libraries'"
9303 eval "$ac_cv_have_x"
9306 if test "$have_x" != yes; then
9307 { echo "$as_me:$LINENO: result: $have_x" >&5
9308 echo "${ECHO_T}$have_x" >&6; }
9311 # If each of the values was on the command line, it overrides each guess.
9312 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9313 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9314 # Update the cache value to reflect the command line values.
9315 ac_cv_have_x="have_x=yes\
9316 ac_x_includes='$x_includes'\
9317 ac_x_libraries='$x_libraries'"
9318 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9319 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9322 if test "$no_x" = yes; then
9328 if test "${x_libraries}" != NONE; then
9329 if test -n "${x_libraries}"; then
9330 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9331 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9333 x_default_search_path=""
9334 x_search_path=${x_libraries}
9335 if test -z "${x_search_path}"; then
9336 x_search_path=/usr/lib
9338 for x_library in `echo ${x_search_path}: | \
9339 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9341 ${x_library}/X11/%L/%T/%N%C%S:\
9342 ${x_library}/X11/%l/%T/%N%C%S:\
9343 ${x_library}/X11/%T/%N%C%S:\
9344 ${x_library}/X11/%L/%T/%N%S:\
9345 ${x_library}/X11/%l/%T/%N%S:\
9346 ${x_library}/X11/%T/%N%S"
9347 if test x"${x_default_search_path}" = x; then
9348 x_default_search_path=${x_search_path}
9350 x_default_search_path="${x_search_path}:${x_default_search_path}"
9354 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9355 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9358 if test x"${x_includes}" = x; then
9359 bitmapdir=/usr/include/X11/bitmaps
9361 # accumulate include directories that have X11 bitmap subdirectories
9363 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9364 if test -d "${bmd}/X11/bitmaps"; then
9365 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9367 if test -d "${bmd}/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9371 if test ${bmd_acc} != "dummyval"; then
9372 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9377 if test "${with_carbon}" != no; then
9378 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9379 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9380 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9384 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9385 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9387 # Is the header compilable?
9388 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9389 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 #include <Carbon/Carbon.h>
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9403 *) ac_try_echo
=$ac_try;;
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_compile") 2>conftest.er1
9408 grep -v '^ *+' conftest.er1
>conftest.err
9410 cat conftest.err
>&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest.
$ac_objext; then
9416 ac_header_compiler
=yes
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.
$ac_ext >&5
9421 ac_header_compiler
=no
9424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9426 echo "${ECHO_T}$ac_header_compiler" >&6; }
9428 # Is the header present?
9429 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9430 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9431 cat >conftest.
$ac_ext <<_ACEOF
9434 cat confdefs.h
>>conftest.
$ac_ext
9435 cat >>conftest.
$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 #include <Carbon/Carbon.h>
9439 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } >/dev/null && {
9452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9455 ac_header_preproc=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_header_preproc=no
9463 rm -f conftest.err conftest.$ac_ext
9464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6; }
9467 # So? What about this header?
9468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9470 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9474 ac_header_preproc=yes
9477 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9478 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9492 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9493 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9497 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9499 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9500 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9503 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9509 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9510 if test "${with_carbon+set}" != set \
9511 && test "${carbon_appdir_x+set}" != set; then
9512 for var in with_x with_x_toolkit with_gtk with_xim \
9513 with_xpm with_jpeg with_tiff with_gif with_png; do
9514 if eval test \"\${$var+set}\" = set; then
9521 if test "${HAVE_CARBON}" = yes; then
9525 case "${window_system}" in
9529 case "${with_x_toolkit}" in
9530 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9531 motif ) USE_X_TOOLKIT=MOTIF ;;
9533 USE_X_TOOLKIT=none ;;
9534 no ) USE_X_TOOLKIT=none ;;
9535 * ) USE_X_TOOLKIT=maybe ;;
9545 ### If we're using X11, we should use the X menu package.
9548 yes ) HAVE_MENUS=yes ;;
9551 if test "${opsys}" = "hpux9"; then
9552 case "${x_libraries}" in
9554 opsysfile="s/hpux9-x11r4.h"
9559 if test "${opsys}" = "hpux9shr"; then
9560 case "${x_libraries}" in
9562 opsysfile="s/hpux9shxr4.h"
9567 ### Compute the unexec source name from the object name.
9568 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9570 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9571 # Assume not, until told otherwise.
9574 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9575 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9576 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define malloc_get_state innocuous_malloc_get_state
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char malloc_get_state (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9595 # include <limits.h>
9597 # include <assert.h>
9600 #undef malloc_get_state
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9608 char malloc_get_state ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9619 return malloc_get_state ();
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9628 *) ac_try_echo
=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest
$ac_exeext &&
9641 $as_test_x conftest
$ac_exeext; then
9642 ac_cv_func_malloc_get_state
=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.
$ac_ext >&5
9647 ac_cv_func_malloc_get_state
=no
9650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9651 conftest
$ac_exeext conftest.
$ac_ext
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9654 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9655 if test $ac_cv_func_malloc_get_state = yes; then
9661 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9662 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9663 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.
$ac_ext <<_ACEOF
9669 cat confdefs.h
>>conftest.
$ac_ext
9670 cat >>conftest.
$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9674 #define malloc_set_state innocuous_malloc_set_state
9676 /* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char malloc_set_state (); below.
9678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679 <limits.h> exists even on freestanding compilers. */
9682 # include <limits.h>
9684 # include <assert.h>
9687 #undef malloc_set_state
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9695 char malloc_set_state ();
9696 /* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9706 return malloc_set_state ();
9711 rm -f conftest.
$ac_objext conftest
$ac_exeext
9712 if { (ac_try
="$ac_link"
9714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
9729 ac_cv_func_malloc_set_state=yes
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9734 ac_cv_func_malloc_set_state=no
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9740 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9741 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9742 if test $ac_cv_func_malloc_set_state = yes; then
9748 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9749 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9750 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9753 cat >conftest.$ac_ext <<_ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 extern void (* __after_morecore_hook)();
9763 __after_morecore_hook = 0
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9772 *) ac_try_echo
=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1
>conftest.err
9779 cat conftest.err
>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest
$ac_exeext &&
9785 $as_test_x conftest
$ac_exeext; then
9786 emacs_cv_var___after_morecore_hook
=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 emacs_cv_var___after_morecore_hook
=no
9794 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9795 conftest
$ac_exeext conftest.
$ac_ext
9797 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9798 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9799 if test $emacs_cv_var___after_morecore_hook = no
; then
9802 if test "${system_malloc}" = "yes"; then
9805 (The GNU allocators don't work with this system configuration.)"
9807 if test "$doug_lea_malloc" = "yes" ; then
9808 if test "$GNU_MALLOC" = yes ; then
9810 (Using Doug Lea's new malloc from the GNU C Library.)"
9813 cat >>confdefs.h
<<\_ACEOF
9814 #define DOUG_LEA_MALLOC 1
9819 if test x
"${REL_ALLOC}" = x
; then
9820 REL_ALLOC
=${GNU_MALLOC}
9826 for ac_header
in stdlib.h unistd.h
9828 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9832 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 ac_res
=`eval echo '${'$as_ac_Header'}'`
9836 { echo "$as_me:$LINENO: result: $ac_res" >&5
9837 echo "${ECHO_T}$ac_res" >&6; }
9839 # Is the header compilable?
9840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9842 cat >conftest.
$ac_ext <<_ACEOF
9845 cat confdefs.h
>>conftest.
$ac_ext
9846 cat >>conftest.
$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 #include <$ac_header>
9851 rm -f conftest.
$ac_objext
9852 if { (ac_try
="$ac_compile"
9854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9860 grep -v '^ *+' conftest.er1 >conftest.err
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
9868 ac_header_compiler=yes
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 ac_header_compiler=no
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6; }
9880 # Is the header present?
9881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9883 cat >conftest.$ac_ext <<_ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <$ac_header>
9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
9893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9894 *) ac_try_echo
=$ac_try;;
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9899 grep -v '^ *+' conftest.er1
>conftest.err
9901 cat conftest.err
>&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } >/dev
/null
&& {
9904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9907 ac_header_preproc
=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.
$ac_ext >&5
9912 ac_header_preproc
=no
9915 rm -f conftest.err conftest.
$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9917 echo "${ECHO_T}$ac_header_preproc" >&6; }
9919 # So? What about this header?
9920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9926 ac_header_preproc
=yes
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9946 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 eval "$as_ac_Header=\$ac_header_preproc"
9951 ac_res
=`eval echo '${'$as_ac_Header'}'`
9952 { echo "$as_me:$LINENO: result: $ac_res" >&5
9953 echo "${ECHO_T}$ac_res" >&6; }
9956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9957 cat >>confdefs.h
<<_ACEOF
9958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9966 for ac_func
in getpagesize
9968 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9971 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 cat >conftest.
$ac_ext <<_ACEOF
9977 cat confdefs.h
>>conftest.
$ac_ext
9978 cat >>conftest.
$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9982 #define $ac_func innocuous_$ac_func
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func (); below.
9986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987 <limits.h> exists even on freestanding compilers. */
9990 # include <limits.h>
9992 # include <assert.h>
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10004 /* The GNU C library defines this for functions which it implements
10005 to always fail with ENOSYS. Some functions are actually named
10006 something starting with __ and the normal name is an alias. */
10007 #if defined __stub_$ac_func || defined __stub___$ac_func
10014 return $ac_func ();
10019 rm -f conftest.
$ac_objext conftest
$ac_exeext
10020 if { (ac_try
="$ac_link"
10021 case "(($ac_try" in
10022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>conftest.er1
10028 grep -v '^ *+' conftest.er1 >conftest.err
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext &&
10036 $as_test_x conftest$ac_exeext; then
10037 eval "$as_ac_var=yes"
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10042 eval "$as_ac_var=no"
10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10046 conftest$ac_exeext conftest.$ac_ext
10048 ac_res=`eval echo '${'$as_ac_var'}'`
10049 { echo "$as_me:$LINENO: result: $ac_res" >&5
10050 echo "${ECHO_T}$ac_res" >&6; }
10051 if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF
10053 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10059 { echo "$as_me:$LINENO: checking for working mmap" >&5
10060 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10061 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10064 if test "$cross_compiling" = yes; then
10065 ac_cv_func_mmap_fixed_mapped=no
10067 cat >conftest.$ac_ext <<_ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 $ac_includes_default
10074 /* malloc might have been renamed as rpl_malloc. */
10077 /* Thanks to Mike Haertel and Jim Avera for this test.
10078 Here is a matrix of mmap possibilities:
10079 mmap private not fixed
10080 mmap private fixed at somewhere currently unmapped
10081 mmap private fixed at somewhere already mapped
10082 mmap shared not fixed
10083 mmap shared fixed at somewhere currently unmapped
10084 mmap shared fixed at somewhere already mapped
10085 For private mappings, we should verify that changes cannot be read()
10086 back from the file, nor mmap's back from the file at a different
10087 address. (There have been systems where private was not correctly
10088 implemented like the infamous i386 svr4.0, and systems where the
10089 VM page cache was not coherent with the file system buffer cache
10090 like early versions of FreeBSD and possibly contemporary NetBSD.)
10091 For shared mappings, we should conversely verify that changes get
10092 propagated back to all the places they're supposed to be.
10094 Grep wants private fixed already mapped.
10095 The main things grep needs to know about mmap are:
10096 * does it exist and is it safe to write into the mmap'd area
10097 * how to use it (BSD variants) */
10100 #include <sys/mman.h>
10102 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10106 /* This mess was copied from the GNU getpagesize.h. */
10107 #ifndef HAVE_GETPAGESIZE
10108 /* Assume that all systems that can run configure have sys/param.h. */
10109 # ifndef HAVE_SYS_PARAM_H
10110 # define HAVE_SYS_PARAM_H 1
10113 # ifdef _SC_PAGESIZE
10114 # define getpagesize() sysconf(_SC_PAGESIZE)
10115 # else /* no _SC_PAGESIZE */
10116 # ifdef HAVE_SYS_PARAM_H
10117 # include <sys/param.h>
10118 # ifdef EXEC_PAGESIZE
10119 # define getpagesize() EXEC_PAGESIZE
10120 # else /* no EXEC_PAGESIZE */
10122 # define getpagesize() NBPG * CLSIZE
10125 # endif /* no CLSIZE */
10126 # else /* no NBPG */
10128 # define getpagesize() NBPC
10129 # else /* no NBPC */
10131 # define getpagesize() PAGESIZE
10132 # endif /* PAGESIZE */
10133 # endif /* no NBPC */
10134 # endif /* no NBPG */
10135 # endif /* no EXEC_PAGESIZE */
10136 # else /* no HAVE_SYS_PARAM_H */
10137 # define getpagesize() 8192 /* punt totally */
10138 # endif /* no HAVE_SYS_PARAM_H */
10139 # endif /* no _SC_PAGESIZE */
10141 #endif /* no HAVE_GETPAGESIZE */
10146 char *data, *data2, *data3;
10150 pagesize = getpagesize ();
10152 /* First, make a file with some known garbage in it. */
10153 data = (char *) malloc (pagesize);
10156 for (i = 0; i < pagesize; ++i)
10157 *(data + i) = rand ();
10159 fd = creat ("conftest.mmap", 0600);
10162 if (write (fd, data, pagesize) != pagesize)
10166 /* Next, try to mmap the file at a fixed address which already has
10167 something else allocated at it. If we can, also make sure that
10168 we see the same garbage. */
10169 fd = open ("conftest.mmap", O_RDWR);
10172 data2 = (char *) malloc (2 * pagesize);
10175 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10176 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10177 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10179 for (i = 0; i < pagesize; ++i)
10180 if (*(data + i) != *(data2 + i))
10183 /* Finally, make sure that changes to the mapped area do not
10184 percolate back to the file as seen by read(). (This is a bug on
10185 some variants of i386 svr4.0.) */
10186 for (i = 0; i < pagesize; ++i)
10187 *(data2 + i) = *(data2 + i) + 1;
10188 data3 = (char *) malloc (pagesize);
10191 if (read (fd, data3, pagesize) != pagesize)
10193 for (i = 0; i < pagesize; ++i)
10194 if (*(data + i) != *(data3 + i))
10200 rm -f conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10204 *) ac_try_echo
=$ac_try;;
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_func_mmap_fixed_mapped=yes
10222 echo "$as_me: program exited with status $ac_status" >&5
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 ( exit $ac_status )
10227 ac_cv_func_mmap_fixed_mapped=no
10229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10234 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10235 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10236 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_MMAP 1
10243 rm -f conftest.mmap
10245 if test $use_mmap_for_buffers = yes; then
10249 LIBS="$libsrc_libs $LIBS"
10252 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10253 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldnet $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10276 return dnet_ntoa ();
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10285 *) ac_try_echo
=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest
$ac_exeext &&
10298 $as_test_x conftest
$ac_exeext; then
10299 ac_cv_lib_dnet_dnet_ntoa
=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.
$ac_ext >&5
10304 ac_cv_lib_dnet_dnet_ntoa
=no
10307 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10308 conftest
$ac_exeext conftest.
$ac_ext
10309 LIBS
=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10313 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10314 cat >>confdefs.h
<<_ACEOF
10315 #define HAVE_LIBDNET 1
10318 LIBS
="-ldnet $LIBS"
10323 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10324 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10325 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10328 ac_check_lib_save_LIBS
=$LIBS
10329 LIBS
="-lXbsd $LIBS"
10330 cat >conftest.
$ac_ext <<_ACEOF
10333 cat confdefs.h
>>conftest.
$ac_ext
10334 cat >>conftest.
$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10346 rm -f conftest.
$ac_objext conftest
$ac_exeext
10347 if { (ac_try
="$ac_link"
10348 case "(($ac_try" in
10349 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_link") 2>conftest.er1
10355 grep -v '^ *+' conftest.er1 >conftest.err
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest$ac_exeext &&
10363 $as_test_x conftest$ac_exeext; then
10364 ac_cv_lib_Xbsd_main=yes
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_lib_Xbsd_main=no
10372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10376 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10377 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10378 if test $ac_cv_lib_Xbsd_main = yes; then
10379 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10384 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10385 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10386 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 ac_check_lib_save_LIBS=$LIBS
10390 LIBS="-lpthreads $LIBS"
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10408 return cma_open ();
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10417 *) ac_try_echo
=$ac_try;;
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>conftest.er1
10422 grep -v '^ *+' conftest.er1
>conftest.err
10424 cat conftest.err
>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && {
10427 test -z "$ac_c_werror_flag" ||
10428 test ! -s conftest.err
10429 } && test -s conftest
$ac_exeext &&
10430 $as_test_x conftest
$ac_exeext; then
10431 ac_cv_lib_pthreads_cma_open
=yes
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.
$ac_ext >&5
10436 ac_cv_lib_pthreads_cma_open
=no
10439 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10440 conftest
$ac_exeext conftest.
$ac_ext
10441 LIBS
=$ac_check_lib_save_LIBS
10443 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10444 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10445 if test $ac_cv_lib_pthreads_cma_open = yes; then
10446 cat >>confdefs.h
<<_ACEOF
10447 #define HAVE_LIBPTHREADS 1
10450 LIBS
="-lpthreads $LIBS"
10455 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10456 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10457 if test -d /usr
/X386
/include
; then
10459 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10463 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10464 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10469 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10470 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10471 if test "${gdb_cv_bigtoc+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10477 *) gdb_cv_bigtoc
=-bbigtoc ;;
10480 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10481 cat >conftest.
$ac_ext <<_ACEOF
10484 cat confdefs.h
>>conftest.
$ac_ext
10485 cat >>conftest.
$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10496 rm -f conftest.
$ac_objext conftest
$ac_exeext
10497 if { (ac_try
="$ac_link"
10498 case "(($ac_try" in
10499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_link") 2>conftest.er1
10505 grep -v '^ *+' conftest.er1 >conftest.err
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } && {
10510 test -z "$ac_c_werror_flag" ||
10511 test ! -s conftest.err
10512 } && test -s conftest$ac_exeext &&
10513 $as_test_x conftest$ac_exeext; then
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10523 conftest$ac_exeext conftest.$ac_ext
10526 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10527 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10531 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10532 # used for the tests that follow. We set them back to REAL_CFLAGS and
10533 # REAL_CPPFLAGS later on.
10535 REAL_CPPFLAGS="$CPPFLAGS"
10537 if test "${HAVE_X11}" = "yes"; then
10538 DEFS="$C_SWITCH_X_SITE $DEFS"
10539 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10541 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10542 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10544 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10545 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10546 # but it's more convenient here to set LD_RUN_PATH
10547 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10548 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10549 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10553 if test "${opsys}" = "gnu-linux"; then
10554 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10555 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10566 XOpenDisplay ("foo");
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10575 *) ac_try_echo
=$ac_try;;
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_link") 2>conftest.er1
10580 grep -v '^ *+' conftest.er1
>conftest.err
10582 cat conftest.err
>&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && {
10585 test -z "$ac_c_werror_flag" ||
10586 test ! -s conftest.err
10587 } && test -s conftest
$ac_exeext &&
10588 $as_test_x conftest
$ac_exeext; then
10589 xlinux_first_failure
=no
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.
$ac_ext >&5
10594 xlinux_first_failure
=yes
10597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10598 conftest
$ac_exeext conftest.
$ac_ext
10599 if test "${xlinux_first_failure}" = "yes"; then
10600 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10601 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10602 OLD_CPPFLAGS
="$CPPFLAGS"
10604 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10605 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10606 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10607 LIBS
="$LIBS -b i486-linuxaout"
10608 cat >conftest.
$ac_ext <<_ACEOF
10611 cat confdefs.h
>>conftest.
$ac_ext
10612 cat >>conftest.
$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10618 XOpenDisplay ("foo");
10623 rm -f conftest.
$ac_objext conftest
$ac_exeext
10624 if { (ac_try
="$ac_link"
10625 case "(($ac_try" in
10626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_link") 2>conftest.er1
10632 grep -v '^ *+' conftest.er1 >conftest.err
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest$ac_exeext &&
10640 $as_test_x conftest$ac_exeext; then
10641 xlinux_second_failure=no
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 xlinux_second_failure=yes
10649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10650 conftest$ac_exeext conftest.$ac_ext
10651 if test "${xlinux_second_failure}" = "yes"; then
10652 # If we get the same failure with -b, there is no use adding -b.
10653 # So take it out. This plays safe.
10654 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10655 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10656 CPPFLAGS="$OLD_CPPFLAGS"
10658 { echo "$as_me:$LINENO: result: no" >&5
10659 echo "${ECHO_T}no" >&6; }
10661 { echo "$as_me:$LINENO: result: yes" >&5
10662 echo "${ECHO_T}yes" >&6; }
10665 { echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6; }
10670 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10671 # header files included from there.
10672 { echo "$as_me:$LINENO: checking for Xkb" >&5
10673 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10681 #include <X11/XKBlib.h>
10685 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10694 *) ac_try_echo
=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_link") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1
>conftest.err
10701 cat conftest.err
>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest
$ac_exeext &&
10707 $as_test_x conftest
$ac_exeext; then
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.
$ac_ext >&5
10716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10717 conftest
$ac_exeext conftest.
$ac_ext
10718 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10719 echo "${ECHO_T}$emacs_xkb" >&6; }
10720 if test $emacs_xkb = yes; then
10722 cat >>confdefs.h
<<\_ACEOF
10723 #define HAVE_XKBGETKEYBOARD 1
10732 for ac_func
in XrmSetDatabase XScreenResourceString \
10733 XScreenNumberOfScreen XSetWMProtocols
10735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10738 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 cat >conftest.
$ac_ext <<_ACEOF
10744 cat confdefs.h
>>conftest.
$ac_ext
10745 cat >>conftest.
$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10749 #define $ac_func innocuous_$ac_func
10751 /* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char $ac_func (); below.
10753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754 <limits.h> exists even on freestanding compilers. */
10757 # include <limits.h>
10759 # include <assert.h>
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10771 /* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774 #if defined __stub_$ac_func || defined __stub___$ac_func
10781 return $ac_func ();
10786 rm -f conftest.
$ac_objext conftest
$ac_exeext
10787 if { (ac_try
="$ac_link"
10788 case "(($ac_try" in
10789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10795 grep -v '^ *+' conftest.er1 >conftest.err
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 eval "$as_ac_var=yes"
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10809 eval "$as_ac_var=no"
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10815 ac_res=`eval echo '${'$as_ac_var'}'`
10816 { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10818 if test `eval echo '${'$as_ac_var'}'` = yes; then
10819 cat >>confdefs.h <<_ACEOF
10820 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10828 if test "${window_system}" = "x11"; then
10829 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10830 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10831 if test "${emacs_cv_x11_version_6+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.$ac_ext <<_ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <X11/Xlib.h>
10844 #if XlibSpecificationRelease < 6
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10856 *) ac_try_echo
=$ac_try;;
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10861 grep -v '^ *+' conftest.er1
>conftest.err
10863 cat conftest.err
>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest
$ac_exeext &&
10869 $as_test_x conftest
$ac_exeext; then
10870 emacs_cv_x11_version_6
=yes
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.
$ac_ext >&5
10875 emacs_cv_x11_version_6
=no
10878 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10879 conftest
$ac_exeext conftest.
$ac_ext
10882 if test $emacs_cv_x11_version_6 = yes; then
10883 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10884 echo "${ECHO_T}6 or newer" >&6; }
10886 cat >>confdefs.h
<<\_ACEOF
10887 #define HAVE_X11R6 1
10891 { echo "$as_me:$LINENO: result: before 6" >&5
10892 echo "${ECHO_T}before 6" >&6; }
10896 if test "${window_system}" = "x11"; then
10897 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10898 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10899 if test "${emacs_cv_x11_version_5+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10902 cat >conftest.
$ac_ext <<_ACEOF
10905 cat confdefs.h
>>conftest.
$ac_ext
10906 cat >>conftest.
$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <X11/Xlib.h>
10912 #if XlibSpecificationRelease < 5
10920 rm -f conftest.
$ac_objext conftest
$ac_exeext
10921 if { (ac_try
="$ac_link"
10922 case "(($ac_try" in
10923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10929 grep -v '^ *+' conftest.er1 >conftest.err
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext &&
10937 $as_test_x conftest$ac_exeext; then
10938 emacs_cv_x11_version_5=yes
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10943 emacs_cv_x11_version_5=no
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10950 if test $emacs_cv_x11_version_5 = yes; then
10951 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10952 echo "${ECHO_T}5 or newer" >&6; }
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_X11R5 1
10961 { echo "$as_me:$LINENO: result: before 5" >&5
10962 echo "${ECHO_T}before 5" >&6; }
10967 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10970 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10971 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10972 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10973 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10974 { (exit 1); exit 1; }; };
10978 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10980 if test "X${with_pkg_config_prog}" != X; then
10981 PKG_CONFIG="${with_pkg_config_prog}"
10986 if test -z "$PKG_CONFIG"; then
10987 # Extract the first word of "pkg-config", so it can be a program name with args.
10988 set dummy pkg-config; ac_word=$2
10989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 case $PKG_CONFIG in
10996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11019 if test -n "$PKG_CONFIG"; then
11020 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11021 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11023 { echo "$as_me:$LINENO: result: no" >&5
11024 echo "${ECHO_T}no" >&6; }
11030 if test "$PKG_CONFIG" = "no" ; then
11031 { { echo "$as_me:$LINENO: error:
11032 *** 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
11033 echo "$as_me: 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." >&2;}
11035 { (exit 1); exit 1; }; }
11037 PKG_CONFIG_MIN_VERSION=0.9.0
11038 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11039 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11040 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11042 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11043 { echo "$as_me:$LINENO: result: yes" >&5
11044 echo "${ECHO_T}yes" >&6; }
11047 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11048 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11049 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11050 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11051 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11053 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11054 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11055 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11056 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11057 echo "${ECHO_T}$GTK_LIBS" >&6; }
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11063 ## If we have a custom action on failure, don't print errors, but
11064 ## do set a variable so people can do so.
11065 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11066 echo $GTK_PKG_ERRORS
11072 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11073 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11077 if test $succeeded = yes; then
11080 { { 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
11081 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;}
11082 { (exit 1); exit 1; }; }
11087 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11088 CFLAGS="$CFLAGS $GTK_CFLAGS"
11089 LIBS="$GTK_LIBS $LIBS"
11092 for ac_func in gtk_main
11094 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 cat >conftest.$ac_ext <<_ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11108 #define $ac_func innocuous_$ac_func
11110 /* System header to define __stub macros and hopefully few prototypes,
11111 which can conflict with char $ac_func (); below.
11112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113 <limits.h> exists even on freestanding compilers. */
11116 # include <limits.h>
11118 # include <assert.h>
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11130 /* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133 #if defined __stub_$ac_func || defined __stub___$ac_func
11140 return $ac_func ();
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11149 *) ac_try_echo
=$ac_try;;
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11154 grep -v '^ *+' conftest.er1
>conftest.err
11156 cat conftest.err
>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest
$ac_exeext &&
11162 $as_test_x conftest
$ac_exeext; then
11163 eval "$as_ac_var=yes"
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.
$ac_ext >&5
11168 eval "$as_ac_var=no"
11171 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11172 conftest
$ac_exeext conftest.
$ac_ext
11174 ac_res
=`eval echo '${'$as_ac_var'}'`
11175 { echo "$as_me:$LINENO: result: $ac_res" >&5
11176 echo "${ECHO_T}$ac_res" >&6; }
11177 if test `eval echo '${'$as_ac_var'}'` = yes; then
11178 cat >>confdefs.h
<<_ACEOF
11179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11185 if test "${GTK_COMPILES}" != "yes"; then
11186 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11187 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11188 { (exit 1); exit 1; }; };
11193 cat >>confdefs.h
<<\_ACEOF
11199 if test "$with_toolkit_scroll_bars" != no
; then
11200 with_toolkit_scroll_bars
=yes
11203 HAVE_GTK_MULTIDISPLAY
=no
11205 for ac_func
in gdk_display_open
11207 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11210 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 cat >conftest.
$ac_ext <<_ACEOF
11216 cat confdefs.h
>>conftest.
$ac_ext
11217 cat >>conftest.
$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11221 #define $ac_func innocuous_$ac_func
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func (); below.
11225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 <limits.h> exists even on freestanding compilers. */
11229 # include <limits.h>
11231 # include <assert.h>
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11243 /* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246 #if defined __stub_$ac_func || defined __stub___$ac_func
11253 return $ac_func ();
11258 rm -f conftest.
$ac_objext conftest
$ac_exeext
11259 if { (ac_try
="$ac_link"
11260 case "(($ac_try" in
11261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11267 grep -v '^ *+' conftest.er1 >conftest.err
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext &&
11275 $as_test_x conftest$ac_exeext; then
11276 eval "$as_ac_var=yes"
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11281 eval "$as_ac_var=no"
11284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11285 conftest$ac_exeext conftest.$ac_ext
11287 ac_res=`eval echo '${'$as_ac_var'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11294 HAVE_GTK_MULTIDISPLAY=yes
11298 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_GTK_MULTIDISPLAY 1
11305 HAVE_GTK_FILE_SELECTION=no
11307 for ac_func in gtk_file_selection_new
11309 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11323 #define $ac_func innocuous_$ac_func
11325 /* System header to define __stub macros and hopefully few prototypes,
11326 which can conflict with char $ac_func (); below.
11327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11328 <limits.h> exists even on freestanding compilers. */
11331 # include <limits.h>
11333 # include <assert.h>
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11345 /* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348 #if defined __stub_$ac_func || defined __stub___$ac_func
11355 return $ac_func ();
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (ac_try="$ac_link"
11362 case "(($ac_try" in
11363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11364 *) ac_try_echo
=$ac_try;;
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_link") 2>conftest.er1
11369 grep -v '^ *+' conftest.er1
>conftest.err
11371 cat conftest.err
>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && {
11374 test -z "$ac_c_werror_flag" ||
11375 test ! -s conftest.err
11376 } && test -s conftest
$ac_exeext &&
11377 $as_test_x conftest
$ac_exeext; then
11378 eval "$as_ac_var=yes"
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.
$ac_ext >&5
11383 eval "$as_ac_var=no"
11386 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11387 conftest
$ac_exeext conftest.
$ac_ext
11389 ac_res
=`eval echo '${'$as_ac_var'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392 if test `eval echo '${'$as_ac_var'}'` = yes; then
11393 cat >>confdefs.h
<<_ACEOF
11394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11396 HAVE_GTK_FILE_SELECTION
=yes
11401 HAVE_GTK_FILE_CHOOSER
=no
11403 for ac_func
in gtk_file_chooser_dialog_new
11405 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11408 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 cat >conftest.
$ac_ext <<_ACEOF
11414 cat confdefs.h
>>conftest.
$ac_ext
11415 cat >>conftest.
$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11419 #define $ac_func innocuous_$ac_func
11421 /* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char $ac_func (); below.
11423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11424 <limits.h> exists even on freestanding compilers. */
11427 # include <limits.h>
11429 # include <assert.h>
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined __stub_$ac_func || defined __stub___$ac_func
11451 return $ac_func ();
11456 rm -f conftest.
$ac_objext conftest
$ac_exeext
11457 if { (ac_try
="$ac_link"
11458 case "(($ac_try" in
11459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1 >conftest.err
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest$ac_exeext &&
11473 $as_test_x conftest$ac_exeext; then
11474 eval "$as_ac_var=yes"
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11479 eval "$as_ac_var=no"
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11483 conftest$ac_exeext conftest.$ac_ext
11485 ac_res=`eval echo '${'$as_ac_var'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488 if test `eval echo '${'$as_ac_var'}'` = yes; then
11489 cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11492 HAVE_GTK_FILE_CHOOSER=yes
11497 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11498 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_GTK_FILE_BOTH 1
11506 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11507 HAVE_GTK_AND_PTHREAD=no
11509 for ac_header in pthread.h
11511 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11518 ac_res=`eval echo '${'$as_ac_Header'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11522 # Is the header compilable?
11523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11525 cat >conftest.$ac_ext <<_ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 $ac_includes_default
11532 #include <$ac_header>
11534 rm -f conftest.$ac_objext
11535 if { (ac_try="$ac_compile"
11536 case "(($ac_try" in
11537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11538 *) ac_try_echo
=$ac_try;;
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_compile") 2>conftest.er1
11543 grep -v '^ *+' conftest.er1
>conftest.err
11545 cat conftest.err
>&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.
$ac_objext; then
11551 ac_header_compiler
=yes
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.
$ac_ext >&5
11556 ac_header_compiler
=no
11559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11561 echo "${ECHO_T}$ac_header_compiler" >&6; }
11563 # Is the header present?
11564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11566 cat >conftest.
$ac_ext <<_ACEOF
11569 cat confdefs.h
>>conftest.
$ac_ext
11570 cat >>conftest.
$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 #include <$ac_header>
11574 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11575 case "(($ac_try" in
11576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null && {
11587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11590 ac_header_preproc=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_header_preproc=no
11598 rm -f conftest.err conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 echo "${ECHO_T}$ac_header_preproc" >&6; }
11602 # So? What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609 ac_header_preproc=yes
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 eval "$as_ac_Header=\$ac_header_preproc"
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11648 if test "$ac_cv_header_pthread_h"; then
11649 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11650 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11651 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lpthread $LIBS"
11656 cat >conftest.$ac_ext <<_ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11669 char pthread_self ();
11673 return pthread_self ();
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (ac_try="$ac_link"
11680 case "(($ac_try" in
11681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11682 *) ac_try_echo
=$ac_try;;
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_link") 2>conftest.er1
11687 grep -v '^ *+' conftest.er1
>conftest.err
11689 cat conftest.err
>&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } && {
11692 test -z "$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 } && test -s conftest
$ac_exeext &&
11695 $as_test_x conftest
$ac_exeext; then
11696 ac_cv_lib_pthread_pthread_self
=yes
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.
$ac_ext >&5
11701 ac_cv_lib_pthread_pthread_self
=no
11704 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11705 conftest
$ac_exeext conftest.
$ac_ext
11706 LIBS
=$ac_check_lib_save_LIBS
11708 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11709 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11710 if test $ac_cv_lib_pthread_pthread_self = yes; then
11711 HAVE_GTK_AND_PTHREAD
=yes
11715 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11716 GTK_LIBS
="$GTK_LIBS -lpthread"
11718 cat >>confdefs.h
<<\_ACEOF
11719 #define HAVE_GTK_AND_PTHREAD 1
11726 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11727 if test x
"${HAVE_X11R5}" = xyes
; then
11728 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11729 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11730 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 cat >conftest.
$ac_ext <<_ACEOF
11736 cat confdefs.h
>>conftest.
$ac_ext
11737 cat >>conftest.
$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11740 #include <X11/Intrinsic.h>
11741 #include <X11/Xaw/Simple.h>
11750 rm -f conftest.
$ac_objext conftest
$ac_exeext
11751 if { (ac_try
="$ac_link"
11752 case "(($ac_try" in
11753 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_link") 2>conftest.er1
11759 grep -v '^ *+' conftest.er1 >conftest.err
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest$ac_exeext &&
11767 $as_test_x conftest$ac_exeext; then
11768 emacs_cv_x11_version_5_with_xaw=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 emacs_cv_x11_version_5_with_xaw=no
11776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11777 conftest$ac_exeext conftest.$ac_ext
11780 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11781 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11782 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11783 USE_X_TOOLKIT=LUCID
11785 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11786 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11794 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11796 if test "${USE_X_TOOLKIT}" != "none"; then
11797 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11798 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11799 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <X11/Intrinsic.h>
11812 #if XtSpecificationRelease < 6
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (ac_try="$ac_link"
11822 case "(($ac_try" in
11823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11824 *) ac_try_echo
=$ac_try;;
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_link") 2>conftest.er1
11829 grep -v '^ *+' conftest.er1
>conftest.err
11831 cat conftest.err
>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest
$ac_exeext &&
11837 $as_test_x conftest
$ac_exeext; then
11838 emacs_cv_x11_toolkit_version_6
=yes
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.
$ac_ext >&5
11843 emacs_cv_x11_toolkit_version_6
=no
11846 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11847 conftest
$ac_exeext conftest.
$ac_ext
11850 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11851 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11852 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11853 echo "${ECHO_T}6 or newer" >&6; }
11855 cat >>confdefs.h
<<\_ACEOF
11856 #define HAVE_X11XTR6 1
11860 { echo "$as_me:$LINENO: result: before 6" >&5
11861 echo "${ECHO_T}before 6" >&6; }
11865 if test x
$HAVE_X11XTR6 = xyes
; then
11866 LIBS
="-lXt -lSM -lICE $LIBS"
11871 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11872 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11873 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 ac_check_lib_save_LIBS
=$LIBS
11878 cat >conftest.
$ac_ext <<_ACEOF
11881 cat confdefs.h
>>conftest.
$ac_ext
11882 cat >>conftest.
$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11891 char XmuConvertStandardSelection ();
11895 return XmuConvertStandardSelection ();
11900 rm -f conftest.
$ac_objext conftest
$ac_exeext
11901 if { (ac_try
="$ac_link"
11902 case "(($ac_try" in
11903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext &&
11917 $as_test_x conftest$ac_exeext; then
11918 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11927 conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11930 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11931 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11932 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_LIBXMU 1
11941 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11945 if test "${HAVE_X11}" = "yes"; then
11946 if test "${USE_X_TOOLKIT}" != "none"; then
11948 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11949 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11950 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lXext $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11968 char XShapeQueryExtension ();
11972 return XShapeQueryExtension ();
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11981 *) ac_try_echo
=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest
$ac_exeext &&
11994 $as_test_x conftest
$ac_exeext; then
11995 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 ac_cv_lib_Xext_XShapeQueryExtension
=no
12003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12004 conftest
$ac_exeext conftest.
$ac_ext
12005 LIBS
=$ac_check_lib_save_LIBS
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12008 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12009 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12010 cat >>confdefs.h
<<_ACEOF
12011 #define HAVE_LIBXEXT 1
12014 LIBS
="-lXext $LIBS"
12021 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12022 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12023 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12024 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 cat >conftest.
$ac_ext <<_ACEOF
12030 cat confdefs.h
>>conftest.
$ac_ext
12031 cat >>conftest.
$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12037 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12040 Motif version prior to 2.1.
12046 rm -f conftest.
$ac_objext
12047 if { (ac_try
="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 emacs_cv_motif_version_2_1=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 emacs_cv_motif_version_2_1=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12074 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12075 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12076 if test $emacs_cv_motif_version_2_1 = yes; then
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_MOTIF_2_1 1
12083 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12084 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 ac_check_lib_save_LIBS=$LIBS
12090 cat >conftest.$ac_ext <<_ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12103 char XpCreateContext ();
12107 return XpCreateContext ();
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12116 *) ac_try_echo
=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1
>conftest.err
12123 cat conftest.err
>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest
$ac_exeext &&
12129 $as_test_x conftest
$ac_exeext; then
12130 ac_cv_lib_Xp_XpCreateContext
=yes
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.
$ac_ext >&5
12135 ac_cv_lib_Xp_XpCreateContext
=no
12138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12139 conftest
$ac_exeext conftest.
$ac_ext
12140 LIBS
=$ac_check_lib_save_LIBS
12142 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12143 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12144 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12148 if test ${HAVE_LIBXP} = yes; then
12150 cat >>confdefs.h
<<\_ACEOF
12151 #define HAVE_LIBXP 1
12156 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12157 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12158 if test "${emacs_cv_lesstif+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 # We put this in CFLAGS temporarily to precede other -I options
12162 # that might be in CFLAGS temporarily.
12163 # We put this in CPPFLAGS where it precedes the other -I options.
12164 OLD_CPPFLAGS
=$CPPFLAGS
12166 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12167 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12168 cat >conftest.
$ac_ext <<_ACEOF
12171 cat confdefs.h
>>conftest.
$ac_ext
12172 cat >>conftest.
$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12183 rm -f conftest.
$ac_objext
12184 if { (ac_try
="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12192 grep -v '^ *+' conftest.er1 >conftest.err
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.$ac_objext; then
12200 emacs_cv_lesstif=yes
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 emacs_cv_lesstif=no
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12211 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12212 if test $emacs_cv_lesstif = yes; then
12213 # Make sure this -I option remains in CPPFLAGS after it is set
12214 # back to REAL_CPPFLAGS.
12215 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12216 # have those other -I options anyway. Ultimately, having this
12217 # directory ultimately in CPPFLAGS will be enough.
12218 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12219 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12222 CPPFLAGS=$OLD_CPPFLAGS
12227 ### Is -lXaw3d available?
12229 if test "${HAVE_X11}" = "yes"; then
12230 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12231 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12232 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12233 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <X11/Xaw3d/Scrollbar.h>
12244 if { (ac_try="$ac_cpp conftest.$ac_ext"
12245 case "(($ac_try" in
12246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12247 *) ac_try_echo
=$ac_try;;
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12252 grep -v '^ *+' conftest.er1
>conftest.err
12254 cat conftest.err
>&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } >/dev
/null
&& {
12257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12260 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12268 rm -f conftest.err conftest.
$ac_ext
12270 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12271 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12272 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12273 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12274 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12275 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 ac_check_lib_save_LIBS
=$LIBS
12279 LIBS
="-lXaw3d $LIBS"
12280 cat >conftest.
$ac_ext <<_ACEOF
12283 cat confdefs.h
>>conftest.
$ac_ext
12284 cat >>conftest.
$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12293 char XawScrollbarSetThumb ();
12297 return XawScrollbarSetThumb ();
12302 rm -f conftest.
$ac_objext conftest
$ac_exeext
12303 if { (ac_try
="$ac_link"
12304 case "(($ac_try" in
12305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12325 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12333 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12334 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12341 if test "${HAVE_XAW3D}" = "yes"; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_XAW3D 1
12353 USE_TOOLKIT_SCROLL_BARS=no
12354 if test "${with_toolkit_scroll_bars}" != "no"; then
12355 if test "${USE_X_TOOLKIT}" != "none"; then
12356 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12357 cat >>confdefs.h <<\_ACEOF
12358 #define USE_TOOLKIT_SCROLL_BARS 1
12362 USE_TOOLKIT_SCROLL_BARS=yes
12363 elif test "${HAVE_XAW3D}" = "yes"; then
12364 cat >>confdefs.h <<\_ACEOF
12365 #define USE_TOOLKIT_SCROLL_BARS 1
12368 USE_TOOLKIT_SCROLL_BARS=yes
12370 elif test "${HAVE_GTK}" = "yes"; then
12371 cat >>confdefs.h <<\_ACEOF
12372 #define USE_TOOLKIT_SCROLL_BARS 1
12375 USE_TOOLKIT_SCROLL_BARS=yes
12376 elif test "${HAVE_CARBON}" = "yes"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12381 USE_TOOLKIT_SCROLL_BARS=yes
12385 cat >conftest.$ac_ext <<_ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 #include <X11/Xlib.h>
12393 #include <X11/Xresource.h>
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12406 *) ac_try_echo
=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12411 grep -v '^ *+' conftest.er1
>conftest.err
12413 cat conftest.err
>&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.
$ac_objext; then
12421 cat >>confdefs.h
<<\_ACEOF
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.
$ac_ext >&5
12432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12435 if test "${with_xim}" != "no"; then
12437 cat >>confdefs.h
<<\_ACEOF
12444 if test "${HAVE_XIM}" != "no"; then
12445 late_CFLAGS
=$CFLAGS
12446 if test "$GCC" = yes; then
12447 CFLAGS
="$CFLAGS --pedantic-errors"
12449 cat >conftest.
$ac_ext <<_ACEOF
12452 cat confdefs.h
>>conftest.
$ac_ext
12453 cat >>conftest.
$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12456 #include <X11/Xlib.h>
12457 #include <X11/Xresource.h>
12466 XPointer *client_data;
12468 /* If we're not using GCC, it's probably not XFree86, and this is
12469 probably right, but we can't use something like --pedantic-errors. */
12470 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12471 char*, XIMProc, XPointer*);
12473 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12479 rm -f conftest.
$ac_objext
12480 if { (ac_try
="$ac_compile"
12481 case "(($ac_try" in
12482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_compile") 2>conftest.er1
12488 grep -v '^ *+' conftest.er1 >conftest.err
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest.$ac_objext; then
12496 emacs_cv_arg6_star=yes
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12506 if test "$emacs_cv_arg6_star" = yes; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12512 cat >>confdefs.h <<\_ACEOF
12513 #define XRegisterIMInstantiateCallback_arg6 XPointer
12517 CFLAGS=$late_CFLAGS
12520 ### For font-backend
12521 if test "${USE_FONT_BACKEND}" = "yes"; then
12524 cat >>confdefs.h <<\_ACEOF
12525 #define USE_FONT_BACKEND 1
12529 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12531 if test "${HAVE_X11}" = "yes"; then
12532 if test "x${with_freetype}" = "xno"; then
12535 if test "x${with_xft}" != "xno"; then
12537 if test "X${with_pkg_config_prog}" != X
; then
12538 PKG_CONFIG
="${with_pkg_config_prog}"
12544 if test -z "$PKG_CONFIG"; then
12545 # Extract the first word of "pkg-config", so it can be a program name with args.
12546 set dummy pkg-config
; ac_word
=$2
12547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 case $PKG_CONFIG in
12554 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12558 for as_dir
in $PATH
12561 test -z "$as_dir" && as_dir
=.
12562 for ac_exec_ext
in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12576 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12577 if test -n "$PKG_CONFIG"; then
12578 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12579 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12581 { echo "$as_me:$LINENO: result: no" >&5
12582 echo "${ECHO_T}no" >&6; }
12588 if test "$PKG_CONFIG" = "no" ; then
12591 PKG_CONFIG_MIN_VERSION
=0.9.0
12592 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12593 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12594 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12596 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12597 { echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6; }
12601 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12602 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12603 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12604 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12605 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12607 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12608 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12609 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12610 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12611 echo "${ECHO_T}$XFT_LIBS" >&6; }
12613 { echo "$as_me:$LINENO: result: no" >&5
12614 echo "${ECHO_T}no" >&6; }
12617 ## If we have a custom action on failure, don't print errors, but
12618 ## do set a variable so people can do so.
12619 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12631 if test $succeeded = yes; then
12637 if test "$HAVE_XFT" != no
; then
12638 OLD_CPPFLAGS
="$CPPFLAGS"
12639 OLD_CFLAGS
="$CFLAGS"
12641 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12642 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12643 LIBS
="$XFT_LIBS $LIBS"
12644 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12645 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12646 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12647 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12651 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12653 # Is the header compilable?
12654 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12655 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12656 cat >conftest.
$ac_ext <<_ACEOF
12659 cat confdefs.h
>>conftest.
$ac_ext
12660 cat >>conftest.
$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 #include <X11/Xft/Xft.h>
12665 rm -f conftest.
$ac_objext
12666 if { (ac_try
="$ac_compile"
12667 case "(($ac_try" in
12668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12674 grep -v '^ *+' conftest.er1 >conftest.err
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest.$ac_objext; then
12682 ac_header_compiler=yes
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12687 ac_header_compiler=no
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692 echo "${ECHO_T}$ac_header_compiler" >&6; }
12694 # Is the header present?
12695 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12696 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 #include <X11/Xft/Xft.h>
12705 if { (ac_try="$ac_cpp conftest.$ac_ext"
12706 case "(($ac_try" in
12707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12708 *) ac_try_echo
=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1
>conftest.err
12715 cat conftest.err
>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } >/dev
/null
&& {
12718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12721 ac_header_preproc
=yes
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.
$ac_ext >&5
12726 ac_header_preproc
=no
12729 rm -f conftest.err conftest.
$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12731 echo "${ECHO_T}$ac_header_preproc" >&6; }
12733 # So? What about this header?
12734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12736 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12737 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12739 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12740 ac_header_preproc
=yes
12743 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12744 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12746 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12748 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12758 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12759 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12760 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12763 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12765 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12766 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12769 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12770 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12771 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12772 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12775 ac_check_lib_save_LIBS
=$LIBS
12776 LIBS
="-lXft $XFT_LIBS $LIBS"
12777 cat >conftest.
$ac_ext <<_ACEOF
12780 cat confdefs.h
>>conftest.
$ac_ext
12781 cat >>conftest.
$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12790 char XftFontOpen ();
12794 return XftFontOpen ();
12799 rm -f conftest.
$ac_objext conftest
$ac_exeext
12800 if { (ac_try
="$ac_link"
12801 case "(($ac_try" in
12802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_link") 2>conftest.er1
12808 grep -v '^ *+' conftest.er1 >conftest.err
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest$ac_exeext &&
12816 $as_test_x conftest$ac_exeext; then
12817 ac_cv_lib_Xft_XftFontOpen=yes
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ac_cv_lib_Xft_XftFontOpen=no
12825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12829 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12830 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12831 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12839 if test "${HAVE_XFT}" = "yes"; then
12841 cat >>confdefs.h <<\_ACEOF
12846 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12848 CFLAGS="$OLD_CPPFLAGS"
12849 CFLAGS="$OLD_CFLAGS"
12857 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12858 if test "${HAVE_XFT}" = "yes"; then
12860 elif test "x${with_freetype}" != "xno"; then
12861 if test "X${with_pkg_config_prog}" != X; then
12862 PKG_CONFIG="${with_pkg_config_prog}"
12868 if test -z "$PKG_CONFIG"; then
12869 # Extract the first word of "pkg-config", so it can be a program name with args.
12870 set dummy pkg-config; ac_word=$2
12871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12876 case $PKG_CONFIG in
12878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12896 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12900 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12901 if test -n "$PKG_CONFIG"; then
12902 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12903 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12905 { echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6; }
12912 if test "$PKG_CONFIG" = "no" ; then
12915 PKG_CONFIG_MIN_VERSION=0.9.0
12916 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12917 { echo "$as_me:$LINENO: checking for freetype2" >&5
12918 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12920 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12921 { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12925 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12926 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12927 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12928 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12929 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12931 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12932 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12933 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12934 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12935 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12937 { echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6; }
12941 ## If we have a custom action on failure, don't print errors
, but
12942 ## do set a variable so people can do so.
12943 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12950 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12951 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12955 if test $succeeded = yes; then
12961 if test "${HAVE_FREETYPE}" = "yes"; then
12965 if test -z "$PKG_CONFIG"; then
12966 # Extract the first word of "pkg-config", so it can be a program name with args.
12967 set dummy pkg-config
; ac_word
=$2
12968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 case $PKG_CONFIG in
12975 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12979 for as_dir
in $PATH
12982 test -z "$as_dir" && as_dir
=.
12983 for ac_exec_ext
in '' $ac_executable_extensions; do
12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12985 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12997 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12998 if test -n "$PKG_CONFIG"; then
12999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13009 if test "$PKG_CONFIG" = "no" ; then
13012 PKG_CONFIG_MIN_VERSION
=0.9.0
13013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13014 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13015 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13017 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13018 { echo "$as_me:$LINENO: result: yes" >&5
13019 echo "${ECHO_T}yes" >&6; }
13022 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13023 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13024 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
13025 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13026 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13028 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13029 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13030 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
13031 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13032 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13034 { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13036 FONTCONFIG_CFLAGS
=""
13038 ## If we have a custom action on failure, don't print errors, but
13039 ## do set a variable so people can do so.
13040 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13052 if test $succeeded = yes; then
13058 if test "${HAVE_FC}" = "no"; then
13063 if test "${HAVE_FREETYPE}" = "yes"; then
13065 cat >>confdefs.h
<<\_ACEOF
13066 #define HAVE_FREETYPE 1
13069 # Extract the first word of "libotf-config", so it can be a program name with args.
13070 set dummy libotf-config
; ac_word
=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 if test -n "$HAVE_LIBOTF"; then
13077 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13080 for as_dir
in $PATH
13083 test -z "$as_dir" && as_dir
=.
13084 for ac_exec_ext
in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_prog_HAVE_LIBOTF
="yes"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13094 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13097 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13098 if test -n "$HAVE_LIBOTF"; then
13099 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13100 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13102 { echo "$as_me:$LINENO: result: no" >&5
13103 echo "${ECHO_T}no" >&6; }
13107 if test "${HAVE_LIBOTF}" = "yes"; then
13109 cat >>confdefs.h
<<\_ACEOF
13110 #define HAVE_LIBOTF 1
13113 LIBOTF_CFLAGS
=`libotf-config --cflags`
13114 LIBOTF_LIBS
=`libotf-config --libs`
13126 ### Use -lXpm if available, unless `--with-xpm=no'.
13128 if test "${HAVE_X11}" = "yes"; then
13129 if test "${with_xpm}" != "no"; then
13130 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13131 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13132 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13133 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13137 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13139 # Is the header compilable?
13140 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13141 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13142 cat >conftest.
$ac_ext <<_ACEOF
13145 cat confdefs.h
>>conftest.
$ac_ext
13146 cat >>conftest.
$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13149 #include <X11/xpm.h>
13151 rm -f conftest.
$ac_objext
13152 if { (ac_try
="$ac_compile"
13153 case "(($ac_try" in
13154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_compile") 2>conftest.er1
13160 grep -v '^ *+' conftest.er1 >conftest.err
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest.$ac_objext; then
13168 ac_header_compiler=yes
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ac_header_compiler=no
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13182 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <X11/xpm.h>
13191 if { (ac_try="$ac_cpp conftest.$ac_ext"
13192 case "(($ac_try" in
13193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13194 *) ac_try_echo
=$ac_try;;
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13199 grep -v '^ *+' conftest.er1
>conftest.err
13201 cat conftest.err
>&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } >/dev
/null
&& {
13204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13207 ac_header_preproc
=yes
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.
$ac_ext >&5
13212 ac_header_preproc
=no
13215 rm -f conftest.err conftest.
$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13217 echo "${ECHO_T}$ac_header_preproc" >&6; }
13219 # So? What about this header?
13220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13223 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13225 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13226 ac_header_preproc
=yes
13229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13230 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13232 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13234 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13236 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13238 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13240 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13244 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13245 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13246 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13251 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13252 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13255 if test $ac_cv_header_X11_xpm_h = yes; then
13256 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13257 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13258 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 ac_check_lib_save_LIBS
=$LIBS
13262 LIBS
="-lXpm -lX11 $LIBS"
13263 cat >conftest.
$ac_ext <<_ACEOF
13266 cat confdefs.h
>>conftest.
$ac_ext
13267 cat >>conftest.
$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13276 char XpmReadFileToPixmap ();
13280 return XpmReadFileToPixmap ();
13285 rm -f conftest.
$ac_objext conftest
$ac_exeext
13286 if { (ac_try
="$ac_link"
13287 case "(($ac_try" in
13288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_link") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_c_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest$ac_exeext &&
13302 $as_test_x conftest$ac_exeext; then
13303 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13315 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13316 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13317 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13324 if test "${HAVE_XPM}" = "yes"; then
13325 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13326 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include "X11/xpm.h"
13334 #ifndef XpmReturnAllocPixels
13335 no_return_alloc_pixels
13339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13340 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13348 if test "${HAVE_XPM}" = "yes"; then
13349 { echo "$as_me:$LINENO: result: yes" >&5
13350 echo "${ECHO_T}yes" >&6; }
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13358 if test "${HAVE_XPM}" = "yes"; then
13360 cat >>confdefs.h <<\_ACEOF
13367 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13369 if test "${HAVE_X11}" = "yes"; then
13370 if test "${with_jpeg}" != "no"; then
13371 if test "${ac_cv_header_jerror_h+set}" = set; then
13372 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13373 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13374 if test "${ac_cv_header_jerror_h+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13378 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13380 # Is the header compilable?
13381 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13382 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13383 cat >conftest.$ac_ext <<_ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 $ac_includes_default
13390 #include <jerror.h>
13392 rm -f conftest.$ac_objext
13393 if { (ac_try="$ac_compile"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_compile") 2>conftest.er1
13401 grep -v '^
*+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_c_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest.$ac_objext; then
13409 ac_header_compiler=yes
13411 echo "$as_me: failed program was:" >&5
13412 sed 's
/^
/|
/' conftest.$ac_ext >&5
13414 ac_header_compiler=no
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13419 echo "${ECHO_T}$ac_header_compiler" >&6; }
13421 # Is the header present?
13422 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13423 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include <jerror.h>
13432 if { (ac_try="$ac_cpp conftest.$ac_ext"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13440 grep -v '^
*+' conftest.er1 >conftest.err
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } >/dev/null && {
13445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13448 ac_header_preproc=yes
13450 echo "$as_me: failed program was:" >&5
13451 sed 's
/^
/|
/' conftest.$ac_ext >&5
13453 ac_header_preproc=no
13456 rm -f conftest.err conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6; }
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13463 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13466 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13467 ac_header_preproc=yes
13470 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13479 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13485 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13486 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13487 if test "${ac_cv_header_jerror_h+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13490 ac_cv_header_jerror_h=$ac_header_preproc
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13496 if test $ac_cv_header_jerror_h = yes; then
13497 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13498 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13499 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-ljpeg $LIBS"
13504 cat >conftest.$ac_ext <<_ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13517 char jpeg_destroy_compress ();
13521 return jpeg_destroy_compress ();
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (ac_try="$ac_link"
13528 case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_link") 2>conftest.er1
13535 grep -v '^
*+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && {
13540 test -z "$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13542 } && test -s conftest$ac_exeext &&
13543 $as_test_x conftest$ac_exeext; then
13544 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13546 echo "$as_me: failed program was:" >&5
13547 sed 's
/^
/|
/' conftest.$ac_ext >&5
13549 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13556 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13557 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13558 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13568 if test "${HAVE_JPEG}" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define HAVE_JPEG 1
13573 cat >conftest.$ac_ext <<_ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 #include <jpeglib.h>
13580 version=JPEG_LIB_VERSION
13583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13584 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13585 cat >>confdefs.h <<\_ACEOF
13586 #define HAVE_JPEG 1
13590 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13591 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13599 ### Use -lpng if available, unless `--with-png=no'.
13601 if test "${HAVE_X11}" = "yes"; then
13602 if test "${with_png}" != "no"; then
13603 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13604 # in /usr/include/libpng.
13607 for ac_header
in png.h libpng
/png.h
13609 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13610 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13613 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13616 ac_res
=`eval echo '${'$as_ac_Header'}'`
13617 { echo "$as_me:$LINENO: result: $ac_res" >&5
13618 echo "${ECHO_T}$ac_res" >&6; }
13620 # Is the header compilable?
13621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13623 cat >conftest.
$ac_ext <<_ACEOF
13626 cat confdefs.h
>>conftest.
$ac_ext
13627 cat >>conftest.
$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 $ac_includes_default
13630 #include <$ac_header>
13632 rm -f conftest.
$ac_objext
13633 if { (ac_try
="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13641 grep -v '^ *+' conftest.er1 >conftest.err
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.$ac_objext; then
13649 ac_header_compiler=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_header_compiler=no
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13659 echo "${ECHO_T}$ac_header_compiler" >&6; }
13661 # Is the header present?
13662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 #include <$ac_header>
13672 if { (ac_try="$ac_cpp conftest.$ac_ext"
13673 case "(($ac_try" in
13674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13675 *) ac_try_echo
=$ac_try;;
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13680 grep -v '^ *+' conftest.er1
>conftest.err
13682 cat conftest.err
>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } >/dev
/null
&& {
13685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13686 test ! -s conftest.err
13688 ac_header_preproc
=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.
$ac_ext >&5
13693 ac_header_preproc
=no
13696 rm -f conftest.err conftest.
$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13698 echo "${ECHO_T}$ac_header_preproc" >&6; }
13700 # So? What about this header?
13701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13707 ac_header_preproc
=yes
13710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13727 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 eval "$as_ac_Header=\$ac_header_preproc"
13732 ac_res
=`eval echo '${'$as_ac_Header'}'`
13733 { echo "$as_me:$LINENO: result: $ac_res" >&5
13734 echo "${ECHO_T}$ac_res" >&6; }
13737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13738 cat >>confdefs.h
<<_ACEOF
13739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13746 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13747 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13748 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13749 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13752 ac_check_lib_save_LIBS
=$LIBS
13753 LIBS
="-lpng -lz -lm $LIBS"
13754 cat >conftest.
$ac_ext <<_ACEOF
13757 cat confdefs.h
>>conftest.
$ac_ext
13758 cat >>conftest.
$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13767 char png_get_channels ();
13771 return png_get_channels ();
13776 rm -f conftest.
$ac_objext conftest
$ac_exeext
13777 if { (ac_try
="$ac_link"
13778 case "(($ac_try" in
13779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>conftest.er1
13785 grep -v '^ *+' conftest.er1 >conftest.err
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest$ac_exeext &&
13793 $as_test_x conftest$ac_exeext; then
13794 ac_cv_lib_png_png_get_channels=yes
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13799 ac_cv_lib_png_png_get_channels=no
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803 conftest$ac_exeext conftest.$ac_ext
13804 LIBS=$ac_check_lib_save_LIBS
13806 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13807 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13808 if test $ac_cv_lib_png_png_get_channels = yes; then
13815 if test "${HAVE_PNG}" = "yes"; then
13817 cat >>confdefs.h <<\_ACEOF
13824 ### Use -ltiff if available, unless `--with-tiff=no
'.
13826 if test "${HAVE_X11}" = "yes"; then
13827 if test "${with_tiff}" != "no"; then
13828 if test "${ac_cv_header_tiffio_h+set}" = set; then
13829 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13830 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13831 if test "${ac_cv_header_tiffio_h+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13834 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13837 # Is the header compilable?
13838 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13839 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 #include <tiffio.h>
13849 rm -f conftest.$ac_objext
13850 if { (ac_try="$ac_compile"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compile") 2>conftest.er1
13858 grep -v '^
*+' conftest.er1 >conftest.err
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
13866 ac_header_compiler=yes
13868 echo "$as_me: failed program was:" >&5
13869 sed 's
/^
/|
/' conftest.$ac_ext >&5
13871 ac_header_compiler=no
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13876 echo "${ECHO_T}$ac_header_compiler" >&6; }
13878 # Is the header present?
13879 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13880 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <tiffio.h>
13889 if { (ac_try="$ac_cpp conftest.$ac_ext"
13890 case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13897 grep -v '^
*+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } >/dev/null && {
13902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13905 ac_header_preproc=yes
13907 echo "$as_me: failed program was:" >&5
13908 sed 's
/^
/|
/' conftest.$ac_ext >&5
13910 ac_header_preproc=no
13913 rm -f conftest.err conftest.$ac_ext
13914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13915 echo "${ECHO_T}$ac_header_preproc" >&6; }
13917 # So? What about this header?
13918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13920 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13921 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13923 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13924 ac_header_preproc=yes
13927 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13928 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13930 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13932 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13934 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13936 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13938 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13942 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13943 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13944 if test "${ac_cv_header_tiffio_h+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 ac_cv_header_tiffio_h=$ac_header_preproc
13949 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13950 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13953 if test $ac_cv_header_tiffio_h = yes; then
13955 # At least one tiff package requires the jpeg library.
13956 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13957 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13958 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-ltiff $tifflibs $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13977 char TIFFGetVersion ();
13981 return TIFFGetVersion ();
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13995 grep -v '^
*+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_tiff_TIFFGetVersion=yes
14006 echo "$as_me: failed program was:" >&5
14007 sed 's
/^
/|
/' conftest.$ac_ext >&5
14009 ac_cv_lib_tiff_TIFFGetVersion=no
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14017 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14018 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14027 if test "${HAVE_TIFF}" = "yes"; then
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_TIFF 1
14036 ### Use -lgif if available, unless `--with-gif=no'.
14038 if test "${HAVE_X11}" = "yes"; then
14039 if test "${with_gif}" != "no"; then
14040 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14041 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14042 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14049 # Is the header compilable?
14050 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14051 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14052 cat >conftest.
$ac_ext <<_ACEOF
14055 cat confdefs.h
>>conftest.
$ac_ext
14056 cat >>conftest.
$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 $ac_includes_default
14059 #include <gif_lib.h>
14061 rm -f conftest.
$ac_objext
14062 if { (ac_try
="$ac_compile"
14063 case "(($ac_try" in
14064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_compile") 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest.$ac_objext; then
14078 ac_header_compiler=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_header_compiler=no
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14088 echo "${ECHO_T}$ac_header_compiler" >&6; }
14090 # Is the header present?
14091 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14092 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14093 cat >conftest.$ac_ext <<_ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 #include <gif_lib.h>
14101 if { (ac_try="$ac_cpp conftest.$ac_ext"
14102 case "(($ac_try" in
14103 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14104 *) ac_try_echo
=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1
>conftest.err
14111 cat conftest.err
>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } >/dev
/null
&& {
14114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14117 ac_header_preproc
=yes
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.
$ac_ext >&5
14122 ac_header_preproc
=no
14125 rm -f conftest.err conftest.
$ac_ext
14126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14127 echo "${ECHO_T}$ac_header_preproc" >&6; }
14129 # So? What about this header?
14130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14132 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14133 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14135 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14136 ac_header_preproc
=yes
14139 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14140 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14142 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14144 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14145 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14146 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14148 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14150 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14154 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14155 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14156 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14159 ac_cv_header_gif_lib_h
=$ac_header_preproc
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14162 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14165 if test $ac_cv_header_gif_lib_h = yes; then
14166 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14167 # Earlier versions can crash Emacs.
14168 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14169 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14170 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 ac_check_lib_save_LIBS
=$LIBS
14174 LIBS
="-lungif $LIBS"
14175 cat >conftest.
$ac_ext <<_ACEOF
14178 cat confdefs.h
>>conftest.
$ac_ext
14179 cat >>conftest.
$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14188 char EGifPutExtensionLast ();
14192 return EGifPutExtensionLast ();
14197 rm -f conftest.
$ac_objext conftest
$ac_exeext
14198 if { (ac_try
="$ac_link"
14199 case "(($ac_try" in
14200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1 >conftest.err
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest$ac_exeext &&
14214 $as_test_x conftest$ac_exeext; then
14215 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14220 ac_cv_lib_ungif_EGifPutExtensionLast=no
14223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14227 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14228 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14229 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14238 if test "${HAVE_GIF}" = "yes"; then
14240 cat >>confdefs.h <<\_ACEOF
14247 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14248 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14249 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14250 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14254 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14256 # Is the header compilable?
14257 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14258 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 $ac_includes_default
14266 #include <malloc/malloc.h>
14268 rm -f conftest.$ac_objext
14269 if { (ac_try="$ac_compile"
14270 case "(($ac_try" in
14271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14272 *) ac_try_echo
=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_compile") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1
>conftest.err
14279 cat conftest.err
>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest.
$ac_objext; then
14285 ac_header_compiler
=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.
$ac_ext >&5
14290 ac_header_compiler
=no
14293 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14295 echo "${ECHO_T}$ac_header_compiler" >&6; }
14297 # Is the header present?
14298 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14299 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14300 cat >conftest.
$ac_ext <<_ACEOF
14303 cat confdefs.h
>>conftest.
$ac_ext
14304 cat >>conftest.
$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <malloc/malloc.h>
14308 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14309 case "(($ac_try" in
14310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } >/dev/null && {
14321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14324 ac_header_preproc=yes
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14329 ac_header_preproc=no
14332 rm -f conftest.err conftest.$ac_ext
14333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14334 echo "${ECHO_T}$ac_header_preproc" >&6; }
14336 # So? What about this header?
14337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14339 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14340 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14342 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14343 ac_header_preproc=yes
14346 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14347 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14349 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14351 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14353 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14355 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14357 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14361 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14362 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14363 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14368 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14369 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14372 if test $ac_cv_header_malloc_malloc_h = yes; then
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_MALLOC_MALLOC_H 1
14382 ### Use Mac OS X Carbon API to implement GUI.
14383 if test "${HAVE_CARBON}" = "yes"; then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_CARBON 1
14389 ## Specify the install directory
14391 if test "${carbon_appdir_x}" != ""; then
14392 case ${carbon_appdir_x} in
14393 y | ye | yes) carbon_appdir=/Applications ;;
14394 * ) carbon_appdir=${carbon_appdir_x} ;;
14397 # We also have mouse menus.
14401 ### Use session management (-lSM -lICE) if available
14403 if test "${HAVE_X11}" = "yes"; then
14404 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14405 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14406 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14407 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14411 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14413 # Is the header compilable?
14414 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14415 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14416 cat >conftest.$ac_ext <<_ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 $ac_includes_default
14423 #include <X11/SM/SMlib.h>
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14429 *) ac_try_echo
=$ac_try;;
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14434 grep -v '^ *+' conftest.er1
>conftest.err
14436 cat conftest.err
>&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest.
$ac_objext; then
14442 ac_header_compiler
=yes
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.
$ac_ext >&5
14447 ac_header_compiler
=no
14450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14452 echo "${ECHO_T}$ac_header_compiler" >&6; }
14454 # Is the header present?
14455 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14456 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14457 cat >conftest.
$ac_ext <<_ACEOF
14460 cat confdefs.h
>>conftest.
$ac_ext
14461 cat >>conftest.
$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <X11/SM/SMlib.h>
14465 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14466 case "(($ac_try" in
14467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14473 grep -v '^ *+' conftest.er1 >conftest.err
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } >/dev/null && {
14478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14481 ac_header_preproc=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_header_preproc=no
14489 rm -f conftest.err conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14491 echo "${ECHO_T}$ac_header_preproc" >&6; }
14493 # So? What about this header?
14494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14496 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14497 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14499 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14500 ac_header_preproc=yes
14503 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14504 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14506 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14508 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14510 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14512 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14514 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14518 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14519 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14520 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14523 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14526 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14529 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14530 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14531 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14532 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 ac_check_lib_save_LIBS=$LIBS
14536 LIBS="-lSM -lICE $LIBS"
14537 cat >conftest.$ac_ext <<_ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14544 /* Override any GCC internal prototype to avoid an error.
14545 Use char because int might match the return type of a GCC
14546 builtin and then its argument prototype would still apply. */
14550 char SmcOpenConnection ();
14554 return SmcOpenConnection ();
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (ac_try="$ac_link"
14561 case "(($ac_try" in
14562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14563 *) ac_try_echo
=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_link") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1
>conftest.err
14570 cat conftest.err
>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest
$ac_exeext &&
14576 $as_test_x conftest
$ac_exeext; then
14577 ac_cv_lib_SM_SmcOpenConnection
=yes
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.
$ac_ext >&5
14582 ac_cv_lib_SM_SmcOpenConnection
=no
14585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14586 conftest
$ac_exeext conftest.
$ac_ext
14587 LIBS
=$ac_check_lib_save_LIBS
14589 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14590 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14591 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14599 if test "${HAVE_X_SM}" = "yes"; then
14601 cat >>confdefs.h
<<\_ACEOF
14602 #define HAVE_X_SM 1
14607 *) LIBS
="-lSM -lICE $LIBS" ;;
14612 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14613 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14614 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14615 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14633 rm -f conftest.
$ac_objext conftest
$ac_exeext
14634 if { (ac_try
="$ac_link"
14635 case "(($ac_try" in
14636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14642 grep -v '^ *+' conftest.er1 >conftest.err
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_c_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext &&
14650 $as_test_x conftest$ac_exeext; then
14651 emacs_cv_netdb_declares_h_errno=yes
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14656 emacs_cv_netdb_declares_h_errno=no
14659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14660 conftest$ac_exeext conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14663 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14664 if test $emacs_cv_netdb_declares_h_errno = yes; then
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_H_ERRNO 1
14672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14673 # for constant arguments. Useless!
14674 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14675 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14676 if test "${ac_cv_working_alloca_h+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <alloca.h>
14689 char *p = (char *) alloca (2 * sizeof (int));
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14699 *) ac_try_echo
=$ac_try;;
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14704 grep -v '^ *+' conftest.er1
>conftest.err
14706 cat conftest.err
>&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest
$ac_exeext &&
14712 $as_test_x conftest
$ac_exeext; then
14713 ac_cv_working_alloca_h
=yes
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.
$ac_ext >&5
14718 ac_cv_working_alloca_h
=no
14721 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14722 conftest
$ac_exeext conftest.
$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14725 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14726 if test $ac_cv_working_alloca_h = yes; then
14728 cat >>confdefs.h
<<\_ACEOF
14729 #define HAVE_ALLOCA_H 1
14734 { echo "$as_me:$LINENO: checking for alloca" >&5
14735 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14736 if test "${ac_cv_func_alloca_works+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 cat >conftest.
$ac_ext <<_ACEOF
14742 cat confdefs.h
>>conftest.
$ac_ext
14743 cat >>conftest.
$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14746 # define alloca __builtin_alloca
14749 # include <malloc.h>
14750 # define alloca _alloca
14752 # ifdef HAVE_ALLOCA_H
14753 # include <alloca.h>
14758 # ifndef alloca /* predefined by HP cc +Olibcalls */
14769 char *p = (char *) alloca (1);
14775 rm -f conftest.
$ac_objext conftest
$ac_exeext
14776 if { (ac_try
="$ac_link"
14777 case "(($ac_try" in
14778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_link") 2>conftest.er1
14784 grep -v '^ *+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest$ac_exeext &&
14792 $as_test_x conftest$ac_exeext; then
14793 ac_cv_func_alloca_works=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_cv_func_alloca_works=no
14801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14802 conftest$ac_exeext conftest.$ac_ext
14804 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14805 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14807 if test $ac_cv_func_alloca_works = yes; then
14809 cat >>confdefs.h <<\_ACEOF
14810 #define HAVE_ALLOCA 1
14814 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14815 # that cause trouble. Some versions do not even contain alloca or
14816 # contain a buggy version. If you still want to use their alloca,
14817 # use ar to extract alloca.o from them instead of compiling alloca.c.
14819 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14821 cat >>confdefs.h <<\_ACEOF
14826 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14827 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14828 if test "${ac_cv_os_cray+set}" = set; then
14829 echo $ECHO_N "(cached
) $ECHO_C" >&6
14831 cat >conftest.$ac_ext <<_ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 #if defined CRAY && ! defined CRAY2
14844 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14845 $EGREP "webecray
" >/dev/null 2>&1; then
14853 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14854 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14855 if test $ac_cv_os_cray = yes; then
14856 for ac_func in _getb67 GETB67 getb67; do
14857 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14858 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14859 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14860 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached
) $ECHO_C" >&6
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14871 #define $ac_func innocuous_$ac_func
14873 /* System header to define __stub macros and hopefully few prototypes,
14874 which can conflict with char $ac_func (); below.
14875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14876 <limits.h> exists even on freestanding compilers. */
14879 # include <limits.h>
14881 # include <assert.h>
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14893 /* The GNU C library defines this for functions which it implements
14894 to always fail with ENOSYS. Some functions are actually named
14895 something starting with __ and the normal name is an alias. */
14896 #if defined __stub_$ac_func || defined __stub___$ac_func
14903 return $ac_func ();
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (ac_try="$ac_link"
14910 case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_link") 2>conftest.er1
14917 grep -v '^ *+' conftest.er1 >conftest.err
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest$ac_exeext &&
14925 $as_test_x conftest$ac_exeext; then
14926 eval "$as_ac_var=yes"
14928 echo "$as_me: failed program was
:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 eval "$as_ac_var=no
"
14934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14935 conftest$ac_exeext conftest.$ac_ext
14937 ac_res=`eval echo '${'$as_ac_var'}'`
14938 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940 if test `eval echo '${'$as_ac_var'}'` = yes; then
14942 cat >>confdefs.h <<_ACEOF
14943 #define CRAY_STACKSEG_END $ac_func
14952 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14953 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14954 if test "${ac_cv_c_stack_direction+set}" = set; then
14955 echo $ECHO_N "(cached
) $ECHO_C" >&6
14957 if test "$cross_compiling" = yes; then
14958 ac_cv_c_stack_direction=0
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 $ac_includes_default
14968 find_stack_direction ()
14970 static char *addr = 0;
14975 return find_stack_direction ();
14978 return (&dummy > addr) ? 1 : -1;
14984 return find_stack_direction () < 0;
14987 rm -f conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14993 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>&5
14996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_c_stack_direction=1
15009 echo "$as_me: program exited with status
$ac_status" >&5
15010 echo "$as_me: failed program was
:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15013 ( exit $ac_status )
15014 ac_cv_c_stack_direction=-1
15016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15021 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15022 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15024 cat >>confdefs.h <<_ACEOF
15025 #define STACK_DIRECTION $ac_cv_c_stack_direction
15032 # fmod, logb, and frexp are found in -lm on most systems.
15033 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15035 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15036 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15037 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15038 echo $ECHO_N "(cached
) $ECHO_C" >&6
15040 ac_check_lib_save_LIBS=$LIBS
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_link") 2>conftest.er1
15073 grep -v '^ *+' conftest.er1 >conftest.err
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest$ac_exeext &&
15081 $as_test_x conftest$ac_exeext; then
15082 ac_cv_lib_m_sqrt=yes
15084 echo "$as_me: failed program was
:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_cv_lib_m_sqrt=no
15090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15091 conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15094 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15095 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15096 if test $ac_cv_lib_m_sqrt = yes; then
15097 cat >>confdefs.h <<_ACEOF
15098 #define HAVE_LIBM 1
15106 # Check for mail-locking functions in a "mail" library. Probably this should
15107 # have the same check as for liblockfile below.
15109 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15110 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15111 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15112 echo $ECHO_N "(cached
) $ECHO_C" >&6
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lmail $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15133 return maillock ();
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15147 grep -v '^ *+' conftest.er1 >conftest.err
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15156 ac_cv_lib_mail_maillock=yes
15158 echo "$as_me: failed program was
:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_lib_mail_maillock=no
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15168 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15169 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15170 if test $ac_cv_lib_mail_maillock = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LIBMAIL 1
15175 LIBS="-lmail $LIBS"
15180 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15181 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15182 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15183 echo $ECHO_N "(cached
) $ECHO_C" >&6
15185 ac_check_lib_save_LIBS=$LIBS
15186 LIBS="-llockfile $LIBS"
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15204 return maillock ();
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15218 grep -v '^ *+' conftest.er1 >conftest.err
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest$ac_exeext &&
15226 $as_test_x conftest$ac_exeext; then
15227 ac_cv_lib_lockfile_maillock=yes
15229 echo "$as_me: failed program was
:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_cv_lib_lockfile_maillock=no
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15240 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15241 if test $ac_cv_lib_lockfile_maillock = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_LIBLOCKFILE 1
15246 LIBS="-llockfile $LIBS"
15250 # If we have the shared liblockfile, assume we must use it for mail
15251 # locking (e.g. Debian). If we couldn't link against liblockfile
15252 # (no liblockfile.a installed), ensure that we don't need to.
15253 if test "$ac_cv_lib_lockfile_maillock" = no; then
15254 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15255 set dummy liblockfile.so; ac_word=$2
15256 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15257 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15258 if test "${ac_cv_prog_liblockfile+set}" = set; then
15259 echo $ECHO_N "(cached
) $ECHO_C" >&6
15261 if test -n "$liblockfile"; then
15262 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15266 for as_dir in $as_dummy
15269 test -z "$as_dir" && as_dir=.
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15272 ac_cv_prog_liblockfile="yes"
15273 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15280 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15283 liblockfile=$ac_cv_prog_liblockfile
15284 if test -n "$liblockfile"; then
15285 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15286 echo "${ECHO_T}$liblockfile" >&6; }
15288 { echo "$as_me:$LINENO: result
: no
" >&5
15289 echo "${ECHO_T}no
" >&6; }
15293 if test $ac_cv_prog_liblockfile = yes; then
15294 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15295 This probably means that movemail could lose mail.
15296 There may be a \`development' package to
install containing liblockfile.
" >&5
15297 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15298 This probably means that movemail could lose mail.
15299 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15300 { (exit 1); exit 1; }; }
15305 for ac_func in touchlock
15307 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15308 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15309 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15310 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached
) $ECHO_C" >&6
15313 cat >conftest.$ac_ext <<_ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15321 #define $ac_func innocuous_$ac_func
15323 /* System header to define __stub macros and hopefully few prototypes,
15324 which can conflict with char $ac_func (); below.
15325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15326 <limits.h> exists even on freestanding compilers. */
15329 # include <limits.h>
15331 # include <assert.h>
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15343 /* The GNU C library defines this for functions which it implements
15344 to always fail with ENOSYS. Some functions are actually named
15345 something starting with __ and the normal name is an alias. */
15346 #if defined __stub_$ac_func || defined __stub___$ac_func
15353 return $ac_func ();
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_link") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest$ac_exeext &&
15375 $as_test_x conftest$ac_exeext; then
15376 eval "$as_ac_var=yes"
15378 echo "$as_me: failed program was
:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 eval "$as_ac_var=no
"
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15387 ac_res=`eval echo '${'$as_ac_var'}'`
15388 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15390 if test `eval echo '${'$as_ac_var'}'` = yes; then
15391 cat >>confdefs.h <<_ACEOF
15392 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15399 for ac_header in maillock.h
15401 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15403 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15404 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached
) $ECHO_C" >&6
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15412 # Is the header compilable?
15413 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15414 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15415 cat >conftest.$ac_ext <<_ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15422 #include <$ac_header>
15424 rm -f conftest.$ac_objext
15425 if { (ac_try="$ac_compile"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 ac_header_compiler=yes
15443 echo "$as_me: failed program was
:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 ac_header_compiler=no
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15451 echo "${ECHO_T}$ac_header_compiler" >&6; }
15453 # Is the header present?
15454 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15455 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 #include <$ac_header>
15464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15472 grep -v '^ *+' conftest.er1 >conftest.err
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15476 (exit $ac_status); } >/dev/null && {
15477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15480 ac_header_preproc=yes
15482 echo "$as_me: failed program was
:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15485 ac_header_preproc=no
15488 rm -f conftest.err conftest.$ac_ext
15489 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15490 echo "${ECHO_T}$ac_header_preproc" >&6; }
15492 # So? What about this header?
15493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15495 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15496 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15497 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15499 ac_header_preproc=yes
15502 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15503 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15504 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15505 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15506 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15507 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15508 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15509 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15510 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15512 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15513 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15517 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15518 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15520 echo $ECHO_N "(cached
) $ECHO_C" >&6
15522 eval "$as_ac_Header=\
$ac_header_preproc"
15524 ac_res=`eval echo '${'$as_ac_Header'}'`
15525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15526 echo "${ECHO_T}$ac_res" >&6; }
15529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15608 for ac_func in gethostname getdomainname dup2 \
15609 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15610 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15611 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15612 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15613 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15614 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15615 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15616 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15618 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15619 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15620 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15621 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached
) $ECHO_C" >&6
15624 cat >conftest.$ac_ext <<_ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15632 #define $ac_func innocuous_$ac_func
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15640 # include <limits.h>
15642 # include <assert.h>
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15654 /* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657 #if defined __stub_$ac_func || defined __stub___$ac_func
15664 return $ac_func ();
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_link") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest$ac_exeext &&
15686 $as_test_x conftest$ac_exeext; then
15687 eval "$as_ac_var=yes"
15689 echo "$as_me: failed program was
:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15692 eval "$as_ac_var=no
"
15695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15696 conftest$ac_exeext conftest.$ac_ext
15698 ac_res=`eval echo '${'$as_ac_var'}'`
15699 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 if test `eval echo '${'$as_ac_var'}'` = yes; then
15702 cat >>confdefs.h <<_ACEOF
15703 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15711 for ac_header in sys/un.h
15713 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15715 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15716 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15717 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15718 echo $ECHO_N "(cached
) $ECHO_C" >&6
15720 ac_res=`eval echo '${'$as_ac_Header'}'`
15721 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15722 echo "${ECHO_T}$ac_res" >&6; }
15724 # Is the header compilable?
15725 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15726 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15727 cat >conftest.$ac_ext <<_ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 $ac_includes_default
15734 #include <$ac_header>
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_compile") 2>conftest.er1
15745 grep -v '^ *+' conftest.er1 >conftest.err
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15749 (exit $ac_status); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest.$ac_objext; then
15753 ac_header_compiler=yes
15755 echo "$as_me: failed program was
:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15758 ac_header_compiler=no
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6; }
15765 # Is the header present?
15766 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15767 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15768 cat >conftest.$ac_ext <<_ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15774 #include <$ac_header>
15776 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15784 grep -v '^ *+' conftest.er1 >conftest.err
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15788 (exit $ac_status); } >/dev/null && {
15789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15790 test ! -s conftest.err
15792 ac_header_preproc=yes
15794 echo "$as_me: failed program was
:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 ac_header_preproc=no
15800 rm -f conftest.err conftest.$ac_ext
15801 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15802 echo "${ECHO_T}$ac_header_preproc" >&6; }
15804 # So? What about this header?
15805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15807 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15808 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15809 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15811 ac_header_preproc=yes
15814 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15815 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15816 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15817 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15818 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15819 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15820 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15821 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15822 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15824 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15825 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15829 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15830 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15831 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached
) $ECHO_C" >&6
15834 eval "$as_ac_Header=\
$ac_header_preproc"
15836 ac_res=`eval echo '${'$as_ac_Header'}'`
15837 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15838 echo "${ECHO_T}$ac_res" >&6; }
15841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15855 for ac_header in $ac_header_list
15857 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15860 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached
) $ECHO_C" >&6
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15870 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest.$ac_objext; then
15897 ac_header_compiler=yes
15899 echo "$as_me: failed program was
:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 ac_header_compiler=no
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15907 echo "${ECHO_T}$ac_header_compiler" >&6; }
15909 # Is the header present?
15910 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15911 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15912 cat >conftest.$ac_ext <<_ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <$ac_header>
15920 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15928 grep -v '^ *+' conftest.er1 >conftest.err
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15932 (exit $ac_status); } >/dev/null && {
15933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15936 ac_header_preproc=yes
15938 echo "$as_me: failed program was
:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_header_preproc=no
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15948 # So? What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15951 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15952 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15955 ac_header_preproc=yes
15958 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15959 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15960 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15961 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15962 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15963 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15964 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15965 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15968 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15969 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15973 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15974 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15976 echo $ECHO_N "(cached
) $ECHO_C" >&6
15978 eval "$as_ac_Header=\
$ac_header_preproc"
15980 ac_res=`eval echo '${'$as_ac_Header'}'`
15981 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15982 echo "${ECHO_T}$ac_res" >&6; }
15985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16002 for ac_func in $ac_func_list
16004 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16005 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16006 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16007 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16008 echo $ECHO_N "(cached
) $ECHO_C" >&6
16010 cat >conftest.$ac_ext <<_ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16026 # include <limits.h>
16028 # include <assert.h>
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16040 /* The GNU C library defines this for functions which it implements
16041 to always fail with ENOSYS. Some functions are actually named
16042 something starting with __ and the normal name is an alias. */
16043 #if defined __stub_$ac_func || defined __stub___$ac_func
16050 return $ac_func ();
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16064 grep -v '^ *+' conftest.er1 >conftest.err
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest$ac_exeext &&
16072 $as_test_x conftest$ac_exeext; then
16073 eval "$as_ac_var=yes"
16075 echo "$as_me: failed program was
:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16078 eval "$as_ac_var=no
"
16081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16082 conftest$ac_exeext conftest.$ac_ext
16084 ac_res=`eval echo '${'$as_ac_var'}'`
16085 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16086 echo "${ECHO_T}$ac_res" >&6; }
16087 if test `eval echo '${'$as_ac_var'}'` = yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16111 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16112 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16113 if test "${ac_cv_func_working_mktime+set}" = set; then
16114 echo $ECHO_N "(cached
) $ECHO_C" >&6
16116 if test "$cross_compiling" = yes; then
16117 ac_cv_func_working_mktime=no
16119 cat >conftest.$ac_ext <<_ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 /* Test program from Paul Eggert and Tony Leneis. */
16126 #ifdef TIME_WITH_SYS_TIME
16127 # include <sys/time.h>
16130 # ifdef HAVE_SYS_TIME_H
16131 # include <sys/time.h>
16137 #include <stdlib.h>
16139 #ifdef HAVE_UNISTD_H
16140 # include <unistd.h>
16144 # define alarm(X) /* empty */
16147 /* Work around redefinition to rpl_putenv by other config tests. */
16150 static time_t time_t_max;
16151 static time_t time_t_min;
16153 /* Values we'll use to set the TZ environment variable. */
16154 static char *tz_strings[] = {
16155 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16156 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16158 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16160 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16161 Based on a problem report from Andreas Jaeger. */
16163 spring_forward_gap ()
16165 /* glibc (up to about 1998-10-07) failed this test. */
16168 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16169 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16170 on systems that don't support the Olson extension, or don't have the
16171 full zoneinfo tables installed. */
16172 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16181 return mktime (&tm) != (time_t) -1;
16189 return ! (lt = localtime (&now)) || mktime (lt) == now;
16196 return (mktime_test1 (now)
16197 && mktime_test1 ((time_t) (time_t_max - now))
16198 && mktime_test1 ((time_t) (time_t_min + now)));
16204 /* Based on code from Ariel Faigon. */
16214 return tm.tm_mon == 2 && tm.tm_mday == 31;
16223 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16224 now = mktime (&tm);
16225 if (now != (time_t) -1)
16227 struct tm *lt = localtime (&now);
16229 && lt->tm_year == tm.tm_year
16230 && lt->tm_mon == tm.tm_mon
16231 && lt->tm_mday == tm.tm_mday
16232 && lt->tm_hour == tm.tm_hour
16233 && lt->tm_min == tm.tm_min
16234 && lt->tm_sec == tm.tm_sec
16235 && lt->tm_yday == tm.tm_yday
16236 && lt->tm_wday == tm.tm_wday
16237 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16238 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16247 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16248 ignoring leap seconds. */
16249 unsigned long int answer = 2527315200UL;
16253 tm.tm_year = 2050 - 1900;
16256 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16259 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16260 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16261 on systems that don't support the Olson extension, or don't have the
16262 full zoneinfo tables installed. */
16263 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16267 /* Check that the result is either a failure, or close enough
16268 to the correct answer that we can assume the discrepancy is
16269 due to leap seconds. */
16270 return (t == (time_t) -1
16271 || (0 < t && answer - 120 <= t && t <= answer + 120));
16280 /* This test makes some buggy mktime implementations loop.
16281 Give up after 60 seconds; a mktime slower than that
16282 isn't worth using anyway. */
16285 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16288 if ((time_t) -1 < 0)
16289 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16291 delta = time_t_max / 997; /* a suitable prime number */
16292 for (i = 0; i < N_STRINGS; i++)
16295 putenv (tz_strings[i]);
16297 for (t = 0; t <= time_t_max - delta; t += delta)
16298 if (! mktime_test (t))
16300 if (! (mktime_test ((time_t) 1)
16301 && mktime_test ((time_t) (60 * 60))
16302 && mktime_test ((time_t) (60 * 60 * 24))))
16305 for (j = 1; 0 < j; j *= 2)
16306 if (! bigtime_test (j))
16308 if (! bigtime_test (j - 1))
16311 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16314 rm -f conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_link") 2>&5
16323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_func_working_mktime=yes
16336 echo "$as_me: program exited with status
$ac_status" >&5
16337 echo "$as_me: failed program was
:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ( exit $ac_status )
16341 ac_cv_func_working_mktime=no
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16348 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16349 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16350 if test $ac_cv_func_working_mktime = no; then
16351 case " $LIBOBJS " in
16352 *" mktime.
$ac_objext "* ) ;;
16353 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16359 if test "$ac_cv_func_working_mktime" = no; then
16361 cat >>confdefs.h <<\_ACEOF
16362 #define BROKEN_MKTIME 1
16367 ac_have_func=no # yes means we've found a way to get the load average.
16369 # Make sure getloadavg.c is where it belongs, at configure-time.
16370 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16371 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16372 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16373 { (exit 1); exit 1; }; }
16377 # Check for getloadavg, but be sure not to touch the cache variable.
16378 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16379 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16380 if test "${ac_cv_func_getloadavg+set}" = set; then
16381 echo $ECHO_N "(cached
) $ECHO_C" >&6
16383 cat >conftest.$ac_ext <<_ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define getloadavg innocuous_getloadavg
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char getloadavg (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16399 # include <limits.h>
16401 # include <assert.h>
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16412 char getloadavg ();
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_getloadavg || defined __stub___getloadavg
16423 return getloadavg ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 ac_cv_func_getloadavg=yes
16448 echo "$as_me: failed program was
:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_func_getloadavg=no
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16458 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16459 if test $ac_cv_func_getloadavg = yes; then
16464 ) && ac_have_func=yes
16466 # On HPUX9, an unprivileged user can get load averages through this function.
16468 for ac_func in pstat_getdynamic
16470 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16471 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16472 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16473 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16474 echo $ECHO_N "(cached
) $ECHO_C" >&6
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16484 #define $ac_func innocuous_$ac_func
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func (); below.
16488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16489 <limits.h> exists even on freestanding compilers. */
16492 # include <limits.h>
16494 # include <assert.h>
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined __stub_$ac_func || defined __stub___$ac_func
16516 return $ac_func ();
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_link") 2>conftest.er1
16530 grep -v '^ *+' conftest.er1 >conftest.err
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest$ac_exeext &&
16538 $as_test_x conftest$ac_exeext; then
16539 eval "$as_ac_var=yes"
16541 echo "$as_me: failed program was
:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16544 eval "$as_ac_var=no
"
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548 conftest$ac_exeext conftest.$ac_ext
16550 ac_res=`eval echo '${'$as_ac_var'}'`
16551 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16552 echo "${ECHO_T}$ac_res" >&6; }
16553 if test `eval echo '${'$as_ac_var'}'` = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16562 # Solaris has libkstat which does not require root.
16564 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16565 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16566 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16567 echo $ECHO_N "(cached
) $ECHO_C" >&6
16569 ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lkstat $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16584 char kstat_open ();
16588 return kstat_open ();
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_link") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1 >conftest.err
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest$ac_exeext &&
16610 $as_test_x conftest$ac_exeext; then
16611 ac_cv_lib_kstat_kstat_open=yes
16613 echo "$as_me: failed program was
:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16616 ac_cv_lib_kstat_kstat_open=no
16619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16620 conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16623 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16624 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16625 if test $ac_cv_lib_kstat_kstat_open = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_LIBKSTAT 1
16630 LIBS="-lkstat $LIBS"
16634 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16636 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16637 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16638 # to get the right answer into the cache.
16639 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16640 if test $ac_have_func = no; then
16641 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16642 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16643 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16644 echo $ECHO_N "(cached
) $ECHO_C" >&6
16646 ac_check_lib_save_LIBS=$LIBS
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16665 return elf_begin ();
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
16679 grep -v '^ *+' conftest.er1 >conftest.err
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16683 (exit $ac_status); } && {
16684 test -z "$ac_c_werror_flag" ||
16685 test ! -s conftest.err
16686 } && test -s conftest$ac_exeext &&
16687 $as_test_x conftest$ac_exeext; then
16688 ac_cv_lib_elf_elf_begin=yes
16690 echo "$as_me: failed program was
:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16693 ac_cv_lib_elf_elf_begin=no
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16697 conftest$ac_exeext conftest.$ac_ext
16698 LIBS=$ac_check_lib_save_LIBS
16700 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16701 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16702 if test $ac_cv_lib_elf_elf_begin = yes; then
16707 if test $ac_have_func = no; then
16708 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16709 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16710 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16711 echo $ECHO_N "(cached
) $ECHO_C" >&6
16713 ac_check_lib_save_LIBS=$LIBS
16715 cat >conftest.$ac_ext <<_ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16732 return kvm_open ();
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16746 grep -v '^ *+' conftest.er1 >conftest.err
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest$ac_exeext &&
16754 $as_test_x conftest$ac_exeext; then
16755 ac_cv_lib_kvm_kvm_open=yes
16757 echo "$as_me: failed program was
:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_cv_lib_kvm_kvm_open=no
16763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16764 conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16767 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16768 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16769 if test $ac_cv_lib_kvm_kvm_open = yes; then
16773 # Check for the 4.4BSD definition of getloadavg.
16774 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16775 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16776 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16777 echo $ECHO_N "(cached
) $ECHO_C" >&6
16779 ac_check_lib_save_LIBS=$LIBS
16780 LIBS="-lutil $LIBS"
16781 cat >conftest.$ac_ext <<_ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16794 char getloadavg ();
16798 return getloadavg ();
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16812 grep -v '^ *+' conftest.er1 >conftest.err
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext &&
16820 $as_test_x conftest$ac_exeext; then
16821 ac_cv_lib_util_getloadavg=yes
16823 echo "$as_me: failed program was
:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16826 ac_cv_lib_util_getloadavg=no
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16831 LIBS=$ac_check_lib_save_LIBS
16833 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16834 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16835 if test $ac_cv_lib_util_getloadavg = yes; then
16836 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16841 if test $ac_have_func = no; then
16842 # There is a commonly available library for RS/6000 AIX.
16843 # Since it is not a standard part of AIX, it might be installed locally.
16844 ac_getloadavg_LIBS=$LIBS
16845 LIBS="-L/usr
/local
/lib
$LIBS"
16846 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16847 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16848 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16849 echo $ECHO_N "(cached
) $ECHO_C" >&6
16851 ac_check_lib_save_LIBS=$LIBS
16852 LIBS="-lgetloadavg $LIBS"
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16866 char getloadavg ();
16870 return getloadavg ();
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (ac_try="$ac_link"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16888 (exit $ac_status); } && {
16889 test -z "$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 } && test -s conftest$ac_exeext &&
16892 $as_test_x conftest$ac_exeext; then
16893 ac_cv_lib_getloadavg_getloadavg=yes
16895 echo "$as_me: failed program was
:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_lib_getloadavg_getloadavg=no
16901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16905 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16906 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16907 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16908 LIBS="-lgetloadavg $LIBS"
16910 LIBS=$ac_getloadavg_LIBS
16915 # Make sure it is really in the library, if we think we found it,
16916 # otherwise set up the replacement function.
16918 for ac_func in getloadavg
16920 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16922 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached
) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16942 # include <limits.h>
16944 # include <assert.h>
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16966 return $ac_func ();
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16980 grep -v '^ *+' conftest.er1 >conftest.err
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16984 (exit $ac_status); } && {
16985 test -z "$ac_c_werror_flag" ||
16986 test ! -s conftest.err
16987 } && test -s conftest$ac_exeext &&
16988 $as_test_x conftest$ac_exeext; then
16989 eval "$as_ac_var=yes"
16991 echo "$as_me: failed program was
:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16994 eval "$as_ac_var=no
"
16997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16998 conftest$ac_exeext conftest.$ac_ext
17000 ac_res=`eval echo '${'$as_ac_var'}'`
17001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17002 echo "${ECHO_T}$ac_res" >&6; }
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004 cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17009 case " $LIBOBJS " in
17010 *" getloadavg.
$ac_objext "* ) ;;
17011 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17016 cat >>confdefs.h <<\_ACEOF
17017 #define C_GETLOADAVG 1
17020 # Figure out what our getloadavg.c needs.
17022 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17023 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17024 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17025 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17026 echo $ECHO_N "(cached
) $ECHO_C" >&6
17028 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17029 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17031 # Is the header compilable?
17032 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17033 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17034 cat >conftest.$ac_ext <<_ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 $ac_includes_default
17041 #include <sys/dg_sys_info.h>
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_compile") 2>conftest.er1
17052 grep -v '^ *+' conftest.er1 >conftest.err
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest.$ac_objext; then
17060 ac_header_compiler=yes
17062 echo "$as_me: failed program was
:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17065 ac_header_compiler=no
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17070 echo "${ECHO_T}$ac_header_compiler" >&6; }
17072 # Is the header present?
17073 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17074 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 #include <sys/dg_sys_info.h>
17083 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17095 (exit $ac_status); } >/dev/null && {
17096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17099 ac_header_preproc=yes
17101 echo "$as_me: failed program was
:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_header_preproc=no
17107 rm -f conftest.err conftest.$ac_ext
17108 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17109 echo "${ECHO_T}$ac_header_preproc" >&6; }
17111 # So? What about this header?
17112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17114 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17115 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17116 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17117 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17118 ac_header_preproc=yes
17121 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17122 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17123 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17124 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17125 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17126 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17127 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17128 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17129 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17130 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17131 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17132 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17136 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17137 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17138 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17139 echo $ECHO_N "(cached
) $ECHO_C" >&6
17141 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17143 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17144 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17147 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17150 cat >>confdefs.h <<\_ACEOF
17155 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17156 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17157 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17158 echo $ECHO_N "(cached
) $ECHO_C" >&6
17160 ac_check_lib_save_LIBS=$LIBS
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17175 char dg_sys_info ();
17179 return dg_sys_info ();
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17193 grep -v '^ *+' conftest.er1 >conftest.err
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17197 (exit $ac_status); } && {
17198 test -z "$ac_c_werror_flag" ||
17199 test ! -s conftest.err
17200 } && test -s conftest$ac_exeext &&
17201 $as_test_x conftest$ac_exeext; then
17202 ac_cv_lib_dgc_dg_sys_info=yes
17204 echo "$as_me: failed program was
:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ac_cv_lib_dgc_dg_sys_info=no
17210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17214 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17215 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17216 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define HAVE_LIBDGC 1
17229 if test "${ac_cv_header_locale_h+set}" = set; then
17230 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17231 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17232 if test "${ac_cv_header_locale_h+set}" = set; then
17233 echo $ECHO_N "(cached
) $ECHO_C" >&6
17235 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17236 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17238 # Is the header compilable?
17239 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17240 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 $ac_includes_default
17248 #include <locale.h>
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_compile") 2>conftest.er1
17259 grep -v '^ *+' conftest.er1 >conftest.err
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest.$ac_objext; then
17267 ac_header_compiler=yes
17269 echo "$as_me: failed program was
:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_header_compiler=no
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6; }
17279 # Is the header present?
17280 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17281 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <locale.h>
17290 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17298 grep -v '^ *+' conftest.er1 >conftest.err
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17302 (exit $ac_status); } >/dev/null && {
17303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17306 ac_header_preproc=yes
17308 echo "$as_me: failed program was
:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17311 ac_header_preproc=no
17314 rm -f conftest.err conftest.$ac_ext
17315 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17316 echo "${ECHO_T}$ac_header_preproc" >&6; }
17318 # So? What about this header?
17319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17321 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17322 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17323 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17324 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17325 ac_header_preproc=yes
17328 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17329 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17330 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17331 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17332 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17333 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17334 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17335 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17336 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17337 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17338 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17339 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17343 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17344 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17345 if test "${ac_cv_header_locale_h+set}" = set; then
17346 echo $ECHO_N "(cached
) $ECHO_C" >&6
17348 ac_cv_header_locale_h=$ac_header_preproc
17350 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17351 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17357 for ac_func in setlocale
17359 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17360 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17361 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17362 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17363 echo $ECHO_N "(cached
) $ECHO_C" >&6
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define $ac_func innocuous_$ac_func
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char $ac_func (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17381 # include <limits.h>
17383 # include <assert.h>
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17395 /* The GNU C library defines this for functions which it implements
17396 to always fail with ENOSYS. Some functions are actually named
17397 something starting with __ and the normal name is an alias. */
17398 #if defined __stub_$ac_func || defined __stub___$ac_func
17405 return $ac_func ();
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest$ac_exeext &&
17427 $as_test_x conftest$ac_exeext; then
17428 eval "$as_ac_var=yes"
17430 echo "$as_me: failed program was
:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17433 eval "$as_ac_var=no
"
17436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17437 conftest$ac_exeext conftest.$ac_ext
17439 ac_res=`eval echo '${'$as_ac_var'}'`
17440 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17441 echo "${ECHO_T}$ac_res" >&6; }
17442 if test `eval echo '${'$as_ac_var'}'` = yes; then
17443 cat >>confdefs.h <<_ACEOF
17444 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17451 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17452 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17453 # Irix 4.0.5F has the header but not the library.
17454 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17463 if test $ac_have_func = no; then
17464 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17465 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17466 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17467 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17468 echo $ECHO_N "(cached
) $ECHO_C" >&6
17470 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17473 # Is the header compilable?
17474 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17475 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17476 cat >conftest.$ac_ext <<_ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 $ac_includes_default
17483 #include <inq_stats/cpustats.h>
17485 rm -f conftest.$ac_objext
17486 if { (ac_try="$ac_compile"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_compile") 2>conftest.er1
17494 grep -v '^ *+' conftest.er1 >conftest.err
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest.$ac_objext; then
17502 ac_header_compiler=yes
17504 echo "$as_me: failed program was
:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_header_compiler=no
17510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17512 echo "${ECHO_T}$ac_header_compiler" >&6; }
17514 # Is the header present?
17515 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17516 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17517 cat >conftest.$ac_ext <<_ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <inq_stats/cpustats.h>
17525 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17533 grep -v '^ *+' conftest.er1 >conftest.err
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17537 (exit $ac_status); } >/dev/null && {
17538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17541 ac_header_preproc=yes
17543 echo "$as_me: failed program was
:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ac_header_preproc=no
17549 rm -f conftest.err conftest.$ac_ext
17550 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17551 echo "${ECHO_T}$ac_header_preproc" >&6; }
17553 # So? What about this header?
17554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17556 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17557 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17558 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17559 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17560 ac_header_preproc=yes
17563 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17564 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17565 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17566 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17567 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17568 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17569 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17570 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17571 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17572 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17573 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17574 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17578 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17579 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17580 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17581 echo $ECHO_N "(cached
) $ECHO_C" >&6
17583 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17585 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17586 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17589 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17592 cat >>confdefs.h <<\_ACEOF
17597 cat >>confdefs.h <<\_ACEOF
17606 if test $ac_have_func = no; then
17607 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17608 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17609 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17610 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17611 echo $ECHO_N "(cached
) $ECHO_C" >&6
17613 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17614 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17616 # Is the header compilable?
17617 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17618 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17619 cat >conftest.$ac_ext <<_ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 $ac_includes_default
17626 #include <sys/cpustats.h>
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_compile") 2>conftest.er1
17637 grep -v '^ *+' conftest.er1 >conftest.err
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17641 (exit $ac_status); } && {
17642 test -z "$ac_c_werror_flag" ||
17643 test ! -s conftest.err
17644 } && test -s conftest.$ac_objext; then
17645 ac_header_compiler=yes
17647 echo "$as_me: failed program was
:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17650 ac_header_compiler=no
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17655 echo "${ECHO_T}$ac_header_compiler" >&6; }
17657 # Is the header present?
17658 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17659 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 #include <sys/cpustats.h>
17668 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17680 (exit $ac_status); } >/dev/null && {
17681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17684 ac_header_preproc=yes
17686 echo "$as_me: failed program was
:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17689 ac_header_preproc=no
17692 rm -f conftest.err conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17694 echo "${ECHO_T}$ac_header_preproc" >&6; }
17696 # So? What about this header?
17697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17699 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17700 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17701 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17702 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17703 ac_header_preproc=yes
17706 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17707 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17708 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17709 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17710 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17711 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17712 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17713 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17714 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17715 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17716 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17717 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17721 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17722 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17723 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17724 echo $ECHO_N "(cached
) $ECHO_C" >&6
17726 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17728 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17729 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17732 if test $ac_cv_header_sys_cpustats_h = yes; then
17733 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17742 if test $ac_have_func = no; then
17744 for ac_header in mach/mach.h
17746 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17747 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17748 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17749 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17750 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17751 echo $ECHO_N "(cached
) $ECHO_C" >&6
17753 ac_res=`eval echo '${'$as_ac_Header'}'`
17754 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17755 echo "${ECHO_T}$ac_res" >&6; }
17757 # Is the header compilable?
17758 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17759 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 $ac_includes_default
17767 #include <$ac_header>
17769 rm -f conftest.$ac_objext
17770 if { (ac_try="$ac_compile"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_compile") 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest.$ac_objext; then
17786 ac_header_compiler=yes
17788 echo "$as_me: failed program was
:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17791 ac_header_compiler=no
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17796 echo "${ECHO_T}$ac_header_compiler" >&6; }
17798 # Is the header present?
17799 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17800 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17801 cat >conftest.$ac_ext <<_ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <$ac_header>
17809 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17814 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17817 grep -v '^ *+' conftest.er1 >conftest.err
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17821 (exit $ac_status); } >/dev/null && {
17822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17825 ac_header_preproc=yes
17827 echo "$as_me: failed program was
:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17830 ac_header_preproc=no
17833 rm -f conftest.err conftest.$ac_ext
17834 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17835 echo "${ECHO_T}$ac_header_preproc" >&6; }
17837 # So? What about this header?
17838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17840 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17841 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17842 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17844 ac_header_preproc=yes
17847 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17848 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17849 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17850 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17851 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17852 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17853 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17854 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17855 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17857 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17858 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17862 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17863 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17865 echo $ECHO_N "(cached
) $ECHO_C" >&6
17867 eval "$as_ac_Header=\
$ac_header_preproc"
17869 ac_res=`eval echo '${'$as_ac_Header'}'`
17870 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17871 echo "${ECHO_T}$ac_res" >&6; }
17874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17875 cat >>confdefs.h <<_ACEOF
17876 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17886 for ac_header in nlist.h
17888 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17893 echo $ECHO_N "(cached
) $ECHO_C" >&6
17895 ac_res=`eval echo '${'$as_ac_Header'}'`
17896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17897 echo "${ECHO_T}$ac_res" >&6; }
17899 # Is the header compilable?
17900 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17901 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 #include <$ac_header>
17911 rm -f conftest.$ac_objext
17912 if { (ac_try="$ac_compile"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_compile") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest.$ac_objext; then
17928 ac_header_compiler=yes
17930 echo "$as_me: failed program was
:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17933 ac_header_compiler=no
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17938 echo "${ECHO_T}$ac_header_compiler" >&6; }
17940 # Is the header present?
17941 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17942 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17943 cat >conftest.$ac_ext <<_ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 #include <$ac_header>
17951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } >/dev/null && {
17964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17967 ac_header_preproc=yes
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_header_preproc=no
17975 rm -f conftest.err conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17977 echo "${ECHO_T}$ac_header_preproc" >&6; }
17979 # So? What about this header?
17980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17982 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17983 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17986 ac_header_preproc=yes
17989 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17990 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17991 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17992 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17993 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17994 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17995 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17996 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17997 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17999 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18000 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18007 echo $ECHO_N "(cached
) $ECHO_C" >&6
18009 eval "$as_ac_Header=\
$ac_header_preproc"
18011 ac_res=`eval echo '${'$as_ac_Header'}'`
18012 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18013 echo "${ECHO_T}$ac_res" >&6; }
18016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18020 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18021 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18022 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18023 echo $ECHO_N "(cached
) $ECHO_C" >&6
18025 cat >conftest.$ac_ext <<_ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18036 static struct nlist ac_aggr;
18037 if (ac_aggr.n_un.n_name)
18043 rm -f conftest.$ac_objext
18044 if { (ac_try="$ac_compile"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_compile") 2>conftest.er1
18052 grep -v '^ *+' conftest.er1 >conftest.err
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18056 (exit $ac_status); } && {
18057 test -z "$ac_c_werror_flag" ||
18058 test ! -s conftest.err
18059 } && test -s conftest.$ac_objext; then
18060 ac_cv_member_struct_nlist_n_un_n_name=yes
18062 echo "$as_me: failed program was
:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18076 static struct nlist ac_aggr;
18077 if (sizeof ac_aggr.n_un.n_name)
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_cv_member_struct_nlist_n_un_n_name=yes
18102 echo "$as_me: failed program was
:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_member_struct_nlist_n_un_n_name=no
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18113 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18114 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18115 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18122 cat >>confdefs.h <<\_ACEOF
18123 #define NLIST_NAME_UNION 1
18137 # Some definitions of getloadavg require that the program be installed setgid.
18138 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18139 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18140 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18141 echo $ECHO_N "(cached
) $ECHO_C" >&6
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18150 #ifdef LDAV_PRIVILEGED
18151 Yowza Am I SETGID yet
18154 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18155 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18156 ac_cv_func_getloadavg_setgid=yes
18158 ac_cv_func_getloadavg_setgid=no
18163 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18164 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18165 if test $ac_cv_func_getloadavg_setgid = yes; then
18168 cat >>confdefs.h <<\_ACEOF
18169 #define GETLOADAVG_PRIVILEGED 1
18176 if test $ac_cv_func_getloadavg_setgid = yes; then
18177 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18178 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18179 if test "${ac_cv_group_kmem+set}" = set; then
18180 echo $ECHO_N "(cached
) $ECHO_C" >&6
18182 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18183 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18184 # If we got an error (system does not support symlinks), try without -L.
18185 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18186 ac_cv_group_kmem=`echo $ac_ls_output \
18187 | sed -ne 's/[ ][ ]*/ /g;
18188 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18192 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18193 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18194 KMEM_GROUP=$ac_cv_group_kmem
18196 if test "x
$ac_save_LIBS" = x; then
18197 GETLOADAVG_LIBS=$LIBS
18199 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18205 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18206 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18207 if test "${ac_cv_sys_largefile_source+set}" = set; then
18208 echo $ECHO_N "(cached
) $ECHO_C" >&6
18211 cat >conftest.$ac_ext <<_ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18221 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18239 (exit $ac_status); } && {
18240 test -z "$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 } && test -s conftest$ac_exeext &&
18243 $as_test_x conftest$ac_exeext; then
18244 ac_cv_sys_largefile_source=no; break
18246 echo "$as_me: failed program was
:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253 conftest$ac_exeext conftest.$ac_ext
18254 cat >conftest.$ac_ext <<_ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18260 #define _LARGEFILE_SOURCE 1
18265 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18276 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18279 grep -v '^ *+' conftest.er1 >conftest.err
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest$ac_exeext &&
18287 $as_test_x conftest$ac_exeext; then
18288 ac_cv_sys_largefile_source=1; break
18290 echo "$as_me: failed program was
:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18297 conftest$ac_exeext conftest.$ac_ext
18298 ac_cv_sys_largefile_source=unknown
18302 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18303 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18304 case $ac_cv_sys_largefile_source in #(
18307 cat >>confdefs.h <<_ACEOF
18308 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18314 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18315 # in glibc 2.1.3, but that breaks too many other things.
18316 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18317 if test $ac_cv_sys_largefile_source != unknown; then
18319 cat >>confdefs.h <<\_ACEOF
18320 #define HAVE_FSEEKO 1
18326 # Configure getopt.
18327 # getopt.m4 serial 10
18329 # The getopt module assume you want GNU getopt, with getopt_long etc,
18330 # rather than vanilla POSIX getopt. This means your your code should
18331 # always include <getopt.h> for the getopt prototypes.
18343 # Prerequisites of lib/getopt*.
18350 for ac_header in getopt.h
18352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18357 echo $ECHO_N "(cached
) $ECHO_C" >&6
18359 ac_res=`eval echo '${'$as_ac_Header'}'`
18360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18361 echo "${ECHO_T}$ac_res" >&6; }
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <$ac_header>
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1 >conftest.err
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18394 echo "$as_me: failed program was
:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <$ac_header>
18415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18431 ac_header_preproc=yes
18433 echo "$as_me: failed program was
:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18450 ac_header_preproc=yes
18453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18468 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18469 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached
) $ECHO_C" >&6
18473 eval "$as_ac_Header=\
$ac_header_preproc"
18475 ac_res=`eval echo '${'$as_ac_Header'}'`
18476 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18477 echo "${ECHO_T}$ac_res" >&6; }
18480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18491 if test -z "$GETOPT_H"; then
18493 for ac_func in getopt_long_only
18495 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18496 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18497 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18498 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached
) $ECHO_C" >&6
18501 cat >conftest.$ac_ext <<_ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18509 #define $ac_func innocuous_$ac_func
18511 /* System header to define __stub macros and hopefully few prototypes,
18512 which can conflict with char $ac_func (); below.
18513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18514 <limits.h> exists even on freestanding compilers. */
18517 # include <limits.h>
18519 # include <assert.h>
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18531 /* The GNU C library defines this for functions which it implements
18532 to always fail with ENOSYS. Some functions are actually named
18533 something starting with __ and the normal name is an alias. */
18534 #if defined __stub_$ac_func || defined __stub___$ac_func
18541 return $ac_func ();
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_link") 2>conftest.er1
18555 grep -v '^ *+' conftest.er1 >conftest.err
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest$ac_exeext &&
18563 $as_test_x conftest$ac_exeext; then
18564 eval "$as_ac_var=yes"
18566 echo "$as_me: failed program was
:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 eval "$as_ac_var=no
"
18572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18573 conftest$ac_exeext conftest.$ac_ext
18575 ac_res=`eval echo '${'$as_ac_var'}'`
18576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18577 echo "${ECHO_T}$ac_res" >&6; }
18578 if test `eval echo '${'$as_ac_var'}'` = yes; then
18579 cat >>confdefs.h <<_ACEOF
18580 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18590 if test -z "$GETOPT_H"; then
18591 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18592 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18593 if test "${ac_cv_have_decl_optreset+set}" = set; then
18594 echo $ECHO_N "(cached
) $ECHO_C" >&6
18596 cat >conftest.$ac_ext <<_ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 #include <getopt.h>
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_compile") 2>conftest.er1
18624 grep -v '^ *+' conftest.er1 >conftest.err
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest.$ac_objext; then
18632 ac_cv_have_decl_optreset=yes
18634 echo "$as_me: failed program was
:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_have_decl_optreset=no
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18642 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18643 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18644 if test $ac_cv_have_decl_optreset = yes; then
18650 if test -z "$GETOPT_H"; then
18651 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18652 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18653 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18654 echo $ECHO_N "(cached
) $ECHO_C" >&6
18656 if test "$cross_compiling" = yes; then
18657 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18658 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18659 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18660 echo $ECHO_N "(cached
) $ECHO_C" >&6
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 #include <getopt.h>
18673 #ifndef getopt_clip
18674 (void) getopt_clip;
18681 rm -f conftest.$ac_objext
18682 if { (ac_try="$ac_compile"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_compile") 2>conftest.er1
18690 grep -v '^ *+' conftest.er1 >conftest.err
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18694 (exit $ac_status); } && {
18695 test -z "$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 } && test -s conftest.$ac_objext; then
18698 ac_cv_have_decl_getopt_clip=yes
18700 echo "$as_me: failed program was
:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 ac_cv_have_decl_getopt_clip=no
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18709 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18710 if test $ac_cv_have_decl_getopt_clip = yes; then
18711 gl_cv_func_gnu_getopt=no
18713 gl_cv_func_gnu_getopt=yes
18717 cat >conftest.$ac_ext <<_ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <getopt.h>
18729 myargv[0] = "conftest
";
18732 return getopt (2, myargv, "+a
") != '?';
18738 rm -f conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>&5
18747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 gl_cv_func_gnu_getopt=yes
18760 echo "$as_me: program exited with status
$ac_status" >&5
18761 echo "$as_me: failed program was
:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ( exit $ac_status )
18765 gl_cv_func_gnu_getopt=no
18767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18772 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18773 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18774 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18781 if test -n "$GETOPT_H"; then
18786 cat >>confdefs.h <<\_ACEOF
18787 #define __GETOPT_PREFIX rpl_
18793 GETOPTOBJS='getopt.o getopt1.o'
18800 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18801 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18802 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18803 echo $ECHO_N "(cached
) $ECHO_C" >&6
18805 # Use it with a single arg.
18806 cat >conftest.$ac_ext <<_ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 $ac_includes_default
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_compile") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest.$ac_objext; then
18838 ac_cv_func_getpgrp_void=no
18840 echo "$as_me: failed program was
:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18843 ac_cv_func_getpgrp_void=yes
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18849 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18850 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18851 if test $ac_cv_func_getpgrp_void = yes; then
18853 cat >>confdefs.h <<\_ACEOF
18854 #define GETPGRP_VOID 1
18861 for ac_func in strftime
18863 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18864 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18865 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18866 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18867 echo $ECHO_N "(cached
) $ECHO_C" >&6
18869 cat >conftest.$ac_ext <<_ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18885 # include <limits.h>
18887 # include <assert.h>
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18899 /* The GNU C library defines this for functions which it implements
18900 to always fail with ENOSYS. Some functions are actually named
18901 something starting with __ and the normal name is an alias. */
18902 #if defined __stub_$ac_func || defined __stub___$ac_func
18909 return $ac_func ();
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18923 grep -v '^ *+' conftest.er1 >conftest.err
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext &&
18931 $as_test_x conftest$ac_exeext; then
18932 eval "$as_ac_var=yes"
18934 echo "$as_me: failed program was
:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 eval "$as_ac_var=no
"
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18952 # strftime is in -lintl on SCO UNIX.
18953 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18954 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18955 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18956 echo $ECHO_N "(cached
) $ECHO_C" >&6
18958 ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lintl $LIBS"
18960 cat >conftest.$ac_ext <<_ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18977 return strftime ();
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest$ac_exeext &&
18999 $as_test_x conftest$ac_exeext; then
19000 ac_cv_lib_intl_strftime=yes
19002 echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19005 ac_cv_lib_intl_strftime=no
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19012 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19013 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19014 if test $ac_cv_lib_intl_strftime = yes; then
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE_STRFTIME 1
19019 LIBS="-lintl $LIBS"
19028 for ac_func in grantpt
19030 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19031 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19032 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19033 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19034 echo $ECHO_N "(cached
) $ECHO_C" >&6
19036 cat >conftest.$ac_ext <<_ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044 #define $ac_func innocuous_$ac_func
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func (); below.
19048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049 <limits.h> exists even on freestanding compilers. */
19052 # include <limits.h>
19054 # include <assert.h>
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined __stub_$ac_func || defined __stub___$ac_func
19076 return $ac_func ();
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19090 grep -v '^ *+' conftest.er1 >conftest.err
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 eval "$as_ac_var=yes"
19101 echo "$as_me: failed program was
:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19104 eval "$as_ac_var=no
"
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19110 ac_res=`eval echo '${'$as_ac_var'}'`
19111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19113 if test `eval echo '${'$as_ac_var'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19122 # PTY-related GNU extensions.
19124 for ac_func in getpt
19126 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19127 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19128 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19129 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19130 echo $ECHO_N "(cached
) $ECHO_C" >&6
19132 cat >conftest.$ac_ext <<_ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define $ac_func innocuous_$ac_func
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char $ac_func (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19148 # include <limits.h>
19150 # include <assert.h>
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19162 /* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165 #if defined __stub_$ac_func || defined __stub___$ac_func
19172 return $ac_func ();
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19186 grep -v '^ *+' conftest.er1 >conftest.err
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext &&
19194 $as_test_x conftest$ac_exeext; then
19195 eval "$as_ac_var=yes"
19197 echo "$as_me: failed program was
:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19200 eval "$as_ac_var=no
"
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19206 ac_res=`eval echo '${'$as_ac_var'}'`
19207 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19208 echo "${ECHO_T}$ac_res" >&6; }
19209 if test `eval echo '${'$as_ac_var'}'` = yes; then
19210 cat >>confdefs.h <<_ACEOF
19211 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19218 # Check this now, so that we will NOT find the above functions in ncurses.
19219 # That is because we have not set up to link ncurses in lib-src.
19220 # It's better to believe a function is not available
19221 # than to expect to find it in ncurses.
19223 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19224 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19225 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19226 echo $ECHO_N "(cached
) $ECHO_C" >&6
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lncurses $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 ac_cv_lib_ncurses_tparm=yes
19272 echo "$as_me: failed program was
:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_lib_ncurses_tparm=no
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19283 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19284 if test $ac_cv_lib_ncurses_tparm = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_LIBNCURSES 1
19289 LIBS="-lncurses $LIBS"
19294 # Do we need the Hesiod library to provide the support routines?
19295 if test "$with_hesiod" = yes ; then
19296 # Don't set $LIBS here -- see comments above.
19298 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19299 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19300 if test "${ac_cv_func_res_send+set}" = set; then
19301 echo $ECHO_N "(cached
) $ECHO_C" >&6
19303 cat >conftest.$ac_ext <<_ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19311 #define res_send innocuous_res_send
19313 /* System header to define __stub macros and hopefully few prototypes,
19314 which can conflict with char res_send (); below.
19315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19316 <limits.h> exists even on freestanding compilers. */
19319 # include <limits.h>
19321 # include <assert.h>
19326 /* Override any GCC internal prototype to avoid an error.
19327 Use char because int might match the return type of a GCC
19328 builtin and then its argument prototype would still apply. */
19333 /* The GNU C library defines this for functions which it implements
19334 to always fail with ENOSYS. Some functions are actually named
19335 something starting with __ and the normal name is an alias. */
19336 #if defined __stub_res_send || defined __stub___res_send
19343 return res_send ();
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest$ac_exeext &&
19365 $as_test_x conftest$ac_exeext; then
19366 ac_cv_func_res_send=yes
19368 echo "$as_me: failed program was
:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19371 ac_cv_func_res_send=no
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375 conftest$ac_exeext conftest.$ac_ext
19377 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19378 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19379 if test $ac_cv_func_res_send = yes; then
19382 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19383 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19384 if test "${ac_cv_func___res_send+set}" = set; then
19385 echo $ECHO_N "(cached
) $ECHO_C" >&6
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19393 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19395 #define __res_send innocuous___res_send
19397 /* System header to define __stub macros and hopefully few prototypes,
19398 which can conflict with char __res_send (); below.
19399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19400 <limits.h> exists even on freestanding compilers. */
19403 # include <limits.h>
19405 # include <assert.h>
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19416 char __res_send ();
19417 /* The GNU C library defines this for functions which it implements
19418 to always fail with ENOSYS. Some functions are actually named
19419 something starting with __ and the normal name is an alias. */
19420 #if defined __stub___res_send || defined __stub_____res_send
19427 return __res_send ();
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19441 grep -v '^ *+' conftest.er1 >conftest.err
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_func___res_send=yes
19452 echo "$as_me: failed program was
:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19455 ac_cv_func___res_send=no
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19461 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19462 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19463 if test $ac_cv_func___res_send = yes; then
19466 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19467 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19468 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19469 echo $ECHO_N "(cached
) $ECHO_C" >&6
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lresolv $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19490 return res_send ();
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19504 grep -v '^ *+' conftest.er1 >conftest.err
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_resolv_res_send=yes
19515 echo "$as_me: failed program was
:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_cv_lib_resolv_res_send=no
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19525 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19526 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19527 if test $ac_cv_lib_resolv_res_send = yes; then
19530 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19531 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19532 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19533 echo $ECHO_N "(cached
) $ECHO_C" >&6
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lresolv $LIBS"
19537 cat >conftest.$ac_ext <<_ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19550 char __res_send ();
19554 return __res_send ();
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19568 grep -v '^ *+' conftest.er1 >conftest.err
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 ac_cv_lib_resolv___res_send=yes
19579 echo "$as_me: failed program was
:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19582 ac_cv_lib_resolv___res_send=no
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19589 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19590 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19591 if test $ac_cv_lib_resolv___res_send = yes; then
19601 if test "$resolv" = yes ; then
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_LIBRESOLV 1
19611 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19612 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19613 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19614 echo $ECHO_N "(cached
) $ECHO_C" >&6
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19624 #define hes_getmailhost innocuous_hes_getmailhost
19626 /* System header to define __stub macros and hopefully few prototypes,
19627 which can conflict with char hes_getmailhost (); below.
19628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19629 <limits.h> exists even on freestanding compilers. */
19632 # include <limits.h>
19634 # include <assert.h>
19637 #undef hes_getmailhost
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19645 char hes_getmailhost ();
19646 /* The GNU C library defines this for functions which it implements
19647 to always fail with ENOSYS. Some functions are actually named
19648 something starting with __ and the normal name is an alias. */
19649 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19656 return hes_getmailhost ();
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_link") 2>conftest.er1
19670 grep -v '^ *+' conftest.er1 >conftest.err
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19674 (exit $ac_status); } && {
19675 test -z "$ac_c_werror_flag" ||
19676 test ! -s conftest.err
19677 } && test -s conftest$ac_exeext &&
19678 $as_test_x conftest$ac_exeext; then
19679 ac_cv_func_hes_getmailhost=yes
19681 echo "$as_me: failed program was
:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19684 ac_cv_func_hes_getmailhost=no
19687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19688 conftest$ac_exeext conftest.$ac_ext
19690 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19691 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19692 if test $ac_cv_func_hes_getmailhost = yes; then
19695 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19696 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19697 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19698 echo $ECHO_N "(cached
) $ECHO_C" >&6
19700 ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-lhesiod $RESOLVLIB $LIBS"
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19715 char hes_getmailhost ();
19719 return hes_getmailhost ();
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_lib_hesiod_hes_getmailhost=yes
19744 echo "$as_me: failed program was
:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_lib_hesiod_hes_getmailhost=no
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19754 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19755 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19756 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_LIBHESIOD 1
19770 # These tell us which Kerberos-related libraries to use.
19771 if test "${with_kerberos+set}" = set; then
19773 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19774 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19775 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19776 echo $ECHO_N "(cached
) $ECHO_C" >&6
19778 ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-lcom_err $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_com_err_com_err=yes
19822 echo "$as_me: failed program was
:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_lib_com_err_com_err=no
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19832 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19833 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19834 if test $ac_cv_lib_com_err_com_err = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define HAVE_LIBCOM_ERR 1
19839 LIBS="-lcom_err $LIBS"
19844 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19845 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19846 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19847 echo $ECHO_N "(cached
) $ECHO_C" >&6
19849 ac_check_lib_save_LIBS=$LIBS
19850 LIBS="-lk5crypto $LIBS"
19851 cat >conftest.$ac_ext <<_ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19864 char mit_des_cbc_encrypt ();
19868 return mit_des_cbc_encrypt ();
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest$ac_exeext &&
19890 $as_test_x conftest$ac_exeext; then
19891 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19893 echo "$as_me: failed program was
:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19896 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19903 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19904 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19905 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_LIBK5CRYPTO 1
19910 LIBS="-lk5crypto $LIBS"
19915 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19916 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19917 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19918 echo $ECHO_N "(cached
) $ECHO_C" >&6
19920 ac_check_lib_save_LIBS=$LIBS
19921 LIBS="-lcrypto $LIBS"
19922 cat >conftest.$ac_ext <<_ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19929 /* Override any GCC internal prototype to avoid an error.
19930 Use char because int might match the return type of a GCC
19931 builtin and then its argument prototype would still apply. */
19935 char mit_des_cbc_encrypt ();
19939 return mit_des_cbc_encrypt ();
19944 rm -f conftest.$ac_objext conftest$ac_exeext
19945 if { (ac_try="$ac_link"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_link") 2>conftest.er1
19953 grep -v '^ *+' conftest.er1 >conftest.err
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest$ac_exeext &&
19961 $as_test_x conftest$ac_exeext; then
19962 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19964 echo "$as_me: failed program was
:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19967 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19971 conftest$ac_exeext conftest.$ac_ext
19972 LIBS=$ac_check_lib_save_LIBS
19974 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19975 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19976 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_LIBCRYPTO 1
19981 LIBS="-lcrypto $LIBS"
19986 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19987 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19988 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19989 echo $ECHO_N "(cached
) $ECHO_C" >&6
19991 ac_check_lib_save_LIBS=$LIBS
19992 LIBS="-lkrb5 $LIBS"
19993 cat >conftest.$ac_ext <<_ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
20000 /* Override any GCC internal prototype to avoid an error.
20001 Use char because int might match the return type of a GCC
20002 builtin and then its argument prototype would still apply. */
20006 char krb5_init_context ();
20010 return krb5_init_context ();
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>conftest.er1
20024 grep -v '^ *+' conftest.er1 >conftest.err
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest$ac_exeext &&
20032 $as_test_x conftest$ac_exeext; then
20033 ac_cv_lib_krb5_krb5_init_context=yes
20035 echo "$as_me: failed program was
:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_lib_krb5_krb5_init_context=no
20041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20042 conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20045 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20046 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20047 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_LIBKRB5 1
20052 LIBS="-lkrb5 $LIBS"
20056 if test "${with_kerberos5+set}" != set; then
20058 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20059 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20060 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20061 echo $ECHO_N "(cached
) $ECHO_C" >&6
20063 ac_check_lib_save_LIBS=$LIBS
20064 LIBS="-ldes425 $LIBS"
20065 cat >conftest.$ac_ext <<_ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20078 char des_cbc_encrypt ();
20082 return des_cbc_encrypt ();
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20096 grep -v '^ *+' conftest.er1 >conftest.err
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20100 (exit $ac_status); } && {
20101 test -z "$ac_c_werror_flag" ||
20102 test ! -s conftest.err
20103 } && test -s conftest$ac_exeext &&
20104 $as_test_x conftest$ac_exeext; then
20105 ac_cv_lib_des425_des_cbc_encrypt=yes
20107 echo "$as_me: failed program was
:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20110 ac_cv_lib_des425_des_cbc_encrypt=no
20113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20114 conftest$ac_exeext conftest.$ac_ext
20115 LIBS=$ac_check_lib_save_LIBS
20117 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20118 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20119 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20120 cat >>confdefs.h <<_ACEOF
20121 #define HAVE_LIBDES425 1
20124 LIBS="-ldes425 $LIBS"
20128 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20129 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20130 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20131 echo $ECHO_N "(cached
) $ECHO_C" >&6
20133 ac_check_lib_save_LIBS=$LIBS
20135 cat >conftest.$ac_ext <<_ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20148 char des_cbc_encrypt ();
20152 return des_cbc_encrypt ();
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_link") 2>conftest.er1
20166 grep -v '^ *+' conftest.er1 >conftest.err
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest$ac_exeext &&
20174 $as_test_x conftest$ac_exeext; then
20175 ac_cv_lib_des_des_cbc_encrypt=yes
20177 echo "$as_me: failed program was
:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ac_cv_lib_des_des_cbc_encrypt=no
20183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20187 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20188 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20189 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20190 cat >>confdefs.h <<_ACEOF
20191 #define HAVE_LIBDES 1
20201 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20202 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20203 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20204 echo $ECHO_N "(cached
) $ECHO_C" >&6
20206 ac_check_lib_save_LIBS=$LIBS
20207 LIBS="-lkrb4 $LIBS"
20208 cat >conftest.$ac_ext <<_ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20221 char krb_get_cred ();
20225 return krb_get_cred ();
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_link") 2>conftest.er1
20239 grep -v '^ *+' conftest.er1 >conftest.err
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20243 (exit $ac_status); } && {
20244 test -z "$ac_c_werror_flag" ||
20245 test ! -s conftest.err
20246 } && test -s conftest$ac_exeext &&
20247 $as_test_x conftest$ac_exeext; then
20248 ac_cv_lib_krb4_krb_get_cred=yes
20250 echo "$as_me: failed program was
:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20253 ac_cv_lib_krb4_krb_get_cred=no
20256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257 conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20260 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20261 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20262 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20263 cat >>confdefs.h <<_ACEOF
20264 #define HAVE_LIBKRB4 1
20267 LIBS="-lkrb4 $LIBS"
20271 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20272 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20273 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20274 echo $ECHO_N "(cached
) $ECHO_C" >&6
20276 ac_check_lib_save_LIBS=$LIBS
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20285 /* Override any GCC internal prototype to avoid an error.
20286 Use char because int might match the return type of a GCC
20287 builtin and then its argument prototype would still apply. */
20291 char krb_get_cred ();
20295 return krb_get_cred ();
20300 rm -f conftest.$ac_objext conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_link") 2>conftest.er1
20309 grep -v '^ *+' conftest.er1 >conftest.err
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest$ac_exeext &&
20317 $as_test_x conftest$ac_exeext; then
20318 ac_cv_lib_krb_krb_get_cred=yes
20320 echo "$as_me: failed program was
:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20323 ac_cv_lib_krb_krb_get_cred=no
20326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20327 conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20330 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20331 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20332 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_LIBKRB 1
20345 if test "${with_kerberos5+set}" = set; then
20347 for ac_header in krb5.h
20349 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20351 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20352 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20354 echo $ECHO_N "(cached
) $ECHO_C" >&6
20356 ac_res=`eval echo '${'$as_ac_Header'}'`
20357 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20358 echo "${ECHO_T}$ac_res" >&6; }
20360 # Is the header compilable?
20361 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20362 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 $ac_includes_default
20370 #include <$ac_header>
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20381 grep -v '^ *+' conftest.er1 >conftest.err
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 ac_header_compiler=yes
20391 echo "$as_me: failed program was
:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20394 ac_header_compiler=no
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20399 echo "${ECHO_T}$ac_header_compiler" >&6; }
20401 # Is the header present?
20402 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20403 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 #include <$ac_header>
20412 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20413 case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20420 grep -v '^ *+' conftest.er1 >conftest.err
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20424 (exit $ac_status); } >/dev/null && {
20425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20426 test ! -s conftest.err
20428 ac_header_preproc=yes
20430 echo "$as_me: failed program was
:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ac_header_preproc=no
20436 rm -f conftest.err conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20438 echo "${ECHO_T}$ac_header_preproc" >&6; }
20440 # So? What about this header?
20441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20443 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20444 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20445 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20447 ac_header_preproc=yes
20450 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20451 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20452 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20453 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20454 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20455 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20456 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20457 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20458 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20460 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20461 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20465 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20466 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached
) $ECHO_C" >&6
20470 eval "$as_ac_Header=\
$ac_header_preproc"
20472 ac_res=`eval echo '${'$as_ac_Header'}'`
20473 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20474 echo "${ECHO_T}$ac_res" >&6; }
20477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20488 for ac_header in des.h
20490 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20491 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20492 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20493 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached
) $ECHO_C" >&6
20497 ac_res=`eval echo '${'$as_ac_Header'}'`
20498 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20499 echo "${ECHO_T}$ac_res" >&6; }
20501 # Is the header compilable?
20502 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20503 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 $ac_includes_default
20511 #include <$ac_header>
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_compile") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20526 (exit $ac_status); } && {
20527 test -z "$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20529 } && test -s conftest.$ac_objext; then
20530 ac_header_compiler=yes
20532 echo "$as_me: failed program was
:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_header_compiler=no
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20540 echo "${ECHO_T}$ac_header_compiler" >&6; }
20542 # Is the header present?
20543 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20544 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <$ac_header>
20553 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20565 (exit $ac_status); } >/dev/null && {
20566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20569 ac_header_preproc=yes
20571 echo "$as_me: failed program was
:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20574 ac_header_preproc=no
20577 rm -f conftest.err conftest.$ac_ext
20578 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20579 echo "${ECHO_T}$ac_header_preproc" >&6; }
20581 # So? What about this header?
20582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20584 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20585 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20586 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20588 ac_header_preproc=yes
20591 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20592 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20593 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20594 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20595 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20596 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20597 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20598 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20599 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20601 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20602 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20606 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20607 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20609 echo $ECHO_N "(cached
) $ECHO_C" >&6
20611 eval "$as_ac_Header=\
$ac_header_preproc"
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20625 for ac_header in kerberosIV/des.h
20627 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20628 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20629 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20630 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20631 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20632 echo $ECHO_N "(cached
) $ECHO_C" >&6
20634 ac_res=`eval echo '${'$as_ac_Header'}'`
20635 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20636 echo "${ECHO_T}$ac_res" >&6; }
20638 # Is the header compilable?
20639 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20640 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20641 cat >conftest.$ac_ext <<_ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 $ac_includes_default
20648 #include <$ac_header>
20650 rm -f conftest.$ac_objext
20651 if { (ac_try="$ac_compile"
20652 case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_compile") 2>conftest.er1
20659 grep -v '^ *+' conftest.er1 >conftest.err
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20663 (exit $ac_status); } && {
20664 test -z "$ac_c_werror_flag" ||
20665 test ! -s conftest.err
20666 } && test -s conftest.$ac_objext; then
20667 ac_header_compiler=yes
20669 echo "$as_me: failed program was
:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ac_header_compiler=no
20675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20677 echo "${ECHO_T}$ac_header_compiler" >&6; }
20679 # Is the header present?
20680 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20681 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 #include <$ac_header>
20690 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20698 grep -v '^ *+' conftest.er1 >conftest.err
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20702 (exit $ac_status); } >/dev/null && {
20703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20706 ac_header_preproc=yes
20708 echo "$as_me: failed program was
:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20711 ac_header_preproc=no
20714 rm -f conftest.err conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20716 echo "${ECHO_T}$ac_header_preproc" >&6; }
20718 # So? What about this header?
20719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20721 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20722 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20723 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20725 ac_header_preproc=yes
20728 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20729 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20730 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20731 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20732 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20733 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20734 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20735 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20736 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20738 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20739 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20743 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20744 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20745 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20746 echo $ECHO_N "(cached
) $ECHO_C" >&6
20748 eval "$as_ac_Header=\
$ac_header_preproc"
20750 ac_res=`eval echo '${'$as_ac_Header'}'`
20751 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20752 echo "${ECHO_T}$ac_res" >&6; }
20755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20762 for ac_header in kerberos/des.h
20764 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20765 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20766 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20767 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20768 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20769 echo $ECHO_N "(cached
) $ECHO_C" >&6
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20775 # Is the header compilable?
20776 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20777 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 #include <$ac_header>
20787 rm -f conftest.$ac_objext
20788 if { (ac_try="$ac_compile"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_compile") 2>conftest.er1
20796 grep -v '^ *+' conftest.er1 >conftest.err
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest.$ac_objext; then
20804 ac_header_compiler=yes
20806 echo "$as_me: failed program was
:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ac_header_compiler=no
20812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20814 echo "${ECHO_T}$ac_header_compiler" >&6; }
20816 # Is the header present?
20817 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20818 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 #include <$ac_header>
20827 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20832 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20835 grep -v '^ *+' conftest.er1 >conftest.err
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20839 (exit $ac_status); } >/dev/null && {
20840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20843 ac_header_preproc=yes
20845 echo "$as_me: failed program was
:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 ac_header_preproc=no
20851 rm -f conftest.err conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20853 echo "${ECHO_T}$ac_header_preproc" >&6; }
20855 # So? What about this header?
20856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20858 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20859 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20860 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20862 ac_header_preproc=yes
20865 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20866 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20867 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20868 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20869 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20870 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20871 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20872 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20873 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20875 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20876 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20880 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20881 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20882 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20883 echo $ECHO_N "(cached
) $ECHO_C" >&6
20885 eval "$as_ac_Header=\
$ac_header_preproc"
20887 ac_res=`eval echo '${'$as_ac_Header'}'`
20888 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20889 echo "${ECHO_T}$ac_res" >&6; }
20892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20910 for ac_header in krb.h
20912 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20913 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20914 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20915 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached
) $ECHO_C" >&6
20919 ac_res=`eval echo '${'$as_ac_Header'}'`
20920 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20921 echo "${ECHO_T}$ac_res" >&6; }
20923 # Is the header compilable?
20924 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20925 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 $ac_includes_default
20933 #include <$ac_header>
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20944 grep -v '^ *+' conftest.er1 >conftest.err
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_header_compiler=yes
20954 echo "$as_me: failed program was
:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_header_compiler=no
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20962 echo "${ECHO_T}$ac_header_compiler" >&6; }
20964 # Is the header present?
20965 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20966 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20967 cat >conftest.$ac_ext <<_ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <$ac_header>
20975 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20983 grep -v '^ *+' conftest.er1 >conftest.err
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20987 (exit $ac_status); } >/dev/null && {
20988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20991 ac_header_preproc=yes
20993 echo "$as_me: failed program was
:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20996 ac_header_preproc=no
20999 rm -f conftest.err conftest.$ac_ext
21000 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21001 echo "${ECHO_T}$ac_header_preproc" >&6; }
21003 # So? What about this header?
21004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21006 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21007 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21008 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21010 ac_header_preproc=yes
21013 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21014 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21015 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21016 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21017 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21018 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21019 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21020 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21021 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21023 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21024 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21028 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21029 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21031 echo $ECHO_N "(cached
) $ECHO_C" >&6
21033 eval "$as_ac_Header=\
$ac_header_preproc"
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21041 cat >>confdefs.h <<_ACEOF
21042 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21047 for ac_header in kerberosIV/krb.h
21049 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21050 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21051 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21052 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached
) $ECHO_C" >&6
21056 ac_res=`eval echo '${'$as_ac_Header'}'`
21057 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21060 # Is the header compilable?
21061 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21062 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21063 cat >conftest.$ac_ext <<_ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21070 #include <$ac_header>
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_compile") 2>conftest.er1
21081 grep -v '^ *+' conftest.er1 >conftest.err
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest.$ac_objext; then
21089 ac_header_compiler=yes
21091 echo "$as_me: failed program was
:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21094 ac_header_compiler=no
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21099 echo "${ECHO_T}$ac_header_compiler" >&6; }
21101 # Is the header present?
21102 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21103 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 #include <$ac_header>
21112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21120 grep -v '^ *+' conftest.er1 >conftest.err
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21124 (exit $ac_status); } >/dev/null && {
21125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21128 ac_header_preproc=yes
21130 echo "$as_me: failed program was
:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_header_preproc=no
21136 rm -f conftest.err conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6; }
21140 # So? What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21144 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21147 ac_header_preproc=yes
21150 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21151 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21152 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21153 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21154 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21155 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21156 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21157 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21158 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21160 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21161 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21165 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21166 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21167 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21168 echo $ECHO_N "(cached
) $ECHO_C" >&6
21170 eval "$as_ac_Header=\
$ac_header_preproc"
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21184 for ac_header in kerberos/krb.h
21186 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21188 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21189 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21191 echo $ECHO_N "(cached
) $ECHO_C" >&6
21193 ac_res=`eval echo '${'$as_ac_Header'}'`
21194 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21195 echo "${ECHO_T}$ac_res" >&6; }
21197 # Is the header compilable?
21198 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21199 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 $ac_includes_default
21207 #include <$ac_header>
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21218 grep -v '^ *+' conftest.er1 >conftest.err
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_header_compiler=yes
21228 echo "$as_me: failed program was
:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21231 ac_header_compiler=no
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21236 echo "${ECHO_T}$ac_header_compiler" >&6; }
21238 # Is the header present?
21239 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21240 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 #include <$ac_header>
21249 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21261 (exit $ac_status); } >/dev/null && {
21262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21265 ac_header_preproc=yes
21267 echo "$as_me: failed program was
:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 ac_header_preproc=no
21273 rm -f conftest.err conftest.$ac_ext
21274 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21275 echo "${ECHO_T}$ac_header_preproc" >&6; }
21277 # So? What about this header?
21278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21280 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21281 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21282 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21284 ac_header_preproc=yes
21287 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21288 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21289 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21290 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21291 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21292 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21293 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21294 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21295 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21297 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21298 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21302 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21303 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21305 echo $ECHO_N "(cached
) $ECHO_C" >&6
21307 eval "$as_ac_Header=\
$ac_header_preproc"
21309 ac_res=`eval echo '${'$as_ac_Header'}'`
21310 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21311 echo "${ECHO_T}$ac_res" >&6; }
21314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21315 cat >>confdefs.h <<_ACEOF
21316 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21333 for ac_header in com_err.h
21335 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21336 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21337 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21338 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached
) $ECHO_C" >&6
21342 ac_res=`eval echo '${'$as_ac_Header'}'`
21343 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21346 # Is the header compilable?
21347 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21348 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21349 cat >conftest.$ac_ext <<_ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 $ac_includes_default
21356 #include <$ac_header>
21358 rm -f conftest.$ac_objext
21359 if { (ac_try="$ac_compile"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_compile") 2>conftest.er1
21367 grep -v '^ *+' conftest.er1 >conftest.err
21369 cat conftest.err >&5
21370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21371 (exit $ac_status); } && {
21372 test -z "$ac_c_werror_flag" ||
21373 test ! -s conftest.err
21374 } && test -s conftest.$ac_objext; then
21375 ac_header_compiler=yes
21377 echo "$as_me: failed program was
:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21380 ac_header_compiler=no
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21385 echo "${ECHO_T}$ac_header_compiler" >&6; }
21387 # Is the header present?
21388 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21389 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21390 cat >conftest.$ac_ext <<_ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 #include <$ac_header>
21398 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21410 (exit $ac_status); } >/dev/null && {
21411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21414 ac_header_preproc=yes
21416 echo "$as_me: failed program was
:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21419 ac_header_preproc=no
21422 rm -f conftest.err conftest.$ac_ext
21423 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21424 echo "${ECHO_T}$ac_header_preproc" >&6; }
21426 # So? What about this header?
21427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21429 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21430 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21431 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21433 ac_header_preproc=yes
21436 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21437 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21438 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21439 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21440 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21441 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21442 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21443 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21447 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21451 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21452 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21453 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21454 echo $ECHO_N "(cached
) $ECHO_C" >&6
21456 eval "$as_ac_Header=\
$ac_header_preproc"
21458 ac_res=`eval echo '${'$as_ac_Header'}'`
21459 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21460 echo "${ECHO_T}$ac_res" >&6; }
21463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21464 cat >>confdefs.h <<_ACEOF
21465 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21474 # Solaris requires -lintl if you want strerror (which calls dgettext)
21475 # to return localized messages.
21477 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21478 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21479 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21480 echo $ECHO_N "(cached
) $ECHO_C" >&6
21482 ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lintl $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21501 return dgettext ();
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_link") 2>conftest.er1
21515 grep -v '^ *+' conftest.er1 >conftest.err
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest$ac_exeext &&
21523 $as_test_x conftest$ac_exeext; then
21524 ac_cv_lib_intl_dgettext=yes
21526 echo "$as_me: failed program was
:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_cv_lib_intl_dgettext=no
21532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21533 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21536 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21537 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21538 if test $ac_cv_lib_intl_dgettext = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_LIBINTL 1
21543 LIBS="-lintl $LIBS"
21548 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21549 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21550 if test "${emacs_cv_localtime_cache+set}" = set; then
21551 echo $ECHO_N "(cached
) $ECHO_C" >&6
21553 if test x$ac_cv_func_tzset = xyes; then
21554 if test "$cross_compiling" = yes; then
21555 # If we have tzset, assume the worst when cross-compiling.
21556 emacs_cv_localtime_cache=yes
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21565 extern char **environ;
21569 for (to = from = environ; (*to = *from); from++)
21570 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21573 char TZ_GMT0[] = "TZ
=GMT0
";
21574 char TZ_PST8[] = "TZ
=PST8
";
21577 time_t now = time ((time_t *) 0);
21578 int hour_GMT0, hour_unset;
21579 if (putenv (TZ_GMT0) != 0)
21581 hour_GMT0 = localtime (&now)->tm_hour;
21583 hour_unset = localtime (&now)->tm_hour;
21584 if (putenv (TZ_PST8) != 0)
21586 if (localtime (&now)->tm_hour == hour_GMT0)
21589 if (localtime (&now)->tm_hour != hour_unset)
21594 rm -f conftest$ac_exeext
21595 if { (ac_try="$ac_link"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_link") 2>&5
21603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21605 { (case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_try") 2>&5
21612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 emacs_cv_localtime_cache=no
21616 echo "$as_me: program exited with status
$ac_status" >&5
21617 echo "$as_me: failed program was
:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21620 ( exit $ac_status )
21621 emacs_cv_localtime_cache=yes
21623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21628 # If we lack tzset, report that localtime does not cache TZ,
21629 # since we can't invalidate the cache if we don't have tzset.
21630 emacs_cv_localtime_cache=no
21633 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21634 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21635 if test $emacs_cv_localtime_cache = yes; then
21637 cat >>confdefs.h <<\_ACEOF
21638 #define LOCALTIME_CACHE 1
21643 if test "x
$HAVE_TIMEVAL" = xyes; then
21645 for ac_func in gettimeofday
21647 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21648 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21649 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21650 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21651 echo $ECHO_N "(cached
) $ECHO_C" >&6
21653 cat >conftest.$ac_ext <<_ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21661 #define $ac_func innocuous_$ac_func
21663 /* System header to define __stub macros and hopefully few prototypes,
21664 which can conflict with char $ac_func (); below.
21665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21666 <limits.h> exists even on freestanding compilers. */
21669 # include <limits.h>
21671 # include <assert.h>
21676 /* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21683 /* The GNU C library defines this for functions which it implements
21684 to always fail with ENOSYS. Some functions are actually named
21685 something starting with __ and the normal name is an alias. */
21686 #if defined __stub_$ac_func || defined __stub___$ac_func
21693 return $ac_func ();
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_link") 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest$ac_exeext &&
21715 $as_test_x conftest$ac_exeext; then
21716 eval "$as_ac_var=yes"
21718 echo "$as_me: failed program was
:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 eval "$as_ac_var=no
"
21724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21725 conftest$ac_exeext conftest.$ac_ext
21727 ac_res=`eval echo '${'$as_ac_var'}'`
21728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21729 echo "${ECHO_T}$ac_res" >&6; }
21730 if test `eval echo '${'$as_ac_var'}'` = yes; then
21731 cat >>confdefs.h <<_ACEOF
21732 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21738 if test $ac_cv_func_gettimeofday = yes; then
21739 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21740 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21741 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21742 echo $ECHO_N "(cached
) $ECHO_C" >&6
21744 cat >conftest.$ac_ext <<_ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21751 #ifdef TIME_WITH_SYS_TIME
21752 #include <sys/time.h>
21755 #ifdef HAVE_SYS_TIME_H
21756 #include <sys/time.h>
21764 struct timeval time;
21765 gettimeofday (&time, 0);
21770 rm -f conftest.$ac_objext
21771 if { (ac_try="$ac_compile"
21772 case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_compile") 2>conftest.er1
21779 grep -v '^ *+' conftest.er1 >conftest.err
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21783 (exit $ac_status); } && {
21784 test -z "$ac_c_werror_flag" ||
21785 test ! -s conftest.err
21786 } && test -s conftest.$ac_objext; then
21787 emacs_cv_gettimeofday_two_arguments=yes
21789 echo "$as_me: failed program was
:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21792 emacs_cv_gettimeofday_two_arguments=no
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21798 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21799 if test $emacs_cv_gettimeofday_two_arguments = no; then
21801 cat >>confdefs.h <<\_ACEOF
21802 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21810 { echo "$as_me:$LINENO: checking
for socket
" >&5
21811 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21812 if test "${ac_cv_func_socket+set}" = set; then
21813 echo $ECHO_N "(cached
) $ECHO_C" >&6
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21823 #define socket innocuous_socket
21825 /* System header to define __stub macros and hopefully few prototypes,
21826 which can conflict with char socket (); below.
21827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828 <limits.h> exists even on freestanding compilers. */
21831 # include <limits.h>
21833 # include <assert.h>
21838 /* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21845 /* The GNU C library defines this for functions which it implements
21846 to always fail with ENOSYS. Some functions are actually named
21847 something starting with __ and the normal name is an alias. */
21848 #if defined __stub_socket || defined __stub___socket
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_link") 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest$ac_exeext &&
21877 $as_test_x conftest$ac_exeext; then
21878 ac_cv_func_socket=yes
21880 echo "$as_me: failed program was
:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21883 ac_cv_func_socket=no
21886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21887 conftest$ac_exeext conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21890 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21891 if test $ac_cv_func_socket = yes; then
21897 if test $ok_so_far = yes; then
21898 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21899 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21900 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21901 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21902 echo $ECHO_N "(cached
) $ECHO_C" >&6
21904 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21905 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21907 # Is the header compilable?
21908 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21909 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21917 #include <netinet/in.h>
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21932 (exit $ac_status); } && {
21933 test -z "$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 } && test -s conftest.$ac_objext; then
21936 ac_header_compiler=yes
21938 echo "$as_me: failed program was
:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 ac_header_compiler=no
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21946 echo "${ECHO_T}$ac_header_compiler" >&6; }
21948 # Is the header present?
21949 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21950 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21951 cat >conftest.$ac_ext <<_ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 #include <netinet/in.h>
21959 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21971 (exit $ac_status); } >/dev/null && {
21972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21975 ac_header_preproc=yes
21977 echo "$as_me: failed program was
:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_header_preproc=no
21983 rm -f conftest.err conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21985 echo "${ECHO_T}$ac_header_preproc" >&6; }
21987 # So? What about this header?
21988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21990 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21991 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21992 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21993 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21994 ac_header_preproc=yes
21997 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21998 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21999 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22000 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22001 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22002 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22003 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22004 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22005 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22006 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22007 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22008 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22012 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22013 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22014 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22015 echo $ECHO_N "(cached
) $ECHO_C" >&6
22017 ac_cv_header_netinet_in_h=$ac_header_preproc
22019 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22023 if test $ac_cv_header_netinet_in_h = yes; then
22031 if test $ok_so_far = yes; then
22032 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22033 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22034 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22035 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22036 echo $ECHO_N "(cached
) $ECHO_C" >&6
22038 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22039 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22041 # Is the header compilable?
22042 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22043 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 $ac_includes_default
22051 #include <arpa/inet.h>
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22062 grep -v '^ *+' conftest.er1 >conftest.err
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22070 ac_header_compiler=yes
22072 echo "$as_me: failed program was
:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22075 ac_header_compiler=no
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22080 echo "${ECHO_T}$ac_header_compiler" >&6; }
22082 # Is the header present?
22083 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22084 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 #include <arpa/inet.h>
22093 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22101 grep -v '^ *+' conftest.er1 >conftest.err
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22105 (exit $ac_status); } >/dev/null && {
22106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22109 ac_header_preproc=yes
22111 echo "$as_me: failed program was
:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22114 ac_header_preproc=no
22117 rm -f conftest.err conftest.$ac_ext
22118 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22119 echo "${ECHO_T}$ac_header_preproc" >&6; }
22121 # So? What about this header?
22122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22124 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22125 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22126 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22127 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22128 ac_header_preproc=yes
22131 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22132 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22133 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22134 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22135 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22136 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22137 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22138 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22139 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22140 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22141 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22142 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22146 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22147 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22148 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22149 echo $ECHO_N "(cached
) $ECHO_C" >&6
22151 ac_cv_header_arpa_inet_h=$ac_header_preproc
22153 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22154 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22157 if test $ac_cv_header_arpa_inet_h = yes; then
22165 if test $ok_so_far = yes; then
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_INET_SOCKETS 1
22174 for ac_header in sys/ioctl.h
22176 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22177 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22178 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22179 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22181 echo $ECHO_N "(cached
) $ECHO_C" >&6
22183 ac_res=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22187 # Is the header compilable?
22188 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22189 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 $ac_includes_default
22197 #include <$ac_header>
22199 rm -f conftest.$ac_objext
22200 if { (ac_try="$ac_compile"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_compile") 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest.$ac_objext; then
22216 ac_header_compiler=yes
22218 echo "$as_me: failed program was
:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22221 ac_header_compiler=no
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22226 echo "${ECHO_T}$ac_header_compiler" >&6; }
22228 # Is the header present?
22229 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22230 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22231 cat >conftest.$ac_ext <<_ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 #include <$ac_header>
22239 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22247 grep -v '^ *+' conftest.er1 >conftest.err
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22251 (exit $ac_status); } >/dev/null && {
22252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22255 ac_header_preproc=yes
22257 echo "$as_me: failed program was
:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 ac_header_preproc=no
22263 rm -f conftest.err conftest.$ac_ext
22264 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22265 echo "${ECHO_T}$ac_header_preproc" >&6; }
22267 # So? What about this header?
22268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22270 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22271 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22272 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22274 ac_header_preproc=yes
22277 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22278 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22279 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22280 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22281 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22282 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22283 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22284 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22285 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22287 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22288 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22292 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22293 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22294 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22295 echo $ECHO_N "(cached
) $ECHO_C" >&6
22297 eval "$as_ac_Header=\
$ac_header_preproc"
22299 ac_res=`eval echo '${'$as_ac_Header'}'`
22300 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22305 cat >>confdefs.h <<_ACEOF
22306 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22314 if test -f /usr/lpp/X11/bin/smt.exp; then
22316 cat >>confdefs.h <<\_ACEOF
22317 #define HAVE_AIX_SMT_EXP 1
22322 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22323 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22324 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22325 { echo "$as_me:$LINENO: result
: yes" >&5
22326 echo "${ECHO_T}yes" >&6; }
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_DEV_PTMX 1
22333 { echo "$as_me:$LINENO: result
: no
" >&5
22334 echo "${ECHO_T}no
" >&6; }
22337 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22338 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22339 if test "${ac_cv_type_pid_t+set}" = set; then
22340 echo $ECHO_N "(cached
) $ECHO_C" >&6
22342 cat >conftest.$ac_ext <<_ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 $ac_includes_default
22349 typedef pid_t ac__type_new_;
22353 if ((ac__type_new_ *) 0)
22355 if (sizeof (ac__type_new_))
22361 rm -f conftest.$ac_objext
22362 if { (ac_try="$ac_compile"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22370 grep -v '^ *+' conftest.er1 >conftest.err
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22378 ac_cv_type_pid_t=yes
22380 echo "$as_me: failed program was
:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22383 ac_cv_type_pid_t=no
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22389 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22390 if test $ac_cv_type_pid_t = yes; then
22394 cat >>confdefs.h <<_ACEOF
22401 for ac_header in vfork.h
22403 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22404 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22405 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22406 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22408 echo $ECHO_N "(cached
) $ECHO_C" >&6
22410 ac_res=`eval echo '${'$as_ac_Header'}'`
22411 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22412 echo "${ECHO_T}$ac_res" >&6; }
22414 # Is the header compilable?
22415 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22416 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22417 cat >conftest.$ac_ext <<_ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22424 #include <$ac_header>
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22435 grep -v '^ *+' conftest.er1 >conftest.err
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.$ac_objext; then
22443 ac_header_compiler=yes
22445 echo "$as_me: failed program was
:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 ac_header_compiler=no
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22453 echo "${ECHO_T}$ac_header_compiler" >&6; }
22455 # Is the header present?
22456 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22457 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22458 cat >conftest.$ac_ext <<_ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include <$ac_header>
22466 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22474 grep -v '^ *+' conftest.er1 >conftest.err
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22478 (exit $ac_status); } >/dev/null && {
22479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22482 ac_header_preproc=yes
22484 echo "$as_me: failed program was
:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22487 ac_header_preproc=no
22490 rm -f conftest.err conftest.$ac_ext
22491 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22492 echo "${ECHO_T}$ac_header_preproc" >&6; }
22494 # So? What about this header?
22495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22497 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22498 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22499 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22501 ac_header_preproc=yes
22504 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22505 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22506 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22507 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22508 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22509 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22510 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22511 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22512 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22514 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22515 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22519 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22520 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22521 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22522 echo $ECHO_N "(cached
) $ECHO_C" >&6
22524 eval "$as_ac_Header=\
$ac_header_preproc"
22526 ac_res=`eval echo '${'$as_ac_Header'}'`
22527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22528 echo "${ECHO_T}$ac_res" >&6; }
22531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22532 cat >>confdefs.h <<_ACEOF
22533 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22542 for ac_func in fork vfork
22544 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22545 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22546 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached
) $ECHO_C" >&6
22550 cat >conftest.$ac_ext <<_ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22558 #define $ac_func innocuous_$ac_func
22560 /* System header to define __stub macros and hopefully few prototypes,
22561 which can conflict with char $ac_func (); below.
22562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563 <limits.h> exists even on freestanding compilers. */
22566 # include <limits.h>
22568 # include <assert.h>
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined __stub_$ac_func || defined __stub___$ac_func
22590 return $ac_func ();
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22604 grep -v '^ *+' conftest.er1 >conftest.err
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22613 eval "$as_ac_var=yes"
22615 echo "$as_me: failed program was
:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22618 eval "$as_ac_var=no
"
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22624 ac_res=`eval echo '${'$as_ac_var'}'`
22625 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22626 echo "${ECHO_T}$ac_res" >&6; }
22627 if test `eval echo '${'$as_ac_var'}'` = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22635 if test "x
$ac_cv_func_fork" = xyes; then
22636 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22637 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22638 if test "${ac_cv_func_fork_works+set}" = set; then
22639 echo $ECHO_N "(cached
) $ECHO_C" >&6
22641 if test "$cross_compiling" = yes; then
22642 ac_cv_func_fork_works=cross
22644 cat >conftest.$ac_ext <<_ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 $ac_includes_default
22655 /* By Ruediger Kuhlmann. */
22656 return fork () < 0;
22662 rm -f conftest$ac_exeext
22663 if { (ac_try="$ac_link"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_link") 2>&5
22671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22673 { (case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_try") 2>&5
22680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 ac_cv_func_fork_works=yes
22684 echo "$as_me: program exited with status
$ac_status" >&5
22685 echo "$as_me: failed program was
:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 ( exit $ac_status )
22689 ac_cv_func_fork_works=no
22691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22696 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22697 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22700 ac_cv_func_fork_works=$ac_cv_func_fork
22702 if test "x
$ac_cv_func_fork_works" = xcross; then
22704 *-*-amigaos* | *-*-msdosdjgpp*)
22705 # Override, as these systems have only a dummy fork() stub
22706 ac_cv_func_fork_works=no
22709 ac_cv_func_fork_works=yes
22712 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22713 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22715 ac_cv_func_vfork_works=$ac_cv_func_vfork
22716 if test "x
$ac_cv_func_vfork" = xyes; then
22717 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22718 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22719 if test "${ac_cv_func_vfork_works+set}" = set; then
22720 echo $ECHO_N "(cached
) $ECHO_C" >&6
22722 if test "$cross_compiling" = yes; then
22723 ac_cv_func_vfork_works=cross
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 /* Thanks to Paul Eggert for this test. */
22732 $ac_includes_default
22733 #include <sys/wait.h>
22734 #ifdef HAVE_VFORK_H
22735 # include <vfork.h>
22737 /* On some sparc systems, changes by the child to local and incoming
22738 argument registers are propagated back to the parent. The compiler
22739 is told about this with #include <vfork.h>, but some compilers
22740 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22741 static variable whose address is put into a register that is
22742 clobbered by the vfork. */
22745 sparc_address_test (int arg)
22747 sparc_address_test (arg) int arg;
22750 static pid_t child;
22768 pid_t parent = getpid ();
22771 sparc_address_test (0);
22776 /* Here is another test for sparc vfork register problems. This
22777 test uses lots of local variables, at least as many local
22778 variables as main has allocated so far including compiler
22779 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22780 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22781 reuse the register of parent for one of the local variables,
22782 since it will think that parent can't possibly be used any more
22783 in this routine. Assigning to the local variable will thus
22784 munge parent in the parent process. */
22786 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22787 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22788 /* Convince the compiler that p..p7 are live; otherwise, it might
22789 use the same hardware register for all 8 local variables. */
22790 if (p != p1 || p != p2 || p != p3 || p != p4
22791 || p != p5 || p != p6 || p != p7)
22794 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22795 from child file descriptors. If the child closes a descriptor
22796 before it execs or exits, this munges the parent's descriptor
22797 as well. Test for this by closing stdout in the child. */
22798 _exit(close(fileno(stdout)) != 0);
22803 while (wait(&status) != child)
22806 /* Was there some problem with vforking? */
22809 /* Did the child fail? (This shouldn't happen.) */
22812 /* Did the vfork/compiler bug occur? */
22813 || parent != getpid()
22815 /* Did the file descriptor bug occur? */
22816 || fstat(fileno(stdout), &st) != 0
22821 rm -f conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_link") 2>&5
22830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22832 { (case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_try") 2>&5
22839 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_func_vfork_works=yes
22843 echo "$as_me: program exited with status
$ac_status" >&5
22844 echo "$as_me: failed program was
:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22847 ( exit $ac_status )
22848 ac_cv_func_vfork_works=no
22850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22855 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22856 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22859 if test "x
$ac_cv_func_fork_works" = xcross; then
22860 ac_cv_func_vfork_works=$ac_cv_func_vfork
22861 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22862 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22865 if test "x
$ac_cv_func_vfork_works" = xyes; then
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_WORKING_VFORK 1
22873 cat >>confdefs.h <<\_ACEOF
22878 if test "x
$ac_cv_func_fork_works" = xyes; then
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_WORKING_FORK 1
22887 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22888 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22889 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22890 echo $ECHO_N "(cached
) $ECHO_C" >&6
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <langinfo.h>
22902 char* cs = nl_langinfo(CODESET);
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (ac_try="$ac_link"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_link") 2>conftest.er1
22916 grep -v '^ *+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest$ac_exeext &&
22924 $as_test_x conftest$ac_exeext; then
22925 emacs_cv_langinfo_codeset=yes
22927 echo "$as_me: failed program was
:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22930 emacs_cv_langinfo_codeset=no
22933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22934 conftest$ac_exeext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22938 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22939 if test $emacs_cv_langinfo_codeset = yes; then
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_LANGINFO_CODESET 1
22947 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22948 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22949 if test "${ac_cv_type_size_t+set}" = set; then
22950 echo $ECHO_N "(cached
) $ECHO_C" >&6
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 typedef size_t ac__type_new_;
22963 if ((ac__type_new_ *) 0)
22965 if (sizeof (ac__type_new_))
22971 rm -f conftest.$ac_objext
22972 if { (ac_try="$ac_compile"
22973 case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_compile") 2>conftest.er1
22980 grep -v '^ *+' conftest.er1 >conftest.err
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22984 (exit $ac_status); } && {
22985 test -z "$ac_c_werror_flag" ||
22986 test ! -s conftest.err
22987 } && test -s conftest.$ac_objext; then
22988 ac_cv_type_size_t=yes
22990 echo "$as_me: failed program was
:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22993 ac_cv_type_size_t=no
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22999 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23000 if test $ac_cv_type_size_t = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define HAVE_SIZE_T 1
23010 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23011 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23012 if test "${ac_cv_type_mbstate_t+set}" = set; then
23013 echo $ECHO_N "(cached
) $ECHO_C" >&6
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 $ac_includes_default
23022 # include <wchar.h>
23026 mbstate_t x; return sizeof x;
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23040 grep -v '^ *+' conftest.er1 >conftest.err
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_cv_type_mbstate_t=yes
23050 echo "$as_me: failed program was
:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23053 ac_cv_type_mbstate_t=no
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23058 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23059 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23060 if test $ac_cv_type_mbstate_t = yes; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define HAVE_MBSTATE_T 1
23068 cat >>confdefs.h <<\_ACEOF
23069 #define mbstate_t int
23074 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23075 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23076 if test "${emacs_cv_c_restrict+set}" = set; then
23077 echo $ECHO_N "(cached
) $ECHO_C" >&6
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 void fred (int *restrict x);
23094 rm -f conftest.$ac_objext
23095 if { (ac_try="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23103 grep -v '^ *+' conftest.er1 >conftest.err
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23111 emacs_cv_c_restrict=yes
23113 echo "$as_me: failed program was
:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 void fred (int *__restrict x);
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23140 grep -v '^ *+' conftest.er1 >conftest.err
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 emacs_cv_c_restrict=__restrict
23150 echo "$as_me: failed program was
:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 emacs_cv_c_restrict=no
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23162 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23163 case "$emacs_cv_c_restrict" in
23164 yes) emacs_restrict=restrict;;
23165 no) emacs_restrict="";;
23166 *) emacs_restrict="$emacs_cv_c_restrict";;
23168 if test "$emacs_restrict" != __restrict; then
23170 cat >>confdefs.h <<_ACEOF
23171 #define __restrict $emacs_restrict
23176 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23177 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23178 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23179 echo $ECHO_N "(cached
) $ECHO_C" >&6
23181 cat >conftest.$ac_ext <<_ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 void fred (int x[__restrict]);
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23205 grep -v '^ *+' conftest.er1 >conftest.err
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 emacs_cv_c_restrict_arr=yes
23215 echo "$as_me: failed program was
:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23218 emacs_cv_c_restrict_arr=no
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23223 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23224 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23225 if test "$emacs_cv_c_restrict_arr" = yes; then
23227 cat >>confdefs.h <<\_ACEOF
23228 #define __restrict_arr __restrict
23235 # Set up the CFLAGS for real compilation, so we can substitute it.
23236 CFLAGS="$REAL_CFLAGS"
23237 CPPFLAGS="$REAL_CPPFLAGS"
23239 #### Find out which version of Emacs this is.
23240 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23241 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23242 if test x"${version}" = x; then
23243 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23244 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23245 { (exit 1); exit 1; }; }
23248 ### Specify what sort of things we'll be editing into Makefile and config.h.
23249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23285 cat >>confdefs.h <<_ACEOF
23286 #define EMACS_CONFIGURATION "${canonical}"
23290 cat >>confdefs.h <<_ACEOF
23291 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23295 cat >>confdefs.h <<_ACEOF
23296 #define config_machfile "${machfile}"
23300 cat >>confdefs.h <<_ACEOF
23301 #define config_opsysfile "${opsysfile}"
23305 cat >>confdefs.h <<_ACEOF
23306 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23310 cat >>confdefs.h <<_ACEOF
23311 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23315 cat >>confdefs.h <<_ACEOF
23316 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23320 cat >>confdefs.h <<_ACEOF
23321 #define UNEXEC_SRC ${UNEXEC_SRC}
23325 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_X_WINDOWS 1
23332 if test "${USE_X_TOOLKIT}" != "none
" ; then
23334 cat >>confdefs.h <<\_ACEOF
23335 #define USE_X_TOOLKIT 1
23339 if test "${HAVE_X11}" = "yes" ; then
23341 cat >>confdefs.h <<\_ACEOF
23346 if test "${HAVE_XFREE386}" = "yes" ; then
23348 cat >>confdefs.h <<\_ACEOF
23349 #define HAVE_XFREE386 1
23353 if test "${HAVE_MENUS}" = "yes" ; then
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_MENUS 1
23360 if test "${GNU_MALLOC}" = "yes" ; then
23362 cat >>confdefs.h <<\_ACEOF
23363 #define GNU_MALLOC 1
23367 if test "${REL_ALLOC}" = "yes" ; then
23369 cat >>confdefs.h <<\_ACEOF
23370 #define REL_ALLOC 1
23379 #### Report on what we decided to do.
23380 #### Report GTK as a toolkit, even if it doesn't use Xt.
23381 #### It makes printing result more understandable as using GTK sets
23382 #### toolkit_scroll_bars to yes by default.
23383 if test "${HAVE_GTK}" = "yes"; then
23388 Configured
for \
`${canonical}'.
23390 Where should the build process find the source code? ${srcdir}
23391 What operating system and machine description files should Emacs use?
23392 \`${opsysfile}' and \`${machfile}'
23393 What compiler should emacs be built with?
${CC} ${CFLAGS}
23394 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23395 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23396 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23397 What window system should Emacs use?
${window_system}
23398 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23400 if test -n "${x_includes}"; then
23401 echo " Where
do we
find X Windows header files?
${x_includes}"
23403 echo " Where
do we
find X Windows header files? Standard
dirs"
23405 if test -n "${x_libraries}"; then
23406 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23408 echo " Where
do we
find X Windows libraries? Standard
dirs"
23411 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23412 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23413 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23414 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23415 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23416 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23417 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23420 if test $USE_XASSERTS = yes; then
23421 echo " Compiling with asserts turned on.
"
23422 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23426 if test "$USE_X_TOOLKIT" = GTK; then
23427 case "$canonical" in
23429 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23430 will probably get a crash on startup. If this happens
, please use another
23431 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23438 # Remove any trailing slashes in these variables.
23439 test "${prefix}" != NONE &&
23440 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23441 test "${exec_prefix}" != NONE &&
23442 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23444 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23445 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23446 ## from Makefile.c can correctly provide the arg `-traditional' to the
23449 cat >conftest.$ac_ext <<_ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23457 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23458 $EGREP "yes..
yes" >/dev/null 2>&1; then
23459 CPP_NEED_TRADITIONAL=no
23461 CPP_NEED_TRADITIONAL=yes
23466 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
"
23468 ac_config_commands="$ac_config_commands default
"
23470 cat >confcache <<\_ACEOF
23471 # This file is a shell script that caches the results of configure
23472 # tests run on this system so they can be shared between configure
23473 # scripts and configure runs, see configure's option --config-cache.
23474 # It is not useful on other systems. If it contains results you don't
23475 # want to keep, you may remove or edit it.
23477 # config.status only pays attention to the cache file if you give it
23478 # the --recheck option to rerun configure.
23480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23482 # following values.
23486 # The following way of writing the cache mishandles newlines in values,
23487 # but we know of no workaround that is simple, portable, and efficient.
23488 # So, we kill variables containing newlines.
23489 # Ultrix sh set writes to stderr and can't be redirected directly,
23490 # and sets the high bit in the cache file unless we assign to the vars.
23492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23493 eval ac_val=\$$ac_var
23497 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23498 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23501 _ | IFS | as_nl) ;; #(
23502 *) $as_unset $ac_var ;;
23508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23509 *${as_nl}ac_space=\ *)
23510 # `set' does not quote correctly, so add quotes (double-quote
23511 # substitution turns \\\\ into \\, and sed turns \\ into \).
23514 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23517 # `set' quotes correctly as required by POSIX, so do not add quotes.
23518 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23532 if test -w "$cache_file"; then
23533 test "x
$cache_file" != "x
/dev
/null
" &&
23534 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23535 echo "$as_me: updating cache
$cache_file" >&6;}
23536 cat confcache >$cache_file
23538 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23539 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23544 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23545 # Let make expand exec_prefix.
23546 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23548 DEFS=-DHAVE_CONFIG_H
23552 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23553 # 1. Remove the extension, and $U if already installed.
23554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23555 ac_i=`echo "$ac_i" | sed "$ac_script"`
23556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23557 # will be set to the directory where LIBOBJS objects are built.
23558 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23559 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23561 LIBOBJS=$ac_libobjs
23563 LTLIBOBJS=$ac_ltlibobjs
23567 : ${CONFIG_STATUS=./config.status}
23568 ac_clean_files_save=$ac_clean_files
23569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23570 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23571 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23572 cat >$CONFIG_STATUS <<_ACEOF
23574 # Generated by $as_me.
23575 # Run this file to recreate the current configuration.
23576 # Compiler output produced by configure, useful for debugging
23577 # configure, is in config.log if it exists.
23580 ac_cs_recheck=false
23582 SHELL=\${CONFIG_SHELL-$SHELL}
23585 cat >>$CONFIG_STATUS <<\_ACEOF
23586 ## --------------------- ##
23587 ## M4sh Initialization. ##
23588 ## --------------------- ##
23590 # Be more Bourne compatible
23591 DUALCASE=1; export DUALCASE # for MKS sh
23592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23596 # is contrary to our usage. Disable this feature.
23597 alias -g '${1+"$@"}'='"$@
"'
23598 setopt NO_GLOB_SUBST
23600 case `(set -o) 2>/dev/null` in
23601 *posix*) set -o posix ;;
23610 # Avoid depending upon Character Ranges.
23611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23614 as_cr_digits='0123456789'
23615 as_cr_alnum=$as_cr_Letters$as_cr_digits
23617 # The user is always right.
23618 if test "${PATH_SEPARATOR+set}" != set; then
23619 echo "#! /bin/sh" >conf$$.sh
23620 echo "exit 0" >>conf$$.sh
23622 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23630 # Support unset when possible.
23631 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23639 # We need space, tab and new line, in precisely that order. Quoting is
23640 # there to prevent editors from complaining about space-tab.
23641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23642 # splitting by setting IFS to empty value.)
23647 # Find who we are. Look in the path if we contain no directory separator.
23649 *[\\/]* ) as_myself
=$0 ;;
23650 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23651 for as_dir
in $PATH
23654 test -z "$as_dir" && as_dir
=.
23655 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23661 # We did not find ourselves, most probably we were run as `sh COMMAND'
23662 # in which case we are not to be found in the path.
23663 if test "x$as_myself" = x
; then
23666 if test ! -f "$as_myself"; then
23667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23668 { (exit 1); exit 1; }
23671 # Work around bugs in pre-3.0 UWIN ksh.
23672 for as_var
in ENV MAIL MAILPATH
23673 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23683 LC_TELEPHONE LC_TIME
23685 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23686 eval $as_var=C
; export $as_var
23688 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23692 # Required to use basename.
23693 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23694 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23700 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23701 as_basename
=basename
23707 # Name of the executable.
23708 as_me
=`$as_basename -- "$0" ||
23709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23710 X"$0" : 'X\(//\)$' \| \
23711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23713 sed '/^.*\/\([^/][^/]*\)\/*$/{
23732 as_lineno_1
=$LINENO
23733 as_lineno_2
=$LINENO
23734 test "x$as_lineno_1" != "x$as_lineno_2" &&
23735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23738 # uniformly replaced by the line number. The first 'sed' inserts a
23739 # line-number line after each line using $LINENO; the second 'sed'
23740 # does the real work. The second script uses 'N' to pair each
23741 # line-number line with the line containing $LINENO, and appends
23742 # trailing '-' during substitution so that $LINENO is not a special
23743 # case at line end.
23744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23745 # scripts with optimization help from Paolo Bonzini. Blame Lee
23746 # E. McMahon (1931-1989) for sed's syntax. :-)
23758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23761 ' >$as_me.lineno
&&
23762 chmod +x
"$as_me.lineno" ||
23763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23764 { (exit 1); exit 1; }; }
23766 # Don't try to exec as it changes $[0], causing all sort of problems
23767 # (the dirname of $[0] is not the place where we might find the
23768 # original and so on. Autoconf is especially sensitive to this).
23769 .
"./$as_me.lineno"
23770 # Exit status is that of the last command.
23775 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23781 ECHO_C
= ECHO_N
= ECHO_T
=
23782 case `echo -n x` in
23784 case `echo 'x\c'` in
23785 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23792 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23793 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23799 rm -f conf$$ conf$$.exe conf$$.
file
23800 if test -d conf$$.dir
; then
23801 rm -f conf$$.dir
/conf$$.
file
23807 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23809 # ... but there are two gotchas:
23810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23812 # In both cases, we have to default to `cp -p'.
23813 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23815 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23820 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23821 rmdir conf$$.dir
2>/dev
/null
23823 if mkdir
-p .
2>/dev
/null
; then
23826 test -d .
/-p && rmdir .
/-p
23830 if test -x / >/dev
/null
2>&1; then
23831 as_test_x
='test -x'
23833 if ls -dL / >/dev
/null
2>&1; then
23840 if test -d "$1"; then
23846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23847 ???[sx]*):;;*)false;;esac;fi
23851 as_executable_p
=$as_test_x
23853 # Sed expression to map a string onto a valid CPP name.
23854 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23856 # Sed expression to map a string onto a valid variable name.
23857 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23862 # Save the log message, to keep $[0] and so on meaningful, and to
23863 # report actual input values of CONFIG_FILES etc. instead of their
23864 # values after options handling.
23866 This file was extended by $as_me, which was
23867 generated by GNU Autoconf 2.61. Invocation command line was
23869 CONFIG_FILES = $CONFIG_FILES
23870 CONFIG_HEADERS = $CONFIG_HEADERS
23871 CONFIG_LINKS = $CONFIG_LINKS
23872 CONFIG_COMMANDS = $CONFIG_COMMANDS
23875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23880 cat >>$CONFIG_STATUS <<_ACEOF
23881 # Files that config.status was made for.
23882 config_files="$ac_config_files"
23883 config_headers="$ac_config_headers"
23884 config_commands="$ac_config_commands"
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23890 \`$as_me' instantiates files from templates according to the
23891 current configuration.
23893 Usage: $0 [OPTIONS] [FILE]...
23895 -h, --help print this help, then exit
23896 -V, --version print version number and configuration settings, then exit
23897 -q, --quiet do not print progress messages
23898 -d, --debug don't remove temporary files
23899 --recheck update $as_me by reconfiguring in the same conditions
23900 --file=FILE[:TEMPLATE]
23901 instantiate the configuration file FILE
23902 --header=FILE[:TEMPLATE]
23903 instantiate the configuration header FILE
23905 Configuration files:
23908 Configuration headers:
23911 Configuration commands:
23914 Report bugs to <bug-autoconf@gnu.org>."
23917 cat >>$CONFIG_STATUS <<_ACEOF
23920 configured by $0, generated by GNU Autoconf 2.61,
23921 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23923 Copyright (C) 2006 Free Software Foundation, Inc.
23924 This config.status script is free software; the Free Software Foundation
23925 gives unlimited permission to copy, distribute and modify it."
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # If no file are specified by the user, then we need to provide default
23934 # value. By we need to know if files were specified by the user.
23940 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23941 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23952 # Handling of the options.
23953 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23955 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23956 echo "$ac_cs_version"; exit ;;
23957 --debug |
--debu |
--deb |
--de |
--d |
-d )
23959 --file |
--fil |
--fi |
--f )
23961 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23962 ac_need_defaults
=false
;;
23963 --header |
--heade |
--head |
--hea )
23965 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23966 ac_need_defaults
=false
;;
23968 # Conflict between --help and --header
23969 { echo "$as_me: error: ambiguous option: $1
23970 Try \`$0 --help' for more information." >&2
23971 { (exit 1); exit 1; }; };;
23972 --help |
--hel |
-h )
23973 echo "$ac_cs_usage"; exit ;;
23974 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23975 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23978 # This is an error.
23979 -*) { echo "$as_me: error: unrecognized option: $1
23980 Try \`$0 --help' for more information." >&2
23981 { (exit 1); exit 1; }; } ;;
23983 *) ac_config_targets
="$ac_config_targets $1"
23984 ac_need_defaults
=false
;;
23990 ac_configure_extra_args
=
23992 if $ac_cs_silent; then
23994 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23998 cat >>$CONFIG_STATUS <<_ACEOF
23999 if \$ac_cs_recheck; then
24000 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24001 CONFIG_SHELL=$SHELL
24002 export CONFIG_SHELL
24003 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24012 ## Running $as_me. ##
24018 cat >>$CONFIG_STATUS <<_ACEOF
24022 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24026 cat >>$CONFIG_STATUS <<\_ACEOF
24028 # Handling of arguments.
24029 for ac_config_target
in $ac_config_targets
24031 case $ac_config_target in
24032 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24033 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24034 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24035 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24036 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24037 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24038 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24039 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24040 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24041 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24042 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24043 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24046 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24047 { (exit 1); exit 1; }; };;
24052 # If the user did not use the arguments to specify the items to instantiate,
24053 # then the envvar interface is used. Set only those that are not.
24054 # We use the long form for the default assignment because of an extremely
24055 # bizarre bug on SunOS 4.1.3.
24056 if $ac_need_defaults; then
24057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24062 # Have a temporary directory for convenience. Make it in the build tree
24063 # simply because there is no reason against having it here, and in addition,
24064 # creating and moving files from /tmp can sometimes cause problems.
24065 # Hook for its removal unless debugging.
24066 # Note that there is a small window in which the directory will not be cleaned:
24067 # after its creation but before its name has been assigned to `$tmp'.
24071 trap 'exit_status=$?
24072 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24074 trap '{ (exit 1); exit 1; }' 1 2 13 15
24076 # Create a (secure) tmp directory for tmp files.
24079 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24080 test -n "$tmp" && test -d "$tmp"
24083 tmp
=.
/conf$$
-$RANDOM
24084 (umask 077 && mkdir
"$tmp")
24087 echo "$me: cannot create a temporary directory in ." >&2
24088 { (exit 1); exit 1; }
24092 # Set up the sed scripts for CONFIG_FILES section.
24095 # No need to generate the scripts if there are no CONFIG_FILES.
24096 # This happens for instance when ./config.status config.h
24097 if test -n "$CONFIG_FILES"; then
24104 for ac_last_try
in false false false false false
:; do
24105 cat >conf$
$subs.
sed <<_ACEOF
24106 SHELL!$SHELL$ac_delim
24107 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24108 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24109 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24110 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24111 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24112 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24113 exec_prefix!$exec_prefix$ac_delim
24114 prefix!$prefix$ac_delim
24115 program_transform_name!$program_transform_name$ac_delim
24116 bindir!$bindir$ac_delim
24117 sbindir!$sbindir$ac_delim
24118 libexecdir!$libexecdir$ac_delim
24119 datarootdir!$datarootdir$ac_delim
24120 datadir!$datadir$ac_delim
24121 sysconfdir!$sysconfdir$ac_delim
24122 sharedstatedir!$sharedstatedir$ac_delim
24123 localstatedir!$localstatedir$ac_delim
24124 includedir!$includedir$ac_delim
24125 oldincludedir!$oldincludedir$ac_delim
24126 docdir!$docdir$ac_delim
24127 infodir!$infodir$ac_delim
24128 htmldir!$htmldir$ac_delim
24129 dvidir!$dvidir$ac_delim
24130 pdfdir!$pdfdir$ac_delim
24131 psdir!$psdir$ac_delim
24132 libdir!$libdir$ac_delim
24133 localedir!$localedir$ac_delim
24134 mandir!$mandir$ac_delim
24135 DEFS!$DEFS$ac_delim
24136 ECHO_C!$ECHO_C$ac_delim
24137 ECHO_N!$ECHO_N$ac_delim
24138 ECHO_T!$ECHO_T$ac_delim
24139 LIBS!$LIBS$ac_delim
24140 build_alias!$build_alias$ac_delim
24141 host_alias!$host_alias$ac_delim
24142 target_alias!$target_alias$ac_delim
24143 MAINT!$MAINT$ac_delim
24144 build!$build$ac_delim
24145 build_cpu!$build_cpu$ac_delim
24146 build_vendor!$build_vendor$ac_delim
24147 build_os!$build_os$ac_delim
24148 host!$host$ac_delim
24149 host_cpu!$host_cpu$ac_delim
24150 host_vendor!$host_vendor$ac_delim
24151 host_os!$host_os$ac_delim
24153 CFLAGS!$CFLAGS$ac_delim
24154 LDFLAGS!$LDFLAGS$ac_delim
24155 CPPFLAGS!$CPPFLAGS$ac_delim
24156 ac_ct_CC!$ac_ct_CC$ac_delim
24157 EXEEXT!$EXEEXT$ac_delim
24158 OBJEXT!$OBJEXT$ac_delim
24160 GREP!$GREP$ac_delim
24161 EGREP!$EGREP$ac_delim
24162 LN_S!$LN_S$ac_delim
24163 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24164 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24165 INSTALL_DATA!$INSTALL_DATA$ac_delim
24166 RANLIB!$RANLIB$ac_delim
24167 INSTALL_INFO!$INSTALL_INFO$ac_delim
24168 GZIP_PROG!$GZIP_PROG$ac_delim
24169 LIBSOUND!$LIBSOUND$ac_delim
24170 PKG_CONFIG!$PKG_CONFIG$ac_delim
24171 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24172 ALSA_LIBS!$ALSA_LIBS$ac_delim
24173 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24174 SET_MAKE!$SET_MAKE$ac_delim
24175 XMKMF!$XMKMF$ac_delim
24176 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24177 GTK_LIBS!$GTK_LIBS$ac_delim
24178 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24179 XFT_LIBS!$XFT_LIBS$ac_delim
24180 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24181 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24182 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24183 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24184 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24185 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24186 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24187 ALLOCA!$ALLOCA$ac_delim
24188 liblockfile!$liblockfile$ac_delim
24189 LIBOBJS!$LIBOBJS$ac_delim
24190 NEED_SETGID!$NEED_SETGID$ac_delim
24191 KMEM_GROUP!$KMEM_GROUP$ac_delim
24192 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24193 GETOPT_H!$GETOPT_H$ac_delim
24194 GETOPTOBJS!$GETOPTOBJS$ac_delim
24195 version!$version$ac_delim
24196 configuration!$configuration$ac_delim
24197 canonical!$canonical$ac_delim
24198 srcdir!$srcdir$ac_delim
24199 lispdir!$lispdir$ac_delim
24200 locallisppath!$locallisppath$ac_delim
24201 lisppath!$lisppath$ac_delim
24202 x_default_search_path!$x_default_search_path$ac_delim
24205 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24207 elif $ac_last_try; then
24208 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24209 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24210 { (exit 1); exit 1; }; }
24212 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24216 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24217 if test -n "$ac_eof"; then
24218 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24219 ac_eof
=`expr $ac_eof + 1`
24222 cat >>$CONFIG_STATUS <<_ACEOF
24223 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24227 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24228 s/^/s,@/; s/!/@,|#_!!_#|/
24231 s/'"$ac_delim"'$/,g/; t
24233 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24234 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24235 rm -f conf$
$subs.
sed
24236 cat >>$CONFIG_STATUS <<_ACEOF
24242 for ac_last_try
in false false false false false
:; do
24243 cat >conf$
$subs.
sed <<_ACEOF
24244 etcdir!$etcdir$ac_delim
24245 archlibdir!$archlibdir$ac_delim
24246 bitmapdir!$bitmapdir$ac_delim
24247 gamedir!$gamedir$ac_delim
24248 gameuser!$gameuser$ac_delim
24249 c_switch_system!$c_switch_system$ac_delim
24250 c_switch_machine!$c_switch_machine$ac_delim
24251 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24252 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24253 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24254 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24255 machfile!$machfile$ac_delim
24256 opsysfile!$opsysfile$ac_delim
24257 carbon_appdir!$carbon_appdir$ac_delim
24258 LTLIBOBJS!$LTLIBOBJS$ac_delim
24261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24263 elif $ac_last_try; then
24264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24266 { (exit 1); exit 1; }; }
24268 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24272 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24273 if test -n "$ac_eof"; then
24274 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24275 ac_eof
=`expr $ac_eof + 1`
24278 cat >>$CONFIG_STATUS <<_ACEOF
24279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24284 s/^/s,@/; s/!/@,|#_!!_#|/
24287 s/'"$ac_delim"'$/,g/; t
24289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24290 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24291 rm -f conf$
$subs.
sed
24292 cat >>$CONFIG_STATUS <<_ACEOF
24299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24301 # trailing colons and then remove the whole line if VPATH becomes empty
24302 # (actually we leave an empty line to preserve line numbers).
24303 if test "x$srcdir" = x.
; then
24304 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24305 s/:*\$(srcdir):*/:/
24306 s/:*\${srcdir}:*/:/
24308 s/^\([^=]*=[ ]*\):*/\1/
24314 cat >>$CONFIG_STATUS <<\_ACEOF
24315 fi # test -n "$CONFIG_FILES"
24318 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24321 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24323 case $ac_mode$ac_tag in
24325 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24327 { (exit 1); exit 1; }; };;
24328 :[FH
]-) ac_tag
=-:-;;
24329 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24346 -) ac_f
="$tmp/stdin";;
24347 *) # Look for the file first in the build tree, then in the source tree
24348 # (if the path is not absolute). The absolute path cannot be DOS-style,
24349 # because $ac_f cannot contain `:'.
24353 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24357 { (exit 1); exit 1; }; };;
24359 ac_file_inputs
="$ac_file_inputs $ac_f"
24362 # Let's still pretend it is `configure' which instantiates (i.e., don't
24363 # use $as_me), people would be surprised to read:
24364 # /* config.h. Generated by config.status. */
24365 configure_input
="Generated from "`IFS=:
24366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24367 if test x
"$ac_file" != x-
; then
24368 configure_input
="$ac_file. $configure_input"
24369 { echo "$as_me:$LINENO: creating $ac_file" >&5
24370 echo "$as_me: creating $ac_file" >&6;}
24374 *:-:* |
*:-) cat >"$tmp/stdin";;
24379 ac_dir
=`$as_dirname -- "$ac_file" ||
24380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24381 X"$ac_file" : 'X\(//\)[^/]' \| \
24382 X"$ac_file" : 'X\(//\)$' \| \
24383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24389 /^X\(\/\/\)[^/].*/{
24404 -*) as_dir
=.
/$as_dir;;
24406 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24410 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24411 *) as_qdir
=$as_dir;;
24413 as_dirs
="'$as_qdir' $as_dirs"
24414 as_dir
=`$as_dirname -- "$as_dir" ||
24415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24416 X"$as_dir" : 'X\(//\)[^/]' \| \
24417 X"$as_dir" : 'X\(//\)$' \| \
24418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24424 /^X\(\/\/\)[^/].*/{
24437 test -d "$as_dir" && break
24439 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24440 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24442 { (exit 1); exit 1; }; }; }
24446 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24448 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24449 # A ".." for each directory in $ac_dir_suffix.
24450 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24451 case $ac_top_builddir_sub in
24452 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24453 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24456 ac_abs_top_builddir
=$ac_pwd
24457 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24458 # for backward compatibility:
24459 ac_top_builddir
=$ac_top_build_prefix
24462 .
) # We are building in place.
24464 ac_top_srcdir
=$ac_top_builddir_sub
24465 ac_abs_top_srcdir
=$ac_pwd ;;
24466 [\\/]* | ?
:[\\/]* ) # Absolute name.
24467 ac_srcdir
=$srcdir$ac_dir_suffix;
24468 ac_top_srcdir
=$srcdir
24469 ac_abs_top_srcdir
=$srcdir ;;
24470 *) # Relative name.
24471 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24472 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24473 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24475 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24485 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24486 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24490 cat >>$CONFIG_STATUS <<\_ACEOF
24491 # If the template does not know about datarootdir, expand it.
24492 # FIXME: This hack should be removed a few years after 2.60.
24493 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24495 case `sed -n '/datarootdir/ {
24504 ' $ac_file_inputs` in
24505 *datarootdir
*) ac_datarootdir_seen
=yes;;
24506 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24510 cat >>$CONFIG_STATUS <<_ACEOF
24511 ac_datarootdir_hack='
24512 s&@datadir@&$datadir&g
24513 s&@docdir@&$docdir&g
24514 s&@infodir@&$infodir&g
24515 s&@localedir@&$localedir&g
24516 s&@mandir@&$mandir&g
24517 s&\\\${datarootdir}&$datarootdir&g' ;;
24521 # Neutralize VPATH when `$srcdir' = `.'.
24522 # Shell code in configure.ac might set extrasub.
24523 # FIXME: do we really want to maintain this feature?
24524 cat >>$CONFIG_STATUS <<_ACEOF
24528 cat >>$CONFIG_STATUS <<\_ACEOF
24530 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24531 s
&@configure_input@
&$configure_input&;t t
24532 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24533 s
&@srcdir@
&$ac_srcdir&;t t
24534 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24535 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24536 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24537 s
&@builddir@
&$ac_builddir&;t t
24538 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24539 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24540 s
&@INSTALL@
&$ac_INSTALL&;t t
24541 $ac_datarootdir_hack
24542 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24547 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24548 which seems to be undefined. Please make sure it is defined." >&5
24549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24550 which seems to be undefined. Please make sure it is defined." >&2;}
24554 -) cat "$tmp/out"; rm -f "$tmp/out";;
24555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24564 # Transform confdefs.h into a sed script `conftest.defines', that
24565 # substitutes the proper values into config.h.in to produce config.h.
24566 rm -f conftest.defines conftest.
tail
24567 # First, append a space to every undef/define line, to ease matching.
24568 echo 's/$/ /' >conftest.defines
24569 # Then, protect against being on the right side of a sed subst, or in
24570 # an unquoted here document, in config.status. If some macros were
24571 # called several times there might be several #defines for the same
24572 # symbol, which is useless. But do not sort them, since the last
24573 # AC_DEFINE must be honored.
24574 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24577 # PARAMS is the parameter list in the macro definition--in most cases, it's
24578 # just an empty string.
24579 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24580 ac_dB
='\\)[ (].*,\\1define\\2'
24588 s/^[ ]*#[ ]*define[ ][ ]*//
24593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24595 ' >>conftest.defines
24597 # Remove the space that was appended to ease matching.
24598 # Then replace #undef with comments. This is necessary, for
24599 # example, in the case of _POSIX_SOURCE, which is predefined and required
24600 # on some systems where configure will not decide to define it.
24601 # (The regexp can be short, since the line contains either #define or #undef.)
24603 s,^[ #]*u.*,/* & */,' >>conftest.defines
24605 # Break up conftest.defines:
24606 ac_max_sed_lines
=50
24608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24612 ac_in
='$ac_file_inputs'
24613 ac_out
='"$tmp/out1"'
24614 ac_nxt
='"$tmp/out2"'
24618 # Write a here document:
24619 cat >>$CONFIG_STATUS <<_ACEOF
24620 # First, check the format of the line:
24621 cat >"\$tmp/defines.sed" <<\\CEOF
24622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24627 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24630 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24631 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24632 grep . conftest.
tail >/dev
/null ||
break
24633 rm -f conftest.defines
24634 mv conftest.
tail conftest.defines
24636 rm -f conftest.defines conftest.
tail
24638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24639 cat >>$CONFIG_STATUS <<\_ACEOF
24640 if test x
"$ac_file" != x-
; then
24641 echo "/* $configure_input */" >"$tmp/config.h"
24642 cat "$ac_result" >>"$tmp/config.h"
24643 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24645 echo "$as_me: $ac_file is unchanged" >&6;}
24648 mv "$tmp/config.h" $ac_file
24651 echo "/* $configure_input */"
24657 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24658 echo "$as_me: executing $ac_file commands" >&6;}
24663 case $ac_file$ac_mode in
24666 ### Make the necessary directories, if they don't exist.
24667 for dir
in etc lisp
; do
24668 test -d ${dir} || mkdir
${dir}
24671 # Build src/Makefile from ${srcdir}/src/Makefile.c
24672 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24673 # This must be done after src/config.h is built, since we rely on that file.
24675 # Now get this: Some word that is part of the ${srcdir} directory name
24676 # or the ${configuration} value might, just might, happen to be an
24677 # identifier like `sun4' or `i386' or something, and be predefined by
24678 # the C preprocessor to some helpful value like 1, or maybe the empty
24679 # string. Needless to say consequent macro substitutions are less
24680 # than conducive to the makefile finding the correct directory.
24681 undefs
="`echo $top_srcdir $configuration $canonical |
24682 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24683 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24686 echo creating src
/epaths.h
24687 ${MAKE-make} epaths-force
24689 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24690 # `..' to `. .' unless invoked with -traditional
24692 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24693 CPPFLAGS
="$CPPFLAGS -traditional"
24696 echo creating lib-src
/Makefile
24698 rm -f junk.c junk1.c junk2.c
24699 sed -e '/start of cpp stuff/q' \
24700 < Makefile.c
> junk1.c
24701 sed -e '1,/start of cpp stuff/d'\
24702 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24703 < Makefile.c
> junk.c
24704 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24705 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24706 cat junk1.c junk2.c
> Makefile.new
24707 rm -f junk.c junk1.c junk2.c
24708 chmod 444 Makefile.new
24709 mv -f Makefile.new Makefile
24712 echo creating src
/Makefile
24714 rm -f junk.c junk1.c junk2.c
24715 sed -e '/start of cpp stuff/q' \
24716 < Makefile.c
> junk1.c
24717 sed -e '1,/start of cpp stuff/d'\
24718 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24719 < Makefile.c
> junk.c
24720 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24721 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24723 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24725 cat junk1.c junk2.c
> Makefile.new
24726 rm -f junk.c junk1.c junk2.c
24727 chmod 444 Makefile.new
24728 mv -f Makefile.new Makefile
24731 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24732 echo creating src
/.gdbinit
24733 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24736 # This is how we know whether to re-run configure in certain cases.
24737 touch src
/config.stamp
24745 { (exit 0); exit 0; }
24747 chmod +x
$CONFIG_STATUS
24748 ac_clean_files
=$ac_clean_files_save
24751 # configure is writing to config.log, and then calls config.status.
24752 # config.status does its own redirection, appending to config.log.
24753 # Unfortunately, on DOS this fails, as config.log is still kept open
24754 # by configure, so config.status won't be able to write to it; its
24755 # output is simply discarded. So we exec the FD to /dev/null,
24756 # effectively closing config.log, so it can be properly (re)opened and
24757 # appended to by config.status. When coming back to configure, we
24758 # need to make the FD available again.
24759 if test "$no_create" != yes; then
24761 ac_config_status_args
=
24762 test "$silent" = yes &&
24763 ac_config_status_args
="$ac_config_status_args --quiet"
24765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24768 # would make configure fail if this is the last instruction.
24769 $ac_cs_success ||
{ (exit 1); exit 1; }