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
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1855 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1898 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1899 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1988 USE_MAINTAINER_MODE=no
1991 if test $USE_MAINTAINER_MODE = yes; then
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2008 #### Make srcdir absolute, if it isn't already. It
's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2026 srcdir
="`(cd ${srcdir}; pwd)`"
2029 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2052 ### Canonicalize the configuration name.
2055 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2058 ac_install_sh
="$ac_aux_dir/install-sh -c"
2060 elif test -f "$ac_dir/install.sh"; then
2062 ac_install_sh
="$ac_aux_dir/install.sh -c"
2064 elif test -f "$ac_dir/shtool"; then
2066 ac_install_sh
="$ac_aux_dir/shtool install -c"
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2096 ac_build_alias
=$build_alias
2097 test "x$ac_build_alias" = x
&&
2098 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x
&&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2118 ac_save_IFS
=$IFS; IFS
='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test "x$host_alias" = x
; then
2137 ac_cv_host
=$ac_cv_build
2139 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2169 configuration
=${host_alias-$host}
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2196 machine
='' opsys
='' unported
=no
2197 case "${canonical}" in
2202 case "${canonical}" in
2203 alpha
*-*-freebsd*) machine
=alpha
;;
2204 ia64-
*-freebsd*) machine
=ia64
;;
2205 sparc64-
*-freebsd*) machine
=sparc
;;
2206 powerpc-
*-freebsd*) machine
=macppc
;;
2207 i
[3456]86-*-freebsd*) machine
=intel386
;;
2208 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2215 if test -f /usr
/lib
/crti.o
; then
2217 cat >>confdefs.h
<<\_ACEOF
2223 case "${canonical}" in
2224 alpha
*-*-netbsd*) machine
=alpha
;;
2225 i
[3456]86-*-netbsd*) machine
=intel386
;;
2227 # This is somewhat bogus.
2228 machine
=hp9000s300
;;
2229 mips-
*-netbsd*) machine
=pmax
;;
2230 mipsel-
*-netbsd*) machine
=pmax
;;
2231 mipseb-
*-netbsd*) machine
=pmax
;;
2232 ns32k-
*-netbsd*) machine
=ns32000
;;
2233 powerpc-
*-netbsd*) machine
=macppc
;;
2234 sparc
*-*-netbsd*) machine
=sparc
;;
2235 vax-
*-netbsd*) machine
=vax
;;
2236 arm-
*-netbsd*) machine
=arm
;;
2237 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2238 hppa-
*-netbsd*) machine
=hp800
;;
2239 shle-
*-netbsd*) machine
=sh3el
;;
2246 case "${canonical}" in
2247 alpha
*-*-openbsd*) machine
=alpha
;;
2248 i386-
*-openbsd*) machine
=intel386
;;
2249 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2250 m68k-
*-openbsd*) machine
=hp9000s300
;;
2251 mipsel-
*-openbsd*) machine
=pmax
;;
2252 ns32k-
*-openbsd*) machine
=ns32000
;;
2253 sparc-
*-openbsd*) machine
=sparc
;;
2254 vax-
*-openbsd*) machine
=vax
;;
2261 case "${canonical}" in
2262 i
[3456]86-*-lynxos*) machine
=intel386
;;
2263 powerpc-
*-lynxos*) machine
=powerpc
;;
2268 arm-acorn-riscix1.1
* )
2269 machine
=acorn opsys
=riscix1-1
2271 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine
=acorn opsys
=riscix12
2280 case "${canonical}" in
2281 i
[345]86-*-bsdi*) machine
=intel386
;;
2282 sparc-
*-bsdi*) machine
=sparc
;;
2283 powerpc-
*-bsdi*) machine
=macppc
;;
2285 case "${canonical}" in
2286 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2287 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2288 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2289 *-*-bsdi3* ) opsys
=bsdos3
;;
2290 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2301 machine
=alliant4 opsys
=bsd4-2
2304 machine
=alliant-2800 opsys
=bsd4-3
2307 ## Alpha (DEC) machines.
2309 machine
=alpha opsys
=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2312 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP
=/usr
/bin
/cpp
2318 case "${canonical}" in
2319 alpha
*-dec-osf[5-9]*)
2324 alpha
*-*-linux-gnu* )
2325 machine
=alpha opsys
=gnu-linux
2329 machine
=arm opsys
=gnu-linux
2334 machine
=altos opsys
=usg5-2
2339 machine
=amdahl opsys
=usg5-2-2
2342 ## Apollo, Domain/OS
2344 machine
=apollo opsys
=bsd4-3
2347 ## Apple Darwin / Mac OS X
2349 case "${canonical}" in
2350 i
[3456]86-* ) machine
=intel386
;;
2351 powerpc-
* ) machine
=powermac
;;
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP
="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw
/include
&& test -d /sw
/lib
; then
2359 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2360 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2367 machine
=att3b opsys
=usg5-2-2
2370 ## AT&T 3b1 - The Mighty Unix PC!
2372 machine
=7300 opsys
=usg5-2-2
2377 machine
=ibmrs6000 opsys
=aix3-2
2382 machine
=dpx2 opsys
=usg5-3
2387 machine
=sps7 opsys
=usg5-2
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd
* )
2397 machine
=celerity opsys
=bsd4-2
2401 ## What operating systems does this chip run that Emacs has been
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2410 mips-compaq-nonstopux
* )
2411 machine
=nonstopux opsys
=nonstopux
2415 *-convex-bsd* |
*-convex-convexos* )
2416 machine
=convex opsys
=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP
="cc -E -P"
2422 i
[3456]86-cubix-sysv* )
2423 machine
=intel386 opsys
=usg5-3
2427 cydra
*-cydrome-sysv* )
2428 machine
=cydra5 opsys
=usg5-3
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2438 machine
=aviion opsys
=dgux4
2440 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine
=aviion opsys
=dgux5-4-3
2445 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2446 machine
=aviion opsys
=dgux5-4r2
2449 machine
=aviion opsys
=dgux
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i
[345]86-dg-dguxR4* )
2456 machine
=aviion-intel opsys
=dgux4
2460 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2461 machine
=pmax opsys
=bsd4-2
2463 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2464 machine
=pmax opsys
=bsd4-3
2467 machine
=pmax opsys
=ultrix4-3
2470 machine
=pmax opsys
=osf1
2472 mips-dec-mach_bsd4.3
* )
2473 machine
=pmax opsys
=mach-bsd4-3
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2478 machine
=delta opsys
=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2481 if test -s /etc
/167config
2482 then CC
="gnucc -m68040"
2483 else CC
="gnucc -m68881"
2486 if test -z "`type gcc | grep 'not found'`"
2492 m88k-motorola-sysv4
* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine
=delta88k opsys
=usg5-4-2
2499 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2500 machine
=delta88k opsys
=usg5-3
2505 machine
=dual opsys
=usg5-2
2507 m68
*-dual-uniplus* )
2508 machine
=dual opsys
=unipl5-2
2513 machine
=elxsi opsys
=usg5-2
2518 machine
=ns16000 opsys
=umax
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2524 ## Gould Power Node and NP1
2526 machine
=gould opsys
=bsd4-2
2529 machine
=gould opsys
=bsd4-3
2532 machine
=gould-np1 opsys
=bsd4-3
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2541 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2543 NON_GNU_CPP
="/lib/cpp"
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2547 machine
=nh3000 opsys
=cxux
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix
)
2551 machine
=nh6000 opsys
=powerunix
2552 NON_GNU_CPP
="cc -Xo -E -P"
2555 xps
*-honeywell-sysv* )
2556 machine
=xps100 opsys
=usg5-2
2559 ## HP 9000 series 200 or 300
2561 machine
=hp9000s300 opsys
=bsd4-3
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2569 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2570 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2571 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2572 *) machine
=hp9000s300 opsys
=hpux
;;
2576 hppa
*-*-linux-gnu* )
2577 machine
=hp800 opsys
=gnu-linux
2581 machine
=hp800 opsys
=nextstep
2586 machine
=orion opsys
=bsd4-2
2588 clipper-orion-bsd
* )
2589 machine
=orion105 opsys
=bsd4-2
2593 i
[3456]86-ibm-aix1.1
* )
2594 machine
=ibmps2-aix opsys
=usg5-2-2
2596 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2597 machine
=ibmps2-aix opsys
=usg5-3
2600 machine
=ibm370aix opsys
=usg5-3
2603 machine
=ibms390 opsys
=gnu-linux
2605 s390x-
*-linux-gnu* )
2606 machine
=ibms390x opsys
=gnu-linux
2608 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2609 machine
=ibmrs6000 opsys
=aix3-1
2611 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2612 machine
=ibmrs6000 opsys
=aix3-2-5
2614 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2615 machine
=ibmrs6000 opsys
=aix4-1
2617 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2618 machine
=ibmrs6000 opsys
=aix4-2
2620 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2621 machine
=ibmrs6000 opsys
=aix4-2
2623 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2624 machine
=ibmrs6000 opsys
=aix4
2626 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2627 machine
=ibmrs6000 opsys
=aix4-1
2629 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2630 machine
=ibmrs6000 opsys
=aix3-2
2633 machine
=ibmrt opsys
=bsd4-3
2636 machine
=ibmrt opsys
=bsd4-2
2639 machine
=ibmrt opsys
=bsd4-3
2642 machine
=ibmrt opsys
=bsd4-2
2645 machine
=ibmrt opsys
=bsd4-3
2648 machine
=ibmrt opsys
=bsd4-3
2651 machine
=ibmrt-aix opsys
=usg5-2-2
2654 ## Integrated Solutions `Optimum V'
2656 machine
=isi-ov opsys
=bsd4-2
2659 machine
=isi-ov opsys
=bsd4-3
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i
[3456]86-intsys-sysv* )
2664 machine
=is386 opsys
=usg5-2-2
2668 i
[3456]86-prime-sysv* )
2669 machine
=i386 opsys
=usg5-3
2672 ## Sequent Symmetry running Dynix
2673 i
[3456]86-sequent-bsd* )
2674 machine
=symmetry opsys
=bsd4-3
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2679 machine
=sequent-ptx opsys
=ptx4
2680 NON_GNU_CPP
=/lib
/cpp
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i
[3456]86-sequent-ptx* )
2686 machine
=sequent-ptx opsys
=ptx
2687 NON_GNU_CPP
="/lib/cpp"
2690 ## ncr machine running svr4.3.
2691 i
[3456]86-ncr-sysv4.3
)
2692 machine
=ncr386 opsys
=usg5-4-3
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i
[3456]86-ncr-sysv* )
2698 machine
=ncr386 opsys
=usg5-4-2
2701 ## Intel Paragon OSF/1
2703 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2708 machine
=i860 opsys
=usg5-4
2709 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2713 ## Macintosh PowerPC
2714 powerpc
*-*-linux-gnu* )
2715 machine
=macppc opsys
=gnu-linux
2718 ## Masscomp machines
2719 m68
*-masscomp-rtu* )
2720 machine
=masscomp opsys
=rtu
2723 ## Megatest machines
2724 m68
*-megatest-bsd* )
2725 machine
=mega68 opsys
=bsd4-2
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2741 ## Fall through to the general code at the bottom to decide on the OS.
2743 mips-mips-riscos4
* )
2744 machine
=mips4 opsys
=bsd4-3
2745 NON_GNU_CC
="cc -systype bsd43"
2746 NON_GNU_CPP
="cc -systype bsd43 -E"
2748 mips-mips-riscos5
* )
2749 machine
=mips4 opsys
=riscos5
2750 NON_GNU_CC
="cc -systype bsd43"
2751 NON_GNU_CPP
="cc -systype bsd43 -E"
2754 machine
=mips opsys
=bsd4-3
2757 machine
=mips opsys
=usg5-2-2
2761 m68
*-next-* | m68k-
*-nextstep* )
2762 machine
=m68k opsys
=nextstep
2765 ## The complete machine from National Semiconductor
2767 machine
=ns32000 opsys
=usg5-2
2771 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2772 machine
=tower32 opsys
=usg5-2-2
2774 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2775 machine
=tower32v3 opsys
=usg5-3
2780 machine
=ews4800 opsys
=ux4800
2783 ## Nixdorf Targon 31
2784 m68
*-nixdorf-sysv* )
2785 machine
=targon31 opsys
=usg5-2-2
2790 machine
=nu opsys
=usg5-2
2795 machine
=plexus opsys
=usg5-2
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd
* )
2802 machine
=pyramid opsys
=bsd4-2
2806 ns32k-sequent-bsd4.2
* )
2807 machine
=sequent opsys
=bsd4-2
2809 ns32k-sequent-bsd4.3
* )
2810 machine
=sequent opsys
=bsd4-3
2814 mips-siemens-sysv
* | mips-sni-sysv
*)
2815 machine
=mips-siemens opsys
=usg5-4
2816 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2817 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2823 machine
=irist opsys
=iris3-5
2825 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2826 machine
=irist opsys
=iris3-6
2830 machine
=iris4d opsys
=irix3-3
2833 machine
=iris4d opsys
=irix4-0
2836 machine
=iris4d opsys
=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2844 machine
=iris4d opsys
=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS
=-32
2851 mips-sgi-irix5.
[01]* )
2852 machine
=iris4d opsys
=irix5-0
2854 mips-sgi-irix5
* | mips-sgi-irix
* )
2855 machine
=iris4d opsys
=irix5-2
2860 machine
=news opsys
=bsd4-2
2863 machine
=news opsys
=bsd4-3
2865 m68
*-sony-newsos3* | m68
*-sony-news3*)
2866 machine
=news opsys
=bsd4-3
2868 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2869 machine
=news-risc opsys
=bsd4-3
2871 mips-sony-newsos6
* )
2872 machine
=news-r6 opsys
=newsos6
2875 machine
=news-risc opsys
=newsos5
2880 machine
=stride opsys
=usg5-2
2884 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2885 machine
=sparc opsys
=gnu-linux
2888 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2889 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2890 | rs6000-
*-solaris2*)
2891 case "${canonical}" in
2892 m68
*-sunos1* ) machine
=sun1
;;
2893 m68
*-sunos2* ) machine
=sun2
;;
2894 m68
* ) machine
=sun3
;;
2895 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2896 i
[3456]86-*-* ) machine
=intel386
;;
2897 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2898 powerpcle
* ) machine
=powerpcle
;;
2899 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2900 sparc
* ) machine
=sparc
;;
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2906 *-sunos4.0
* ) opsys
=sunos4-0
;;
2907 *-sunos4.1.
[3-9]*noshare
)
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2911 NON_GNU_CPP
=/usr
/lib
/cpp
2912 NON_GCC_TEST_OPTIONS
=-Bstatic
2913 GCC_TEST_OPTIONS
=-static
2915 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2917 NON_GNU_CPP
=/usr
/lib
/cpp
2919 *-sunos4* |
*-sunos )
2921 NON_GCC_TEST_OPTIONS
=-Bstatic
2922 GCC_TEST_OPTIONS
=-static
2924 *-sunos5.3
* |
*-solaris2.3
* )
2926 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2928 *-sunos5.4
* |
*-solaris2.4
* )
2930 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2933 *-sunos5.5
* |
*-solaris2.5
* )
2935 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2938 *-sunos5.6
* |
*-solaris2.6
* )
2940 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2943 *-sunos5* |
*-solaris* )
2945 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* |
*-sunos5* )
2952 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2962 machine
=sparc opsys
=nextstep
2966 m68
*-tadpole-sysv* )
2967 machine
=tad68k opsys
=usg5-3
2971 tahoe-tahoe-bsd4.2
* )
2972 machine
=tahoe opsys
=bsd4-2
2974 tahoe-tahoe-bsd4.3
* )
2975 machine
=tahoe opsys
=bsd4-3
2978 ## Tandem Integrity S2
2980 machine
=tandem-s2 opsys
=usg5-3
2984 m88k-tektronix-sysv3
* )
2985 machine
=tekxd88 opsys
=usg5-3
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd
* )
2990 machine
=ns16000 opsys
=bsd4-2
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68
*-tektronix-bsd* )
2995 machine
=tek4300 opsys
=bsd4-3
2999 ## We seem to have lost the machine-description file titan.h!
3001 machine
=titan opsys
=usg5-3
3004 ## Ustation E30 (SS5E)
3005 m68
*-unisys-uniplus* )
3006 machine
=ustation opsystem
=unipl5-2
3012 case "${canonical}" in
3013 *-bsd4.1
* ) opsys
=bsd4-1
;;
3014 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3015 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3016 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3017 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3018 *-vms* ) opsys
=vms
;;
3024 ns16k-whitechapel-
* )
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3032 machine
=wicat opsys
=usg5-2
3037 machine
=ia64 opsys
=gnu-linux
3040 ## Intel 386 machines where we don't care about the manufacturer
3043 case "${canonical}" in
3044 *-cygwin ) opsys
=cygwin
;;
3045 *-darwin* ) opsys
=darwin
3046 CPP
="${CC-cc} -E -no-cpp-precomp"
3048 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3049 *-isc2.2
* ) opsys
=isc2-2
;;
3050 *-isc4.0
* ) opsys
=isc4-0
;;
3051 *-isc4.
* ) opsys
=isc4-1
3052 GCC_TEST_OPTIONS
=-posix
3053 NON_GCC_TEST_OPTIONS
=-Xp
3055 *-isc* ) opsys
=isc3-0
;;
3056 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3057 *-esix* ) opsys
=esix
;;
3058 *-xenix* ) opsys
=xenix
;;
3059 *-linux-gnu* ) opsys
=gnu-linux
;;
3060 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3061 *-sco3.2v5
* ) opsys
=sco5
3062 NON_GNU_CPP
=/lib
/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS
=" "
3067 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3068 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3069 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3070 *-386bsd* ) opsys
=386bsd
;;
3071 *-nextstep* ) opsys
=nextstep
;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3076 ## m68k Linux-based GNU system
3078 machine
=m68k opsys
=gnu-linux
3081 ## Mips Linux-based GNU system
3082 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3083 machine
=mips opsys
=gnu-linux
3087 sparc-fujitsu-sysv4
* )
3088 machine
=sparc opsys
=uxpds
3089 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3094 f301-fujitsu-uxpv4.1
)
3095 machine
=f301 opsys
=uxpv
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-
*-linux-gnu* )
3100 machine
=amdx86-64 opsys
=gnu-linux
3108 ### If the code above didn't choose an operating system, just choose
3109 ### an operating system based on the configuration name. You really
3110 ### only want to use this when you have no idea what the right
3111 ### operating system is; if you know what operating systems a machine
3112 ### runs, it's cleaner to make it explicit in the case statement
3114 if test x
"${opsys}" = x
; then
3115 case "${canonical}" in
3116 *-gnu* ) opsys
=gnu
;;
3117 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3118 *-bsd4.2
) opsys
=bsd4-2
;;
3119 *-bsd4.3
) opsys
=bsd4-3
;;
3120 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3121 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3122 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3123 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3124 *-sysv4.2uw
* ) opsys
=unixware
;;
3125 *-sysv5uw* ) opsys
=unixware
;;
3126 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3127 *-sysv4.1
* |
*-sysvr4.1
* )
3128 NON_GNU_CPP
=/usr
/lib
/cpp
3130 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3131 if [ x
$NON_GNU_CPP = x
]; then
3132 if [ -f /usr
/ccs
/lib
/cpp
]; then
3133 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3135 NON_GNU_CPP
=/lib
/cpp
3139 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3148 if test $unported = yes; then
3149 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3150 Check \`etc/MACHINES' for recognized configuration names." >&5
3151 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3152 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3153 { (exit 1); exit 1; }; }
3156 machfile
="m/${machine}.h"
3157 opsysfile
="s/${opsys}.h"
3160 #### Choose a compiler.
3161 test -n "$CC" && cc_specified
=yes
3163 # Save the value of CFLAGS that the user specified.
3164 SPECIFIED_CFLAGS
="$CFLAGS"
3167 "yes" ) CC
="gcc" GCC
=yes ;;
3168 "no" ) : ${CC=cc} ;;
3172 ac_cpp
='$CPP $CPPFLAGS'
3173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC
="$CC" # Let the user override the test.
3187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir
=.
3192 for ac_exec_ext
in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 if test -n "$CC"; then
3206 { echo "$as_me:$LINENO: result: $CC" >&5
3207 echo "${ECHO_T}$CC" >&6; }
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3215 if test -z "$ac_cv_prog_CC"; then
3217 # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc
; ac_word
=$2
3219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir
=.
3232 for ac_exec_ext
in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC
="gcc"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 echo "${ECHO_T}$ac_ct_CC" >&6; }
3249 { echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6; }
3253 if test "x$ac_ct_CC" = x
; then
3256 case $cross_compiling:$ac_tool_warned in
3258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3259 whose name does not start with the host triplet. If you think this
3260 configuration is useful to you, please write to autoconf@gnu.org." >&5
3261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3262 whose name does not start with the host triplet. If you think this
3263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3264 ac_tool_warned
=yes ;;
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC
="$CC" # Let the user override the test.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc
; ac_word
=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC
="$CC" # Let the user override the test.
3325 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3329 test -z "$as_dir" && as_dir
=.
3330 for ac_exec_ext
in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected
=yes
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy
$ac_cv_prog_CC
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3353 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3359 if test -n "$CC"; then
3360 { echo "$as_me:$LINENO: result: $CC" >&5
3361 echo "${ECHO_T}$CC" >&6; }
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog
in cl.exe
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC
="$CC" # Let the user override the test.
3383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir
=.
3388 for ac_exec_ext
in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CC"; then
3402 { echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6; }
3405 { echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6; }
3410 test -n "$CC" && break
3413 if test -z "$CC"; then
3415 for ac_prog
in cl.exe
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy
$ac_prog; ac_word
=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir
=.
3432 for ac_exec_ext
in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_CC
="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3447 echo "${ECHO_T}$ac_ct_CC" >&6; }
3449 { echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6; }
3454 test -n "$ac_ct_CC" && break
3457 if test "x$ac_ct_CC" = x
; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet. If you think this
3464 configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466 whose name does not start with the host triplet. If you think this
3467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468 ac_tool_warned
=yes ;;
3477 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." >&5
3479 echo "$as_me: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&2;}
3481 { (exit 1); exit 1; }; }
3483 # Provide some information about the compiler.
3484 echo "$as_me:$LINENO: checking for C compiler version" >&5
3485 ac_compiler
=`set X $ac_compile; echo $2`
3486 { (ac_try
="$ac_compiler --version >&5"
3488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compiler --version >&5") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 { (ac_try="$ac_compiler -v >&5"
3498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3499 *) ac_try_echo
=$ac_try;;
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compiler -v >&5") 2>&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 { (ac_try
="$ac_compiler -V >&5"
3508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler -V >&5") 2>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3517 cat >conftest.$ac_ext <<_ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3537 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3539 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3541 # List of possible output files, starting from the most likely.
3542 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3543 # only as a last resort. b.out is created by i960 compilers.
3544 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3546 # The IRIX 6 linker writes into existing files which may not be
3547 # executable, retaining their permissions. Remove them first so a
3548 # subsequent execution test works.
3550 for ac_file in $ac_files
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3559 if { (ac_try="$ac_link_default"
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_link_default") 2>&5
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; then
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3574 for ac_file
in $ac_files ''
3576 test -f "$ac_file" ||
continue
3578 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3581 # We found the default executable, but exeext='' is most
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3587 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3599 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3605 { echo "$as_me:$LINENO: result: $ac_file" >&5
3606 echo "${ECHO_T}$ac_file" >&6; }
3607 if test -z "$ac_file"; then
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.
$ac_ext >&5
3611 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C compiler cannot create executables
3614 See \`config.log' for more details." >&2;}
3615 { (exit 77); exit 77; }; }
3618 ac_exeext
=$ac_cv_exeext
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3625 # If not cross compiling, check that we can run a simple program.
3626 if test "$cross_compiling" != yes; then
3627 if { ac_try
='./$ac_file'
3628 { (case "(($ac_try" in
3629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3639 if test "$cross_compiling" = maybe; then
3642 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details.
" >&5
3645 echo "$as_me: error
: cannot run C compiled programs.
3646 If you meant to cross compile
, use \
`--host'.
3647 See \`config.log
' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3661 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3662 echo "${ECHO_T}$cross_compiling" >&6; }
3664 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3666 if { (ac_try="$ac_link"
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; then
3676 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3680 for ac_file
in conftest.exe conftest conftest.
*; do
3681 test -f "$ac_file" ||
continue
3683 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3684 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&2;}
3694 { (exit 1); exit 1; }; }
3697 rm -f conftest
$ac_cv_exeext
3698 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3699 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3701 rm -f conftest.
$ac_ext
3702 EXEEXT
=$ac_cv_exeext
3704 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3706 if test "${ac_cv_objext+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3709 cat >conftest.
$ac_ext <<_ACEOF
3712 cat confdefs.h
>>conftest.
$ac_ext
3713 cat >>conftest.
$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3724 rm -f conftest.o conftest.obj
3725 if { (ac_try
="$ac_compile"
3727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3748 See \`config.log
' for more details." >&5
3749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details.
" >&2;}
3751 { (exit 1); exit 1; }; }
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3756 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3757 echo "${ECHO_T}$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached
) $ECHO_C" >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3792 grep -v '^ *+' conftest.er1 >conftest.err
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3802 echo "$as_me: failed program was
:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3812 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3818 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached
) $ECHO_C" >&6
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3850 grep -v '^ *+' conftest.er1 >conftest.err
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3860 echo "$as_me: failed program was
:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was
:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3927 grep -v '^ *+' conftest.er1 >conftest.err
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3937 echo "$as_me: failed program was
:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3963 if test "$GCC" = yes; then
3969 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3970 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached
) $ECHO_C" >&6
3974 ac_cv_prog_cc_c89=no
3976 cat >conftest.$ac_ext <<_ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3995 static char *f (char * (*g) (char **, int), char **p, ...)
4000 s = g (p, va_arg (v,int));
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4046 grep -v '^ *+' conftest.er1 >conftest.err
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4056 echo "$as_me: failed program was
:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4065 rm -f conftest.$ac_ext
4070 case "x
$ac_cv_prog_cc_c89" in
4072 { echo "$as_me:$LINENO: result
: none needed
" >&5
4073 echo "${ECHO_T}none needed
" >&6; } ;;
4075 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4076 echo "${ECHO_T}unsupported
" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4096 #### Some systems specify a CPP to use unless we are using GCC.
4097 #### Now that we know whether we are using GCC, we can decide whether
4098 #### to use that one.
4099 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4104 #### Some systems specify a CC to use unless we are using GCC.
4105 #### Now that we know whether we are using GCC, we can decide whether
4106 #### to use that one.
4107 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4108 test x$cc_specified != xyes
4113 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4115 CC="$CC $GCC_TEST_OPTIONS"
4118 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4120 CC="$CC $NON_GCC_TEST_OPTIONS"
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4130 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4131 # On Suns, sometimes $CPP names a directory.
4132 if test -n "$CPP" && test -d "$CPP"; then
4135 if test -z "$CPP"; then
4136 if test "${ac_cv_prog_CPP+set}" = set; then
4137 echo $ECHO_N "(cached
) $ECHO_C" >&6
4139 # Double quotes because CPP needs to be expanded
4140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4143 for ac_c_preproc_warn_flag in '' yes
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error
" is here to catch this case.
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4158 # include <limits.h>
4160 # include <assert.h>
4164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4172 grep -v '^ *+' conftest.er1 >conftest.err
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4182 echo "$as_me: failed program was
:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4185 # Broken: fails on valid input.
4189 rm -f conftest.err conftest.$ac_ext
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat >conftest.$ac_ext <<_ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4209 grep -v '^ *+' conftest.er1 >conftest.err
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4217 # Broken: success on invalid input.
4220 echo "$as_me: failed program was
:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4223 # Passes both tests.
4228 rm -f conftest.err conftest.$ac_ext
4231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232 rm -f conftest.err conftest.$ac_ext
4233 if $ac_preproc_ok; then
4245 { echo "$as_me:$LINENO: result
: $CPP" >&5
4246 echo "${ECHO_T}$CPP" >&6; }
4248 for ac_c_preproc_warn_flag in '' yes
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error
" is here to catch this case.
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4263 # include <limits.h>
4265 # include <assert.h>
4269 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4277 grep -v '^ *+' conftest.er1 >conftest.err
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4287 echo "$as_me: failed program was
:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Broken: fails on valid input.
4294 rm -f conftest.err conftest.$ac_ext
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4306 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4314 grep -v '^ *+' conftest.er1 >conftest.err
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4318 (exit $ac_status); } >/dev/null && {
4319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4322 # Broken: success on invalid input.
4325 echo "$as_me: failed program was
:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 # Passes both tests.
4333 rm -f conftest.err conftest.$ac_ext
4336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337 rm -f conftest.err conftest.$ac_ext
4338 if $ac_preproc_ok; then
4341 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4342 See \
`config.log' for more details." >&5
4343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4344 See \`config.log
' for more details." >&2;}
4345 { (exit 1); exit 1; }; }
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4351 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 # Extract the first word of "grep ggrep" to use in msg output
4361 if test -z "$GREP"; then
4362 set dummy grep ggrep; ac_prog_name=$2
4363 if test "${ac_cv_path_GREP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_path_GREP_found=false
4367 # Loop through the user's path and
test for each of PROGNAME-LIST
4368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4369 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4372 test -z "$as_dir" && as_dir
=.
4373 for ac_prog
in grep ggrep
; do
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4377 # Check for GNU ac_path_GREP and select it if it is found.
4378 # Check for GNU $ac_path_GREP
4379 case `"$ac_path_GREP" --version 2>&1` in
4381 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 echo 'GREP' >> "conftest.nl"
4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4392 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4393 ac_count
=`expr $ac_count + 1`
4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_GREP
="$ac_path_GREP"
4397 ac_path_GREP_max
=$ac_count
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4402 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4406 $ac_path_GREP_found && break 3
4416 GREP
="$ac_cv_path_GREP"
4417 if test -z "$GREP"; then
4418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4424 ac_cv_path_GREP
=$GREP
4429 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4430 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4431 GREP
="$ac_cv_path_GREP"
4434 { echo "$as_me:$LINENO: checking for egrep" >&5
4435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4439 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4440 then ac_cv_path_EGREP
="$GREP -E"
4442 # Extract the first word of "egrep" to use in msg output
4443 if test -z "$EGREP"; then
4444 set dummy
egrep; ac_prog_name
=$2
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_path_EGREP_found
=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4454 test -z "$as_dir" && as_dir
=.
4455 for ac_prog
in egrep; do
4456 for ac_exec_ext
in '' $ac_executable_extensions; do
4457 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4459 # Check for GNU ac_path_EGREP and select it if it is found.
4460 # Check for GNU $ac_path_EGREP
4461 case `"$ac_path_EGREP" --version 2>&1` in
4463 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 echo 'EGREP' >> "conftest.nl"
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4474 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4475 ac_count
=`expr $ac_count + 1`
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP
="$ac_path_EGREP"
4479 ac_path_EGREP_max
=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4488 $ac_path_EGREP_found && break 3
4498 EGREP
="$ac_cv_path_EGREP"
4499 if test -z "$EGREP"; then
4500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4502 { (exit 1); exit 1; }; }
4506 ac_cv_path_EGREP
=$EGREP
4512 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4513 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4514 EGREP
="$ac_cv_path_EGREP"
4518 { echo "$as_me:$LINENO: checking for AIX" >&5
4519 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4520 cat >conftest.
$ac_ext <<_ACEOF
4523 cat confdefs.h
>>conftest.
$ac_ext
4524 cat >>conftest.
$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "yes" >/dev
/null
2>&1; then
4533 { echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6; }
4535 cat >>confdefs.h
<<\_ACEOF
4536 #define _ALL_SOURCE 1
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4547 cat >>confdefs.h
<<\_ACEOF
4548 #define _GNU_SOURCE 1
4553 ### Use -Wno-pointer-sign if the compiler supports it
4554 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4555 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4556 SAVE_CFLAGS
="$CFLAGS"
4557 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4558 cat >conftest.
$ac_ext <<_ACEOF
4561 cat confdefs.h
>>conftest.
$ac_ext
4562 cat >>conftest.
$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4573 rm -f conftest.
$ac_objext
4574 if { (ac_try
="$ac_compile"
4576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1 >conftest.err
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest.$ac_objext; then
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $has_option = yes; then
4600 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4602 { echo "$as_me:$LINENO: result: $has_option" >&5
4603 echo "${ECHO_T}$has_option" >&6; }
4604 CFLAGS="$SAVE_CFLAGS"
4608 #### Some other nice autoconf tests.
4610 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4613 if test "$LN_S" = "ln -s"; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4617 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6; }
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4628 # On Suns, sometimes $CPP names a directory.
4629 if test -n "$CPP" && test -d "$CPP"; then
4632 if test -z "$CPP"; then
4633 if test "${ac_cv_prog_CPP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 # Double quotes because CPP needs to be expanded
4637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4640 for ac_c_preproc_warn_flag in '' yes
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4655 # include <limits.h>
4657 # include <assert.h>
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4669 grep -v '^ *+' conftest.er1
>conftest.err
4671 cat conftest.err
>&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev
/null
&& {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.
$ac_ext >&5
4682 # Broken: fails on valid input.
4686 rm -f conftest.err conftest.
$ac_ext
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat >conftest.
$ac_ext <<_ACEOF
4693 cat confdefs.h
>>conftest.
$ac_ext
4694 cat >>conftest.
$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4698 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4700 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null && {
4711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4714 # Broken: success on invalid input.
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4720 # Passes both tests.
4725 rm -f conftest.err conftest.$ac_ext
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.
$ac_ext
4730 if $ac_preproc_ok; then
4742 { echo "$as_me:$LINENO: result: $CPP" >&5
4743 echo "${ECHO_T}$CPP" >&6; }
4745 for ac_c_preproc_warn_flag
in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.
$ac_ext <<_ACEOF
4756 cat confdefs.h
>>conftest.
$ac_ext
4757 cat >>conftest.
$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4760 # include <limits.h>
4762 # include <assert.h>
4766 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 # Broken: fails on valid input.
4791 rm -f conftest.err conftest.$ac_ext
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <ac_nonexistent.h>
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4806 *) ac_try_echo
=$ac_try;;
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4811 grep -v '^ *+' conftest.er1
>conftest.err
4813 cat conftest.err
>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev
/null
&& {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4819 # Broken: success on invalid input.
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.
$ac_ext >&5
4825 # Passes both tests.
4830 rm -f conftest.err conftest.
$ac_ext
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.err conftest.
$ac_ext
4835 if $ac_preproc_ok; then
4838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details." >&5
4840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details." >&2;}
4842 { (exit 1); exit 1; }; }
4846 ac_cpp
='$CPP $CPPFLAGS'
4847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4851 # Find a good install program. We prefer a C program (faster),
4852 # so one script is as good as another. But avoid the broken or
4853 # incompatible versions:
4854 # SysV /etc/install, /usr/sbin/install
4855 # SunOS /usr/etc/install
4856 # IRIX /sbin/install
4858 # AmigaOS /C/install, which installs bootblocks on floppy discs
4859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4862 # OS/2's system install, which has a completely different semantic
4863 # ./install, which can be erroneously created by make from ./install.sh.
4864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4866 if test -z "$INSTALL"; then
4867 if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir
=.
4875 # Account for people who put trailing slashes in PATH elements.
4877 .
/ | .
// |
/cC
/* | \
4878 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4879 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4885 for ac_prog
in ginstall scoinst
install; do
4886 for ac_exec_ext
in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4888 if test $ac_prog = install &&
4889 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4892 elif test $ac_prog = install &&
4893 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4897 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4910 if test "${ac_cv_path_install+set}" = set; then
4911 INSTALL
=$ac_cv_path_install
4913 # As a last resort, use the slow shell script. Don't cache a
4914 # value for INSTALL within a source directory, because that will
4915 # break other packages using the cache if that directory is
4916 # removed, or if the value is a relative name.
4917 INSTALL
=$ac_install_sh
4920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4921 echo "${ECHO_T}$INSTALL" >&6; }
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4929 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4931 if test "x$RANLIB" = x
; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4943 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir
=.
4948 for ac_exec_ext
in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 RANLIB
=$ac_cv_prog_RANLIB
4961 if test -n "$RANLIB"; then
4962 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4963 echo "${ECHO_T}$RANLIB" >&6; }
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB
=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib
; ac_word
=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4983 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4987 test -z "$as_dir" && as_dir
=.
4988 for ac_exec_ext
in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5009 if test "x$ac_ct_RANLIB" = x
; then
5012 case $cross_compiling:$ac_tool_warned in
5014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5015 whose name does not start with the host triplet. If you think this
5016 configuration is useful to you, please write to autoconf@gnu.org." >&5
5017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet. If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5020 ac_tool_warned
=yes ;;
5022 RANLIB
=$ac_ct_RANLIB
5025 RANLIB
="$ac_cv_prog_RANLIB"
5029 # Extract the first word of "install-info", so it can be a program name with args.
5030 set dummy install-info
; ac_word
=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 case $INSTALL_INFO in
5038 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 for ac_exec_ext
in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5059 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5060 if test -n "$INSTALL_INFO"; then
5061 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5062 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5069 # Extract the first word of "install-info", so it can be a program name with args.
5070 set dummy install-info
; ac_word
=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 case $INSTALL_INFO in
5078 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5082 for as_dir
in /usr
/sbin
5085 test -z "$as_dir" && as_dir
=.
5086 for ac_exec_ext
in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5100 if test -n "$INSTALL_INFO"; then
5101 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5102 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5109 # Extract the first word of "install-info", so it can be a program name with args.
5110 set dummy install-info
; ac_word
=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 case $INSTALL_INFO in
5118 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5125 test -z "$as_dir" && as_dir
=.
5126 for ac_exec_ext
in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5136 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5140 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5141 if test -n "$INSTALL_INFO"; then
5142 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5143 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5150 # Extract the first word of "gzip", so it can be a program name with args.
5151 set dummy
gzip; ac_word
=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir
=.
5167 for ac_exec_ext
in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5181 if test -n "$GZIP_PROG"; then
5182 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5183 echo "${ECHO_T}$GZIP_PROG" >&6; }
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5192 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5194 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5197 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5199 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5203 late_LDFLAGS
=$LDFLAGS
5204 if test "$GCC" = yes; then
5205 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5207 LDFLAGS
="$LDFLAGS -znocombreloc"
5210 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5211 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5212 cat >conftest.
$ac_ext <<_ACEOF
5215 rm -f conftest.
$ac_objext conftest
$ac_exeext
5216 if { (ac_try
="$ac_link"
5218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest$ac_exeext &&
5232 $as_test_x conftest$ac_exeext; then
5233 { echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6; }
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5239 LDFLAGS=$late_LDFLAGS
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 conftest$ac_exeext conftest.$ac_ext
5247 #### Extract some information from the operating system and machine files.
5249 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5250 - which libraries the lib-src programs will want, and
5251 - whether the GNU malloc routines are usable..." >&5
5252 echo "$as_me: checking the machine- and system-dependent files to find out
5253 - which libraries the lib-src programs will want, and
5254 - whether the GNU malloc routines are usable..." >&6;}
5256 ### First figure out CFLAGS (which we use for running the compiler here)
5257 ### and REAL_CFLAGS (which we use for real compilation).
5258 ### The two are the same except on a few systems, where they are made
5259 ### different to work around various lossages. For example,
5260 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5261 ### as implying static linking.
5263 ### If the CFLAGS env var is specified, we use that value
5264 ### instead of the default.
5266 ### It's not important that this name contain the PID; you can't run
5267 ### two configures in the same directory and have anything work
5269 tempcname="conftest.c"
5272 #include "'${srcdir}'/src/'${opsysfile}'"
5273 #include "'${srcdir}'/src/'${machfile}'"
5274 #ifndef LIBS_MACHINE
5275 #define LIBS_MACHINE
5280 #ifndef C_SWITCH_SYSTEM
5281 #define C_SWITCH_SYSTEM
5283 #ifndef C_SWITCH_MACHINE
5284 #define C_SWITCH_MACHINE
5286 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5287 configure___ c_switch_system=C_SWITCH_SYSTEM
5288 configure___ c_switch_machine=C_SWITCH_MACHINE
5291 #define LIB_X11_LIB -lX11
5294 #ifndef LIBX11_MACHINE
5295 #define LIBX11_MACHINE
5298 #ifndef LIBX11_SYSTEM
5299 #define LIBX11_SYSTEM
5301 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5304 configure___ unexec=UNEXEC
5306 configure___ unexec=unexec.o
5309 #ifdef SYSTEM_MALLOC
5310 configure___ system_malloc=yes
5312 configure___ system_malloc=no
5315 #ifdef USE_MMAP_FOR_BUFFERS
5316 configure___ use_mmap_for_buffers=yes
5318 configure___ use_mmap_for_buffers=no
5321 #ifndef C_DEBUG_SWITCH
5322 #define C_DEBUG_SWITCH -g
5325 #ifndef C_OPTIMIZE_SWITCH
5327 #define C_OPTIMIZE_SWITCH -O2
5329 #define C_OPTIMIZE_SWITCH -O
5333 #ifndef C_WARNINGS_SWITCH
5334 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5337 #ifndef LD_SWITCH_MACHINE
5338 #define LD_SWITCH_MACHINE
5341 #ifndef LD_SWITCH_SYSTEM
5342 #define LD_SWITCH_SYSTEM
5345 #ifndef LD_SWITCH_X_SITE_AUX
5346 #define LD_SWITCH_X_SITE_AUX
5349 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5350 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5352 #ifdef THIS_IS_CONFIGURE
5354 /* Get the CFLAGS for tests in configure. */
5356 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5358 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5361 #else /* not THIS_IS_CONFIGURE */
5363 /* Get the CFLAGS for real compilation. */
5365 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5367 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5370 #endif /* not THIS_IS_CONFIGURE */
5373 # The value of CPP is a quoted variable reference, so we need to do this
5374 # to get its actual value...
5375 CPP=`eval "echo $CPP"`
5376 eval `${CPP} -Isrc ${tempcname} \
5377 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5378 if test "x$SPECIFIED_CFLAGS" = x; then
5379 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5380 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5382 REAL_CFLAGS="$CFLAGS"
5386 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5388 ### Make sure subsequent tests use flags consistent with the build flags.
5390 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5391 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5393 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5398 # Check whether --enable-largefile was given.
5399 if test "${enable_largefile+set}" = set; then
5400 enableval=$enable_largefile;
5403 if test "$enable_largefile" != no; then
5405 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5406 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5407 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5410 ac_cv_sys_largefile_CC=no
5411 if test "$GCC" != yes; then
5414 # IRIX 6.2 and later do not support large files by default,
5415 # so use the C compiler's -n32 option if that helps.
5416 cat >conftest.$ac_ext <<_ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 /* Check that off_t can represent 2**63 - 1 correctly.
5424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5425 since some C++ compilers masquerading as C compilers
5426 incorrectly reject 9223372036854775807. */
5427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5429 && LARGE_OFF_T % 2147483647 == 1)
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5443 *) ac_try_echo
=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1
>conftest.err
5450 cat conftest.err
>&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.
$ac_objext; then
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.
$ac_ext >&5
5464 rm -f core conftest.err conftest.
$ac_objext
5466 rm -f conftest.
$ac_objext
5467 if { (ac_try
="$ac_compile"
5469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest.$ac_objext; then
5483 ac_cv_sys_largefile_CC=' -n32'; break
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5491 rm -f core conftest.err conftest.$ac_objext
5495 rm -f conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5499 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5500 if test "$ac_cv_sys_largefile_CC" != no; then
5501 CC=$CC$ac_cv_sys_largefile_CC
5504 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5505 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
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
5550 ac_cv_sys_file_offset_bits
=no
; break
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.
$ac_ext >&5
5558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5559 cat >conftest.
$ac_ext <<_ACEOF
5562 cat confdefs.h
>>conftest.
$ac_ext
5563 cat >>conftest.
$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #define _FILE_OFFSET_BITS 64
5566 #include <sys/types.h>
5567 /* Check that off_t can represent 2**63 - 1 correctly.
5568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 since some C++ compilers masquerading as C compilers
5570 incorrectly reject 9223372036854775807. */
5571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5573 && LARGE_OFF_T % 2147483647 == 1)
5583 rm -f conftest.
$ac_objext
5584 if { (ac_try
="$ac_compile"
5586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5592 grep -v '^ *+' conftest.er1 >conftest.err
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_cv_sys_file_offset_bits=64; break
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 ac_cv_sys_file_offset_bits=unknown
5613 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5614 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5615 case $ac_cv_sys_file_offset_bits in #(
5618 cat >>confdefs.h <<_ACEOF
5619 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5624 if test $ac_cv_sys_file_offset_bits = unknown; then
5625 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5626 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5627 if test "${ac_cv_sys_large_files+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 cat >conftest.$ac_ext <<_ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 /* Check that off_t can represent 2**63 - 1 correctly.
5639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5640 since some C++ compilers masquerading as C compilers
5641 incorrectly reject 9223372036854775807. */
5642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5644 && LARGE_OFF_T % 2147483647 == 1)
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5658 *) ac_try_echo
=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.
$ac_objext; then
5671 ac_cv_sys_large_files
=no
; break
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5680 cat >conftest.
$ac_ext <<_ACEOF
5683 cat confdefs.h
>>conftest.
$ac_ext
5684 cat >>conftest.
$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5704 rm -f conftest.
$ac_objext
5705 if { (ac_try
="$ac_compile"
5707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5713 grep -v '^ *+' conftest.er1 >conftest.err
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && {
5718 test -z "$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 } && test -s conftest.$ac_objext; then
5721 ac_cv_sys_large_files=1; break
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 ac_cv_sys_large_files=unknown
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5735 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5736 case $ac_cv_sys_large_files in #(
5739 cat >>confdefs.h <<_ACEOF
5740 #define _LARGE_FILES $ac_cv_sys_large_files
5750 ### The standard library on x86-64 GNU/Linux distributions can
5751 ### be located in either /usr/lib64 or /usr/lib.
5752 case "${canonical}" in
5753 x86_64-*-linux-gnu* )
5754 if test -d /usr/lib64; then
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_X86_64_LIB64_DIR 1
5766 if test "${with_sound}" != "no"; then
5767 # Sound support for GNU/Linux and the free BSDs.
5768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5770 if test "${ac_cv_header_stdc+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 cat >conftest.$ac_ext <<_ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5796 *) ac_try_echo
=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1
>conftest.err
5803 cat conftest.err
>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.
$ac_objext; then
5809 ac_cv_header_stdc
=yes
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.
$ac_ext >&5
5814 ac_cv_header_stdc
=no
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5819 if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat >conftest.
$ac_ext <<_ACEOF
5824 cat confdefs.h
>>conftest.
$ac_ext
5825 cat >>conftest.
$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "memchr" >/dev
/null
2>&1; then
5834 ac_cv_header_stdc
=no
5840 if test $ac_cv_header_stdc = yes; then
5841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "free" >/dev
/null
2>&1; then
5855 ac_cv_header_stdc
=no
5861 if test $ac_cv_header_stdc = yes; then
5862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5863 if test "$cross_compiling" = yes; then
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5874 #if ((' ' & 0x0FF) == 0x020)
5875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5878 # define ISLOWER(c) \
5879 (('a' <= (c) && (c) <= 'i') \
5880 || ('j' <= (c) && (c) <= 'r') \
5881 || ('s' <= (c) && (c) <= 'z'))
5882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5890 for (i = 0; i < 256; i++)
5891 if (XOR (islower (i), ISLOWER (i))
5892 || toupper (i) != TOUPPER (i))
5897 rm -f conftest
$ac_exeext
5898 if { (ac_try
="$ac_link"
5900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_link") 2>&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5919 echo "$as_me: program exited with status $ac_status" >&5
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.
$ac_ext >&5
5924 ac_cv_header_stdc
=no
5926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5934 if test $ac_cv_header_stdc = yes; then
5936 cat >>confdefs.h
<<\_ACEOF
5937 #define STDC_HEADERS 1
5942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5952 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5953 inttypes.h stdint.h unistd.h
5955 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5969 #include <$ac_header>
5971 rm -f conftest.
$ac_objext
5972 if { (ac_try
="$ac_compile"
5974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 eval "$as_ac_Header=yes"
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 eval "$as_ac_Header=no"
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 ac_res=`eval echo '${'$as_ac_Header'}'`
5999 { echo "$as_me:$LINENO: result: $ac_res" >&5
6000 echo "${ECHO_T}$ac_res" >&6; }
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6014 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6016 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 ac_res=`eval echo '${'$as_ac_Header'}'`
6024 { echo "$as_me:$LINENO: result: $ac_res" >&5
6025 echo "${ECHO_T}$ac_res" >&6; }
6027 # Is the header compilable?
6028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6030 cat >conftest.$ac_ext <<_ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 $ac_includes_default
6037 #include <$ac_header>
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6043 *) ac_try_echo
=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6048 grep -v '^ *+' conftest.er1
>conftest.err
6050 cat conftest.err
>&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.
$ac_objext; then
6056 ac_header_compiler
=yes
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.
$ac_ext >&5
6061 ac_header_compiler
=no
6064 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6; }
6068 # Is the header present?
6069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <$ac_header>
6079 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6081 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null && {
6092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6095 ac_header_preproc=yes
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6100 ac_header_preproc=no
6103 rm -f conftest.err conftest.$ac_ext
6104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6105 echo "${ECHO_T}$ac_header_preproc" >&6; }
6107 # So? What about this header?
6108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6114 ac_header_preproc=yes
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6137 eval "$as_ac_Header=\$ac_header_preproc"
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6153 # Emulation library used on NetBSD.
6154 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6159 ac_check_lib_save_LIBS=$LIBS
6160 LIBS="-lossaudio $LIBS"
6161 cat >conftest.$ac_ext <<_ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6178 return _oss_ioctl ();
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (ac_try="$ac_link"
6186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6187 *) ac_try_echo
=$ac_try;;
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6192 grep -v '^ *+' conftest.er1
>conftest.err
6194 cat conftest.err
>&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest
$ac_exeext &&
6200 $as_test_x conftest
$ac_exeext; then
6201 ac_cv_lib_ossaudio__oss_ioctl
=yes
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.
$ac_ext >&5
6206 ac_cv_lib_ossaudio__oss_ioctl
=no
6209 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6210 conftest
$ac_exeext conftest.
$ac_ext
6211 LIBS
=$ac_check_lib_save_LIBS
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6214 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6215 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6224 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6225 if test "X${with_pkg_config_prog}" != X
; then
6226 PKG_CONFIG
="${with_pkg_config_prog}"
6231 if test -z "$PKG_CONFIG"; then
6232 # Extract the first word of "pkg-config", so it can be a program name with args.
6233 set dummy pkg-config
; ac_word
=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6248 test -z "$as_dir" && as_dir
=.
6249 for ac_exec_ext
in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6263 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6264 if test -n "$PKG_CONFIG"; then
6265 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6266 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6268 { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6275 if test "$PKG_CONFIG" = "no" ; then
6278 PKG_CONFIG_MIN_VERSION
=0.9.0
6279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6280 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6281 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6283 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6284 { echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6; }
6288 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6289 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6290 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6291 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6292 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6294 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6295 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6296 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6297 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6298 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6304 ## If we have a custom action on failure, don't print errors, but
6305 ## do set a variable so people can do so.
6306 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6318 if test $succeeded = yes; then
6324 if test $HAVE_ALSA = yes; then
6325 SAVE_CFLAGS
="$CFLAGS"
6326 SAVE_LDFLAGS
="$LDFLAGS"
6327 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6328 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6329 cat >conftest.
$ac_ext <<_ACEOF
6332 cat confdefs.h
>>conftest.
$ac_ext
6333 cat >>conftest.
$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <asoundlib.h>
6339 snd_lib_error_set_handler (0);
6344 rm -f conftest.
$ac_objext
6345 if { (ac_try
="$ac_compile"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 emacs_alsa_normal=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 emacs_alsa_normal=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test "$emacs_alsa_normal" != yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <alsa/asoundlib.h>
6381 snd_lib_error_set_handler (0);
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6390 *) ac_try_echo
=$ac_try;;
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6395 grep -v '^ *+' conftest.er1
>conftest.err
6397 cat conftest.err
>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.
$ac_objext; then
6403 emacs_alsa_subdir
=yes
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.
$ac_ext >&5
6408 emacs_alsa_subdir
=no
6411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6412 if test "$emacs_alsa_subdir" != yes; then
6413 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6414 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6415 { (exit 1); exit 1; }; }
6417 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6420 CFLAGS
="$SAVE_CFLAGS"
6421 LDFLAGS
="$SAVE_LDFLAGS"
6422 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6423 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6425 cat >>confdefs.h
<<\_ACEOF
6459 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6460 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6461 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6462 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6465 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6469 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6472 ac_res
=`eval echo '${'$as_ac_Header'}'`
6473 { echo "$as_me:$LINENO: result: $ac_res" >&5
6474 echo "${ECHO_T}$ac_res" >&6; }
6476 # Is the header compilable?
6477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6479 cat >conftest.
$ac_ext <<_ACEOF
6482 cat confdefs.h
>>conftest.
$ac_ext
6483 cat >>conftest.
$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 #include <$ac_header>
6488 rm -f conftest.
$ac_objext
6489 if { (ac_try
="$ac_compile"
6491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6497 grep -v '^ *+' conftest.er1 >conftest.err
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 ac_header_compiler=yes
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_header_compiler=no
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6515 echo "${ECHO_T}$ac_header_compiler" >&6; }
6517 # Is the header present?
6518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <$ac_header>
6528 if { (ac_try="$ac_cpp conftest.$ac_ext"
6530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6531 *) ac_try_echo
=$ac_try;;
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6536 grep -v '^ *+' conftest.er1
>conftest.err
6538 cat conftest.err
>&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev
/null
&& {
6541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6544 ac_header_preproc
=yes
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.
$ac_ext >&5
6549 ac_header_preproc
=no
6552 rm -f conftest.err conftest.
$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6; }
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563 ac_header_preproc
=yes
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6583 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 eval "$as_ac_Header=\$ac_header_preproc"
6588 ac_res
=`eval echo '${'$as_ac_Header'}'`
6589 { echo "$as_me:$LINENO: result: $ac_res" >&5
6590 echo "${ECHO_T}$ac_res" >&6; }
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h
<<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6603 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6604 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6605 cat >conftest.
$ac_ext <<_ACEOF
6608 cat confdefs.h
>>conftest.
$ac_ext
6609 cat >>conftest.
$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/personality.h>
6615 personality (PER_LINUX32)
6620 rm -f conftest.
$ac_objext
6621 if { (ac_try
="$ac_compile"
6623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6629 grep -v '^ *+' conftest.er1 >conftest.err
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 emacs_cv_personality_linux32=yes
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 emacs_cv_personality_linux32=no
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6647 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6649 if test $emacs_cv_personality_linux32 = yes; then
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_PERSONALITY_LINUX32 1
6658 for ac_header in term.h
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <$ac_header>
6674 if { (ac_try="$ac_cpp conftest.$ac_ext"
6676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6677 *) ac_try_echo
=$ac_try;;
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6682 grep -v '^ *+' conftest.er1
>conftest.err
6684 cat conftest.err
>&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev
/null
&& {
6687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6690 eval "$as_ac_Header=yes"
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.
$ac_ext >&5
6695 eval "$as_ac_Header=no"
6698 rm -f conftest.err conftest.
$ac_ext
6700 ac_res
=`eval echo '${'$as_ac_Header'}'`
6701 { echo "$as_me:$LINENO: result: $ac_res" >&5
6702 echo "${ECHO_T}$ac_res" >&6; }
6703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704 cat >>confdefs.h
<<_ACEOF
6705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6712 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_stdc+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6717 cat >conftest.
$ac_ext <<_ACEOF
6720 cat confdefs.h
>>conftest.
$ac_ext
6721 cat >>conftest.
$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6736 rm -f conftest.
$ac_objext
6737 if { (ac_try
="$ac_compile"
6739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6745 grep -v '^ *+' conftest.er1 >conftest.err
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_cv_header_stdc=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6758 ac_cv_header_stdc=no
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 if test $ac_cv_header_stdc = yes; then
6764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "memchr" >/dev/null 2>&1; then
6778 ac_cv_header_stdc=no
6784 if test $ac_cv_header_stdc = yes; then
6785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "free" >/dev/null 2>&1; then
6799 ac_cv_header_stdc=no
6805 if test $ac_cv_header_stdc = yes; then
6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6807 if test "$cross_compiling" = yes; then
6810 cat >conftest.$ac_ext <<_ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6818 #if ((' ' & 0x0FF) == 0x020)
6819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6822 # define ISLOWER(c) \
6823 (('a' <= (c) && (c) <= 'i') \
6824 || ('j' <= (c) && (c) <= 'r') \
6825 || ('s' <= (c) && (c) <= 'z'))
6826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6834 for (i = 0; i < 256; i++)
6835 if (XOR (islower (i), ISLOWER (i))
6836 || toupper (i) != TOUPPER (i))
6841 rm -f conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6845 *) ac_try_echo
=$ac_try;;
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>&5
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6852 { (case "(($ac_try" in
6853 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_try") 2>&5
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6863 echo "$as_me: program exited with status $ac_status" >&5
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6868 ac_cv_header_stdc=no
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6876 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6877 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6880 cat >>confdefs.h <<\_ACEOF
6881 #define STDC_HEADERS 1
6886 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6888 if test "${ac_cv_header_time+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/time.h>
6904 if ((struct tm *) 0)
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6914 *) ac_try_echo
=$ac_try;;
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6919 grep -v '^ *+' conftest.er1
>conftest.err
6921 cat conftest.err
>&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.
$ac_objext; then
6927 ac_cv_header_time
=yes
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.
$ac_ext >&5
6932 ac_cv_header_time
=no
6935 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6937 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6938 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6939 if test $ac_cv_header_time = yes; then
6941 cat >>confdefs.h
<<\_ACEOF
6942 #define TIME_WITH_SYS_TIME 1
6947 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6948 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 cat >conftest.
$ac_ext <<_ACEOF
6955 cat confdefs.h
>>conftest.
$ac_ext
6956 cat >>conftest.
$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6970 rm -f conftest.
$ac_objext
6971 if { (ac_try
="$ac_compile"
6973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_have_decl_sys_siglist=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_have_decl_sys_siglist=no
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6998 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6999 if test $ac_cv_have_decl_sys_siglist = yes; then
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_DECL_SYS_SIGLIST 1
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_SYS_SIGLIST 0
7015 if test $ac_cv_have_decl_sys_siglist != yes; then
7016 # For Tru64, at least:
7017 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7018 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7019 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7032 #ifndef __sys_siglist
7033 (void) __sys_siglist;
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7044 *) ac_try_echo
=$ac_try;;
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7049 grep -v '^ *+' conftest.er1
>conftest.err
7051 cat conftest.err
>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.
$ac_objext; then
7057 ac_cv_have_decl___sys_siglist
=yes
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.
$ac_ext >&5
7062 ac_cv_have_decl___sys_siglist
=no
7065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7068 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7069 if test $ac_cv_have_decl___sys_siglist = yes; then
7071 cat >>confdefs.h
<<_ACEOF
7072 #define HAVE_DECL___SYS_SIGLIST 1
7077 cat >>confdefs.h
<<_ACEOF
7078 #define HAVE_DECL___SYS_SIGLIST 0
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7087 cat >>confdefs.h
<<\_ACEOF
7088 #define sys_siglist __sys_siglist
7093 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7094 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7095 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7098 cat >conftest.
$ac_ext <<_ACEOF
7101 cat confdefs.h
>>conftest.
$ac_ext
7102 cat >>conftest.
$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7105 #include <sys/wait.h>
7107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7123 rm -f conftest.
$ac_objext
7124 if { (ac_try
="$ac_compile"
7126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1 >conftest.err
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_header_sys_wait_h=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 ac_cv_header_sys_wait_h=no
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7151 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7152 if test $ac_cv_header_sys_wait_h = yes; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SYS_WAIT_H 1
7161 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7162 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.$ac_ext <<_ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7188 static struct utimbuf x; x.actime = x.modtime;
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 emacs_cv_struct_utimbuf
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7215 emacs_cv_struct_utimbuf
=no
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7221 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7222 if test $emacs_cv_struct_utimbuf = yes; then
7224 cat >>confdefs.h
<<\_ACEOF
7225 #define HAVE_STRUCT_UTIMBUF 1
7230 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7232 if test "${ac_cv_type_signal+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7247 return *(signal (0, 0)) (0) == 1;
7252 rm -f conftest.
$ac_objext
7253 if { (ac_try
="$ac_compile"
7255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7261 grep -v '^ *+' conftest.er1 >conftest.err
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_type_signal=int
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 ac_cv_type_signal=void
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7280 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7282 cat >>confdefs.h <<_ACEOF
7283 #define RETSIGTYPE $ac_cv_type_signal
7288 { echo "$as_me:$LINENO: checking for speed_t" >&5
7289 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7290 if test "${emacs_cv_speed_t+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <termios.h>
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7312 *) ac_try_echo
=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1
>conftest.err
7319 cat conftest.err
>&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.
$ac_objext; then
7325 emacs_cv_speed_t
=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.
$ac_ext >&5
7333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7336 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7337 if test $emacs_cv_speed_t = yes; then
7339 cat >>confdefs.h
<<\_ACEOF
7340 #define HAVE_SPEED_T 1
7345 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7346 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7347 if test "${emacs_cv_struct_timeval+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 cat >conftest.
$ac_ext <<_ACEOF
7353 cat confdefs.h
>>conftest.
$ac_ext
7354 cat >>conftest.
$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #ifdef TIME_WITH_SYS_TIME
7357 #include <sys/time.h>
7360 #ifdef HAVE_SYS_TIME_H
7361 #include <sys/time.h>
7369 static struct timeval x; x.tv_sec = x.tv_usec;
7374 rm -f conftest.
$ac_objext
7375 if { (ac_try
="$ac_compile"
7377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7383 grep -v '^ *+' conftest.er1 >conftest.err
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 emacs_cv_struct_timeval=yes
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 emacs_cv_struct_timeval=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7401 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7402 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7403 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7404 if test $emacs_cv_struct_timeval = yes; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_TIMEVAL 1
7412 { echo "$as_me:$LINENO: checking for struct exception" >&5
7413 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7414 if test "${emacs_cv_struct_exception+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7427 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7436 *) ac_try_echo
=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1
>conftest.err
7443 cat conftest.err
>&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.
$ac_objext; then
7449 emacs_cv_struct_exception
=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.
$ac_ext >&5
7454 emacs_cv_struct_exception
=no
7457 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7461 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7462 if test $emacs_cv_struct_exception != yes; then
7464 cat >>confdefs.h
<<\_ACEOF
7465 #define NO_MATHERR 1
7471 for ac_header
in sys
/socket.h
7473 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_res
=`eval echo '${'$as_ac_Header'}'`
7481 { echo "$as_me:$LINENO: result: $ac_res" >&5
7482 echo "${ECHO_T}$ac_res" >&6; }
7484 # Is the header compilable?
7485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7487 cat >conftest.
$ac_ext <<_ACEOF
7490 cat confdefs.h
>>conftest.
$ac_ext
7491 cat >>conftest.
$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <$ac_header>
7496 rm -f conftest.
$ac_objext
7497 if { (ac_try
="$ac_compile"
7499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1 >conftest.err
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_compiler=no
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523 echo "${ECHO_T}$ac_header_compiler" >&6; }
7525 # Is the header present?
7526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <$ac_header>
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7539 *) ac_try_echo
=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1
>conftest.err
7546 cat conftest.err
>&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev
/null
&& {
7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7552 ac_header_preproc
=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.
$ac_ext >&5
7557 ac_header_preproc
=no
7560 rm -f conftest.err conftest.
$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6; }
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc
=yes
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 eval "$as_ac_Header=\$ac_header_preproc"
7596 ac_res
=`eval echo '${'$as_ac_Header'}'`
7597 { echo "$as_me:$LINENO: result: $ac_res" >&5
7598 echo "${ECHO_T}$ac_res" >&6; }
7601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7602 cat >>confdefs.h
<<_ACEOF
7603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7611 for ac_header
in net
/if.h
7613 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7616 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 cat >conftest.
$ac_ext <<_ACEOF
7622 cat confdefs.h
>>conftest.
$ac_ext
7623 cat >>conftest.
$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7626 #if HAVE_SYS_SOCKET_H
7627 #include <sys/socket.h>
7630 #include <$ac_header>
7632 rm -f conftest.
$ac_objext
7633 if { (ac_try
="$ac_compile"
7635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 eval "$as_ac_Header=yes"
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7654 eval "$as_ac_Header=no"
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 ac_res=`eval echo '${'$as_ac_Header'}'`
7660 { echo "$as_me:$LINENO: result: $ac_res" >&5
7661 echo "${ECHO_T}$ac_res" >&6; }
7662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7663 cat >>confdefs.h <<_ACEOF
7664 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7672 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7673 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7674 if test "${ac_cv_struct_tm+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.$ac_ext <<_ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 #include <sys/types.h>
7690 int *p = &tm.tm_sec;
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.
$ac_objext; then
7713 ac_cv_struct_tm
=time.h
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_cv_struct_tm
=sys
/time.h
7721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7723 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7724 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7725 if test $ac_cv_struct_tm = sys
/time.h
; then
7727 cat >>confdefs.h
<<\_ACEOF
7728 #define TM_IN_SYS_TIME 1
7733 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7734 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7735 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <$ac_cv_struct_tm>
7751 static struct tm ac_aggr;
7752 if (ac_aggr.tm_zone)
7758 rm -f conftest.
$ac_objext
7759 if { (ac_try
="$ac_compile"
7761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_compile") 2>conftest.er1
7767 grep -v '^ *+' conftest.er1 >conftest.err
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && {
7772 test -z "$ac_c_werror_flag" ||
7773 test ! -s conftest.err
7774 } && test -s conftest.$ac_objext; then
7775 ac_cv_member_struct_tm_tm_zone=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 cat >conftest.$ac_ext <<_ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 #include <$ac_cv_struct_tm>
7793 static struct tm ac_aggr;
7794 if (sizeof ac_aggr.tm_zone)
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7804 *) ac_try_echo
=$ac_try;;
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1
>conftest.err
7811 cat conftest.err
>&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.
$ac_objext; then
7817 ac_cv_member_struct_tm_tm_zone
=yes
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.
$ac_ext >&5
7822 ac_cv_member_struct_tm_tm_zone
=no
7825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7828 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7830 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7832 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7834 cat >>confdefs.h
<<_ACEOF
7835 #define HAVE_STRUCT_TM_TM_ZONE 1
7841 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7843 cat >>confdefs.h
<<\_ACEOF
7844 #define HAVE_TM_ZONE 1
7848 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7849 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7850 if test "${ac_cv_have_decl_tzname+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 cat >conftest.
$ac_ext <<_ACEOF
7856 cat confdefs.h
>>conftest.
$ac_ext
7857 cat >>conftest.
$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7872 rm -f conftest.
$ac_objext
7873 if { (ac_try
="$ac_compile"
7875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
7881 grep -v '^ *+' conftest.er1 >conftest.err
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
7889 ac_cv_have_decl_tzname=yes
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7894 ac_cv_have_decl_tzname=no
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7900 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7901 if test $ac_cv_have_decl_tzname = yes; then
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_DECL_TZNAME 1
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DECL_TZNAME 0
7917 { echo "$as_me:$LINENO: checking for tzname" >&5
7918 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7919 if test "${ac_cv_var_tzname+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 cat >conftest.$ac_ext <<_ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7929 #if !HAVE_DECL_TZNAME
7930 extern char *tzname[];
7936 return tzname[0][0];
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7945 *) ac_try_echo
=$ac_try;;
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_link") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1
>conftest.err
7952 cat conftest.err
>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest
$ac_exeext &&
7958 $as_test_x conftest
$ac_exeext; then
7959 ac_cv_var_tzname
=yes
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.
$ac_ext >&5
7967 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7968 conftest
$ac_exeext conftest.
$ac_ext
7970 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7972 if test $ac_cv_var_tzname = yes; then
7974 cat >>confdefs.h
<<\_ACEOF
7975 #define HAVE_TZNAME 1
7981 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7982 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7983 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 cat >conftest.
$ac_ext <<_ACEOF
7989 cat confdefs.h
>>conftest.
$ac_ext
7990 cat >>conftest.
$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7997 static struct tm ac_aggr;
7998 if (ac_aggr.tm_gmtoff)
8004 rm -f conftest.
$ac_objext
8005 if { (ac_try
="$ac_compile"
8007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8013 grep -v '^ *+' conftest.er1 >conftest.err
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_tm_tm_gmtoff=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 cat >conftest.$ac_ext <<_ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8037 static struct tm ac_aggr;
8038 if (sizeof ac_aggr.tm_gmtoff)
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.
$ac_objext; then
8061 ac_cv_member_struct_tm_tm_gmtoff
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_cv_member_struct_tm_tm_gmtoff
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8076 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8078 cat >>confdefs.h
<<\_ACEOF
8079 #define HAVE_TM_GMTOFF 1
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_flags)
8113 rm -f conftest.
$ac_objext
8114 if { (ac_try
="$ac_compile"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_flags=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_flags)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8163 *) ac_try_echo
=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.
$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_flags
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_flags
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.
$ac_ext <<_ACEOF
8207 cat confdefs.h
>>conftest.
$ac_ext
8208 cat >>conftest.
$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_hwaddr)
8228 rm -f conftest.
$ac_objext
8229 if { (ac_try
="$ac_compile"
8231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_hwaddr)
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8308 cat >>confdefs.h
<<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_netmask)
8343 rm -f conftest.
$ac_objext
8344 if { (ac_try
="$ac_compile"
8346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_netmask=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_netmask)
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.
$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.
$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_netmask
=no
8414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_broadaddr)
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_broadaddr)
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.
$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8538 cat >>confdefs.h
<<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8544 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8545 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8546 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 cat >conftest.
$ac_ext <<_ACEOF
8552 cat confdefs.h
>>conftest.
$ac_ext
8553 cat >>conftest.
$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #if HAVE_SYS_SOCKET_H
8557 #include <sys/socket.h>
8566 static struct ifreq ac_aggr;
8567 if (ac_aggr.ifr_addr)
8573 rm -f conftest.
$ac_objext
8574 if { (ac_try
="$ac_compile"
8576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8582 grep -v '^ *+' conftest.er1 >conftest.err
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_cv_member_struct_ifreq_ifr_addr=yes
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8612 static struct ifreq ac_aggr;
8613 if (sizeof ac_aggr.ifr_addr)
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8622 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8623 *) ac_try_echo
=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1
>conftest.err
8630 cat conftest.err
>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.
$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_addr
=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.
$ac_ext >&5
8641 ac_cv_member_struct_ifreq_ifr_addr
=no
8644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8647 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8650 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8651 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8653 cat >>confdefs.h
<<_ACEOF
8654 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8662 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8663 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8664 if test "$ac_cv_prog_cc_c89" != no
; then
8665 { echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6; }
8668 cat >>confdefs.h
<<\_ACEOF
8669 #define PROTOTYPES 1
8673 cat >>confdefs.h
<<\_ACEOF
8674 #define __PROTOTYPES 1
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8682 { echo "$as_me:$LINENO: checking for working volatile" >&5
8683 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8684 if test "${ac_cv_c_volatile+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8687 cat >conftest.
$ac_ext <<_ACEOF
8690 cat confdefs.h
>>conftest.
$ac_ext
8691 cat >>conftest.
$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8699 int * volatile y = (int *) 0;
8705 rm -f conftest.
$ac_objext
8706 if { (ac_try
="$ac_compile"
8708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_c_volatile=yes
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8733 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8734 if test $ac_cv_c_volatile = no; then
8736 cat >>confdefs.h <<\_ACEOF
8742 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8743 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8744 if test "${ac_cv_c_const+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8757 /* FIXME: Include the comments suggested by Paul. */
8759 /* Ultrix mips cc rejects this. */
8760 typedef int charset[2];
8762 /* SunOS 4.1.1 cc rejects this. */
8763 char const *const *pcpcc;
8765 /* NEC SVR4.0.2 mips cc rejects this. */
8766 struct point {int x, y;};
8767 static struct point const zero = {0,0};
8768 /* AIX XL C 1.02.0.0 rejects this.
8769 It does not let you subtract one const X* pointer from another in
8770 an arm of an if-expression whose if-part is not a constant
8772 const char *g = "string";
8773 pcpcc = &g + (g ? g-g : 0);
8774 /* HPUX 7.0 cc rejects these. */
8776 ppc = (char**) pcpcc;
8777 pcpcc = (char const *const *) ppc;
8778 { /* SCO 3.2v4 cc rejects this. */
8780 char const *s = 0 ? (char *) 0 : (char const *) 0;
8785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8787 const int *foo = &x[0];
8790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8791 typedef const int *iptr;
8795 { /* AIX XL C 1.02.0.0 rejects this saying
8796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8797 struct s { int j; const int *ap[3]; };
8798 struct s *b; b->j = 5;
8800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8804 return !cs[0] && !zero.x;
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8815 *) ac_try_echo
=$ac_try;;
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8820 grep -v '^ *+' conftest.er1
>conftest.err
8822 cat conftest.err
>&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.
$ac_objext; then
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.
$ac_ext >&5
8836 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8838 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8839 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8840 if test $ac_cv_c_const = no
; then
8842 cat >>confdefs.h
<<\_ACEOF
8848 { echo "$as_me:$LINENO: checking for void * support" >&5
8849 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8850 if test "${emacs_cv_void_star+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.
$ac_ext <<_ACEOF
8856 cat confdefs.h
>>conftest.
$ac_ext
8857 cat >>conftest.
$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8868 rm -f conftest.
$ac_objext
8869 if { (ac_try
="$ac_compile"
8871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8877 grep -v '^ *+' conftest.er1 >conftest.err
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest.$ac_objext; then
8885 emacs_cv_void_star=yes
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8890 emacs_cv_void_star=no
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8895 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8896 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8897 if test $emacs_cv_void_star = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define POINTER_TYPE void
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE char
8913 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8915 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8916 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.make <<\_ACEOF
8922 @echo '@@@%%%=$(MAKE)=@@@%%%'
8924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8925 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8927 eval ac_cv_prog_make_${ac_make}_set=yes;;
8929 eval ac_cv_prog_make_${ac_make}_set=no;;
8933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8934 { echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6; }
8938 { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 SET_MAKE="MAKE=${MAKE-make}"
8944 { echo "$as_me:$LINENO: checking for long file names" >&5
8945 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8946 if test "${ac_cv_sys_long_file_names+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 ac_cv_sys_long_file_names=yes
8950 # Test for long file names in all the places we know might matter:
8951 # . the current directory, where building will happen
8952 # $prefix/lib where we will be installing things
8953 # $exec_prefix/lib likewise
8954 # $TMPDIR if set, where it might want to write temporary files
8955 # /tmp where it might want to write temporary files
8958 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8959 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8960 # in the usual case where exec_prefix is '${prefix}'.
8962 . | /* | ?:[\\/]*) ;; #(
8965 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8966 ac_xdir=$ac_dir/cf$$
8967 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8968 ac_tf1=$ac_xdir/conftest9012345
8969 ac_tf2=$ac_xdir/conftest9012346
8970 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8971 ac_cv_sys_long_file_names=no
8972 rm -f -r "$ac_xdir" 2>/dev/null
8973 test $ac_cv_sys_long_file_names = no && break
8976 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8977 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8978 if test $ac_cv_sys_long_file_names = yes; then
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_LONG_FILE_NAMES 1
8987 #### Choose a window system.
8989 { echo "$as_me:$LINENO: checking for X" >&5
8990 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8993 # Check whether --with-x was given.
8994 if test "${with_x+set}" = set; then
8998 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8999 if test "x$with_x" = xno; then
9000 # The user explicitly disabled X.
9003 case $x_includes,$x_libraries in #(
9004 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9005 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9006 { (exit 1); exit 1; }; };; #(
9007 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9010 # One or both of the vars are not set, and there is no cached value.
9011 ac_x_includes=no ac_x_libraries=no
9012 rm -f -r conftest.dir
9013 if mkdir conftest.dir; then
9015 cat >Imakefile <<'_ACEOF'
9017 @echo incroot='${INCROOT}'
9019 @echo usrlibdir='${USRLIBDIR}'
9021 @echo libdir='${LIBDIR}'
9023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9025 for ac_var in incroot usrlibdir libdir; do
9026 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9029 for ac_extension in a so sl; do
9030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9032 ac_im_usrlibdir=$ac_im_libdir; break
9035 # Screen out bogus values from the imake configuration. They are
9036 # bogus both because they are the default anyway, and because
9037 # using them would break gcc on systems where it needs fixed includes.
9038 case $ac_im_incroot in
9039 /usr/include) ac_x_includes= ;;
9040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9042 case $ac_im_usrlibdir in
9044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9048 rm -f -r conftest.dir
9051 # Standard set of common directories for X headers.
9052 # Check X11 before X11Rn because it is often a symlink to the current release.
9064 /usr/local/X11/include
9065 /usr/local/X11R6/include
9066 /usr/local/X11R5/include
9067 /usr/local/X11R4/include
9069 /usr/local/include/X11
9070 /usr/local/include/X11R6
9071 /usr/local/include/X11R5
9072 /usr/local/include/X11R4
9076 /usr/XFree86/include/X11
9080 /usr/unsupported/include
9082 /usr/local/x11r5/include
9083 /usr/lpp/Xamples/include
9085 /usr/openwin/include
9086 /usr/openwin/share/include'
9088 if test "$ac_x_includes" = no; then
9089 # Guess where to find include files, by looking for Xlib.h.
9090 # First, try using that file with no special directory specified.
9091 cat >conftest.$ac_ext <<_ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/Xlib.h>
9099 if { (ac_try="$ac_cpp conftest.$ac_ext"
9101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9102 *) ac_try_echo
=$ac_try;;
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9107 grep -v '^ *+' conftest.er1
>conftest.err
9109 cat conftest.err
>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev
/null
&& {
9112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9115 # We can compile using X headers with no special include directory.
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.
$ac_ext >&5
9121 for ac_dir
in $ac_x_header_dirs; do
9122 if test -r "$ac_dir/X11/Xlib.h"; then
9123 ac_x_includes
=$ac_dir
9129 rm -f conftest.err conftest.
$ac_ext
9130 fi # $ac_x_includes = no
9132 if test "$ac_x_libraries" = no
; then
9133 # Check for the libraries.
9134 # See if we find them without any special options.
9135 # Don't add to $LIBS permanently.
9138 cat >conftest.
$ac_ext <<_ACEOF
9141 cat confdefs.h
>>conftest.
$ac_ext
9142 cat >>conftest.
$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <X11/Xlib.h>
9153 rm -f conftest.
$ac_objext conftest
$ac_exeext
9154 if { (ac_try
="$ac_link"
9156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9172 # We can link X programs with no special library path.
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9179 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9181 # Don't even attempt the hair of trying to link an X program!
9182 for ac_extension in a so sl; do
9183 if test -r "$ac_dir/libX11.$ac_extension"; then
9184 ac_x_libraries=$ac_dir
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 fi # $ac_x_libraries = no
9195 case $ac_x_includes,$ac_x_libraries in #(
9197 # Didn't find X, or a directory has "'" in its name.
9198 ac_cv_have_x="have_x=no";; #(
9200 # Record where we found X for the cache.
9201 ac_cv_have_x="have_x=yes\
9202 ac_x_includes='$ac_x_includes'\
9203 ac_x_libraries='$ac_x_libraries'"
9209 eval "$ac_cv_have_x"
9212 if test "$have_x" != yes; then
9213 { echo "$as_me:$LINENO: result: $have_x" >&5
9214 echo "${ECHO_T}$have_x" >&6; }
9217 # If each of the values was on the command line, it overrides each guess.
9218 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9219 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9220 # Update the cache value to reflect the command line values.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$x_includes'\
9223 ac_x_libraries='$x_libraries'"
9224 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9225 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9228 if test "$no_x" = yes; then
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9267 # accumulate include directories that have X11 bitmap subdirectories
9269 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9283 if test "${with_carbon}" != no; then
9284 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9285 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9286 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9287 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9291 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9293 # Is the header compilable?
9294 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9295 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 #include <Carbon/Carbon.h>
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9308 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9309 *) ac_try_echo
=$ac_try;;
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9314 grep -v '^ *+' conftest.er1
>conftest.err
9316 cat conftest.err
>&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.
$ac_objext; then
9322 ac_header_compiler
=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.
$ac_ext >&5
9327 ac_header_compiler
=no
9330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6; }
9334 # Is the header present?
9335 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9336 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9337 cat >conftest.
$ac_ext <<_ACEOF
9340 cat confdefs.h
>>conftest.
$ac_ext
9341 cat >>conftest.
$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <Carbon/Carbon.h>
9345 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9353 grep -v '^ *+' conftest.er1 >conftest.err
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } >/dev/null && {
9358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9361 ac_header_preproc=yes
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9366 ac_header_preproc=no
9369 rm -f conftest.err conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6; }
9373 # So? What about this header?
9374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9390 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9392 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9394 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9398 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9399 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9400 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9405 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9406 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9409 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9415 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9416 if test "${with_carbon+set}" != set \
9417 && test "${carbon_appdir_x+set}" != set; then
9418 for var in with_x with_x_toolkit with_gtk with_xim \
9419 with_xpm with_jpeg with_tiff with_gif with_png; do
9420 if eval test \"\${$var+set}\" = set; then
9427 if test "${HAVE_CARBON}" = yes; then
9431 case "${window_system}" in
9435 case "${with_x_toolkit}" in
9436 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9437 motif ) USE_X_TOOLKIT=MOTIF ;;
9439 USE_X_TOOLKIT=none ;;
9440 no ) USE_X_TOOLKIT=none ;;
9441 * ) USE_X_TOOLKIT=maybe ;;
9451 ### If we're using X11, we should use the X menu package.
9454 yes ) HAVE_MENUS=yes ;;
9457 if test "${opsys}" = "hpux9"; then
9458 case "${x_libraries}" in
9460 opsysfile="s/hpux9-x11r4.h"
9465 if test "${opsys}" = "hpux9shr"; then
9466 case "${x_libraries}" in
9468 opsysfile="s/hpux9shxr4.h"
9473 ### Compute the unexec source name from the object name.
9474 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9476 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9477 # Assume not, until told otherwise.
9480 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9481 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define malloc_get_state innocuous_malloc_get_state
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char malloc_get_state (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9501 # include <limits.h>
9503 # include <assert.h>
9506 #undef malloc_get_state
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9514 char malloc_get_state ();
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9525 return malloc_get_state ();
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9534 *) ac_try_echo
=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest
$ac_exeext &&
9547 $as_test_x conftest
$ac_exeext; then
9548 ac_cv_func_malloc_get_state
=yes
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.
$ac_ext >&5
9553 ac_cv_func_malloc_get_state
=no
9556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9557 conftest
$ac_exeext conftest.
$ac_ext
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9560 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9561 if test $ac_cv_func_malloc_get_state = yes; then
9567 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9568 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9572 cat >conftest.
$ac_ext <<_ACEOF
9575 cat confdefs.h
>>conftest.
$ac_ext
9576 cat >>conftest.
$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9580 #define malloc_set_state innocuous_malloc_set_state
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char malloc_set_state (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9588 # include <limits.h>
9590 # include <assert.h>
9593 #undef malloc_set_state
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9601 char malloc_set_state ();
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9612 return malloc_set_state ();
9617 rm -f conftest.
$ac_objext conftest
$ac_exeext
9618 if { (ac_try
="$ac_link"
9620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9626 grep -v '^ *+' conftest.er1 >conftest.err
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
9635 ac_cv_func_malloc_set_state=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_cv_func_malloc_set_state=no
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9648 if test $ac_cv_func_malloc_set_state = yes; then
9654 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 cat >conftest.$ac_ext <<_ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 extern void (* __after_morecore_hook)();
9669 __after_morecore_hook = 0
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9678 *) ac_try_echo
=$ac_try;;
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9683 grep -v '^ *+' conftest.er1
>conftest.err
9685 cat conftest.err
>&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest
$ac_exeext &&
9691 $as_test_x conftest
$ac_exeext; then
9692 emacs_cv_var___after_morecore_hook
=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.
$ac_ext >&5
9697 emacs_cv_var___after_morecore_hook
=no
9700 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9701 conftest
$ac_exeext conftest.
$ac_ext
9703 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9704 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9705 if test $emacs_cv_var___after_morecore_hook = no
; then
9708 if test "${system_malloc}" = "yes"; then
9711 (The GNU allocators don't work with this system configuration.)"
9713 if test "$doug_lea_malloc" = "yes" ; then
9714 if test "$GNU_MALLOC" = yes ; then
9716 (Using Doug Lea's new malloc from the GNU C Library.)"
9719 cat >>confdefs.h
<<\_ACEOF
9720 #define DOUG_LEA_MALLOC 1
9725 if test x
"${REL_ALLOC}" = x
; then
9726 REL_ALLOC
=${GNU_MALLOC}
9732 for ac_header
in stdlib.h unistd.h
9734 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 ac_res
=`eval echo '${'$as_ac_Header'}'`
9742 { echo "$as_me:$LINENO: result: $ac_res" >&5
9743 echo "${ECHO_T}$ac_res" >&6; }
9745 # Is the header compilable?
9746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9748 cat >conftest.
$ac_ext <<_ACEOF
9751 cat confdefs.h
>>conftest.
$ac_ext
9752 cat >>conftest.
$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 $ac_includes_default
9755 #include <$ac_header>
9757 rm -f conftest.
$ac_objext
9758 if { (ac_try
="$ac_compile"
9760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
9766 grep -v '^ *+' conftest.er1 >conftest.err
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
9774 ac_header_compiler=yes
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9779 ac_header_compiler=no
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9784 echo "${ECHO_T}$ac_header_compiler" >&6; }
9786 # Is the header present?
9787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <$ac_header>
9797 if { (ac_try="$ac_cpp conftest.$ac_ext"
9799 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9800 *) ac_try_echo
=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9805 grep -v '^ *+' conftest.er1
>conftest.err
9807 cat conftest.err
>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev
/null
&& {
9810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9813 ac_header_preproc
=yes
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.
$ac_ext >&5
9818 ac_header_preproc
=no
9821 rm -f conftest.err conftest.
$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823 echo "${ECHO_T}$ac_header_preproc" >&6; }
9825 # So? What about this header?
9826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc
=yes
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9852 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 eval "$as_ac_Header=\$ac_header_preproc"
9857 ac_res
=`eval echo '${'$as_ac_Header'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h
<<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 for ac_func
in getpagesize
9874 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.
$ac_ext <<_ACEOF
9883 cat confdefs.h
>>conftest.
$ac_ext
9884 cat >>conftest.
$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9896 # include <limits.h>
9898 # include <assert.h>
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9925 rm -f conftest.
$ac_objext conftest
$ac_exeext
9926 if { (ac_try
="$ac_link"
9928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 eval "$as_ac_var=yes"
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 eval "$as_ac_var=no"
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9965 { echo "$as_me:$LINENO: checking for working mmap" >&5
9966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 if test "$cross_compiling" = yes; then
9971 ac_cv_func_mmap_fixed_mapped=no
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 /* malloc might have been renamed as rpl_malloc. */
9983 /* Thanks to Mike Haertel and Jim Avera for this test.
9984 Here is a matrix of mmap possibilities:
9985 mmap private not fixed
9986 mmap private fixed at somewhere currently unmapped
9987 mmap private fixed at somewhere already mapped
9988 mmap shared not fixed
9989 mmap shared fixed at somewhere currently unmapped
9990 mmap shared fixed at somewhere already mapped
9991 For private mappings, we should verify that changes cannot be read()
9992 back from the file, nor mmap's back from the file at a different
9993 address. (There have been systems where private was not correctly
9994 implemented like the infamous i386 svr4.0, and systems where the
9995 VM page cache was not coherent with the file system buffer cache
9996 like early versions of FreeBSD and possibly contemporary NetBSD.)
9997 For shared mappings, we should conversely verify that changes get
9998 propagated back to all the places they're supposed to be.
10000 Grep wants private fixed already mapped.
10001 The main things grep needs to know about mmap are:
10002 * does it exist and is it safe to write into the mmap'd area
10003 * how to use it (BSD variants) */
10006 #include <sys/mman.h>
10008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10012 /* This mess was copied from the GNU getpagesize.h. */
10013 #ifndef HAVE_GETPAGESIZE
10014 /* Assume that all systems that can run configure have sys/param.h. */
10015 # ifndef HAVE_SYS_PARAM_H
10016 # define HAVE_SYS_PARAM_H 1
10019 # ifdef _SC_PAGESIZE
10020 # define getpagesize() sysconf(_SC_PAGESIZE)
10021 # else /* no _SC_PAGESIZE */
10022 # ifdef HAVE_SYS_PARAM_H
10023 # include <sys/param.h>
10024 # ifdef EXEC_PAGESIZE
10025 # define getpagesize() EXEC_PAGESIZE
10026 # else /* no EXEC_PAGESIZE */
10028 # define getpagesize() NBPG * CLSIZE
10031 # endif /* no CLSIZE */
10032 # else /* no NBPG */
10034 # define getpagesize() NBPC
10035 # else /* no NBPC */
10037 # define getpagesize() PAGESIZE
10038 # endif /* PAGESIZE */
10039 # endif /* no NBPC */
10040 # endif /* no NBPG */
10041 # endif /* no EXEC_PAGESIZE */
10042 # else /* no HAVE_SYS_PARAM_H */
10043 # define getpagesize() 8192 /* punt totally */
10044 # endif /* no HAVE_SYS_PARAM_H */
10045 # endif /* no _SC_PAGESIZE */
10047 #endif /* no HAVE_GETPAGESIZE */
10052 char *data, *data2, *data3;
10056 pagesize = getpagesize ();
10058 /* First, make a file with some known garbage in it. */
10059 data = (char *) malloc (pagesize);
10062 for (i = 0; i < pagesize; ++i)
10063 *(data + i) = rand ();
10065 fd = creat ("conftest.mmap", 0600);
10068 if (write (fd, data, pagesize) != pagesize)
10072 /* Next, try to mmap the file at a fixed address which already has
10073 something else allocated at it. If we can, also make sure that
10074 we see the same garbage. */
10075 fd = open ("conftest.mmap", O_RDWR);
10078 data2 = (char *) malloc (2 * pagesize);
10081 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10085 for (i = 0; i < pagesize; ++i)
10086 if (*(data + i) != *(data2 + i))
10089 /* Finally, make sure that changes to the mapped area do not
10090 percolate back to the file as seen by read(). (This is a bug on
10091 some variants of i386 svr4.0.) */
10092 for (i = 0; i < pagesize; ++i)
10093 *(data2 + i) = *(data2 + i) + 1;
10094 data3 = (char *) malloc (pagesize);
10097 if (read (fd, data3, pagesize) != pagesize)
10099 for (i = 0; i < pagesize; ++i)
10100 if (*(data + i) != *(data3 + i))
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10110 *) ac_try_echo
=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_mmap_fixed_mapped=yes
10128 echo "$as_me: program exited with status $ac_status" >&5
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ( exit $ac_status )
10133 ac_cv_func_mmap_fixed_mapped=no
10135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10140 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_MMAP 1
10149 rm -f conftest.mmap
10151 if test $use_mmap_for_buffers = yes; then
10155 LIBS="$libsrc_libs $LIBS"
10158 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10159 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-ldnet $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10182 return dnet_ntoa ();
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10191 *) ac_try_echo
=$ac_try;;
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10196 grep -v '^ *+' conftest.er1
>conftest.err
10198 cat conftest.err
>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest
$ac_exeext &&
10204 $as_test_x conftest
$ac_exeext; then
10205 ac_cv_lib_dnet_dnet_ntoa
=yes
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.
$ac_ext >&5
10210 ac_cv_lib_dnet_dnet_ntoa
=no
10213 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10214 conftest
$ac_exeext conftest.
$ac_ext
10215 LIBS
=$ac_check_lib_save_LIBS
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10220 cat >>confdefs.h
<<_ACEOF
10221 #define HAVE_LIBDNET 1
10224 LIBS
="-ldnet $LIBS"
10229 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10230 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 ac_check_lib_save_LIBS
=$LIBS
10235 LIBS
="-lXbsd $LIBS"
10236 cat >conftest.
$ac_ext <<_ACEOF
10239 cat confdefs.h
>>conftest.
$ac_ext
10240 cat >>conftest.
$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10252 rm -f conftest.
$ac_objext conftest
$ac_exeext
10253 if { (ac_try
="$ac_link"
10254 case "(($ac_try" in
10255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10270 ac_cv_lib_Xbsd_main=yes
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ac_cv_lib_Xbsd_main=no
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10283 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10284 if test $ac_cv_lib_Xbsd_main = yes; then
10285 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10290 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10291 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-lpthreads $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10314 return cma_open ();
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10323 *) ac_try_echo
=$ac_try;;
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10328 grep -v '^ *+' conftest.er1
>conftest.err
10330 cat conftest.err
>&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest
$ac_exeext &&
10336 $as_test_x conftest
$ac_exeext; then
10337 ac_cv_lib_pthreads_cma_open
=yes
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.
$ac_ext >&5
10342 ac_cv_lib_pthreads_cma_open
=no
10345 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10346 conftest
$ac_exeext conftest.
$ac_ext
10347 LIBS
=$ac_check_lib_save_LIBS
10349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10350 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10351 if test $ac_cv_lib_pthreads_cma_open = yes; then
10352 cat >>confdefs.h
<<_ACEOF
10353 #define HAVE_LIBPTHREADS 1
10356 LIBS
="-lpthreads $LIBS"
10361 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10362 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10363 if test -d /usr
/X386
/include
; then
10365 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10369 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10370 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc
=-bbigtoc ;;
10386 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10387 cat >conftest.
$ac_ext <<_ACEOF
10390 cat confdefs.h
>>conftest.
$ac_ext
10391 cat >>conftest.
$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10402 rm -f conftest.
$ac_objext conftest
$ac_exeext
10403 if { (ac_try
="$ac_link"
10404 case "(($ac_try" in
10405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1 >conftest.err
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10441 REAL_CPPFLAGS="$CPPFLAGS"
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10447 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10455 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10472 XOpenDisplay ("foo");
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10481 *) ac_try_echo
=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1
>conftest.err
10488 cat conftest.err
>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest
$ac_exeext &&
10494 $as_test_x conftest
$ac_exeext; then
10495 xlinux_first_failure
=no
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.
$ac_ext >&5
10500 xlinux_first_failure
=yes
10503 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10504 conftest
$ac_exeext conftest.
$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS
="$CPPFLAGS"
10510 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10513 LIBS
="$LIBS -b i486-linuxaout"
10514 cat >conftest.
$ac_ext <<_ACEOF
10517 cat confdefs.h
>>conftest.
$ac_ext
10518 cat >>conftest.
$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10524 XOpenDisplay ("foo");
10529 rm -f conftest.
$ac_objext conftest
$ac_exeext
10530 if { (ac_try
="$ac_link"
10531 case "(($ac_try" in
10532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10538 grep -v '^ *+' conftest.er1 >conftest.err
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest$ac_exeext &&
10546 $as_test_x conftest$ac_exeext; then
10547 xlinux_second_failure=no
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10552 xlinux_second_failure=yes
10555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS="$OLD_CPPFLAGS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10600 *) ac_try_echo
=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1
>conftest.err
10607 cat conftest.err
>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest
$ac_exeext &&
10613 $as_test_x conftest
$ac_exeext; then
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.
$ac_ext >&5
10622 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10623 conftest
$ac_exeext conftest.
$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10628 cat >>confdefs.h
<<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10638 for ac_func
in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10641 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.
$ac_ext <<_ACEOF
10650 cat confdefs.h
>>conftest.
$ac_ext
10651 cat >>conftest.
$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10663 # include <limits.h>
10665 # include <assert.h>
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10687 return $ac_func ();
10692 rm -f conftest.
$ac_objext conftest
$ac_exeext
10693 if { (ac_try
="$ac_link"
10694 case "(($ac_try" in
10695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1 >conftest.err
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 eval "$as_ac_var=yes"
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10715 eval "$as_ac_var=no"
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10721 ac_res=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10750 #if XlibSpecificationRelease < 6
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10762 *) ac_try_echo
=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1
>conftest.err
10769 cat conftest.err
>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest
$ac_exeext &&
10775 $as_test_x conftest
$ac_exeext; then
10776 emacs_cv_x11_version_6
=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.
$ac_ext >&5
10781 emacs_cv_x11_version_6
=no
10784 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10785 conftest
$ac_exeext conftest.
$ac_ext
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10792 cat >>confdefs.h
<<\_ACEOF
10793 #define HAVE_X11R6 1
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10804 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_5+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.
$ac_ext <<_ACEOF
10811 cat confdefs.h
>>conftest.
$ac_ext
10812 cat >>conftest.
$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10818 #if XlibSpecificationRelease < 5
10826 rm -f conftest.
$ac_objext conftest
$ac_exeext
10827 if { (ac_try
="$ac_link"
10828 case "(($ac_try" in
10829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1 >conftest.err
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_5=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10849 emacs_cv_x11_version_5=no
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10856 if test $emacs_cv_x11_version_5 = yes; then
10857 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10858 echo "${ECHO_T}5 or newer" >&6; }
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_X11R5 1
10867 { echo "$as_me:$LINENO: result: before 5" >&5
10868 echo "${ECHO_T}before 5" >&6; }
10873 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10876 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10877 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10878 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10879 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10880 { (exit 1); exit 1; }; };
10884 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10886 if test "X${with_pkg_config_prog}" != X; then
10887 PKG_CONFIG="${with_pkg_config_prog}"
10892 if test -z "$PKG_CONFIG"; then
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 case $PKG_CONFIG in
10902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10925 if test -n "$PKG_CONFIG"; then
10926 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10927 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10936 if test "$PKG_CONFIG" = "no" ; then
10937 { { echo "$as_me:$LINENO: error:
10938 *** 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
10939 echo "$as_me: error:
10940 *** 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;}
10941 { (exit 1); exit 1; }; }
10943 PKG_CONFIG_MIN_VERSION=0.9.0
10944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10945 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10946 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10948 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10949 { echo "$as_me:$LINENO: result: yes" >&5
10950 echo "${ECHO_T}yes" >&6; }
10953 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10954 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10955 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10956 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10957 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10959 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10960 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10961 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10962 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10963 echo "${ECHO_T}$GTK_LIBS" >&6; }
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10969 ## If we have a custom action on failure, don't print errors, but
10970 ## do set a variable so people can do so.
10971 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10972 echo $GTK_PKG_ERRORS
10978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10983 if test $succeeded = yes; then
10986 { { 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
10987 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;}
10988 { (exit 1); exit 1; }; }
10993 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10994 CFLAGS="$CFLAGS $GTK_CFLAGS"
10995 LIBS="$GTK_LIBS $LIBS"
10998 for ac_func in gtk_main
11000 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11022 # include <limits.h>
11024 # include <assert.h>
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined __stub_$ac_func || defined __stub___$ac_func
11046 return $ac_func ();
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11055 *) ac_try_echo
=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1
>conftest.err
11062 cat conftest.err
>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest
$ac_exeext &&
11068 $as_test_x conftest
$ac_exeext; then
11069 eval "$as_ac_var=yes"
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.
$ac_ext >&5
11074 eval "$as_ac_var=no"
11077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11078 conftest
$ac_exeext conftest.
$ac_ext
11080 ac_res
=`eval echo '${'$as_ac_var'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082 echo "${ECHO_T}$ac_res" >&6; }
11083 if test `eval echo '${'$as_ac_var'}'` = yes; then
11084 cat >>confdefs.h
<<_ACEOF
11085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11091 if test "${GTK_COMPILES}" != "yes"; then
11092 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11093 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11094 { (exit 1); exit 1; }; };
11099 cat >>confdefs.h
<<\_ACEOF
11105 if test "$with_toolkit_scroll_bars" != no
; then
11106 with_toolkit_scroll_bars
=yes
11109 HAVE_GTK_MULTIDISPLAY
=no
11111 for ac_func
in gdk_display_open
11113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11116 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.
$ac_ext <<_ACEOF
11122 cat confdefs.h
>>conftest.
$ac_ext
11123 cat >>conftest.
$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127 #define $ac_func innocuous_$ac_func
11129 /* System header to define __stub macros and hopefully few prototypes,
11130 which can conflict with char $ac_func (); below.
11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 <limits.h> exists even on freestanding compilers. */
11135 # include <limits.h>
11137 # include <assert.h>
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11149 /* The GNU C library defines this for functions which it implements
11150 to always fail with ENOSYS. Some functions are actually named
11151 something starting with __ and the normal name is an alias. */
11152 #if defined __stub_$ac_func || defined __stub___$ac_func
11159 return $ac_func ();
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (ac_try
="$ac_link"
11166 case "(($ac_try" in
11167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_link") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext &&
11181 $as_test_x conftest$ac_exeext; then
11182 eval "$as_ac_var=yes"
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no"
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11200 HAVE_GTK_MULTIDISPLAY=yes
11204 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11206 cat >>confdefs.h <<\_ACEOF
11207 #define HAVE_GTK_MULTIDISPLAY 1
11211 HAVE_GTK_FILE_SELECTION=no
11213 for ac_func in gtk_file_selection_new
11215 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 cat >conftest.$ac_ext <<_ACEOF
11224 cat confdefs.h >>conftest.$ac_ext
11225 cat >>conftest.$ac_ext <<_ACEOF
11226 /* end confdefs.h. */
11227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11229 #define $ac_func innocuous_$ac_func
11231 /* System header to define __stub macros and hopefully few prototypes,
11232 which can conflict with char $ac_func (); below.
11233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11234 <limits.h> exists even on freestanding compilers. */
11237 # include <limits.h>
11239 # include <assert.h>
11244 /* Override any GCC internal prototype to avoid an error.
11245 Use char because int might match the return type of a GCC
11246 builtin and then its argument prototype would still apply. */
11251 /* The GNU C library defines this for functions which it implements
11252 to always fail with ENOSYS. Some functions are actually named
11253 something starting with __ and the normal name is an alias. */
11254 #if defined __stub_$ac_func || defined __stub___$ac_func
11261 return $ac_func ();
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (ac_try="$ac_link"
11268 case "(($ac_try" in
11269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11270 *) ac_try_echo
=$ac_try;;
11272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11273 (eval "$ac_link") 2>conftest.er1
11275 grep -v '^ *+' conftest.er1
>conftest.err
11277 cat conftest.err
>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } && {
11280 test -z "$ac_c_werror_flag" ||
11281 test ! -s conftest.err
11282 } && test -s conftest
$ac_exeext &&
11283 $as_test_x conftest
$ac_exeext; then
11284 eval "$as_ac_var=yes"
11286 echo "$as_me: failed program was:" >&5
11287 sed 's/^/| /' conftest.
$ac_ext >&5
11289 eval "$as_ac_var=no"
11292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11293 conftest
$ac_exeext conftest.
$ac_ext
11295 ac_res
=`eval echo '${'$as_ac_var'}'`
11296 { echo "$as_me:$LINENO: result: $ac_res" >&5
11297 echo "${ECHO_T}$ac_res" >&6; }
11298 if test `eval echo '${'$as_ac_var'}'` = yes; then
11299 cat >>confdefs.h
<<_ACEOF
11300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11302 HAVE_GTK_FILE_SELECTION
=yes
11307 HAVE_GTK_FILE_CHOOSER
=no
11309 for ac_func
in gtk_file_chooser_dialog_new
11311 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.
$ac_ext <<_ACEOF
11320 cat confdefs.h
>>conftest.
$ac_ext
11321 cat >>conftest.
$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11357 return $ac_func ();
11362 rm -f conftest.
$ac_objext conftest
$ac_exeext
11363 if { (ac_try
="$ac_link"
11364 case "(($ac_try" in
11365 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11366 *) ac_try_echo=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest$ac_exeext &&
11379 $as_test_x conftest$ac_exeext; then
11380 eval "$as_ac_var=yes"
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.$ac_ext >&5
11385 eval "$as_ac_var=no"
11388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11389 conftest$ac_exeext conftest.$ac_ext
11391 ac_res=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h <<_ACEOF
11396 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11398 HAVE_GTK_FILE_CHOOSER=yes
11403 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11404 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11406 cat >>confdefs.h <<\_ACEOF
11407 #define HAVE_GTK_FILE_BOTH 1
11412 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11413 HAVE_GTK_AND_PTHREAD=no
11415 for ac_header in pthread.h
11417 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11418 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11422 echo $ECHO_N "(cached) $ECHO_C" >&6
11424 ac_res=`eval echo '${'$as_ac_Header'}'`
11425 { echo "$as_me:$LINENO: result: $ac_res" >&5
11426 echo "${ECHO_T}$ac_res" >&6; }
11428 # Is the header compilable?
11429 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11430 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 $ac_includes_default
11438 #include <$ac_header>
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11444 *) ac_try_echo
=$ac_try;;
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447 (eval "$ac_compile") 2>conftest.er1
11449 grep -v '^ *+' conftest.er1
>conftest.err
11451 cat conftest.err
>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } && {
11454 test -z "$ac_c_werror_flag" ||
11455 test ! -s conftest.err
11456 } && test -s conftest.
$ac_objext; then
11457 ac_header_compiler
=yes
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.
$ac_ext >&5
11462 ac_header_compiler
=no
11465 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11467 echo "${ECHO_T}$ac_header_compiler" >&6; }
11469 # Is the header present?
11470 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11471 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11472 cat >conftest.
$ac_ext <<_ACEOF
11475 cat confdefs.h
>>conftest.
$ac_ext
11476 cat >>conftest.
$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478 #include <$ac_header>
11480 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11481 case "(($ac_try" in
11482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11483 *) ac_try_echo=$ac_try;;
11485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11488 grep -v '^ *+' conftest.er1 >conftest.err
11490 cat conftest.err >&5
11491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492 (exit $ac_status); } >/dev/null && {
11493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11494 test ! -s conftest.err
11496 ac_header_preproc=yes
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 ac_header_preproc=no
11504 rm -f conftest.err conftest.$ac_ext
11505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11506 echo "${ECHO_T}$ac_header_preproc" >&6; }
11508 # So? What about this header?
11509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11511 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11512 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11514 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11515 ac_header_preproc=yes
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11522 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11523 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11525 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11527 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11528 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11529 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 eval "$as_ac_Header=\$ac_header_preproc"
11540 ac_res=`eval echo '${'$as_ac_Header'}'`
11541 { echo "$as_me:$LINENO: result: $ac_res" >&5
11542 echo "${ECHO_T}$ac_res" >&6; }
11545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11546 cat >>confdefs.h <<_ACEOF
11547 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11554 if test "$ac_cv_header_pthread_h"; then
11555 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11556 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11557 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 ac_check_lib_save_LIBS=$LIBS
11561 LIBS="-lpthread $LIBS"
11562 cat >conftest.$ac_ext <<_ACEOF
11565 cat confdefs.h >>conftest.$ac_ext
11566 cat >>conftest.$ac_ext <<_ACEOF
11567 /* end confdefs.h. */
11569 /* Override any GCC internal prototype to avoid an error.
11570 Use char because int might match the return type of a GCC
11571 builtin and then its argument prototype would still apply. */
11575 char pthread_self ();
11579 return pthread_self ();
11584 rm -f conftest.$ac_objext conftest$ac_exeext
11585 if { (ac_try="$ac_link"
11586 case "(($ac_try" in
11587 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11588 *) ac_try_echo
=$ac_try;;
11590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11591 (eval "$ac_link") 2>conftest.er1
11593 grep -v '^ *+' conftest.er1
>conftest.err
11595 cat conftest.err
>&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } && {
11598 test -z "$ac_c_werror_flag" ||
11599 test ! -s conftest.err
11600 } && test -s conftest
$ac_exeext &&
11601 $as_test_x conftest
$ac_exeext; then
11602 ac_cv_lib_pthread_pthread_self
=yes
11604 echo "$as_me: failed program was:" >&5
11605 sed 's/^/| /' conftest.
$ac_ext >&5
11607 ac_cv_lib_pthread_pthread_self
=no
11610 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11611 conftest
$ac_exeext conftest.
$ac_ext
11612 LIBS
=$ac_check_lib_save_LIBS
11614 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11615 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11616 if test $ac_cv_lib_pthread_pthread_self = yes; then
11617 HAVE_GTK_AND_PTHREAD
=yes
11621 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11622 GTK_LIBS
="$GTK_LIBS -lpthread"
11624 cat >>confdefs.h
<<\_ACEOF
11625 #define HAVE_GTK_AND_PTHREAD 1
11632 ### Link with -lXft if available to work around a bug.
11634 if test "${HAVE_GTK}" = "yes"; then
11635 if test "X${with_pkg_config_prog}" != X
; then
11636 PKG_CONFIG
="${with_pkg_config_prog}"
11642 if test -z "$PKG_CONFIG"; then
11643 # Extract the first word of "pkg-config", so it can be a program name with args.
11644 set dummy pkg-config
; ac_word
=$2
11645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11647 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11650 case $PKG_CONFIG in
11652 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11656 for as_dir
in $PATH
11659 test -z "$as_dir" && as_dir
=.
11660 for ac_exec_ext
in '' $ac_executable_extensions; do
11661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11662 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11674 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11675 if test -n "$PKG_CONFIG"; then
11676 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11677 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11679 { echo "$as_me:$LINENO: result: no" >&5
11680 echo "${ECHO_T}no" >&6; }
11686 if test "$PKG_CONFIG" = "no" ; then
11689 PKG_CONFIG_MIN_VERSION
=0.9.0
11690 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11691 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11692 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11694 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11695 { echo "$as_me:$LINENO: result: yes" >&5
11696 echo "${ECHO_T}yes" >&6; }
11699 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11700 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11701 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11702 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11703 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11705 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11706 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11707 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11708 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11709 echo "${ECHO_T}$XFT_LIBS" >&6; }
11711 { echo "$as_me:$LINENO: result: no" >&5
11712 echo "${ECHO_T}no" >&6; }
11715 ## If we have a custom action on failure, don't print errors, but
11716 ## do set a variable so people can do so.
11717 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11724 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11725 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11729 if test $succeeded = yes; then
11735 if test "$HAVE_XFT" != no
; then
11736 OLD_CFLAGS
="$CPPFLAGS"
11737 OLD_CFLAGS
="$CFLAGS"
11739 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11740 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11741 LIBS
="$XFT_LIBS $LIBS"
11742 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11743 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11744 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11745 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11749 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11751 # Is the header compilable?
11752 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11753 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11754 cat >conftest.
$ac_ext <<_ACEOF
11757 cat confdefs.h
>>conftest.
$ac_ext
11758 cat >>conftest.
$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11761 #include <X11/Xft/Xft.h>
11763 rm -f conftest.
$ac_objext
11764 if { (ac_try
="$ac_compile"
11765 case "(($ac_try" in
11766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11767 *) ac_try_echo=$ac_try;;
11769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11770 (eval "$ac_compile") 2>conftest.er1
11772 grep -v '^ *+' conftest.er1 >conftest.err
11774 cat conftest.err >&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } && {
11777 test -z "$ac_c_werror_flag" ||
11778 test ! -s conftest.err
11779 } && test -s conftest.$ac_objext; then
11780 ac_header_compiler=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.$ac_ext >&5
11785 ac_header_compiler=no
11788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11790 echo "${ECHO_T}$ac_header_compiler" >&6; }
11792 # Is the header present?
11793 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11794 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11801 #include <X11/Xft/Xft.h>
11803 if { (ac_try="$ac_cpp conftest.$ac_ext"
11804 case "(($ac_try" in
11805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11806 *) ac_try_echo
=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11811 grep -v '^ *+' conftest.er1
>conftest.err
11813 cat conftest.err
>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); } >/dev
/null
&& {
11816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11817 test ! -s conftest.err
11819 ac_header_preproc
=yes
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.
$ac_ext >&5
11824 ac_header_preproc
=no
11827 rm -f conftest.err conftest.
$ac_ext
11828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11829 echo "${ECHO_T}$ac_header_preproc" >&6; }
11831 # So? What about this header?
11832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11834 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11835 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11837 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11838 ac_header_preproc
=yes
11841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11842 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11844 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11846 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11848 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11849 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11850 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11851 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11852 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11856 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11857 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11858 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11861 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11863 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11864 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11867 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11868 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11869 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS
=$LIBS
11874 LIBS
="-lXft $XFT_LIBS $LIBS"
11875 cat >conftest.
$ac_ext <<_ACEOF
11878 cat confdefs.h
>>conftest.
$ac_ext
11879 cat >>conftest.
$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11888 char XftFontOpen ();
11892 return XftFontOpen ();
11897 rm -f conftest.
$ac_objext conftest
$ac_exeext
11898 if { (ac_try
="$ac_link"
11899 case "(($ac_try" in
11900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xft_XftFontOpen=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xft_XftFontOpen=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11929 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11937 if test "${HAVE_XFT}" = "yes"; then
11939 cat >>confdefs.h <<\_ACEOF
11944 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11946 CFLAGS="$OLD_CPPFLAGS"
11947 CFLAGS="$OLD_CFLAGS"
11953 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11954 if test x"${HAVE_X11R5}" = xyes; then
11955 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11956 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11957 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 cat >conftest.$ac_ext <<_ACEOF
11963 cat confdefs.h >>conftest.$ac_ext
11964 cat >>conftest.$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11967 #include <X11/Intrinsic.h>
11968 #include <X11/Xaw/Simple.h>
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 emacs_cv_x11_version_5_with_xaw
=yes
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.
$ac_ext >&5
12000 emacs_cv_x11_version_5_with_xaw
=no
12003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12004 conftest
$ac_exeext conftest.
$ac_ext
12007 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12008 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12009 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12010 USE_X_TOOLKIT
=LUCID
12012 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12013 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12021 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12023 if test "${USE_X_TOOLKIT}" != "none"; then
12024 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12025 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12026 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 cat >conftest.
$ac_ext <<_ACEOF
12032 cat confdefs.h
>>conftest.
$ac_ext
12033 cat >>conftest.
$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12035 #include <X11/Intrinsic.h>
12039 #if XtSpecificationRelease < 6
12047 rm -f conftest.
$ac_objext conftest
$ac_exeext
12048 if { (ac_try
="$ac_link"
12049 case "(($ac_try" in
12050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12054 (eval "$ac_link") 2>conftest.er1
12056 grep -v '^ *+' conftest.er1 >conftest.err
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } && {
12061 test -z "$ac_c_werror_flag" ||
12062 test ! -s conftest.err
12063 } && test -s conftest$ac_exeext &&
12064 $as_test_x conftest$ac_exeext; then
12065 emacs_cv_x11_toolkit_version_6=yes
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 emacs_cv_x11_toolkit_version_6=no
12073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12074 conftest$ac_exeext conftest.$ac_ext
12077 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12078 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12079 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12080 echo "${ECHO_T}6 or newer" >&6; }
12082 cat >>confdefs.h <<\_ACEOF
12083 #define HAVE_X11XTR6 1
12087 { echo "$as_me:$LINENO: result: before 6" >&5
12088 echo "${ECHO_T}before 6" >&6; }
12092 if test x$HAVE_X11XTR6 = xyes; then
12093 LIBS="-lXt -lSM -lICE $LIBS"
12098 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12099 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12100 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 ac_check_lib_save_LIBS=$LIBS
12105 cat >conftest.$ac_ext <<_ACEOF
12108 cat confdefs.h >>conftest.$ac_ext
12109 cat >>conftest.$ac_ext <<_ACEOF
12110 /* end confdefs.h. */
12112 /* Override any GCC internal prototype to avoid an error.
12113 Use char because int might match the return type of a GCC
12114 builtin and then its argument prototype would still apply. */
12118 char XmuConvertStandardSelection ();
12122 return XmuConvertStandardSelection ();
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12131 *) ac_try_echo
=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1
>conftest.err
12138 cat conftest.err
>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest
$ac_exeext &&
12144 $as_test_x conftest
$ac_exeext; then
12145 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.
$ac_ext >&5
12150 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12153 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12154 conftest
$ac_exeext conftest.
$ac_ext
12155 LIBS
=$ac_check_lib_save_LIBS
12157 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12158 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12159 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12160 cat >>confdefs.h
<<_ACEOF
12161 #define HAVE_LIBXMU 1
12168 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12171 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12172 if test "${HAVE_X11}" = "yes"; then
12173 if test "${USE_X_TOOLKIT}" != "none"; then
12175 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12176 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12177 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12178 echo $ECHO_N "(cached) $ECHO_C" >&6
12180 ac_check_lib_save_LIBS
=$LIBS
12181 LIBS
="-lXext $LIBS"
12182 cat >conftest.
$ac_ext <<_ACEOF
12185 cat confdefs.h
>>conftest.
$ac_ext
12186 cat >>conftest.
$ac_ext <<_ACEOF
12187 /* end confdefs.h. */
12189 /* Override any GCC internal prototype to avoid an error.
12190 Use char because int might match the return type of a GCC
12191 builtin and then its argument prototype would still apply. */
12195 char XShapeQueryExtension ();
12199 return XShapeQueryExtension ();
12204 rm -f conftest.
$ac_objext conftest
$ac_exeext
12205 if { (ac_try
="$ac_link"
12206 case "(($ac_try" in
12207 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest$ac_exeext &&
12221 $as_test_x conftest$ac_exeext; then
12222 ac_cv_lib_Xext_XShapeQueryExtension=yes
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_cv_lib_Xext_XShapeQueryExtension=no
12230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12231 conftest$ac_exeext conftest.$ac_ext
12232 LIBS=$ac_check_lib_save_LIBS
12234 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12235 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12236 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12237 cat >>confdefs.h <<_ACEOF
12238 #define HAVE_LIBXEXT 1
12241 LIBS="-lXext $LIBS"
12248 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12249 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12250 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12251 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12264 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12267 Motif version prior to 2.1.
12273 rm -f conftest.$ac_objext
12274 if { (ac_try="$ac_compile"
12275 case "(($ac_try" in
12276 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12277 *) ac_try_echo
=$ac_try;;
12279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12280 (eval "$ac_compile") 2>conftest.er1
12282 grep -v '^ *+' conftest.er1
>conftest.err
12284 cat conftest.err
>&5
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); } && {
12287 test -z "$ac_c_werror_flag" ||
12288 test ! -s conftest.err
12289 } && test -s conftest.
$ac_objext; then
12290 emacs_cv_motif_version_2_1
=yes
12292 echo "$as_me: failed program was:" >&5
12293 sed 's/^/| /' conftest.
$ac_ext >&5
12295 emacs_cv_motif_version_2_1
=no
12298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12300 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12301 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12302 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12303 if test $emacs_cv_motif_version_2_1 = yes; then
12306 cat >>confdefs.h
<<\_ACEOF
12307 #define HAVE_MOTIF_2_1 1
12310 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12311 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12312 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 ac_check_lib_save_LIBS
=$LIBS
12317 cat >conftest.
$ac_ext <<_ACEOF
12320 cat confdefs.h
>>conftest.
$ac_ext
12321 cat >>conftest.
$ac_ext <<_ACEOF
12322 /* end confdefs.h. */
12324 /* Override any GCC internal prototype to avoid an error.
12325 Use char because int might match the return type of a GCC
12326 builtin and then its argument prototype would still apply. */
12330 char XpCreateContext ();
12334 return XpCreateContext ();
12339 rm -f conftest.
$ac_objext conftest
$ac_exeext
12340 if { (ac_try
="$ac_link"
12341 case "(($ac_try" in
12342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_link") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } && {
12353 test -z "$ac_c_werror_flag" ||
12354 test ! -s conftest.err
12355 } && test -s conftest$ac_exeext &&
12356 $as_test_x conftest$ac_exeext; then
12357 ac_cv_lib_Xp_XpCreateContext=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_lib_Xp_XpCreateContext=no
12365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12366 conftest$ac_exeext conftest.$ac_ext
12367 LIBS=$ac_check_lib_save_LIBS
12369 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12370 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12371 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12375 if test ${HAVE_LIBXP} = yes; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define HAVE_LIBXP 1
12383 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12384 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12385 if test "${emacs_cv_lesstif+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 # We put this in CFLAGS temporarily to precede other -I options
12389 # that might be in CFLAGS temporarily.
12390 # We put this in CPPFLAGS where it precedes the other -I options.
12391 OLD_CPPFLAGS=$CPPFLAGS
12393 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12394 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12395 cat >conftest.$ac_ext <<_ACEOF
12398 cat confdefs.h >>conftest.$ac_ext
12399 cat >>conftest.$ac_ext <<_ACEOF
12400 /* end confdefs.h. */
12401 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12414 *) ac_try_echo
=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1
>conftest.err
12421 cat conftest.err
>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.
$ac_objext; then
12427 emacs_cv_lesstif
=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.
$ac_ext >&5
12432 emacs_cv_lesstif
=no
12435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12437 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12438 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12439 if test $emacs_cv_lesstif = yes; then
12440 # Make sure this -I option remains in CPPFLAGS after it is set
12441 # back to REAL_CPPFLAGS.
12442 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12443 # have those other -I options anyway. Ultimately, having this
12444 # directory ultimately in CPPFLAGS will be enough.
12445 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12446 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12449 CPPFLAGS
=$OLD_CPPFLAGS
12454 ### Is -lXaw3d available?
12456 if test "${HAVE_X11}" = "yes"; then
12457 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12458 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12459 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12460 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12463 cat >conftest.
$ac_ext <<_ACEOF
12466 cat confdefs.h
>>conftest.
$ac_ext
12467 cat >>conftest.
$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12469 #include <X11/Xaw3d/Scrollbar.h>
12471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12472 case "(($ac_try" in
12473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12479 grep -v '^ *+' conftest.er1 >conftest.err
12481 cat conftest.err >&5
12482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483 (exit $ac_status); } >/dev/null && {
12484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12485 test ! -s conftest.err
12487 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12495 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12498 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12499 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12500 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12501 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12502 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12503 echo $ECHO_N "(cached) $ECHO_C" >&6
12505 ac_check_lib_save_LIBS=$LIBS
12506 LIBS="-lXaw3d $LIBS"
12507 cat >conftest.$ac_ext <<_ACEOF
12510 cat confdefs.h >>conftest.$ac_ext
12511 cat >>conftest.$ac_ext <<_ACEOF
12512 /* end confdefs.h. */
12514 /* Override any GCC internal prototype to avoid an error.
12515 Use char because int might match the return type of a GCC
12516 builtin and then its argument prototype would still apply. */
12520 char XawScrollbarSetThumb ();
12524 return XawScrollbarSetThumb ();
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (ac_try="$ac_link"
12531 case "(($ac_try" in
12532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12533 *) ac_try_echo
=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_link") 2>conftest.er1
12538 grep -v '^ *+' conftest.er1
>conftest.err
12540 cat conftest.err
>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest
$ac_exeext &&
12546 $as_test_x conftest
$ac_exeext; then
12547 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12549 echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.
$ac_ext >&5
12552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12556 conftest
$ac_exeext conftest.
$ac_ext
12557 LIBS
=$ac_check_lib_save_LIBS
12559 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12560 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12561 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12568 if test "${HAVE_XAW3D}" = "yes"; then
12570 cat >>confdefs.h
<<\_ACEOF
12571 #define HAVE_XAW3D 1
12580 USE_TOOLKIT_SCROLL_BARS
=no
12581 if test "${with_toolkit_scroll_bars}" != "no"; then
12582 if test "${USE_X_TOOLKIT}" != "none"; then
12583 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12584 cat >>confdefs.h
<<\_ACEOF
12585 #define USE_TOOLKIT_SCROLL_BARS 1
12589 USE_TOOLKIT_SCROLL_BARS
=yes
12590 elif test "${HAVE_XAW3D}" = "yes"; then
12591 cat >>confdefs.h
<<\_ACEOF
12592 #define USE_TOOLKIT_SCROLL_BARS 1
12595 USE_TOOLKIT_SCROLL_BARS
=yes
12597 elif test "${HAVE_GTK}" = "yes"; then
12598 cat >>confdefs.h
<<\_ACEOF
12599 #define USE_TOOLKIT_SCROLL_BARS 1
12602 USE_TOOLKIT_SCROLL_BARS
=yes
12603 elif test "${HAVE_CARBON}" = "yes"; then
12604 cat >>confdefs.h
<<\_ACEOF
12605 #define USE_TOOLKIT_SCROLL_BARS 1
12608 USE_TOOLKIT_SCROLL_BARS
=yes
12612 cat >conftest.
$ac_ext <<_ACEOF
12615 cat confdefs.h
>>conftest.
$ac_ext
12616 cat >>conftest.
$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12619 #include <X11/Xlib.h>
12620 #include <X11/Xresource.h>
12629 rm -f conftest.
$ac_objext
12630 if { (ac_try
="$ac_compile"
12631 case "(($ac_try" in
12632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_compile") 2>conftest.er1
12638 grep -v '^ *+' conftest.er1 >conftest.err
12640 cat conftest.err >&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } && {
12643 test -z "$ac_c_werror_flag" ||
12644 test ! -s conftest.err
12645 } && test -s conftest.$ac_objext; then
12648 cat >>confdefs.h <<\_ACEOF
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12662 if test "${with_xim}" != "no"; then
12664 cat >>confdefs.h <<\_ACEOF
12671 if test "${HAVE_XIM}" != "no"; then
12672 late_CFLAGS=$CFLAGS
12673 if test "$GCC" = yes; then
12674 CFLAGS="$CFLAGS --pedantic-errors"
12676 cat >conftest.$ac_ext <<_ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12683 #include <X11/Xlib.h>
12684 #include <X11/Xresource.h>
12693 XPointer *client_data;
12695 /* If we're not using GCC, it's probably not XFree86, and this is
12696 probably right, but we can't use something like --pedantic-errors. */
12697 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12698 char*, XIMProc, XPointer*);
12700 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12710 *) ac_try_echo
=$ac_try;;
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713 (eval "$ac_compile") 2>conftest.er1
12715 grep -v '^ *+' conftest.er1
>conftest.err
12717 cat conftest.err
>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } && {
12720 test -z "$ac_c_werror_flag" ||
12721 test ! -s conftest.err
12722 } && test -s conftest.
$ac_objext; then
12723 emacs_cv_arg6_star
=yes
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.
$ac_ext >&5
12731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12733 if test "$emacs_cv_arg6_star" = yes; then
12734 cat >>confdefs.h
<<\_ACEOF
12735 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12739 cat >>confdefs.h
<<\_ACEOF
12740 #define XRegisterIMInstantiateCallback_arg6 XPointer
12744 CFLAGS
=$late_CFLAGS
12747 ### Use -lXpm if available, unless `--with-xpm=no'.
12749 if test "${HAVE_X11}" = "yes"; then
12750 if test "${with_xpm}" != "no"; then
12751 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12752 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12753 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12754 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12755 echo $ECHO_N "(cached) $ECHO_C" >&6
12757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12758 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12760 # Is the header compilable?
12761 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12762 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12763 cat >conftest.
$ac_ext <<_ACEOF
12766 cat confdefs.h
>>conftest.
$ac_ext
12767 cat >>conftest.
$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 $ac_includes_default
12770 #include <X11/xpm.h>
12772 rm -f conftest.
$ac_objext
12773 if { (ac_try
="$ac_compile"
12774 case "(($ac_try" in
12775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_compile") 2>conftest.er1
12781 grep -v '^ *+' conftest.er1 >conftest.err
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } && {
12786 test -z "$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 } && test -s conftest.$ac_objext; then
12789 ac_header_compiler=yes
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12794 ac_header_compiler=no
12797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12799 echo "${ECHO_T}$ac_header_compiler" >&6; }
12801 # Is the header present?
12802 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12803 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12804 cat >conftest.$ac_ext <<_ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 #include <X11/xpm.h>
12812 if { (ac_try="$ac_cpp conftest.$ac_ext"
12813 case "(($ac_try" in
12814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12815 *) ac_try_echo
=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12820 grep -v '^ *+' conftest.er1
>conftest.err
12822 cat conftest.err
>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); } >/dev
/null
&& {
12825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12826 test ! -s conftest.err
12828 ac_header_preproc
=yes
12830 echo "$as_me: failed program was:" >&5
12831 sed 's/^/| /' conftest.
$ac_ext >&5
12833 ac_header_preproc
=no
12836 rm -f conftest.err conftest.
$ac_ext
12837 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12838 echo "${ECHO_T}$ac_header_preproc" >&6; }
12840 # So? What about this header?
12841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12843 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12844 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12846 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12847 ac_header_preproc
=yes
12850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12851 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12852 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12853 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12854 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12855 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12857 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12859 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12861 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12865 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12866 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12867 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12870 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12872 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12873 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12876 if test $ac_cv_header_X11_xpm_h = yes; then
12877 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12878 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12879 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 ac_check_lib_save_LIBS
=$LIBS
12883 LIBS
="-lXpm -lX11 $LIBS"
12884 cat >conftest.
$ac_ext <<_ACEOF
12887 cat confdefs.h
>>conftest.
$ac_ext
12888 cat >>conftest.
$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12891 /* Override any GCC internal prototype to avoid an error.
12892 Use char because int might match the return type of a GCC
12893 builtin and then its argument prototype would still apply. */
12897 char XpmReadFileToPixmap ();
12901 return XpmReadFileToPixmap ();
12906 rm -f conftest.
$ac_objext conftest
$ac_exeext
12907 if { (ac_try
="$ac_link"
12908 case "(($ac_try" in
12909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12910 *) ac_try_echo=$ac_try;;
12912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12913 (eval "$ac_link") 2>conftest.er1
12915 grep -v '^ *+' conftest.er1 >conftest.err
12917 cat conftest.err >&5
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && {
12920 test -z "$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12922 } && test -s conftest$ac_exeext &&
12923 $as_test_x conftest$ac_exeext; then
12924 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12933 conftest$ac_exeext conftest.$ac_ext
12934 LIBS=$ac_check_lib_save_LIBS
12936 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12937 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12938 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12945 if test "${HAVE_XPM}" = "yes"; then
12946 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12947 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12948 cat >conftest.$ac_ext <<_ACEOF
12951 cat confdefs.h >>conftest.$ac_ext
12952 cat >>conftest.$ac_ext <<_ACEOF
12953 /* end confdefs.h. */
12954 #include "X11/xpm.h"
12955 #ifndef XpmReturnAllocPixels
12956 no_return_alloc_pixels
12960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12961 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12969 if test "${HAVE_XPM}" = "yes"; then
12970 { echo "$as_me:$LINENO: result: yes" >&5
12971 echo "${ECHO_T}yes" >&6; }
12973 { echo "$as_me:$LINENO: result: no" >&5
12974 echo "${ECHO_T}no" >&6; }
12979 if test "${HAVE_XPM}" = "yes"; then
12981 cat >>confdefs.h <<\_ACEOF
12988 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
12990 if test "${HAVE_X11}" = "yes"; then
12991 if test "${with_jpeg}" != "no"; then
12992 if test "${ac_cv_header_jerror_h+set}" = set; then
12993 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12994 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12995 if test "${ac_cv_header_jerror_h+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12999 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13001 # Is the header compilable?
13002 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13003 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 $ac_includes_default
13011 #include <jerror.h>
13013 rm -f conftest.$ac_objext
13014 if { (ac_try="$ac_compile"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_compile") 2>conftest.er1
13022 grep -v '^
*+' conftest.er1 >conftest.err
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } && {
13027 test -z "$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 } && test -s conftest.$ac_objext; then
13030 ac_header_compiler=yes
13032 echo "$as_me: failed program was:" >&5
13033 sed 's
/^
/|
/' conftest.$ac_ext >&5
13035 ac_header_compiler=no
13038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13040 echo "${ECHO_T}$ac_header_compiler" >&6; }
13042 # Is the header present?
13043 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13044 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13045 cat >conftest.$ac_ext <<_ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h. */
13051 #include <jerror.h>
13053 if { (ac_try="$ac_cpp conftest.$ac_ext"
13054 case "(($ac_try" in
13055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056 *) ac_try_echo=$ac_try;;
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13061 grep -v '^
*+' conftest.er1 >conftest.err
13063 cat conftest.err >&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); } >/dev/null && {
13066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13067 test ! -s conftest.err
13069 ac_header_preproc=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's
/^
/|
/' conftest.$ac_ext >&5
13074 ac_header_preproc=no
13077 rm -f conftest.err conftest.$ac_ext
13078 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13079 echo "${ECHO_T}$ac_header_preproc" >&6; }
13081 # So? What about this header?
13082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13084 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13085 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13086 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13087 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13088 ac_header_preproc=yes
13091 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13092 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13093 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13094 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13095 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13096 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13097 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13098 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13099 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13100 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13101 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13102 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13106 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13107 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13108 if test "${ac_cv_header_jerror_h+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 ac_cv_header_jerror_h=$ac_header_preproc
13113 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13114 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13117 if test $ac_cv_header_jerror_h = yes; then
13118 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13119 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13120 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13121 echo $ECHO_N "(cached) $ECHO_C" >&6
13123 ac_check_lib_save_LIBS=$LIBS
13124 LIBS="-ljpeg $LIBS"
13125 cat >conftest.$ac_ext <<_ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13132 /* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13138 char jpeg_destroy_compress ();
13142 return jpeg_destroy_compress ();
13147 rm -f conftest.$ac_objext conftest$ac_exeext
13148 if { (ac_try="$ac_link"
13149 case "(($ac_try" in
13150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151 *) ac_try_echo=$ac_try;;
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154 (eval "$ac_link") 2>conftest.er1
13156 grep -v '^
*+' conftest.er1 >conftest.err
13158 cat conftest.err >&5
13159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13160 (exit $ac_status); } && {
13161 test -z "$ac_c_werror_flag" ||
13162 test ! -s conftest.err
13163 } && test -s conftest$ac_exeext &&
13164 $as_test_x conftest$ac_exeext; then
13165 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13167 echo "$as_me: failed program was:" >&5
13168 sed 's
/^
/|
/' conftest.$ac_ext >&5
13170 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13174 conftest$ac_exeext conftest.$ac_ext
13175 LIBS=$ac_check_lib_save_LIBS
13177 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13178 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13179 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13189 if test "${HAVE_JPEG}" = "yes"; then
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_JPEG 1
13194 cat >conftest.$ac_ext <<_ACEOF
13197 cat confdefs.h >>conftest.$ac_ext
13198 cat >>conftest.$ac_ext <<_ACEOF
13199 /* end confdefs.h. */
13200 #include <jpeglib.h>
13201 version=JPEG_LIB_VERSION
13204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13205 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_JPEG 1
13211 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13212 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13220 ### Use -lpng if available, unless `--with-png=no'.
13222 if test "${HAVE_X11}" = "yes"; then
13223 if test "${with_png}" != "no"; then
13224 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13225 # in /usr/include/libpng.
13228 for ac_header
in png.h libpng
/png.h
13230 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13231 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13234 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
13237 ac_res
=`eval echo '${'$as_ac_Header'}'`
13238 { echo "$as_me:$LINENO: result: $ac_res" >&5
13239 echo "${ECHO_T}$ac_res" >&6; }
13241 # Is the header compilable?
13242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13244 cat >conftest.
$ac_ext <<_ACEOF
13247 cat confdefs.h
>>conftest.
$ac_ext
13248 cat >>conftest.
$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 $ac_includes_default
13251 #include <$ac_header>
13253 rm -f conftest.
$ac_objext
13254 if { (ac_try
="$ac_compile"
13255 case "(($ac_try" in
13256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_compile") 2>conftest.er1
13262 grep -v '^ *+' conftest.er1 >conftest.err
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest.$ac_objext; then
13270 ac_header_compiler=yes
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13275 ac_header_compiler=no
13278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13280 echo "${ECHO_T}$ac_header_compiler" >&6; }
13282 # Is the header present?
13283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <$ac_header>
13293 if { (ac_try="$ac_cpp conftest.$ac_ext"
13294 case "(($ac_try" in
13295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13296 *) ac_try_echo
=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13301 grep -v '^ *+' conftest.er1
>conftest.err
13303 cat conftest.err
>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } >/dev
/null
&& {
13306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13307 test ! -s conftest.err
13309 ac_header_preproc
=yes
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.
$ac_ext >&5
13314 ac_header_preproc
=no
13317 rm -f conftest.err conftest.
$ac_ext
13318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13319 echo "${ECHO_T}$ac_header_preproc" >&6; }
13321 # So? What about this header?
13322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13328 ac_header_preproc
=yes
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13348 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13349 echo $ECHO_N "(cached) $ECHO_C" >&6
13351 eval "$as_ac_Header=\$ac_header_preproc"
13353 ac_res
=`eval echo '${'$as_ac_Header'}'`
13354 { echo "$as_me:$LINENO: result: $ac_res" >&5
13355 echo "${ECHO_T}$ac_res" >&6; }
13358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13359 cat >>confdefs.h
<<_ACEOF
13360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13367 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13368 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13369 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13370 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13371 echo $ECHO_N "(cached) $ECHO_C" >&6
13373 ac_check_lib_save_LIBS
=$LIBS
13374 LIBS
="-lpng -lz -lm $LIBS"
13375 cat >conftest.
$ac_ext <<_ACEOF
13378 cat confdefs.h
>>conftest.
$ac_ext
13379 cat >>conftest.
$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13382 /* Override any GCC internal prototype to avoid an error.
13383 Use char because int might match the return type of a GCC
13384 builtin and then its argument prototype would still apply. */
13388 char png_get_channels ();
13392 return png_get_channels ();
13397 rm -f conftest.
$ac_objext conftest
$ac_exeext
13398 if { (ac_try
="$ac_link"
13399 case "(($ac_try" in
13400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_link") 2>conftest.er1
13406 grep -v '^ *+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && {
13411 test -z "$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 } && test -s conftest$ac_exeext &&
13414 $as_test_x conftest$ac_exeext; then
13415 ac_cv_lib_png_png_get_channels=yes
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_cv_lib_png_png_get_channels=no
13423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13428 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13429 if test $ac_cv_lib_png_png_get_channels = yes; then
13436 if test "${HAVE_PNG}" = "yes"; then
13438 cat >>confdefs.h <<\_ACEOF
13445 ### Use -ltiff if available, unless `--with-tiff=no
'.
13447 if test "${HAVE_X11}" = "yes"; then
13448 if test "${with_tiff}" != "no"; then
13449 if test "${ac_cv_header_tiffio_h+set}" = set; then
13450 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13451 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13452 if test "${ac_cv_header_tiffio_h+set}" = set; then
13453 echo $ECHO_N "(cached) $ECHO_C" >&6
13455 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13456 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13458 # Is the header compilable?
13459 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13460 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 #include <tiffio.h>
13470 rm -f conftest.$ac_objext
13471 if { (ac_try="$ac_compile"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_compile") 2>conftest.er1
13479 grep -v '^
*+' conftest.er1 >conftest.err
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } && {
13484 test -z "$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 } && test -s conftest.$ac_objext; then
13487 ac_header_compiler=yes
13489 echo "$as_me: failed program was:" >&5
13490 sed 's
/^
/|
/' conftest.$ac_ext >&5
13492 ac_header_compiler=no
13495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13497 echo "${ECHO_T}$ac_header_compiler" >&6; }
13499 # Is the header present?
13500 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13501 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13502 cat >conftest.$ac_ext <<_ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 #include <tiffio.h>
13510 if { (ac_try="$ac_cpp conftest.$ac_ext"
13511 case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13518 grep -v '^
*+' conftest.er1 >conftest.err
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } >/dev/null && {
13523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13524 test ! -s conftest.err
13526 ac_header_preproc=yes
13528 echo "$as_me: failed program was:" >&5
13529 sed 's
/^
/|
/' conftest.$ac_ext >&5
13531 ac_header_preproc=no
13534 rm -f conftest.err conftest.$ac_ext
13535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13536 echo "${ECHO_T}$ac_header_preproc" >&6; }
13538 # So? What about this header?
13539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13541 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13542 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13544 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13545 ac_header_preproc=yes
13548 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13549 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13551 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13552 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13553 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13555 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13556 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13557 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13559 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13563 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13564 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13565 if test "${ac_cv_header_tiffio_h+set}" = set; then
13566 echo $ECHO_N "(cached) $ECHO_C" >&6
13568 ac_cv_header_tiffio_h=$ac_header_preproc
13570 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13571 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13574 if test $ac_cv_header_tiffio_h = yes; then
13576 # At least one tiff package requires the jpeg library.
13577 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13578 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13579 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13580 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 ac_check_lib_save_LIBS=$LIBS
13584 LIBS="-ltiff $tifflibs $LIBS"
13585 cat >conftest.$ac_ext <<_ACEOF
13588 cat confdefs.h >>conftest.$ac_ext
13589 cat >>conftest.$ac_ext <<_ACEOF
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13598 char TIFFGetVersion ();
13602 return TIFFGetVersion ();
13607 rm -f conftest.$ac_objext conftest$ac_exeext
13608 if { (ac_try="$ac_link"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_link") 2>conftest.er1
13616 grep -v '^
*+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest$ac_exeext &&
13624 $as_test_x conftest$ac_exeext; then
13625 ac_cv_lib_tiff_TIFFGetVersion=yes
13627 echo "$as_me: failed program was:" >&5
13628 sed 's
/^
/|
/' conftest.$ac_ext >&5
13630 ac_cv_lib_tiff_TIFFGetVersion=no
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634 conftest$ac_exeext conftest.$ac_ext
13635 LIBS=$ac_check_lib_save_LIBS
13637 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13638 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13639 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13648 if test "${HAVE_TIFF}" = "yes"; then
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_TIFF 1
13657 ### Use -lgif if available, unless `--with-gif=no'.
13659 if test "${HAVE_X11}" = "yes"; then
13660 if test "${with_gif}" != "no"; then
13661 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13662 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13663 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13664 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13665 echo $ECHO_N "(cached) $ECHO_C" >&6
13667 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13668 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13670 # Is the header compilable?
13671 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13672 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13673 cat >conftest.
$ac_ext <<_ACEOF
13676 cat confdefs.h
>>conftest.
$ac_ext
13677 cat >>conftest.
$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 $ac_includes_default
13680 #include <gif_lib.h>
13682 rm -f conftest.
$ac_objext
13683 if { (ac_try
="$ac_compile"
13684 case "(($ac_try" in
13685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13686 *) ac_try_echo=$ac_try;;
13688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13689 (eval "$ac_compile") 2>conftest.er1
13691 grep -v '^ *+' conftest.er1 >conftest.err
13693 cat conftest.err >&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); } && {
13696 test -z "$ac_c_werror_flag" ||
13697 test ! -s conftest.err
13698 } && test -s conftest.$ac_objext; then
13699 ac_header_compiler=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13704 ac_header_compiler=no
13707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13709 echo "${ECHO_T}$ac_header_compiler" >&6; }
13711 # Is the header present?
13712 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13713 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13714 cat >conftest.$ac_ext <<_ACEOF
13717 cat confdefs.h >>conftest.$ac_ext
13718 cat >>conftest.$ac_ext <<_ACEOF
13719 /* end confdefs.h. */
13720 #include <gif_lib.h>
13722 if { (ac_try="$ac_cpp conftest.$ac_ext"
13723 case "(($ac_try" in
13724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13725 *) ac_try_echo
=$ac_try;;
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13730 grep -v '^ *+' conftest.er1
>conftest.err
13732 cat conftest.err
>&5
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); } >/dev
/null
&& {
13735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13736 test ! -s conftest.err
13738 ac_header_preproc
=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.
$ac_ext >&5
13743 ac_header_preproc
=no
13746 rm -f conftest.err conftest.
$ac_ext
13747 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13748 echo "${ECHO_T}$ac_header_preproc" >&6; }
13750 # So? What about this header?
13751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13753 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13754 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13756 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13757 ac_header_preproc
=yes
13760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13761 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13763 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13765 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13767 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13769 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13770 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13771 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13775 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13776 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13777 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 ac_cv_header_gif_lib_h
=$ac_header_preproc
13782 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13783 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13786 if test $ac_cv_header_gif_lib_h = yes; then
13787 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13788 # Earlier versions can crash Emacs.
13789 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13790 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13791 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13792 echo $ECHO_N "(cached) $ECHO_C" >&6
13794 ac_check_lib_save_LIBS
=$LIBS
13795 LIBS
="-lungif $LIBS"
13796 cat >conftest.
$ac_ext <<_ACEOF
13799 cat confdefs.h
>>conftest.
$ac_ext
13800 cat >>conftest.
$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13803 /* Override any GCC internal prototype to avoid an error.
13804 Use char because int might match the return type of a GCC
13805 builtin and then its argument prototype would still apply. */
13809 char EGifPutExtensionLast ();
13813 return EGifPutExtensionLast ();
13818 rm -f conftest.
$ac_objext conftest
$ac_exeext
13819 if { (ac_try
="$ac_link"
13820 case "(($ac_try" in
13821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_link") 2>conftest.er1
13827 grep -v '^ *+' conftest.er1 >conftest.err
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest$ac_exeext &&
13835 $as_test_x conftest$ac_exeext; then
13836 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_lib_ungif_EGifPutExtensionLast=no
13844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13845 conftest$ac_exeext conftest.$ac_ext
13846 LIBS=$ac_check_lib_save_LIBS
13848 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13849 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13850 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13859 if test "${HAVE_GIF}" = "yes"; then
13861 cat >>confdefs.h <<\_ACEOF
13868 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13869 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13870 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13871 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13875 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13877 # Is the header compilable?
13878 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13879 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13886 $ac_includes_default
13887 #include <malloc/malloc.h>
13889 rm -f conftest.$ac_objext
13890 if { (ac_try="$ac_compile"
13891 case "(($ac_try" in
13892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13893 *) ac_try_echo
=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_compile") 2>conftest.er1
13898 grep -v '^ *+' conftest.er1
>conftest.err
13900 cat conftest.err
>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } && {
13903 test -z "$ac_c_werror_flag" ||
13904 test ! -s conftest.err
13905 } && test -s conftest.
$ac_objext; then
13906 ac_header_compiler
=yes
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.
$ac_ext >&5
13911 ac_header_compiler
=no
13914 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13915 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6; }
13918 # Is the header present?
13919 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13920 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13921 cat >conftest.
$ac_ext <<_ACEOF
13924 cat confdefs.h
>>conftest.
$ac_ext
13925 cat >>conftest.
$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include <malloc/malloc.h>
13929 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13930 case "(($ac_try" in
13931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13932 *) ac_try_echo=$ac_try;;
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13937 grep -v '^ *+' conftest.er1 >conftest.err
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } >/dev/null && {
13942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13943 test ! -s conftest.err
13945 ac_header_preproc=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_header_preproc=no
13953 rm -f conftest.err conftest.$ac_ext
13954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13955 echo "${ECHO_T}$ac_header_preproc" >&6; }
13957 # So? What about this header?
13958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13960 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13961 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13962 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13963 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13964 ac_header_preproc=yes
13967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13968 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13969 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13970 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13971 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13972 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13974 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13978 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13982 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13983 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13984 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13987 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13989 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13990 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13993 if test $ac_cv_header_malloc_malloc_h = yes; then
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_MALLOC_MALLOC_H 1
14003 ### Use Mac OS X Carbon API to implement GUI.
14004 if test "${HAVE_CARBON}" = "yes"; then
14006 cat >>confdefs.h <<\_ACEOF
14007 #define HAVE_CARBON 1
14010 ## Specify the install directory
14012 if test "${carbon_appdir_x}" != ""; then
14013 case ${carbon_appdir_x} in
14014 y | ye | yes) carbon_appdir=/Applications ;;
14015 * ) carbon_appdir=${carbon_appdir_x} ;;
14018 # We also have mouse menus.
14022 ### Use session management (-lSM -lICE) if available
14024 if test "${HAVE_X11}" = "yes"; then
14025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14026 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14027 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14029 echo $ECHO_N "(cached) $ECHO_C" >&6
14031 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14032 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14034 # Is the header compilable?
14035 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14036 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14037 cat >conftest.$ac_ext <<_ACEOF
14040 cat confdefs.h >>conftest.$ac_ext
14041 cat >>conftest.$ac_ext <<_ACEOF
14042 /* end confdefs.h. */
14043 $ac_includes_default
14044 #include <X11/SM/SMlib.h>
14046 rm -f conftest.$ac_objext
14047 if { (ac_try="$ac_compile"
14048 case "(($ac_try" in
14049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14050 *) ac_try_echo
=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_compile") 2>conftest.er1
14055 grep -v '^ *+' conftest.er1
>conftest.err
14057 cat conftest.err
>&5
14058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059 (exit $ac_status); } && {
14060 test -z "$ac_c_werror_flag" ||
14061 test ! -s conftest.err
14062 } && test -s conftest.
$ac_objext; then
14063 ac_header_compiler
=yes
14065 echo "$as_me: failed program was:" >&5
14066 sed 's/^/| /' conftest.
$ac_ext >&5
14068 ac_header_compiler
=no
14071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14073 echo "${ECHO_T}$ac_header_compiler" >&6; }
14075 # Is the header present?
14076 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14077 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14078 cat >conftest.
$ac_ext <<_ACEOF
14081 cat confdefs.h
>>conftest.
$ac_ext
14082 cat >>conftest.
$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084 #include <X11/SM/SMlib.h>
14086 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14087 case "(($ac_try" in
14088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14089 *) ac_try_echo=$ac_try;;
14091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14094 grep -v '^ *+' conftest.er1 >conftest.err
14096 cat conftest.err >&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } >/dev/null && {
14099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14102 ac_header_preproc=yes
14104 echo "$as_me: failed program was:" >&5
14105 sed 's/^/| /' conftest.$ac_ext >&5
14107 ac_header_preproc=no
14110 rm -f conftest.err conftest.$ac_ext
14111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14112 echo "${ECHO_T}$ac_header_preproc" >&6; }
14114 # So? What about this header?
14115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14117 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14118 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14119 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14120 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14121 ac_header_preproc=yes
14124 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14125 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14127 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14129 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14130 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14131 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14132 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14133 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14135 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14139 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14140 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14141 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14144 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14146 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14147 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14150 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14151 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14152 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14153 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 ac_check_lib_save_LIBS=$LIBS
14157 LIBS="-lSM -lICE $LIBS"
14158 cat >conftest.$ac_ext <<_ACEOF
14161 cat confdefs.h >>conftest.$ac_ext
14162 cat >>conftest.$ac_ext <<_ACEOF
14163 /* end confdefs.h. */
14165 /* Override any GCC internal prototype to avoid an error.
14166 Use char because int might match the return type of a GCC
14167 builtin and then its argument prototype would still apply. */
14171 char SmcOpenConnection ();
14175 return SmcOpenConnection ();
14180 rm -f conftest.$ac_objext conftest$ac_exeext
14181 if { (ac_try="$ac_link"
14182 case "(($ac_try" in
14183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14184 *) ac_try_echo
=$ac_try;;
14186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14187 (eval "$ac_link") 2>conftest.er1
14189 grep -v '^ *+' conftest.er1
>conftest.err
14191 cat conftest.err
>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } && {
14194 test -z "$ac_c_werror_flag" ||
14195 test ! -s conftest.err
14196 } && test -s conftest
$ac_exeext &&
14197 $as_test_x conftest
$ac_exeext; then
14198 ac_cv_lib_SM_SmcOpenConnection
=yes
14200 echo "$as_me: failed program was:" >&5
14201 sed 's/^/| /' conftest.
$ac_ext >&5
14203 ac_cv_lib_SM_SmcOpenConnection
=no
14206 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14207 conftest
$ac_exeext conftest.
$ac_ext
14208 LIBS
=$ac_check_lib_save_LIBS
14210 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14211 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14212 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14220 if test "${HAVE_X_SM}" = "yes"; then
14222 cat >>confdefs.h
<<\_ACEOF
14223 #define HAVE_X_SM 1
14228 *) LIBS
="-lSM -lICE $LIBS" ;;
14233 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14234 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14235 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14236 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14237 echo $ECHO_N "(cached) $ECHO_C" >&6
14239 cat >conftest.
$ac_ext <<_ACEOF
14242 cat confdefs.h
>>conftest.
$ac_ext
14243 cat >>conftest.
$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14254 rm -f conftest.
$ac_objext conftest
$ac_exeext
14255 if { (ac_try
="$ac_link"
14256 case "(($ac_try" in
14257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14258 *) ac_try_echo=$ac_try;;
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14263 grep -v '^ *+' conftest.er1 >conftest.err
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest$ac_exeext &&
14271 $as_test_x conftest$ac_exeext; then
14272 emacs_cv_netdb_declares_h_errno=yes
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14277 emacs_cv_netdb_declares_h_errno=no
14280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14281 conftest$ac_exeext conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14284 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14285 if test $emacs_cv_netdb_declares_h_errno = yes; then
14287 cat >>confdefs.h <<\_ACEOF
14288 #define HAVE_H_ERRNO 1
14293 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14294 # for constant arguments. Useless!
14295 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14296 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14297 if test "${ac_cv_working_alloca_h+set}" = set; then
14298 echo $ECHO_N "(cached) $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 <alloca.h>
14310 char *p = (char *) alloca (2 * sizeof (int));
14316 rm -f conftest.$ac_objext conftest$ac_exeext
14317 if { (ac_try="$ac_link"
14318 case "(($ac_try" in
14319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14320 *) ac_try_echo
=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_link") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1
>conftest.err
14327 cat conftest.err
>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest
$ac_exeext &&
14333 $as_test_x conftest
$ac_exeext; then
14334 ac_cv_working_alloca_h
=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 ac_cv_working_alloca_h
=no
14342 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14343 conftest
$ac_exeext conftest.
$ac_ext
14345 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14346 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14347 if test $ac_cv_working_alloca_h = yes; then
14349 cat >>confdefs.h
<<\_ACEOF
14350 #define HAVE_ALLOCA_H 1
14355 { echo "$as_me:$LINENO: checking for alloca" >&5
14356 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14357 if test "${ac_cv_func_alloca_works+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 cat >conftest.
$ac_ext <<_ACEOF
14363 cat confdefs.h
>>conftest.
$ac_ext
14364 cat >>conftest.
$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14367 # define alloca __builtin_alloca
14370 # include <malloc.h>
14371 # define alloca _alloca
14373 # ifdef HAVE_ALLOCA_H
14374 # include <alloca.h>
14379 # ifndef alloca /* predefined by HP cc +Olibcalls */
14390 char *p = (char *) alloca (1);
14396 rm -f conftest.
$ac_objext conftest
$ac_exeext
14397 if { (ac_try
="$ac_link"
14398 case "(($ac_try" in
14399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest$ac_exeext &&
14413 $as_test_x conftest$ac_exeext; then
14414 ac_cv_func_alloca_works=yes
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 ac_cv_func_alloca_works=no
14422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14423 conftest$ac_exeext conftest.$ac_ext
14425 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14426 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14428 if test $ac_cv_func_alloca_works = yes; then
14430 cat >>confdefs.h <<\_ACEOF
14431 #define HAVE_ALLOCA 1
14435 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14436 # that cause trouble. Some versions do not even contain alloca or
14437 # contain a buggy version. If you still want to use their alloca,
14438 # use ar to extract alloca.o from them instead of compiling alloca.c.
14440 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14442 cat >>confdefs.h <<\_ACEOF
14447 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14448 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14449 if test "${ac_cv_os_cray+set}" = set; then
14450 echo $ECHO_N "(cached
) $ECHO_C" >&6
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14458 #if defined CRAY && ! defined CRAY2
14465 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14466 $EGREP "webecray
" >/dev/null 2>&1; then
14474 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14475 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14476 if test $ac_cv_os_cray = yes; then
14477 for ac_func in _getb67 GETB67 getb67; do
14478 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14479 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14480 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14481 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14482 echo $ECHO_N "(cached
) $ECHO_C" >&6
14484 cat >conftest.$ac_ext <<_ACEOF
14487 cat confdefs.h >>conftest.$ac_ext
14488 cat >>conftest.$ac_ext <<_ACEOF
14489 /* end confdefs.h. */
14490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14492 #define $ac_func innocuous_$ac_func
14494 /* System header to define __stub macros and hopefully few prototypes,
14495 which can conflict with char $ac_func (); below.
14496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14497 <limits.h> exists even on freestanding compilers. */
14500 # include <limits.h>
14502 # include <assert.h>
14507 /* Override any GCC internal prototype to avoid an error.
14508 Use char because int might match the return type of a GCC
14509 builtin and then its argument prototype would still apply. */
14514 /* The GNU C library defines this for functions which it implements
14515 to always fail with ENOSYS. Some functions are actually named
14516 something starting with __ and the normal name is an alias. */
14517 #if defined __stub_$ac_func || defined __stub___$ac_func
14524 return $ac_func ();
14529 rm -f conftest.$ac_objext conftest$ac_exeext
14530 if { (ac_try="$ac_link"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_link") 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14542 (exit $ac_status); } && {
14543 test -z "$ac_c_werror_flag" ||
14544 test ! -s conftest.err
14545 } && test -s conftest$ac_exeext &&
14546 $as_test_x conftest$ac_exeext; then
14547 eval "$as_ac_var=yes"
14549 echo "$as_me: failed program was
:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14552 eval "$as_ac_var=no
"
14555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14556 conftest$ac_exeext conftest.$ac_ext
14558 ac_res=`eval echo '${'$as_ac_var'}'`
14559 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14560 echo "${ECHO_T}$ac_res" >&6; }
14561 if test `eval echo '${'$as_ac_var'}'` = yes; then
14563 cat >>confdefs.h <<_ACEOF
14564 #define CRAY_STACKSEG_END $ac_func
14573 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14574 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14575 if test "${ac_cv_c_stack_direction+set}" = set; then
14576 echo $ECHO_N "(cached
) $ECHO_C" >&6
14578 if test "$cross_compiling" = yes; then
14579 ac_cv_c_stack_direction=0
14581 cat >conftest.$ac_ext <<_ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 $ac_includes_default
14589 find_stack_direction ()
14591 static char *addr = 0;
14596 return find_stack_direction ();
14599 return (&dummy > addr) ? 1 : -1;
14605 return find_stack_direction () < 0;
14608 rm -f conftest$ac_exeext
14609 if { (ac_try="$ac_link"
14610 case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_link") 2>&5
14617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14627 (exit $ac_status); }; }; then
14628 ac_cv_c_stack_direction=1
14630 echo "$as_me: program exited with status
$ac_status" >&5
14631 echo "$as_me: failed program was
:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ( exit $ac_status )
14635 ac_cv_c_stack_direction=-1
14637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14642 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14643 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14645 cat >>confdefs.h <<_ACEOF
14646 #define STACK_DIRECTION $ac_cv_c_stack_direction
14653 # fmod, logb, and frexp are found in -lm on most systems.
14654 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14656 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14657 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14658 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14659 echo $ECHO_N "(cached
) $ECHO_C" >&6
14661 ac_check_lib_save_LIBS=$LIBS
14663 cat >conftest.$ac_ext <<_ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_lib_m_sqrt=yes
14705 echo "$as_me: failed program was
:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_lib_m_sqrt=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14715 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14716 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14717 if test $ac_cv_lib_m_sqrt = yes; then
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_LIBM 1
14727 # Check for mail-locking functions in a "mail" library. Probably this should
14728 # have the same check as for liblockfile below.
14730 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14731 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14732 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14733 echo $ECHO_N "(cached
) $ECHO_C" >&6
14735 ac_check_lib_save_LIBS=$LIBS
14736 LIBS="-lmail $LIBS"
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14754 return maillock ();
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14777 ac_cv_lib_mail_maillock=yes
14779 echo "$as_me: failed program was
:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_lib_mail_maillock=no
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_check_lib_save_LIBS
14789 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14790 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14791 if test $ac_cv_lib_mail_maillock = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_LIBMAIL 1
14796 LIBS="-lmail $LIBS"
14801 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14802 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14803 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14804 echo $ECHO_N "(cached
) $ECHO_C" >&6
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-llockfile $LIBS"
14808 cat >conftest.$ac_ext <<_ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h. */
14815 /* Override any GCC internal prototype to avoid an error.
14816 Use char because int might match the return type of a GCC
14817 builtin and then its argument prototype would still apply. */
14825 return maillock ();
14830 rm -f conftest.$ac_objext conftest$ac_exeext
14831 if { (ac_try="$ac_link"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14837 (eval "$ac_link") 2>conftest.er1
14839 grep -v '^ *+' conftest.er1 >conftest.err
14841 cat conftest.err >&5
14842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14843 (exit $ac_status); } && {
14844 test -z "$ac_c_werror_flag" ||
14845 test ! -s conftest.err
14846 } && test -s conftest$ac_exeext &&
14847 $as_test_x conftest$ac_exeext; then
14848 ac_cv_lib_lockfile_maillock=yes
14850 echo "$as_me: failed program was
:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_cv_lib_lockfile_maillock=no
14856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14857 conftest$ac_exeext conftest.$ac_ext
14858 LIBS=$ac_check_lib_save_LIBS
14860 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14861 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14862 if test $ac_cv_lib_lockfile_maillock = yes; then
14863 cat >>confdefs.h <<_ACEOF
14864 #define HAVE_LIBLOCKFILE 1
14867 LIBS="-llockfile $LIBS"
14871 # If we have the shared liblockfile, assume we must use it for mail
14872 # locking (e.g. Debian). If we couldn't link against liblockfile
14873 # (no liblockfile.a installed), ensure that we don't need to.
14874 if test "$ac_cv_lib_lockfile_maillock" = no; then
14875 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14876 set dummy liblockfile.so; ac_word=$2
14877 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14878 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14879 if test "${ac_cv_prog_liblockfile+set}" = set; then
14880 echo $ECHO_N "(cached
) $ECHO_C" >&6
14882 if test -n "$liblockfile"; then
14883 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14886 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14887 for as_dir in $as_dummy
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14893 ac_cv_prog_liblockfile="yes"
14894 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14901 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14904 liblockfile=$ac_cv_prog_liblockfile
14905 if test -n "$liblockfile"; then
14906 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14907 echo "${ECHO_T}$liblockfile" >&6; }
14909 { echo "$as_me:$LINENO: result
: no
" >&5
14910 echo "${ECHO_T}no
" >&6; }
14914 if test $ac_cv_prog_liblockfile = yes; then
14915 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14916 This probably means that movemail could lose mail.
14917 There may be a \`development' package to
install containing liblockfile.
" >&5
14918 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14919 This probably means that movemail could lose mail.
14920 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14921 { (exit 1); exit 1; }; }
14926 for ac_func in touchlock
14928 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14929 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14930 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14931 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14932 echo $ECHO_N "(cached
) $ECHO_C" >&6
14934 cat >conftest.$ac_ext <<_ACEOF
14937 cat confdefs.h >>conftest.$ac_ext
14938 cat >>conftest.$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14942 #define $ac_func innocuous_$ac_func
14944 /* System header to define __stub macros and hopefully few prototypes,
14945 which can conflict with char $ac_func (); below.
14946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14947 <limits.h> exists even on freestanding compilers. */
14950 # include <limits.h>
14952 # include <assert.h>
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14964 /* The GNU C library defines this for functions which it implements
14965 to always fail with ENOSYS. Some functions are actually named
14966 something starting with __ and the normal name is an alias. */
14967 #if defined __stub_$ac_func || defined __stub___$ac_func
14974 return $ac_func ();
14979 rm -f conftest.$ac_objext conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_link") 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14992 (exit $ac_status); } && {
14993 test -z "$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14995 } && test -s conftest$ac_exeext &&
14996 $as_test_x conftest$ac_exeext; then
14997 eval "$as_ac_var=yes"
14999 echo "$as_me: failed program was
:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 eval "$as_ac_var=no
"
15005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15006 conftest$ac_exeext conftest.$ac_ext
15008 ac_res=`eval echo '${'$as_ac_var'}'`
15009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15010 echo "${ECHO_T}$ac_res" >&6; }
15011 if test `eval echo '${'$as_ac_var'}'` = yes; then
15012 cat >>confdefs.h <<_ACEOF
15013 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15020 for ac_header in maillock.h
15022 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15023 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15024 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15025 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15026 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15027 echo $ECHO_N "(cached
) $ECHO_C" >&6
15029 ac_res=`eval echo '${'$as_ac_Header'}'`
15030 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15031 echo "${ECHO_T}$ac_res" >&6; }
15033 # Is the header compilable?
15034 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15035 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15036 cat >conftest.$ac_ext <<_ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h. */
15042 $ac_includes_default
15043 #include <$ac_header>
15045 rm -f conftest.$ac_objext
15046 if { (ac_try="$ac_compile"
15047 case "(($ac_try" in
15048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15049 *) ac_try_echo=$ac_try;;
15051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_compile") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1 >conftest.err
15056 cat conftest.err >&5
15057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest.$ac_objext; then
15062 ac_header_compiler=yes
15064 echo "$as_me: failed program was
:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15067 ac_header_compiler=no
15070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15071 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15072 echo "${ECHO_T}$ac_header_compiler" >&6; }
15074 # Is the header present?
15075 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15076 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15077 cat >conftest.$ac_ext <<_ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15083 #include <$ac_header>
15085 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15097 (exit $ac_status); } >/dev/null && {
15098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15101 ac_header_preproc=yes
15103 echo "$as_me: failed program was
:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15106 ac_header_preproc=no
15109 rm -f conftest.err conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15111 echo "${ECHO_T}$ac_header_preproc" >&6; }
15113 # So? What about this header?
15114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15116 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15117 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15118 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15120 ac_header_preproc=yes
15123 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15124 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15125 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15126 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15127 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15128 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15129 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15130 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15131 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15133 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15134 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15138 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15139 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15141 echo $ECHO_N "(cached
) $ECHO_C" >&6
15143 eval "$as_ac_Header=\
$ac_header_preproc"
15145 ac_res=`eval echo '${'$as_ac_Header'}'`
15146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15147 echo "${ECHO_T}$ac_res" >&6; }
15150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15151 cat >>confdefs.h <<_ACEOF
15152 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15229 for ac_func in gethostname getdomainname dup2 \
15230 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15231 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15232 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15233 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15234 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15235 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15236 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15237 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15239 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15240 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15241 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15242 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15243 echo $ECHO_N "(cached
) $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15253 #define $ac_func innocuous_$ac_func
15255 /* System header to define __stub macros and hopefully few prototypes,
15256 which can conflict with char $ac_func (); below.
15257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15258 <limits.h> exists even on freestanding compilers. */
15261 # include <limits.h>
15263 # include <assert.h>
15268 /* Override any GCC internal prototype to avoid an error.
15269 Use char because int might match the return type of a GCC
15270 builtin and then its argument prototype would still apply. */
15275 /* The GNU C library defines this for functions which it implements
15276 to always fail with ENOSYS. Some functions are actually named
15277 something starting with __ and the normal name is an alias. */
15278 #if defined __stub_$ac_func || defined __stub___$ac_func
15285 return $ac_func ();
15290 rm -f conftest.$ac_objext conftest$ac_exeext
15291 if { (ac_try="$ac_link"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 eval "$as_ac_var=yes"
15310 echo "$as_me: failed program was
:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 eval "$as_ac_var=no
"
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 ac_res=`eval echo '${'$as_ac_var'}'`
15320 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15321 echo "${ECHO_T}$ac_res" >&6; }
15322 if test `eval echo '${'$as_ac_var'}'` = yes; then
15323 cat >>confdefs.h <<_ACEOF
15324 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15332 for ac_header in sys/un.h
15334 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15336 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15337 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15339 echo $ECHO_N "(cached
) $ECHO_C" >&6
15341 ac_res=`eval echo '${'$as_ac_Header'}'`
15342 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15343 echo "${ECHO_T}$ac_res" >&6; }
15345 # Is the header compilable?
15346 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15347 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15348 cat >conftest.$ac_ext <<_ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354 $ac_includes_default
15355 #include <$ac_header>
15357 rm -f conftest.$ac_objext
15358 if { (ac_try="$ac_compile"
15359 case "(($ac_try" in
15360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15361 *) ac_try_echo=$ac_try;;
15363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15364 (eval "$ac_compile") 2>conftest.er1
15366 grep -v '^ *+' conftest.er1 >conftest.err
15368 cat conftest.err >&5
15369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15370 (exit $ac_status); } && {
15371 test -z "$ac_c_werror_flag" ||
15372 test ! -s conftest.err
15373 } && test -s conftest.$ac_objext; then
15374 ac_header_compiler=yes
15376 echo "$as_me: failed program was
:" >&5
15377 sed 's/^/| /' conftest.$ac_ext >&5
15379 ac_header_compiler=no
15382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15383 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15384 echo "${ECHO_T}$ac_header_compiler" >&6; }
15386 # Is the header present?
15387 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15388 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15389 cat >conftest.$ac_ext <<_ACEOF
15392 cat confdefs.h >>conftest.$ac_ext
15393 cat >>conftest.$ac_ext <<_ACEOF
15394 /* end confdefs.h. */
15395 #include <$ac_header>
15397 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15409 (exit $ac_status); } >/dev/null && {
15410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15413 ac_header_preproc=yes
15415 echo "$as_me: failed program was
:" >&5
15416 sed 's/^/| /' conftest.$ac_ext >&5
15418 ac_header_preproc=no
15421 rm -f conftest.err conftest.$ac_ext
15422 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15423 echo "${ECHO_T}$ac_header_preproc" >&6; }
15425 # So? What about this header?
15426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15428 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15429 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15430 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15432 ac_header_preproc=yes
15435 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15436 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15437 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15438 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15439 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15440 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15441 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15442 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15443 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15445 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15446 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15450 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15451 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached
) $ECHO_C" >&6
15455 eval "$as_ac_Header=\
$ac_header_preproc"
15457 ac_res=`eval echo '${'$as_ac_Header'}'`
15458 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15459 echo "${ECHO_T}$ac_res" >&6; }
15462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15463 cat >>confdefs.h <<_ACEOF
15464 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15476 for ac_header in $ac_header_list
15478 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15479 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15480 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15481 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15482 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15483 echo $ECHO_N "(cached
) $ECHO_C" >&6
15485 ac_res=`eval echo '${'$as_ac_Header'}'`
15486 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15487 echo "${ECHO_T}$ac_res" >&6; }
15489 # Is the header compilable?
15490 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15491 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15492 cat >conftest.$ac_ext <<_ACEOF
15495 cat confdefs.h >>conftest.$ac_ext
15496 cat >>conftest.$ac_ext <<_ACEOF
15497 /* end confdefs.h. */
15498 $ac_includes_default
15499 #include <$ac_header>
15501 rm -f conftest.$ac_objext
15502 if { (ac_try="$ac_compile"
15503 case "(($ac_try" in
15504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15505 *) ac_try_echo=$ac_try;;
15507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15508 (eval "$ac_compile") 2>conftest.er1
15510 grep -v '^ *+' conftest.er1 >conftest.err
15512 cat conftest.err >&5
15513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15514 (exit $ac_status); } && {
15515 test -z "$ac_c_werror_flag" ||
15516 test ! -s conftest.err
15517 } && test -s conftest.$ac_objext; then
15518 ac_header_compiler=yes
15520 echo "$as_me: failed program was
:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ac_header_compiler=no
15526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15527 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15528 echo "${ECHO_T}$ac_header_compiler" >&6; }
15530 # Is the header present?
15531 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15532 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #include <$ac_header>
15541 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15542 case "(($ac_try" in
15543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544 *) ac_try_echo=$ac_try;;
15546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15547 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15553 (exit $ac_status); } >/dev/null && {
15554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15555 test ! -s conftest.err
15557 ac_header_preproc=yes
15559 echo "$as_me: failed program was
:" >&5
15560 sed 's/^/| /' conftest.$ac_ext >&5
15562 ac_header_preproc=no
15565 rm -f conftest.err conftest.$ac_ext
15566 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15567 echo "${ECHO_T}$ac_header_preproc" >&6; }
15569 # So? What about this header?
15570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15572 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15573 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15574 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15576 ac_header_preproc=yes
15579 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15580 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15581 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15582 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15583 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15584 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15585 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15586 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15587 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15589 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15590 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15594 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15595 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15596 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15597 echo $ECHO_N "(cached
) $ECHO_C" >&6
15599 eval "$as_ac_Header=\
$ac_header_preproc"
15601 ac_res=`eval echo '${'$as_ac_Header'}'`
15602 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15603 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15623 for ac_func in $ac_func_list
15625 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15626 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15627 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15628 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15629 echo $ECHO_N "(cached
) $ECHO_C" >&6
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15639 #define $ac_func innocuous_$ac_func
15641 /* System header to define __stub macros and hopefully few prototypes,
15642 which can conflict with char $ac_func (); below.
15643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15644 <limits.h> exists even on freestanding compilers. */
15647 # include <limits.h>
15649 # include <assert.h>
15654 /* Override any GCC internal prototype to avoid an error.
15655 Use char because int might match the return type of a GCC
15656 builtin and then its argument prototype would still apply. */
15661 /* The GNU C library defines this for functions which it implements
15662 to always fail with ENOSYS. Some functions are actually named
15663 something starting with __ and the normal name is an alias. */
15664 #if defined __stub_$ac_func || defined __stub___$ac_func
15671 return $ac_func ();
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680 *) ac_try_echo=$ac_try;;
15682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15683 (eval "$ac_link") 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15689 (exit $ac_status); } && {
15690 test -z "$ac_c_werror_flag" ||
15691 test ! -s conftest.err
15692 } && test -s conftest$ac_exeext &&
15693 $as_test_x conftest$ac_exeext; then
15694 eval "$as_ac_var=yes"
15696 echo "$as_me: failed program was
:" >&5
15697 sed 's/^/| /' conftest.$ac_ext >&5
15699 eval "$as_ac_var=no
"
15702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15703 conftest$ac_exeext conftest.$ac_ext
15705 ac_res=`eval echo '${'$as_ac_var'}'`
15706 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15707 echo "${ECHO_T}$ac_res" >&6; }
15708 if test `eval echo '${'$as_ac_var'}'` = yes; then
15709 cat >>confdefs.h <<_ACEOF
15710 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15732 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15733 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15734 if test "${ac_cv_func_working_mktime+set}" = set; then
15735 echo $ECHO_N "(cached
) $ECHO_C" >&6
15737 if test "$cross_compiling" = yes; then
15738 ac_cv_func_working_mktime=no
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 /* Test program from Paul Eggert and Tony Leneis. */
15747 #ifdef TIME_WITH_SYS_TIME
15748 # include <sys/time.h>
15751 # ifdef HAVE_SYS_TIME_H
15752 # include <sys/time.h>
15758 #include <stdlib.h>
15760 #ifdef HAVE_UNISTD_H
15761 # include <unistd.h>
15765 # define alarm(X) /* empty */
15768 /* Work around redefinition to rpl_putenv by other config tests. */
15771 static time_t time_t_max;
15772 static time_t time_t_min;
15774 /* Values we'll use to set the TZ environment variable. */
15775 static char *tz_strings[] = {
15776 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15777 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15779 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15781 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15782 Based on a problem report from Andreas Jaeger. */
15784 spring_forward_gap ()
15786 /* glibc (up to about 1998-10-07) failed this test. */
15789 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15790 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15791 on systems that don't support the Olson extension, or don't have the
15792 full zoneinfo tables installed. */
15793 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15802 return mktime (&tm) != (time_t) -1;
15810 return ! (lt = localtime (&now)) || mktime (lt) == now;
15817 return (mktime_test1 (now)
15818 && mktime_test1 ((time_t) (time_t_max - now))
15819 && mktime_test1 ((time_t) (time_t_min + now)));
15825 /* Based on code from Ariel Faigon. */
15835 return tm.tm_mon == 2 && tm.tm_mday == 31;
15844 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15845 now = mktime (&tm);
15846 if (now != (time_t) -1)
15848 struct tm *lt = localtime (&now);
15850 && lt->tm_year == tm.tm_year
15851 && lt->tm_mon == tm.tm_mon
15852 && lt->tm_mday == tm.tm_mday
15853 && lt->tm_hour == tm.tm_hour
15854 && lt->tm_min == tm.tm_min
15855 && lt->tm_sec == tm.tm_sec
15856 && lt->tm_yday == tm.tm_yday
15857 && lt->tm_wday == tm.tm_wday
15858 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15859 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15868 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15869 ignoring leap seconds. */
15870 unsigned long int answer = 2527315200UL;
15874 tm.tm_year = 2050 - 1900;
15877 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15880 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15881 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15882 on systems that don't support the Olson extension, or don't have the
15883 full zoneinfo tables installed. */
15884 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15888 /* Check that the result is either a failure, or close enough
15889 to the correct answer that we can assume the discrepancy is
15890 due to leap seconds. */
15891 return (t == (time_t) -1
15892 || (0 < t && answer - 120 <= t && t <= answer + 120));
15901 /* This test makes some buggy mktime implementations loop.
15902 Give up after 60 seconds; a mktime slower than that
15903 isn't worth using anyway. */
15906 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15909 if ((time_t) -1 < 0)
15910 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15912 delta = time_t_max / 997; /* a suitable prime number */
15913 for (i = 0; i < N_STRINGS; i++)
15916 putenv (tz_strings[i]);
15918 for (t = 0; t <= time_t_max - delta; t += delta)
15919 if (! mktime_test (t))
15921 if (! (mktime_test ((time_t) 1)
15922 && mktime_test ((time_t) (60 * 60))
15923 && mktime_test ((time_t) (60 * 60 * 24))))
15926 for (j = 1; 0 < j; j *= 2)
15927 if (! bigtime_test (j))
15929 if (! bigtime_test (j - 1))
15932 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15935 rm -f conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>&5
15944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15946 { (case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_try") 2>&5
15953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15954 (exit $ac_status); }; }; then
15955 ac_cv_func_working_mktime=yes
15957 echo "$as_me: program exited with status
$ac_status" >&5
15958 echo "$as_me: failed program was
:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15961 ( exit $ac_status )
15962 ac_cv_func_working_mktime=no
15964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15970 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15971 if test $ac_cv_func_working_mktime = no; then
15972 case " $LIBOBJS " in
15973 *" mktime.
$ac_objext "* ) ;;
15974 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15980 if test "$ac_cv_func_working_mktime" = no; then
15982 cat >>confdefs.h <<\_ACEOF
15983 #define BROKEN_MKTIME 1
15988 ac_have_func=no # yes means we've found a way to get the load average.
15990 # Make sure getloadavg.c is where it belongs, at configure-time.
15991 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15992 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15993 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15994 { (exit 1); exit 1; }; }
15998 # Check for getloadavg, but be sure not to touch the cache variable.
15999 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16000 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16001 if test "${ac_cv_func_getloadavg+set}" = set; then
16002 echo $ECHO_N "(cached
) $ECHO_C" >&6
16004 cat >conftest.$ac_ext <<_ACEOF
16007 cat confdefs.h >>conftest.$ac_ext
16008 cat >>conftest.$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16012 #define getloadavg innocuous_getloadavg
16014 /* System header to define __stub macros and hopefully few prototypes,
16015 which can conflict with char getloadavg (); below.
16016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16017 <limits.h> exists even on freestanding compilers. */
16020 # include <limits.h>
16022 # include <assert.h>
16027 /* Override any GCC internal prototype to avoid an error.
16028 Use char because int might match the return type of a GCC
16029 builtin and then its argument prototype would still apply. */
16033 char getloadavg ();
16034 /* The GNU C library defines this for functions which it implements
16035 to always fail with ENOSYS. Some functions are actually named
16036 something starting with __ and the normal name is an alias. */
16037 #if defined __stub_getloadavg || defined __stub___getloadavg
16044 return getloadavg ();
16049 rm -f conftest.$ac_objext conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053 *) ac_try_echo=$ac_try;;
16055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16056 (eval "$ac_link") 2>conftest.er1
16058 grep -v '^ *+' conftest.er1 >conftest.err
16060 cat conftest.err >&5
16061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16062 (exit $ac_status); } && {
16063 test -z "$ac_c_werror_flag" ||
16064 test ! -s conftest.err
16065 } && test -s conftest$ac_exeext &&
16066 $as_test_x conftest$ac_exeext; then
16067 ac_cv_func_getloadavg=yes
16069 echo "$as_me: failed program was
:" >&5
16070 sed 's/^/| /' conftest.$ac_ext >&5
16072 ac_cv_func_getloadavg=no
16075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16076 conftest$ac_exeext conftest.$ac_ext
16078 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16079 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16080 if test $ac_cv_func_getloadavg = yes; then
16085 ) && ac_have_func=yes
16087 # On HPUX9, an unprivileged user can get load averages through this function.
16089 for ac_func in pstat_getdynamic
16091 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16092 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16093 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16094 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16095 echo $ECHO_N "(cached
) $ECHO_C" >&6
16097 cat >conftest.$ac_ext <<_ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16105 #define $ac_func innocuous_$ac_func
16107 /* System header to define __stub macros and hopefully few prototypes,
16108 which can conflict with char $ac_func (); below.
16109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16110 <limits.h> exists even on freestanding compilers. */
16113 # include <limits.h>
16115 # include <assert.h>
16120 /* Override any GCC internal prototype to avoid an error.
16121 Use char because int might match the return type of a GCC
16122 builtin and then its argument prototype would still apply. */
16127 /* The GNU C library defines this for functions which it implements
16128 to always fail with ENOSYS. Some functions are actually named
16129 something starting with __ and the normal name is an alias. */
16130 #if defined __stub_$ac_func || defined __stub___$ac_func
16137 return $ac_func ();
16142 rm -f conftest.$ac_objext conftest$ac_exeext
16143 if { (ac_try="$ac_link"
16144 case "(($ac_try" in
16145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146 *) ac_try_echo=$ac_try;;
16148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16149 (eval "$ac_link") 2>conftest.er1
16151 grep -v '^ *+' conftest.er1 >conftest.err
16153 cat conftest.err >&5
16154 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16155 (exit $ac_status); } && {
16156 test -z "$ac_c_werror_flag" ||
16157 test ! -s conftest.err
16158 } && test -s conftest$ac_exeext &&
16159 $as_test_x conftest$ac_exeext; then
16160 eval "$as_ac_var=yes"
16162 echo "$as_me: failed program was
:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 eval "$as_ac_var=no
"
16168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16169 conftest$ac_exeext conftest.$ac_ext
16171 ac_res=`eval echo '${'$as_ac_var'}'`
16172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16173 echo "${ECHO_T}$ac_res" >&6; }
16174 if test `eval echo '${'$as_ac_var'}'` = yes; then
16175 cat >>confdefs.h <<_ACEOF
16176 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16183 # Solaris has libkstat which does not require root.
16185 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16186 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16187 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16188 echo $ECHO_N "(cached
) $ECHO_C" >&6
16190 ac_check_lib_save_LIBS=$LIBS
16191 LIBS="-lkstat $LIBS"
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16199 /* Override any GCC internal prototype to avoid an error.
16200 Use char because int might match the return type of a GCC
16201 builtin and then its argument prototype would still apply. */
16205 char kstat_open ();
16209 return kstat_open ();
16214 rm -f conftest.$ac_objext conftest$ac_exeext
16215 if { (ac_try="$ac_link"
16216 case "(($ac_try" in
16217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16218 *) ac_try_echo=$ac_try;;
16220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16221 (eval "$ac_link") 2>conftest.er1
16223 grep -v '^ *+' conftest.er1 >conftest.err
16225 cat conftest.err >&5
16226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16227 (exit $ac_status); } && {
16228 test -z "$ac_c_werror_flag" ||
16229 test ! -s conftest.err
16230 } && test -s conftest$ac_exeext &&
16231 $as_test_x conftest$ac_exeext; then
16232 ac_cv_lib_kstat_kstat_open=yes
16234 echo "$as_me: failed program was
:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 ac_cv_lib_kstat_kstat_open=no
16240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16241 conftest$ac_exeext conftest.$ac_ext
16242 LIBS=$ac_check_lib_save_LIBS
16244 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16245 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16246 if test $ac_cv_lib_kstat_kstat_open = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define HAVE_LIBKSTAT 1
16251 LIBS="-lkstat $LIBS"
16255 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16257 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16258 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16259 # to get the right answer into the cache.
16260 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16261 if test $ac_have_func = no; then
16262 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16263 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16264 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16265 echo $ECHO_N "(cached
) $ECHO_C" >&6
16267 ac_check_lib_save_LIBS=$LIBS
16269 cat >conftest.$ac_ext <<_ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16276 /* Override any GCC internal prototype to avoid an error.
16277 Use char because int might match the return type of a GCC
16278 builtin and then its argument prototype would still apply. */
16286 return elf_begin ();
16291 rm -f conftest.$ac_objext conftest$ac_exeext
16292 if { (ac_try="$ac_link"
16293 case "(($ac_try" in
16294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16295 *) ac_try_echo=$ac_try;;
16297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16298 (eval "$ac_link") 2>conftest.er1
16300 grep -v '^ *+' conftest.er1 >conftest.err
16302 cat conftest.err >&5
16303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16304 (exit $ac_status); } && {
16305 test -z "$ac_c_werror_flag" ||
16306 test ! -s conftest.err
16307 } && test -s conftest$ac_exeext &&
16308 $as_test_x conftest$ac_exeext; then
16309 ac_cv_lib_elf_elf_begin=yes
16311 echo "$as_me: failed program was
:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_cv_lib_elf_elf_begin=no
16317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16318 conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS
16321 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16322 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16323 if test $ac_cv_lib_elf_elf_begin = yes; then
16328 if test $ac_have_func = no; then
16329 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16330 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16331 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16332 echo $ECHO_N "(cached
) $ECHO_C" >&6
16334 ac_check_lib_save_LIBS=$LIBS
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16343 /* Override any GCC internal prototype to avoid an error.
16344 Use char because int might match the return type of a GCC
16345 builtin and then its argument prototype would still apply. */
16353 return kvm_open ();
16358 rm -f conftest.$ac_objext conftest$ac_exeext
16359 if { (ac_try="$ac_link"
16360 case "(($ac_try" in
16361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16362 *) ac_try_echo=$ac_try;;
16364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16365 (eval "$ac_link") 2>conftest.er1
16367 grep -v '^ *+' conftest.er1 >conftest.err
16369 cat conftest.err >&5
16370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16371 (exit $ac_status); } && {
16372 test -z "$ac_c_werror_flag" ||
16373 test ! -s conftest.err
16374 } && test -s conftest$ac_exeext &&
16375 $as_test_x conftest$ac_exeext; then
16376 ac_cv_lib_kvm_kvm_open=yes
16378 echo "$as_me: failed program was
:" >&5
16379 sed 's/^/| /' conftest.$ac_ext >&5
16381 ac_cv_lib_kvm_kvm_open=no
16384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16385 conftest$ac_exeext conftest.$ac_ext
16386 LIBS=$ac_check_lib_save_LIBS
16388 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16389 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16390 if test $ac_cv_lib_kvm_kvm_open = yes; then
16394 # Check for the 4.4BSD definition of getloadavg.
16395 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16396 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16397 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16398 echo $ECHO_N "(cached
) $ECHO_C" >&6
16400 ac_check_lib_save_LIBS=$LIBS
16401 LIBS="-lutil $LIBS"
16402 cat >conftest.$ac_ext <<_ACEOF
16405 cat confdefs.h >>conftest.$ac_ext
16406 cat >>conftest.$ac_ext <<_ACEOF
16407 /* end confdefs.h. */
16409 /* Override any GCC internal prototype to avoid an error.
16410 Use char because int might match the return type of a GCC
16411 builtin and then its argument prototype would still apply. */
16415 char getloadavg ();
16419 return getloadavg ();
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_link") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest$ac_exeext &&
16441 $as_test_x conftest$ac_exeext; then
16442 ac_cv_lib_util_getloadavg=yes
16444 echo "$as_me: failed program was
:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 ac_cv_lib_util_getloadavg=no
16450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16451 conftest$ac_exeext conftest.$ac_ext
16452 LIBS=$ac_check_lib_save_LIBS
16454 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16455 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16456 if test $ac_cv_lib_util_getloadavg = yes; then
16457 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16462 if test $ac_have_func = no; then
16463 # There is a commonly available library for RS/6000 AIX.
16464 # Since it is not a standard part of AIX, it might be installed locally.
16465 ac_getloadavg_LIBS=$LIBS
16466 LIBS="-L/usr
/local
/lib
$LIBS"
16467 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16468 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16469 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16470 echo $ECHO_N "(cached
) $ECHO_C" >&6
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lgetloadavg $LIBS"
16474 cat >conftest.$ac_ext <<_ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16481 /* Override any GCC internal prototype to avoid an error.
16482 Use char because int might match the return type of a GCC
16483 builtin and then its argument prototype would still apply. */
16487 char getloadavg ();
16491 return getloadavg ();
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_link") 2>conftest.er1
16505 grep -v '^ *+' conftest.er1 >conftest.err
16507 cat conftest.err >&5
16508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16509 (exit $ac_status); } && {
16510 test -z "$ac_c_werror_flag" ||
16511 test ! -s conftest.err
16512 } && test -s conftest$ac_exeext &&
16513 $as_test_x conftest$ac_exeext; then
16514 ac_cv_lib_getloadavg_getloadavg=yes
16516 echo "$as_me: failed program was
:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_getloadavg_getloadavg=no
16522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16523 conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16526 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16527 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16528 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16529 LIBS="-lgetloadavg $LIBS"
16531 LIBS=$ac_getloadavg_LIBS
16536 # Make sure it is really in the library, if we think we found it,
16537 # otherwise set up the replacement function.
16539 for ac_func in getloadavg
16541 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16542 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16543 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16544 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16545 echo $ECHO_N "(cached
) $ECHO_C" >&6
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16555 #define $ac_func innocuous_$ac_func
16557 /* System header to define __stub macros and hopefully few prototypes,
16558 which can conflict with char $ac_func (); below.
16559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16560 <limits.h> exists even on freestanding compilers. */
16563 # include <limits.h>
16565 # include <assert.h>
16570 /* Override any GCC internal prototype to avoid an error.
16571 Use char because int might match the return type of a GCC
16572 builtin and then its argument prototype would still apply. */
16577 /* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
16580 #if defined __stub_$ac_func || defined __stub___$ac_func
16587 return $ac_func ();
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (ac_try="$ac_link"
16594 case "(($ac_try" in
16595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16596 *) ac_try_echo=$ac_try;;
16598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16599 (eval "$ac_link") 2>conftest.er1
16601 grep -v '^ *+' conftest.er1 >conftest.err
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16605 (exit $ac_status); } && {
16606 test -z "$ac_c_werror_flag" ||
16607 test ! -s conftest.err
16608 } && test -s conftest$ac_exeext &&
16609 $as_test_x conftest$ac_exeext; then
16610 eval "$as_ac_var=yes"
16612 echo "$as_me: failed program was
:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 eval "$as_ac_var=no
"
16618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16619 conftest$ac_exeext conftest.$ac_ext
16621 ac_res=`eval echo '${'$as_ac_var'}'`
16622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16623 echo "${ECHO_T}$ac_res" >&6; }
16624 if test `eval echo '${'$as_ac_var'}'` = yes; then
16625 cat >>confdefs.h <<_ACEOF
16626 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16630 case " $LIBOBJS " in
16631 *" getloadavg.
$ac_objext "* ) ;;
16632 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16637 cat >>confdefs.h <<\_ACEOF
16638 #define C_GETLOADAVG 1
16641 # Figure out what our getloadavg.c needs.
16643 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16644 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16645 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16646 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16647 echo $ECHO_N "(cached
) $ECHO_C" >&6
16649 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16650 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16652 # Is the header compilable?
16653 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16654 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16655 cat >conftest.$ac_ext <<_ACEOF
16658 cat confdefs.h >>conftest.$ac_ext
16659 cat >>conftest.$ac_ext <<_ACEOF
16660 /* end confdefs.h. */
16661 $ac_includes_default
16662 #include <sys/dg_sys_info.h>
16664 rm -f conftest.$ac_objext
16665 if { (ac_try="$ac_compile"
16666 case "(($ac_try" in
16667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16668 *) ac_try_echo=$ac_try;;
16670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16671 (eval "$ac_compile") 2>conftest.er1
16673 grep -v '^ *+' conftest.er1 >conftest.err
16675 cat conftest.err >&5
16676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16677 (exit $ac_status); } && {
16678 test -z "$ac_c_werror_flag" ||
16679 test ! -s conftest.err
16680 } && test -s conftest.$ac_objext; then
16681 ac_header_compiler=yes
16683 echo "$as_me: failed program was
:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16686 ac_header_compiler=no
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16691 echo "${ECHO_T}$ac_header_compiler" >&6; }
16693 # Is the header present?
16694 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16695 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16696 cat >conftest.$ac_ext <<_ACEOF
16699 cat confdefs.h >>conftest.$ac_ext
16700 cat >>conftest.$ac_ext <<_ACEOF
16701 /* end confdefs.h. */
16702 #include <sys/dg_sys_info.h>
16704 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16705 case "(($ac_try" in
16706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707 *) ac_try_echo=$ac_try;;
16709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16710 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16712 grep -v '^ *+' conftest.er1 >conftest.err
16714 cat conftest.err >&5
16715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16716 (exit $ac_status); } >/dev/null && {
16717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16718 test ! -s conftest.err
16720 ac_header_preproc=yes
16722 echo "$as_me: failed program was
:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_header_preproc=no
16728 rm -f conftest.err conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16730 echo "${ECHO_T}$ac_header_preproc" >&6; }
16732 # So? What about this header?
16733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16735 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16736 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16737 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16738 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16739 ac_header_preproc=yes
16742 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16743 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16744 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16745 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16746 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16747 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16748 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16749 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16750 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16751 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16752 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16753 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16757 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16758 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16759 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16760 echo $ECHO_N "(cached
) $ECHO_C" >&6
16762 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16764 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16765 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16768 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16771 cat >>confdefs.h <<\_ACEOF
16776 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16777 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16778 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16779 echo $ECHO_N "(cached
) $ECHO_C" >&6
16781 ac_check_lib_save_LIBS=$LIBS
16783 cat >conftest.$ac_ext <<_ACEOF
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 /* Override any GCC internal prototype to avoid an error.
16791 Use char because int might match the return type of a GCC
16792 builtin and then its argument prototype would still apply. */
16796 char dg_sys_info ();
16800 return dg_sys_info ();
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (ac_try="$ac_link"
16807 case "(($ac_try" in
16808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16809 *) ac_try_echo=$ac_try;;
16811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16812 (eval "$ac_link") 2>conftest.er1
16814 grep -v '^ *+' conftest.er1 >conftest.err
16816 cat conftest.err >&5
16817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16818 (exit $ac_status); } && {
16819 test -z "$ac_c_werror_flag" ||
16820 test ! -s conftest.err
16821 } && test -s conftest$ac_exeext &&
16822 $as_test_x conftest$ac_exeext; then
16823 ac_cv_lib_dgc_dg_sys_info=yes
16825 echo "$as_me: failed program was
:" >&5
16826 sed 's/^/| /' conftest.$ac_ext >&5
16828 ac_cv_lib_dgc_dg_sys_info=no
16831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16832 conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16835 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16836 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16837 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_LIBDGC 1
16850 if test "${ac_cv_header_locale_h+set}" = set; then
16851 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16852 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16853 if test "${ac_cv_header_locale_h+set}" = set; then
16854 echo $ECHO_N "(cached
) $ECHO_C" >&6
16856 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16857 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16859 # Is the header compilable?
16860 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16861 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 $ac_includes_default
16869 #include <locale.h>
16871 rm -f conftest.$ac_objext
16872 if { (ac_try="$ac_compile"
16873 case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_compile") 2>conftest.er1
16880 grep -v '^ *+' conftest.er1 >conftest.err
16882 cat conftest.err >&5
16883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16884 (exit $ac_status); } && {
16885 test -z "$ac_c_werror_flag" ||
16886 test ! -s conftest.err
16887 } && test -s conftest.$ac_objext; then
16888 ac_header_compiler=yes
16890 echo "$as_me: failed program was
:" >&5
16891 sed 's/^/| /' conftest.$ac_ext >&5
16893 ac_header_compiler=no
16896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16897 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16898 echo "${ECHO_T}$ac_header_compiler" >&6; }
16900 # Is the header present?
16901 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16902 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16903 cat >conftest.$ac_ext <<_ACEOF
16906 cat confdefs.h >>conftest.$ac_ext
16907 cat >>conftest.$ac_ext <<_ACEOF
16908 /* end confdefs.h. */
16909 #include <locale.h>
16911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16919 grep -v '^ *+' conftest.er1 >conftest.err
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16923 (exit $ac_status); } >/dev/null && {
16924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16927 ac_header_preproc=yes
16929 echo "$as_me: failed program was
:" >&5
16930 sed 's/^/| /' conftest.$ac_ext >&5
16932 ac_header_preproc=no
16935 rm -f conftest.err conftest.$ac_ext
16936 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16937 echo "${ECHO_T}$ac_header_preproc" >&6; }
16939 # So? What about this header?
16940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16942 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16943 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16944 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16945 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16946 ac_header_preproc=yes
16949 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16950 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16951 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16952 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16953 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16954 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16955 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16956 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16957 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16958 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16959 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16960 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16964 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16965 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16966 if test "${ac_cv_header_locale_h+set}" = set; then
16967 echo $ECHO_N "(cached
) $ECHO_C" >&6
16969 ac_cv_header_locale_h=$ac_header_preproc
16971 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16972 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16978 for ac_func in setlocale
16980 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16981 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16982 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16983 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16984 echo $ECHO_N "(cached
) $ECHO_C" >&6
16986 cat >conftest.$ac_ext <<_ACEOF
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16992 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16994 #define $ac_func innocuous_$ac_func
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char $ac_func (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17002 # include <limits.h>
17004 # include <assert.h>
17009 /* Override any GCC internal prototype to avoid an error.
17010 Use char because int might match the return type of a GCC
17011 builtin and then its argument prototype would still apply. */
17016 /* The GNU C library defines this for functions which it implements
17017 to always fail with ENOSYS. Some functions are actually named
17018 something starting with __ and the normal name is an alias. */
17019 #if defined __stub_$ac_func || defined __stub___$ac_func
17026 return $ac_func ();
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (ac_try="$ac_link"
17033 case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_link") 2>conftest.er1
17040 grep -v '^ *+' conftest.er1 >conftest.err
17042 cat conftest.err >&5
17043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17044 (exit $ac_status); } && {
17045 test -z "$ac_c_werror_flag" ||
17046 test ! -s conftest.err
17047 } && test -s conftest$ac_exeext &&
17048 $as_test_x conftest$ac_exeext; then
17049 eval "$as_ac_var=yes"
17051 echo "$as_me: failed program was
:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 eval "$as_ac_var=no
"
17057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17058 conftest$ac_exeext conftest.$ac_ext
17060 ac_res=`eval echo '${'$as_ac_var'}'`
17061 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17062 echo "${ECHO_T}$ac_res" >&6; }
17063 if test `eval echo '${'$as_ac_var'}'` = yes; then
17064 cat >>confdefs.h <<_ACEOF
17065 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17072 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17073 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17074 # Irix 4.0.5F has the header but not the library.
17075 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17078 cat >>confdefs.h <<\_ACEOF
17084 if test $ac_have_func = no; then
17085 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17086 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17087 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17088 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17089 echo $ECHO_N "(cached
) $ECHO_C" >&6
17091 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17092 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17094 # Is the header compilable?
17095 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17096 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17097 cat >conftest.$ac_ext <<_ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h. */
17103 $ac_includes_default
17104 #include <inq_stats/cpustats.h>
17106 rm -f conftest.$ac_objext
17107 if { (ac_try="$ac_compile"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_compile") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17119 (exit $ac_status); } && {
17120 test -z "$ac_c_werror_flag" ||
17121 test ! -s conftest.err
17122 } && test -s conftest.$ac_objext; then
17123 ac_header_compiler=yes
17125 echo "$as_me: failed program was
:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 ac_header_compiler=no
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17132 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17133 echo "${ECHO_T}$ac_header_compiler" >&6; }
17135 # Is the header present?
17136 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17137 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17138 cat >conftest.$ac_ext <<_ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h. */
17144 #include <inq_stats/cpustats.h>
17146 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17147 case "(($ac_try" in
17148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17149 *) ac_try_echo=$ac_try;;
17151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17152 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17154 grep -v '^ *+' conftest.er1 >conftest.err
17156 cat conftest.err >&5
17157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17158 (exit $ac_status); } >/dev/null && {
17159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17160 test ! -s conftest.err
17162 ac_header_preproc=yes
17164 echo "$as_me: failed program was
:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17170 rm -f conftest.err conftest.$ac_ext
17171 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17172 echo "${ECHO_T}$ac_header_preproc" >&6; }
17174 # So? What about this header?
17175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17177 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17178 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17179 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17180 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17181 ac_header_preproc=yes
17184 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17185 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17186 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17187 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17188 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17189 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17190 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17191 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17192 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17193 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17194 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17195 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17199 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17200 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17201 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17202 echo $ECHO_N "(cached
) $ECHO_C" >&6
17204 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17206 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17207 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17210 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17213 cat >>confdefs.h <<\_ACEOF
17218 cat >>confdefs.h <<\_ACEOF
17227 if test $ac_have_func = no; then
17228 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17229 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17230 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17231 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17232 echo $ECHO_N "(cached
) $ECHO_C" >&6
17234 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17235 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17237 # Is the header compilable?
17238 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17239 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 $ac_includes_default
17247 #include <sys/cpustats.h>
17249 rm -f conftest.$ac_objext
17250 if { (ac_try="$ac_compile"
17251 case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_compile") 2>conftest.er1
17258 grep -v '^ *+' conftest.er1 >conftest.err
17260 cat conftest.err >&5
17261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17262 (exit $ac_status); } && {
17263 test -z "$ac_c_werror_flag" ||
17264 test ! -s conftest.err
17265 } && test -s conftest.$ac_objext; then
17266 ac_header_compiler=yes
17268 echo "$as_me: failed program was
:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17271 ac_header_compiler=no
17274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17275 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17276 echo "${ECHO_T}$ac_header_compiler" >&6; }
17278 # Is the header present?
17279 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17280 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 #include <sys/cpustats.h>
17289 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17290 case "(($ac_try" in
17291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17292 *) ac_try_echo=$ac_try;;
17294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17295 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17297 grep -v '^ *+' conftest.er1 >conftest.err
17299 cat conftest.err >&5
17300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17301 (exit $ac_status); } >/dev/null && {
17302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17303 test ! -s conftest.err
17305 ac_header_preproc=yes
17307 echo "$as_me: failed program was
:" >&5
17308 sed 's/^/| /' conftest.$ac_ext >&5
17310 ac_header_preproc=no
17313 rm -f conftest.err conftest.$ac_ext
17314 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17315 echo "${ECHO_T}$ac_header_preproc" >&6; }
17317 # So? What about this header?
17318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17320 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17321 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17322 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17323 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17324 ac_header_preproc=yes
17327 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17328 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17329 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17330 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17331 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17332 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17333 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17334 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17335 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17336 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17337 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17338 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17342 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17343 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17344 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17345 echo $ECHO_N "(cached
) $ECHO_C" >&6
17347 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17349 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17350 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17353 if test $ac_cv_header_sys_cpustats_h = yes; then
17354 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17363 if test $ac_have_func = no; then
17365 for ac_header in mach/mach.h
17367 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17368 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17369 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17370 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17371 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17372 echo $ECHO_N "(cached
) $ECHO_C" >&6
17374 ac_res=`eval echo '${'$as_ac_Header'}'`
17375 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17376 echo "${ECHO_T}$ac_res" >&6; }
17378 # Is the header compilable?
17379 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17380 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #include <$ac_header>
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17396 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17399 grep -v '^ *+' conftest.er1 >conftest.err
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17407 ac_header_compiler=yes
17409 echo "$as_me: failed program was
:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 ac_header_compiler=no
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17421 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <$ac_header>
17430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17438 grep -v '^ *+' conftest.er1 >conftest.err
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17442 (exit $ac_status); } >/dev/null && {
17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17446 ac_header_preproc=yes
17448 echo "$as_me: failed program was
:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17451 ac_header_preproc=no
17454 rm -f conftest.err conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17456 echo "${ECHO_T}$ac_header_preproc" >&6; }
17458 # So? What about this header?
17459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17461 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17462 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17463 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17464 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17465 ac_header_preproc=yes
17468 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17469 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17470 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17471 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17472 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17473 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17474 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17475 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17476 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17477 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17479 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17483 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17484 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17486 echo $ECHO_N "(cached
) $ECHO_C" >&6
17488 eval "$as_ac_Header=\
$ac_header_preproc"
17490 ac_res=`eval echo '${'$as_ac_Header'}'`
17491 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17492 echo "${ECHO_T}$ac_res" >&6; }
17495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17496 cat >>confdefs.h <<_ACEOF
17497 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17507 for ac_header in nlist.h
17509 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17510 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17511 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17512 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17514 echo $ECHO_N "(cached
) $ECHO_C" >&6
17516 ac_res=`eval echo '${'$as_ac_Header'}'`
17517 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17518 echo "${ECHO_T}$ac_res" >&6; }
17520 # Is the header compilable?
17521 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17522 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 #include <$ac_header>
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_header_compiler=yes
17551 echo "$as_me: failed program was
:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_compiler=no
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17559 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561 # Is the header present?
17562 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17563 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <$ac_header>
17572 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17584 (exit $ac_status); } >/dev/null && {
17585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17588 ac_header_preproc=yes
17590 echo "$as_me: failed program was
:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17596 rm -f conftest.err conftest.$ac_ext
17597 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17598 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600 # So? What about this header?
17601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17603 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17604 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17605 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17607 ac_header_preproc=yes
17610 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17611 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17612 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17613 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17614 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17615 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17616 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17617 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17618 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17620 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17621 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17625 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17626 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17627 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17628 echo $ECHO_N "(cached
) $ECHO_C" >&6
17630 eval "$as_ac_Header=\
$ac_header_preproc"
17632 ac_res=`eval echo '${'$as_ac_Header'}'`
17633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17634 echo "${ECHO_T}$ac_res" >&6; }
17637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17638 cat >>confdefs.h <<_ACEOF
17639 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17641 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17642 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17643 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17644 echo $ECHO_N "(cached
) $ECHO_C" >&6
17646 cat >conftest.$ac_ext <<_ACEOF
17649 cat confdefs.h >>conftest.$ac_ext
17650 cat >>conftest.$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17657 static struct nlist ac_aggr;
17658 if (ac_aggr.n_un.n_name)
17664 rm -f conftest.$ac_objext
17665 if { (ac_try="$ac_compile"
17666 case "(($ac_try" in
17667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17668 *) ac_try_echo=$ac_try;;
17670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17671 (eval "$ac_compile") 2>conftest.er1
17673 grep -v '^ *+' conftest.er1 >conftest.err
17675 cat conftest.err >&5
17676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17677 (exit $ac_status); } && {
17678 test -z "$ac_c_werror_flag" ||
17679 test ! -s conftest.err
17680 } && test -s conftest.$ac_objext; then
17681 ac_cv_member_struct_nlist_n_un_n_name=yes
17683 echo "$as_me: failed program was
:" >&5
17684 sed 's/^/| /' conftest.$ac_ext >&5
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17697 static struct nlist ac_aggr;
17698 if (sizeof ac_aggr.n_un.n_name)
17704 rm -f conftest.$ac_objext
17705 if { (ac_try="$ac_compile"
17706 case "(($ac_try" in
17707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708 *) ac_try_echo=$ac_try;;
17710 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17711 (eval "$ac_compile") 2>conftest.er1
17713 grep -v '^ *+' conftest.er1 >conftest.err
17715 cat conftest.err >&5
17716 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest.$ac_objext; then
17721 ac_cv_member_struct_nlist_n_un_n_name=yes
17723 echo "$as_me: failed program was
:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17726 ac_cv_member_struct_nlist_n_un_n_name=no
17729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17735 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17736 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17738 cat >>confdefs.h <<_ACEOF
17739 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17743 cat >>confdefs.h <<\_ACEOF
17744 #define NLIST_NAME_UNION 1
17758 # Some definitions of getloadavg require that the program be installed setgid.
17759 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17760 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17761 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17762 echo $ECHO_N "(cached
) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17771 #ifdef LDAV_PRIVILEGED
17772 Yowza Am I SETGID yet
17775 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17776 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17777 ac_cv_func_getloadavg_setgid=yes
17779 ac_cv_func_getloadavg_setgid=no
17784 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17785 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17786 if test $ac_cv_func_getloadavg_setgid = yes; then
17789 cat >>confdefs.h <<\_ACEOF
17790 #define GETLOADAVG_PRIVILEGED 1
17797 if test $ac_cv_func_getloadavg_setgid = yes; then
17798 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17799 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17800 if test "${ac_cv_group_kmem+set}" = set; then
17801 echo $ECHO_N "(cached
) $ECHO_C" >&6
17803 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17804 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17805 # If we got an error (system does not support symlinks), try without -L.
17806 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17807 ac_cv_group_kmem=`echo $ac_ls_output \
17808 | sed -ne 's/[ ][ ]*/ /g;
17809 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17813 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17814 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17815 KMEM_GROUP=$ac_cv_group_kmem
17817 if test "x
$ac_save_LIBS" = x; then
17818 GETLOADAVG_LIBS=$LIBS
17820 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17826 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17827 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17828 if test "${ac_cv_sys_largefile_source+set}" = set; then
17829 echo $ECHO_N "(cached
) $ECHO_C" >&6
17832 cat >conftest.$ac_ext <<_ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17842 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17847 rm -f conftest.$ac_objext conftest$ac_exeext
17848 if { (ac_try="$ac_link"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_link") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest$ac_exeext &&
17864 $as_test_x conftest$ac_exeext; then
17865 ac_cv_sys_largefile_source=no; break
17867 echo "$as_me: failed program was
:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17874 conftest$ac_exeext conftest.$ac_ext
17875 cat >conftest.$ac_ext <<_ACEOF
17878 cat confdefs.h >>conftest.$ac_ext
17879 cat >>conftest.$ac_ext <<_ACEOF
17880 /* end confdefs.h. */
17881 #define _LARGEFILE_SOURCE 1
17886 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17891 rm -f conftest.$ac_objext conftest$ac_exeext
17892 if { (ac_try="$ac_link"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_link") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17904 (exit $ac_status); } && {
17905 test -z "$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17907 } && test -s conftest$ac_exeext &&
17908 $as_test_x conftest$ac_exeext; then
17909 ac_cv_sys_largefile_source=1; break
17911 echo "$as_me: failed program was
:" >&5
17912 sed 's/^/| /' conftest.$ac_ext >&5
17917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17918 conftest$ac_exeext conftest.$ac_ext
17919 ac_cv_sys_largefile_source=unknown
17923 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17924 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17925 case $ac_cv_sys_largefile_source in #(
17928 cat >>confdefs.h <<_ACEOF
17929 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17935 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17936 # in glibc 2.1.3, but that breaks too many other things.
17937 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17938 if test $ac_cv_sys_largefile_source != unknown; then
17940 cat >>confdefs.h <<\_ACEOF
17941 #define HAVE_FSEEKO 1
17947 # Configure getopt.
17948 # getopt.m4 serial 10
17950 # The getopt module assume you want GNU getopt, with getopt_long etc,
17951 # rather than vanilla POSIX getopt. This means your your code should
17952 # always include <getopt.h> for the getopt prototypes.
17964 # Prerequisites of lib/getopt*.
17971 for ac_header in getopt.h
17973 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17974 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17975 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17976 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17978 echo $ECHO_N "(cached
) $ECHO_C" >&6
17980 ac_res=`eval echo '${'$as_ac_Header'}'`
17981 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17982 echo "${ECHO_T}$ac_res" >&6; }
17984 # Is the header compilable?
17985 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17986 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17987 cat >conftest.$ac_ext <<_ACEOF
17990 cat confdefs.h >>conftest.$ac_ext
17991 cat >>conftest.$ac_ext <<_ACEOF
17992 /* end confdefs.h. */
17993 $ac_includes_default
17994 #include <$ac_header>
17996 rm -f conftest.$ac_objext
17997 if { (ac_try="$ac_compile"
17998 case "(($ac_try" in
17999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18000 *) ac_try_echo=$ac_try;;
18002 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18003 (eval "$ac_compile") 2>conftest.er1
18005 grep -v '^ *+' conftest.er1 >conftest.err
18007 cat conftest.err >&5
18008 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18009 (exit $ac_status); } && {
18010 test -z "$ac_c_werror_flag" ||
18011 test ! -s conftest.err
18012 } && test -s conftest.$ac_objext; then
18013 ac_header_compiler=yes
18015 echo "$as_me: failed program was
:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_header_compiler=no
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18022 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18023 echo "${ECHO_T}$ac_header_compiler" >&6; }
18025 # Is the header present?
18026 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18027 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18028 cat >conftest.$ac_ext <<_ACEOF
18031 cat confdefs.h >>conftest.$ac_ext
18032 cat >>conftest.$ac_ext <<_ACEOF
18033 /* end confdefs.h. */
18034 #include <$ac_header>
18036 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18037 case "(($ac_try" in
18038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039 *) ac_try_echo=$ac_try;;
18041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18042 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18044 grep -v '^ *+' conftest.er1 >conftest.err
18046 cat conftest.err >&5
18047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18048 (exit $ac_status); } >/dev/null && {
18049 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18050 test ! -s conftest.err
18052 ac_header_preproc=yes
18054 echo "$as_me: failed program was
:" >&5
18055 sed 's/^/| /' conftest.$ac_ext >&5
18057 ac_header_preproc=no
18060 rm -f conftest.err conftest.$ac_ext
18061 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18062 echo "${ECHO_T}$ac_header_preproc" >&6; }
18064 # So? What about this header?
18065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18067 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18068 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18069 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18071 ac_header_preproc=yes
18074 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18075 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18076 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18077 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18078 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18079 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18080 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18081 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18085 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18089 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18090 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18091 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18092 echo $ECHO_N "(cached
) $ECHO_C" >&6
18094 eval "$as_ac_Header=\
$ac_header_preproc"
18096 ac_res=`eval echo '${'$as_ac_Header'}'`
18097 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18098 echo "${ECHO_T}$ac_res" >&6; }
18101 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18102 cat >>confdefs.h <<_ACEOF
18103 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18112 if test -z "$GETOPT_H"; then
18114 for ac_func in getopt_long_only
18116 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18117 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18118 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18119 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18120 echo $ECHO_N "(cached
) $ECHO_C" >&6
18122 cat >conftest.$ac_ext <<_ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18130 #define $ac_func innocuous_$ac_func
18132 /* System header to define __stub macros and hopefully few prototypes,
18133 which can conflict with char $ac_func (); below.
18134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18135 <limits.h> exists even on freestanding compilers. */
18138 # include <limits.h>
18140 # include <assert.h>
18145 /* Override any GCC internal prototype to avoid an error.
18146 Use char because int might match the return type of a GCC
18147 builtin and then its argument prototype would still apply. */
18152 /* The GNU C library defines this for functions which it implements
18153 to always fail with ENOSYS. Some functions are actually named
18154 something starting with __ and the normal name is an alias. */
18155 #if defined __stub_$ac_func || defined __stub___$ac_func
18162 return $ac_func ();
18167 rm -f conftest.$ac_objext conftest$ac_exeext
18168 if { (ac_try="$ac_link"
18169 case "(($ac_try" in
18170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18171 *) ac_try_echo=$ac_try;;
18173 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18174 (eval "$ac_link") 2>conftest.er1
18176 grep -v '^ *+' conftest.er1 >conftest.err
18178 cat conftest.err >&5
18179 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18180 (exit $ac_status); } && {
18181 test -z "$ac_c_werror_flag" ||
18182 test ! -s conftest.err
18183 } && test -s conftest$ac_exeext &&
18184 $as_test_x conftest$ac_exeext; then
18185 eval "$as_ac_var=yes"
18187 echo "$as_me: failed program was
:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_var=no
"
18193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18194 conftest$ac_exeext conftest.$ac_ext
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18211 if test -z "$GETOPT_H"; then
18212 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18213 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18214 if test "${ac_cv_have_decl_optreset+set}" = set; then
18215 echo $ECHO_N "(cached
) $ECHO_C" >&6
18217 cat >conftest.$ac_ext <<_ACEOF
18220 cat confdefs.h >>conftest.$ac_ext
18221 cat >>conftest.$ac_ext <<_ACEOF
18222 /* end confdefs.h. */
18223 #include <getopt.h>
18236 rm -f conftest.$ac_objext
18237 if { (ac_try="$ac_compile"
18238 case "(($ac_try" in
18239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18240 *) ac_try_echo=$ac_try;;
18242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18243 (eval "$ac_compile") 2>conftest.er1
18245 grep -v '^ *+' conftest.er1 >conftest.err
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18249 (exit $ac_status); } && {
18250 test -z "$ac_c_werror_flag" ||
18251 test ! -s conftest.err
18252 } && test -s conftest.$ac_objext; then
18253 ac_cv_have_decl_optreset=yes
18255 echo "$as_me: failed program was
:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 ac_cv_have_decl_optreset=no
18261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18263 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18264 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18265 if test $ac_cv_have_decl_optreset = yes; then
18271 if test -z "$GETOPT_H"; then
18272 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18273 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18274 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18275 echo $ECHO_N "(cached
) $ECHO_C" >&6
18277 if test "$cross_compiling" = yes; then
18278 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18279 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18280 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18281 echo $ECHO_N "(cached
) $ECHO_C" >&6
18283 cat >conftest.$ac_ext <<_ACEOF
18286 cat confdefs.h >>conftest.$ac_ext
18287 cat >>conftest.$ac_ext <<_ACEOF
18288 /* end confdefs.h. */
18289 #include <getopt.h>
18294 #ifndef getopt_clip
18295 (void) getopt_clip;
18302 rm -f conftest.$ac_objext
18303 if { (ac_try="$ac_compile"
18304 case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_compile") 2>conftest.er1
18311 grep -v '^ *+' conftest.er1 >conftest.err
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18315 (exit $ac_status); } && {
18316 test -z "$ac_c_werror_flag" ||
18317 test ! -s conftest.err
18318 } && test -s conftest.$ac_objext; then
18319 ac_cv_have_decl_getopt_clip=yes
18321 echo "$as_me: failed program was
:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_cv_have_decl_getopt_clip=no
18327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18330 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18331 if test $ac_cv_have_decl_getopt_clip = yes; then
18332 gl_cv_func_gnu_getopt=no
18334 gl_cv_func_gnu_getopt=yes
18338 cat >conftest.$ac_ext <<_ACEOF
18341 cat confdefs.h >>conftest.$ac_ext
18342 cat >>conftest.$ac_ext <<_ACEOF
18343 /* end confdefs.h. */
18344 #include <getopt.h>
18350 myargv[0] = "conftest
";
18353 return getopt (2, myargv, "+a
") != '?';
18359 rm -f conftest$ac_exeext
18360 if { (ac_try="$ac_link"
18361 case "(($ac_try" in
18362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18363 *) ac_try_echo=$ac_try;;
18365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18366 (eval "$ac_link") 2>&5
18368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18370 { (case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_try") 2>&5
18377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18378 (exit $ac_status); }; }; then
18379 gl_cv_func_gnu_getopt=yes
18381 echo "$as_me: program exited with status
$ac_status" >&5
18382 echo "$as_me: failed program was
:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ( exit $ac_status )
18386 gl_cv_func_gnu_getopt=no
18388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18393 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18394 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18395 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18402 if test -n "$GETOPT_H"; then
18407 cat >>confdefs.h <<\_ACEOF
18408 #define __GETOPT_PREFIX rpl_
18414 GETOPTOBJS='getopt.o getopt1.o'
18421 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18422 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18423 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18424 echo $ECHO_N "(cached
) $ECHO_C" >&6
18426 # Use it with a single arg.
18427 cat >conftest.$ac_ext <<_ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 $ac_includes_default
18442 rm -f conftest.$ac_objext
18443 if { (ac_try="$ac_compile"
18444 case "(($ac_try" in
18445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18446 *) ac_try_echo=$ac_try;;
18448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18449 (eval "$ac_compile") 2>conftest.er1
18451 grep -v '^ *+' conftest.er1 >conftest.err
18453 cat conftest.err >&5
18454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18455 (exit $ac_status); } && {
18456 test -z "$ac_c_werror_flag" ||
18457 test ! -s conftest.err
18458 } && test -s conftest.$ac_objext; then
18459 ac_cv_func_getpgrp_void=no
18461 echo "$as_me: failed program was
:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_func_getpgrp_void=yes
18467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18471 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18472 if test $ac_cv_func_getpgrp_void = yes; then
18474 cat >>confdefs.h <<\_ACEOF
18475 #define GETPGRP_VOID 1
18482 for ac_func in strftime
18484 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18485 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18486 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18487 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18488 echo $ECHO_N "(cached
) $ECHO_C" >&6
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18496 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18498 #define $ac_func innocuous_$ac_func
18500 /* System header to define __stub macros and hopefully few prototypes,
18501 which can conflict with char $ac_func (); below.
18502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18503 <limits.h> exists even on freestanding compilers. */
18506 # include <limits.h>
18508 # include <assert.h>
18513 /* Override any GCC internal prototype to avoid an error.
18514 Use char because int might match the return type of a GCC
18515 builtin and then its argument prototype would still apply. */
18520 /* The GNU C library defines this for functions which it implements
18521 to always fail with ENOSYS. Some functions are actually named
18522 something starting with __ and the normal name is an alias. */
18523 #if defined __stub_$ac_func || defined __stub___$ac_func
18530 return $ac_func ();
18535 rm -f conftest.$ac_objext conftest$ac_exeext
18536 if { (ac_try="$ac_link"
18537 case "(($ac_try" in
18538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18539 *) ac_try_echo=$ac_try;;
18541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18542 (eval "$ac_link") 2>conftest.er1
18544 grep -v '^ *+' conftest.er1 >conftest.err
18546 cat conftest.err >&5
18547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18548 (exit $ac_status); } && {
18549 test -z "$ac_c_werror_flag" ||
18550 test ! -s conftest.err
18551 } && test -s conftest$ac_exeext &&
18552 $as_test_x conftest$ac_exeext; then
18553 eval "$as_ac_var=yes"
18555 echo "$as_me: failed program was
:" >&5
18556 sed 's/^/| /' conftest.$ac_ext >&5
18558 eval "$as_ac_var=no
"
18561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18562 conftest$ac_exeext conftest.$ac_ext
18564 ac_res=`eval echo '${'$as_ac_var'}'`
18565 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18566 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_var'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18573 # strftime is in -lintl on SCO UNIX.
18574 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18575 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18576 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18577 echo $ECHO_N "(cached
) $ECHO_C" >&6
18579 ac_check_lib_save_LIBS=$LIBS
18580 LIBS="-lintl $LIBS"
18581 cat >conftest.$ac_ext <<_ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h. */
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18598 return strftime ();
18603 rm -f conftest.$ac_objext conftest$ac_exeext
18604 if { (ac_try="$ac_link"
18605 case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_link") 2>conftest.er1
18612 grep -v '^ *+' conftest.er1 >conftest.err
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18616 (exit $ac_status); } && {
18617 test -z "$ac_c_werror_flag" ||
18618 test ! -s conftest.err
18619 } && test -s conftest$ac_exeext &&
18620 $as_test_x conftest$ac_exeext; then
18621 ac_cv_lib_intl_strftime=yes
18623 echo "$as_me: failed program was
:" >&5
18624 sed 's/^/| /' conftest.$ac_ext >&5
18626 ac_cv_lib_intl_strftime=no
18629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18630 conftest$ac_exeext conftest.$ac_ext
18631 LIBS=$ac_check_lib_save_LIBS
18633 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18634 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18635 if test $ac_cv_lib_intl_strftime = yes; then
18636 cat >>confdefs.h <<\_ACEOF
18637 #define HAVE_STRFTIME 1
18640 LIBS="-lintl $LIBS"
18649 for ac_func in grantpt
18651 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18652 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18653 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18655 echo $ECHO_N "(cached
) $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18673 # include <limits.h>
18675 # include <assert.h>
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18697 return $ac_func ();
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_link") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest$ac_exeext &&
18719 $as_test_x conftest$ac_exeext; then
18720 eval "$as_ac_var=yes"
18722 echo "$as_me: failed program was
:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18725 eval "$as_ac_var=no
"
18728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729 conftest$ac_exeext conftest.$ac_ext
18731 ac_res=`eval echo '${'$as_ac_var'}'`
18732 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18733 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_var'}'` = yes; then
18735 cat >>confdefs.h <<_ACEOF
18736 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18743 # PTY-related GNU extensions.
18745 for ac_func in getpt
18747 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18748 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18749 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18750 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18751 echo $ECHO_N "(cached
) $ECHO_C" >&6
18753 cat >conftest.$ac_ext <<_ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h. */
18759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18761 #define $ac_func innocuous_$ac_func
18763 /* System header to define __stub macros and hopefully few prototypes,
18764 which can conflict with char $ac_func (); below.
18765 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766 <limits.h> exists even on freestanding compilers. */
18769 # include <limits.h>
18771 # include <assert.h>
18776 /* Override any GCC internal prototype to avoid an error.
18777 Use char because int might match the return type of a GCC
18778 builtin and then its argument prototype would still apply. */
18783 /* The GNU C library defines this for functions which it implements
18784 to always fail with ENOSYS. Some functions are actually named
18785 something starting with __ and the normal name is an alias. */
18786 #if defined __stub_$ac_func || defined __stub___$ac_func
18793 return $ac_func ();
18798 rm -f conftest.$ac_objext conftest$ac_exeext
18799 if { (ac_try="$ac_link"
18800 case "(($ac_try" in
18801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18802 *) ac_try_echo=$ac_try;;
18804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18805 (eval "$ac_link") 2>conftest.er1
18807 grep -v '^ *+' conftest.er1 >conftest.err
18809 cat conftest.err >&5
18810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18811 (exit $ac_status); } && {
18812 test -z "$ac_c_werror_flag" ||
18813 test ! -s conftest.err
18814 } && test -s conftest$ac_exeext &&
18815 $as_test_x conftest$ac_exeext; then
18816 eval "$as_ac_var=yes"
18818 echo "$as_me: failed program was
:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18821 eval "$as_ac_var=no
"
18824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18825 conftest$ac_exeext conftest.$ac_ext
18827 ac_res=`eval echo '${'$as_ac_var'}'`
18828 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18829 echo "${ECHO_T}$ac_res" >&6; }
18830 if test `eval echo '${'$as_ac_var'}'` = yes; then
18831 cat >>confdefs.h <<_ACEOF
18832 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18839 # Check this now, so that we will NOT find the above functions in ncurses.
18840 # That is because we have not set up to link ncurses in lib-src.
18841 # It's better to believe a function is not available
18842 # than to expect to find it in ncurses.
18844 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18845 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18846 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18847 echo $ECHO_N "(cached
) $ECHO_C" >&6
18849 ac_check_lib_save_LIBS=$LIBS
18850 LIBS="-lncurses $LIBS"
18851 cat >conftest.$ac_ext <<_ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18858 /* Override any GCC internal prototype to avoid an error.
18859 Use char because int might match the return type of a GCC
18860 builtin and then its argument prototype would still apply. */
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18882 grep -v '^ *+' conftest.er1 >conftest.err
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext &&
18890 $as_test_x conftest$ac_exeext; then
18891 ac_cv_lib_ncurses_tparm=yes
18893 echo "$as_me: failed program was
:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18896 ac_cv_lib_ncurses_tparm=no
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18901 LIBS=$ac_check_lib_save_LIBS
18903 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18904 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18905 if test $ac_cv_lib_ncurses_tparm = yes; then
18906 cat >>confdefs.h <<_ACEOF
18907 #define HAVE_LIBNCURSES 1
18910 LIBS="-lncurses $LIBS"
18915 # Do we need the Hesiod library to provide the support routines?
18916 if test "$with_hesiod" = yes ; then
18917 # Don't set $LIBS here -- see comments above.
18919 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18920 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18921 if test "${ac_cv_func_res_send+set}" = set; then
18922 echo $ECHO_N "(cached
) $ECHO_C" >&6
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18932 #define res_send innocuous_res_send
18934 /* System header to define __stub macros and hopefully few prototypes,
18935 which can conflict with char res_send (); below.
18936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18937 <limits.h> exists even on freestanding compilers. */
18940 # include <limits.h>
18942 # include <assert.h>
18947 /* Override any GCC internal prototype to avoid an error.
18948 Use char because int might match the return type of a GCC
18949 builtin and then its argument prototype would still apply. */
18954 /* The GNU C library defines this for functions which it implements
18955 to always fail with ENOSYS. Some functions are actually named
18956 something starting with __ and the normal name is an alias. */
18957 #if defined __stub_res_send || defined __stub___res_send
18964 return res_send ();
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973 *) ac_try_echo=$ac_try;;
18975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18976 (eval "$ac_link") 2>conftest.er1
18978 grep -v '^ *+' conftest.er1 >conftest.err
18980 cat conftest.err >&5
18981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18982 (exit $ac_status); } && {
18983 test -z "$ac_c_werror_flag" ||
18984 test ! -s conftest.err
18985 } && test -s conftest$ac_exeext &&
18986 $as_test_x conftest$ac_exeext; then
18987 ac_cv_func_res_send=yes
18989 echo "$as_me: failed program was
:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_func_res_send=no
18995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18996 conftest$ac_exeext conftest.$ac_ext
18998 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18999 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19000 if test $ac_cv_func_res_send = yes; then
19003 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19004 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19005 if test "${ac_cv_func___res_send+set}" = set; then
19006 echo $ECHO_N "(cached
) $ECHO_C" >&6
19008 cat >conftest.$ac_ext <<_ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h. */
19014 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19016 #define __res_send innocuous___res_send
19018 /* System header to define __stub macros and hopefully few prototypes,
19019 which can conflict with char __res_send (); below.
19020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19021 <limits.h> exists even on freestanding compilers. */
19024 # include <limits.h>
19026 # include <assert.h>
19031 /* Override any GCC internal prototype to avoid an error.
19032 Use char because int might match the return type of a GCC
19033 builtin and then its argument prototype would still apply. */
19037 char __res_send ();
19038 /* The GNU C library defines this for functions which it implements
19039 to always fail with ENOSYS. Some functions are actually named
19040 something starting with __ and the normal name is an alias. */
19041 #if defined __stub___res_send || defined __stub_____res_send
19048 return __res_send ();
19053 rm -f conftest.$ac_objext conftest$ac_exeext
19054 if { (ac_try="$ac_link"
19055 case "(($ac_try" in
19056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19057 *) ac_try_echo=$ac_try;;
19059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19060 (eval "$ac_link") 2>conftest.er1
19062 grep -v '^ *+' conftest.er1 >conftest.err
19064 cat conftest.err >&5
19065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19066 (exit $ac_status); } && {
19067 test -z "$ac_c_werror_flag" ||
19068 test ! -s conftest.err
19069 } && test -s conftest$ac_exeext &&
19070 $as_test_x conftest$ac_exeext; then
19071 ac_cv_func___res_send=yes
19073 echo "$as_me: failed program was
:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19076 ac_cv_func___res_send=no
19079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19080 conftest$ac_exeext conftest.$ac_ext
19082 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19083 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19084 if test $ac_cv_func___res_send = yes; then
19087 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19088 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19089 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19090 echo $ECHO_N "(cached
) $ECHO_C" >&6
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lresolv $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19111 return res_send ();
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_lib_resolv_res_send=yes
19136 echo "$as_me: failed program was
:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_lib_resolv_res_send=no
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 LIBS=$ac_check_lib_save_LIBS
19146 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19147 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19148 if test $ac_cv_lib_resolv_res_send = yes; then
19151 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19152 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19153 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19154 echo $ECHO_N "(cached
) $ECHO_C" >&6
19156 ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lresolv $LIBS"
19158 cat >conftest.$ac_ext <<_ACEOF
19161 cat confdefs.h >>conftest.$ac_ext
19162 cat >>conftest.$ac_ext <<_ACEOF
19163 /* end confdefs.h. */
19165 /* Override any GCC internal prototype to avoid an error.
19166 Use char because int might match the return type of a GCC
19167 builtin and then its argument prototype would still apply. */
19171 char __res_send ();
19175 return __res_send ();
19180 rm -f conftest.$ac_objext conftest$ac_exeext
19181 if { (ac_try="$ac_link"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_link") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest$ac_exeext &&
19197 $as_test_x conftest$ac_exeext; then
19198 ac_cv_lib_resolv___res_send=yes
19200 echo "$as_me: failed program was
:" >&5
19201 sed 's/^/| /' conftest.$ac_ext >&5
19203 ac_cv_lib_resolv___res_send=no
19206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19210 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19211 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19212 if test $ac_cv_lib_resolv___res_send = yes; then
19222 if test "$resolv" = yes ; then
19225 cat >>confdefs.h <<\_ACEOF
19226 #define HAVE_LIBRESOLV 1
19232 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19233 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19234 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19235 echo $ECHO_N "(cached
) $ECHO_C" >&6
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19245 #define hes_getmailhost innocuous_hes_getmailhost
19247 /* System header to define __stub macros and hopefully few prototypes,
19248 which can conflict with char hes_getmailhost (); below.
19249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19250 <limits.h> exists even on freestanding compilers. */
19253 # include <limits.h>
19255 # include <assert.h>
19258 #undef hes_getmailhost
19260 /* Override any GCC internal prototype to avoid an error.
19261 Use char because int might match the return type of a GCC
19262 builtin and then its argument prototype would still apply. */
19266 char hes_getmailhost ();
19267 /* The GNU C library defines this for functions which it implements
19268 to always fail with ENOSYS. Some functions are actually named
19269 something starting with __ and the normal name is an alias. */
19270 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19277 return hes_getmailhost ();
19282 rm -f conftest.$ac_objext conftest$ac_exeext
19283 if { (ac_try="$ac_link"
19284 case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_link") 2>conftest.er1
19291 grep -v '^ *+' conftest.er1 >conftest.err
19293 cat conftest.err >&5
19294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19295 (exit $ac_status); } && {
19296 test -z "$ac_c_werror_flag" ||
19297 test ! -s conftest.err
19298 } && test -s conftest$ac_exeext &&
19299 $as_test_x conftest$ac_exeext; then
19300 ac_cv_func_hes_getmailhost=yes
19302 echo "$as_me: failed program was
:" >&5
19303 sed 's/^/| /' conftest.$ac_ext >&5
19305 ac_cv_func_hes_getmailhost=no
19308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19309 conftest$ac_exeext conftest.$ac_ext
19311 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19312 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19313 if test $ac_cv_func_hes_getmailhost = yes; then
19316 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19317 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19318 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19319 echo $ECHO_N "(cached
) $ECHO_C" >&6
19321 ac_check_lib_save_LIBS=$LIBS
19322 LIBS="-lhesiod $RESOLVLIB $LIBS"
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19336 char hes_getmailhost ();
19340 return hes_getmailhost ();
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest$ac_exeext &&
19362 $as_test_x conftest$ac_exeext; then
19363 ac_cv_lib_hesiod_hes_getmailhost=yes
19365 echo "$as_me: failed program was
:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_lib_hesiod_hes_getmailhost=no
19371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19375 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19376 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19377 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_LIBHESIOD 1
19391 # These tell us which Kerberos-related libraries to use.
19392 if test "${with_kerberos+set}" = set; then
19394 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19395 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19396 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19397 echo $ECHO_N "(cached
) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lcom_err $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_com_err_com_err=yes
19443 echo "$as_me: failed program was
:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_com_err_com_err=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19454 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19455 if test $ac_cv_lib_com_err_com_err = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_LIBCOM_ERR 1
19460 LIBS="-lcom_err $LIBS"
19465 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19466 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19467 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19468 echo $ECHO_N "(cached
) $ECHO_C" >&6
19470 ac_check_lib_save_LIBS=$LIBS
19471 LIBS="-lk5crypto $LIBS"
19472 cat >conftest.$ac_ext <<_ACEOF
19475 cat confdefs.h >>conftest.$ac_ext
19476 cat >>conftest.$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19479 /* Override any GCC internal prototype to avoid an error.
19480 Use char because int might match the return type of a GCC
19481 builtin and then its argument prototype would still apply. */
19485 char mit_des_cbc_encrypt ();
19489 return mit_des_cbc_encrypt ();
19494 rm -f conftest.$ac_objext conftest$ac_exeext
19495 if { (ac_try="$ac_link"
19496 case "(($ac_try" in
19497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498 *) ac_try_echo=$ac_try;;
19500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19501 (eval "$ac_link") 2>conftest.er1
19503 grep -v '^ *+' conftest.er1 >conftest.err
19505 cat conftest.err >&5
19506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19507 (exit $ac_status); } && {
19508 test -z "$ac_c_werror_flag" ||
19509 test ! -s conftest.err
19510 } && test -s conftest$ac_exeext &&
19511 $as_test_x conftest$ac_exeext; then
19512 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19514 echo "$as_me: failed program was
:" >&5
19515 sed 's/^/| /' conftest.$ac_ext >&5
19517 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19521 conftest$ac_exeext conftest.$ac_ext
19522 LIBS=$ac_check_lib_save_LIBS
19524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19525 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19526 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19527 cat >>confdefs.h <<_ACEOF
19528 #define HAVE_LIBK5CRYPTO 1
19531 LIBS="-lk5crypto $LIBS"
19536 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19537 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19538 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19539 echo $ECHO_N "(cached
) $ECHO_C" >&6
19541 ac_check_lib_save_LIBS=$LIBS
19542 LIBS="-lcrypto $LIBS"
19543 cat >conftest.$ac_ext <<_ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19556 char mit_des_cbc_encrypt ();
19560 return mit_des_cbc_encrypt ();
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest$ac_exeext &&
19582 $as_test_x conftest$ac_exeext; then
19583 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19585 echo "$as_me: failed program was
:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592 conftest$ac_exeext conftest.$ac_ext
19593 LIBS=$ac_check_lib_save_LIBS
19595 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19596 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19597 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19598 cat >>confdefs.h <<_ACEOF
19599 #define HAVE_LIBCRYPTO 1
19602 LIBS="-lcrypto $LIBS"
19607 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19608 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19609 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19610 echo $ECHO_N "(cached
) $ECHO_C" >&6
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lkrb5 $LIBS"
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19627 char krb5_init_context ();
19631 return krb5_init_context ();
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_krb5_krb5_init_context=yes
19656 echo "$as_me: failed program was
:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_krb5_krb5_init_context=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19667 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19668 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBKRB5 1
19673 LIBS="-lkrb5 $LIBS"
19677 if test "${with_kerberos5+set}" != set; then
19679 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19680 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19681 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19682 echo $ECHO_N "(cached
) $ECHO_C" >&6
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-ldes425 $LIBS"
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19693 /* Override any GCC internal prototype to avoid an error.
19694 Use char because int might match the return type of a GCC
19695 builtin and then its argument prototype would still apply. */
19699 char des_cbc_encrypt ();
19703 return des_cbc_encrypt ();
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (ac_try="$ac_link"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_link") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest$ac_exeext &&
19725 $as_test_x conftest$ac_exeext; then
19726 ac_cv_lib_des425_des_cbc_encrypt=yes
19728 echo "$as_me: failed program was
:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_lib_des425_des_cbc_encrypt=no
19734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19739 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19740 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBDES425 1
19745 LIBS="-ldes425 $LIBS"
19749 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19750 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19751 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19752 echo $ECHO_N "(cached
) $ECHO_C" >&6
19754 ac_check_lib_save_LIBS=$LIBS
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19769 char des_cbc_encrypt ();
19773 return des_cbc_encrypt ();
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_des_des_cbc_encrypt=yes
19798 echo "$as_me: failed program was
:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_lib_des_des_cbc_encrypt=no
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19808 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19809 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19810 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBDES 1
19822 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19823 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19824 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19825 echo $ECHO_N "(cached
) $ECHO_C" >&6
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lkrb4 $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any GCC internal prototype to avoid an error.
19837 Use char because int might match the return type of a GCC
19838 builtin and then its argument prototype would still apply. */
19842 char krb_get_cred ();
19846 return krb_get_cred ();
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (ac_try="$ac_link"
19853 case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_link") 2>conftest.er1
19860 grep -v '^ *+' conftest.er1 >conftest.err
19862 cat conftest.err >&5
19863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19864 (exit $ac_status); } && {
19865 test -z "$ac_c_werror_flag" ||
19866 test ! -s conftest.err
19867 } && test -s conftest$ac_exeext &&
19868 $as_test_x conftest$ac_exeext; then
19869 ac_cv_lib_krb4_krb_get_cred=yes
19871 echo "$as_me: failed program was
:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_krb4_krb_get_cred=no
19877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19878 conftest$ac_exeext conftest.$ac_ext
19879 LIBS=$ac_check_lib_save_LIBS
19881 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19882 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19883 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19884 cat >>confdefs.h <<_ACEOF
19885 #define HAVE_LIBKRB4 1
19888 LIBS="-lkrb4 $LIBS"
19892 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19893 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19894 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19895 echo $ECHO_N "(cached
) $ECHO_C" >&6
19897 ac_check_lib_save_LIBS=$LIBS
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19906 /* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19912 char krb_get_cred ();
19916 return krb_get_cred ();
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_lib_krb_krb_get_cred=yes
19941 echo "$as_me: failed program was
:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_lib_krb_krb_get_cred=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19951 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19952 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19953 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define HAVE_LIBKRB 1
19966 if test "${with_kerberos5+set}" = set; then
19968 for ac_header in krb5.h
19970 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19971 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19972 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19973 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19974 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19975 echo $ECHO_N "(cached
) $ECHO_C" >&6
19977 ac_res=`eval echo '${'$as_ac_Header'}'`
19978 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19979 echo "${ECHO_T}$ac_res" >&6; }
19981 # Is the header compilable?
19982 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19983 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19984 cat >conftest.$ac_ext <<_ACEOF
19987 cat confdefs.h >>conftest.$ac_ext
19988 cat >>conftest.$ac_ext <<_ACEOF
19989 /* end confdefs.h. */
19990 $ac_includes_default
19991 #include <$ac_header>
19993 rm -f conftest.$ac_objext
19994 if { (ac_try="$ac_compile"
19995 case "(($ac_try" in
19996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19997 *) ac_try_echo=$ac_try;;
19999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20002 grep -v '^ *+' conftest.er1 >conftest.err
20004 cat conftest.err >&5
20005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 ac_header_compiler=yes
20012 echo "$as_me: failed program was
:" >&5
20013 sed 's/^/| /' conftest.$ac_ext >&5
20015 ac_header_compiler=no
20018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20019 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20020 echo "${ECHO_T}$ac_header_compiler" >&6; }
20022 # Is the header present?
20023 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20024 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 #include <$ac_header>
20033 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20034 case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20041 grep -v '^ *+' conftest.er1 >conftest.err
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20045 (exit $ac_status); } >/dev/null && {
20046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20047 test ! -s conftest.err
20049 ac_header_preproc=yes
20051 echo "$as_me: failed program was
:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_header_preproc=no
20057 rm -f conftest.err conftest.$ac_ext
20058 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20059 echo "${ECHO_T}$ac_header_preproc" >&6; }
20061 # So? What about this header?
20062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20064 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20065 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20066 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20068 ac_header_preproc=yes
20071 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20072 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20073 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20074 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20075 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20076 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20077 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20078 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20079 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20081 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20082 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20086 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20087 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20088 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20089 echo $ECHO_N "(cached
) $ECHO_C" >&6
20091 eval "$as_ac_Header=\
$ac_header_preproc"
20093 ac_res=`eval echo '${'$as_ac_Header'}'`
20094 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20095 echo "${ECHO_T}$ac_res" >&6; }
20098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20109 for ac_header in des.h
20111 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20113 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20114 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20116 echo $ECHO_N "(cached
) $ECHO_C" >&6
20118 ac_res=`eval echo '${'$as_ac_Header'}'`
20119 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20120 echo "${ECHO_T}$ac_res" >&6; }
20122 # Is the header compilable?
20123 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20124 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h. */
20131 $ac_includes_default
20132 #include <$ac_header>
20134 rm -f conftest.$ac_objext
20135 if { (ac_try="$ac_compile"
20136 case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_compile") 2>conftest.er1
20143 grep -v '^ *+' conftest.er1 >conftest.err
20145 cat conftest.err >&5
20146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20147 (exit $ac_status); } && {
20148 test -z "$ac_c_werror_flag" ||
20149 test ! -s conftest.err
20150 } && test -s conftest.$ac_objext; then
20151 ac_header_compiler=yes
20153 echo "$as_me: failed program was
:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_header_compiler=no
20159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20160 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20161 echo "${ECHO_T}$ac_header_compiler" >&6; }
20163 # Is the header present?
20164 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20165 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20166 cat >conftest.$ac_ext <<_ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 #include <$ac_header>
20174 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20179 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20186 (exit $ac_status); } >/dev/null && {
20187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20190 ac_header_preproc=yes
20192 echo "$as_me: failed program was
:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20195 ac_header_preproc=no
20198 rm -f conftest.err conftest.$ac_ext
20199 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20200 echo "${ECHO_T}$ac_header_preproc" >&6; }
20202 # So? What about this header?
20203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20205 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20206 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20209 ac_header_preproc=yes
20212 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20213 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20214 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20215 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20216 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20217 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20218 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20219 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20220 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20222 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20223 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20227 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20228 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20229 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20230 echo $ECHO_N "(cached
) $ECHO_C" >&6
20232 eval "$as_ac_Header=\
$ac_header_preproc"
20234 ac_res=`eval echo '${'$as_ac_Header'}'`
20235 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20236 echo "${ECHO_T}$ac_res" >&6; }
20239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20240 cat >>confdefs.h <<_ACEOF
20241 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20246 for ac_header in kerberosIV/des.h
20248 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20250 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20251 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20253 echo $ECHO_N "(cached
) $ECHO_C" >&6
20255 ac_res=`eval echo '${'$as_ac_Header'}'`
20256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20259 # Is the header compilable?
20260 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20261 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20269 #include <$ac_header>
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_header_compiler=yes
20290 echo "$as_me: failed program was
:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_header_compiler=no
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20298 echo "${ECHO_T}$ac_header_compiler" >&6; }
20300 # Is the header present?
20301 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20302 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <$ac_header>
20311 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20319 grep -v '^ *+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20327 ac_header_preproc=yes
20329 echo "$as_me: failed program was
:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20342 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20343 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20346 ac_header_preproc=yes
20349 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20350 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20351 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20352 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20353 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20354 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20355 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20356 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20357 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20359 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20360 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20364 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20365 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20367 echo $ECHO_N "(cached
) $ECHO_C" >&6
20369 eval "$as_ac_Header=\
$ac_header_preproc"
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20383 for ac_header in kerberos/des.h
20385 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached
) $ECHO_C" >&6
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20396 # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20398 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20406 #include <$ac_header>
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_header_compiler=yes
20427 echo "$as_me: failed program was
:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_compiler=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6; }
20437 # Is the header present?
20438 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20439 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20460 (exit $ac_status); } >/dev/null && {
20461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20464 ac_header_preproc=yes
20466 echo "$as_me: failed program was
:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_header_preproc=no
20472 rm -f conftest.err conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6; }
20476 # So? What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20479 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20480 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20483 ac_header_preproc=yes
20486 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20487 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20488 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20489 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20490 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20491 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20492 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20493 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20494 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20496 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20497 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20501 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20502 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20503 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20504 echo $ECHO_N "(cached
) $ECHO_C" >&6
20506 eval "$as_ac_Header=\
$ac_header_preproc"
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20514 cat >>confdefs.h <<_ACEOF
20515 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20531 for ac_header in krb.h
20533 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20534 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20535 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20536 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20537 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20538 echo $ECHO_N "(cached
) $ECHO_C" >&6
20540 ac_res=`eval echo '${'$as_ac_Header'}'`
20541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20542 echo "${ECHO_T}$ac_res" >&6; }
20544 # Is the header compilable?
20545 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20546 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20547 cat >conftest.$ac_ext <<_ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20554 #include <$ac_header>
20556 rm -f conftest.$ac_objext
20557 if { (ac_try="$ac_compile"
20558 case "(($ac_try" in
20559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20560 *) ac_try_echo=$ac_try;;
20562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20563 (eval "$ac_compile") 2>conftest.er1
20565 grep -v '^ *+' conftest.er1 >conftest.err
20567 cat conftest.err >&5
20568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20569 (exit $ac_status); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_header_compiler=yes
20575 echo "$as_me: failed program was
:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20578 ac_header_compiler=no
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20583 echo "${ECHO_T}$ac_header_compiler" >&6; }
20585 # Is the header present?
20586 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20587 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20588 cat >conftest.$ac_ext <<_ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 #include <$ac_header>
20596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20597 case "(($ac_try" in
20598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20599 *) ac_try_echo=$ac_try;;
20601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20604 grep -v '^ *+' conftest.er1 >conftest.err
20606 cat conftest.err >&5
20607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20608 (exit $ac_status); } >/dev/null && {
20609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20610 test ! -s conftest.err
20612 ac_header_preproc=yes
20614 echo "$as_me: failed program was
:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ac_header_preproc=no
20620 rm -f conftest.err conftest.$ac_ext
20621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20622 echo "${ECHO_T}$ac_header_preproc" >&6; }
20624 # So? What about this header?
20625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20627 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20628 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20629 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20631 ac_header_preproc=yes
20634 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20635 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20636 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20637 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20638 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20639 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20640 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20641 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20642 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20644 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20645 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20649 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20650 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20651 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20652 echo $ECHO_N "(cached
) $ECHO_C" >&6
20654 eval "$as_ac_Header=\
$ac_header_preproc"
20656 ac_res=`eval echo '${'$as_ac_Header'}'`
20657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20658 echo "${ECHO_T}$ac_res" >&6; }
20661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20668 for ac_header in kerberosIV/krb.h
20670 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20672 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20673 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20674 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20675 echo $ECHO_N "(cached
) $ECHO_C" >&6
20677 ac_res=`eval echo '${'$as_ac_Header'}'`
20678 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20679 echo "${ECHO_T}$ac_res" >&6; }
20681 # Is the header compilable?
20682 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20683 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20684 cat >conftest.$ac_ext <<_ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */
20690 $ac_includes_default
20691 #include <$ac_header>
20693 rm -f conftest.$ac_objext
20694 if { (ac_try="$ac_compile"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_compile") 2>conftest.er1
20702 grep -v '^ *+' conftest.er1 >conftest.err
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20706 (exit $ac_status); } && {
20707 test -z "$ac_c_werror_flag" ||
20708 test ! -s conftest.err
20709 } && test -s conftest.$ac_objext; then
20710 ac_header_compiler=yes
20712 echo "$as_me: failed program was
:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_header_compiler=no
20718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20719 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20720 echo "${ECHO_T}$ac_header_compiler" >&6; }
20722 # Is the header present?
20723 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20724 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20725 cat >conftest.$ac_ext <<_ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 #include <$ac_header>
20733 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20734 case "(($ac_try" in
20735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736 *) ac_try_echo=$ac_try;;
20738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20739 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20741 grep -v '^ *+' conftest.er1 >conftest.err
20743 cat conftest.err >&5
20744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20745 (exit $ac_status); } >/dev/null && {
20746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20749 ac_header_preproc=yes
20751 echo "$as_me: failed program was
:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20754 ac_header_preproc=no
20757 rm -f conftest.err conftest.$ac_ext
20758 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20759 echo "${ECHO_T}$ac_header_preproc" >&6; }
20761 # So? What about this header?
20762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20764 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20765 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20766 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20768 ac_header_preproc=yes
20771 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20772 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20773 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20774 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20775 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20776 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20777 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20778 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20779 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20781 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20782 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20786 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20787 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20788 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20789 echo $ECHO_N "(cached
) $ECHO_C" >&6
20791 eval "$as_ac_Header=\
$ac_header_preproc"
20793 ac_res=`eval echo '${'$as_ac_Header'}'`
20794 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20795 echo "${ECHO_T}$ac_res" >&6; }
20798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20799 cat >>confdefs.h <<_ACEOF
20800 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20805 for ac_header in kerberos/krb.h
20807 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20808 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20809 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20810 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20812 echo $ECHO_N "(cached
) $ECHO_C" >&6
20814 ac_res=`eval echo '${'$as_ac_Header'}'`
20815 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20816 echo "${ECHO_T}$ac_res" >&6; }
20818 # Is the header compilable?
20819 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20820 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 $ac_includes_default
20828 #include <$ac_header>
20830 rm -f conftest.$ac_objext
20831 if { (ac_try="$ac_compile"
20832 case "(($ac_try" in
20833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20834 *) ac_try_echo=$ac_try;;
20836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20837 (eval "$ac_compile") 2>conftest.er1
20839 grep -v '^ *+' conftest.er1 >conftest.err
20841 cat conftest.err >&5
20842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20843 (exit $ac_status); } && {
20844 test -z "$ac_c_werror_flag" ||
20845 test ! -s conftest.err
20846 } && test -s conftest.$ac_objext; then
20847 ac_header_compiler=yes
20849 echo "$as_me: failed program was
:" >&5
20850 sed 's/^/| /' conftest.$ac_ext >&5
20852 ac_header_compiler=no
20855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20856 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20857 echo "${ECHO_T}$ac_header_compiler" >&6; }
20859 # Is the header present?
20860 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20861 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 #include <$ac_header>
20870 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20882 (exit $ac_status); } >/dev/null && {
20883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20886 ac_header_preproc=yes
20888 echo "$as_me: failed program was
:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20891 ac_header_preproc=no
20894 rm -f conftest.err conftest.$ac_ext
20895 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20896 echo "${ECHO_T}$ac_header_preproc" >&6; }
20898 # So? What about this header?
20899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20901 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20902 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20903 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20905 ac_header_preproc=yes
20908 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20909 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20910 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20911 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20912 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20913 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20914 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20915 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20916 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20918 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20919 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20923 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20924 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20925 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20926 echo $ECHO_N "(cached
) $ECHO_C" >&6
20928 eval "$as_ac_Header=\
$ac_header_preproc"
20930 ac_res=`eval echo '${'$as_ac_Header'}'`
20931 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20932 echo "${ECHO_T}$ac_res" >&6; }
20935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20936 cat >>confdefs.h <<_ACEOF
20937 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20954 for ac_header in com_err.h
20956 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20957 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20958 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20959 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20960 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20961 echo $ECHO_N "(cached
) $ECHO_C" >&6
20963 ac_res=`eval echo '${'$as_ac_Header'}'`
20964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20965 echo "${ECHO_T}$ac_res" >&6; }
20967 # Is the header compilable?
20968 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20969 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20970 cat >conftest.$ac_ext <<_ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 $ac_includes_default
20977 #include <$ac_header>
20979 rm -f conftest.$ac_objext
20980 if { (ac_try="$ac_compile"
20981 case "(($ac_try" in
20982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20983 *) ac_try_echo=$ac_try;;
20985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20986 (eval "$ac_compile") 2>conftest.er1
20988 grep -v '^ *+' conftest.er1 >conftest.err
20990 cat conftest.err >&5
20991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20992 (exit $ac_status); } && {
20993 test -z "$ac_c_werror_flag" ||
20994 test ! -s conftest.err
20995 } && test -s conftest.$ac_objext; then
20996 ac_header_compiler=yes
20998 echo "$as_me: failed program was
:" >&5
20999 sed 's/^/| /' conftest.$ac_ext >&5
21001 ac_header_compiler=no
21004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21006 echo "${ECHO_T}$ac_header_compiler" >&6; }
21008 # Is the header present?
21009 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21010 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21011 cat >conftest.$ac_ext <<_ACEOF
21014 cat confdefs.h >>conftest.$ac_ext
21015 cat >>conftest.$ac_ext <<_ACEOF
21016 /* end confdefs.h. */
21017 #include <$ac_header>
21019 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21020 case "(($ac_try" in
21021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21022 *) ac_try_echo=$ac_try;;
21024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21027 grep -v '^ *+' conftest.er1 >conftest.err
21029 cat conftest.err >&5
21030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21031 (exit $ac_status); } >/dev/null && {
21032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21033 test ! -s conftest.err
21035 ac_header_preproc=yes
21037 echo "$as_me: failed program was
:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 ac_header_preproc=no
21043 rm -f conftest.err conftest.$ac_ext
21044 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21045 echo "${ECHO_T}$ac_header_preproc" >&6; }
21047 # So? What about this header?
21048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21050 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21051 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21052 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21054 ac_header_preproc=yes
21057 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21058 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21059 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21060 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21061 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21062 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21063 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21064 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21065 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21067 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21068 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21072 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21073 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21074 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21075 echo $ECHO_N "(cached
) $ECHO_C" >&6
21077 eval "$as_ac_Header=\
$ac_header_preproc"
21079 ac_res=`eval echo '${'$as_ac_Header'}'`
21080 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21081 echo "${ECHO_T}$ac_res" >&6; }
21084 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21085 cat >>confdefs.h <<_ACEOF
21086 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21095 # Solaris requires -lintl if you want strerror (which calls dgettext)
21096 # to return localized messages.
21098 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21099 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21100 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21101 echo $ECHO_N "(cached
) $ECHO_C" >&6
21103 ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lintl $LIBS"
21105 cat >conftest.$ac_ext <<_ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h. */
21112 /* Override any GCC internal prototype to avoid an error.
21113 Use char because int might match the return type of a GCC
21114 builtin and then its argument prototype would still apply. */
21122 return dgettext ();
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131 *) ac_try_echo=$ac_try;;
21133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21134 (eval "$ac_link") 2>conftest.er1
21136 grep -v '^ *+' conftest.er1 >conftest.err
21138 cat conftest.err >&5
21139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21140 (exit $ac_status); } && {
21141 test -z "$ac_c_werror_flag" ||
21142 test ! -s conftest.err
21143 } && test -s conftest$ac_exeext &&
21144 $as_test_x conftest$ac_exeext; then
21145 ac_cv_lib_intl_dgettext=yes
21147 echo "$as_me: failed program was
:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_lib_intl_dgettext=no
21153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21158 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21159 if test $ac_cv_lib_intl_dgettext = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define HAVE_LIBINTL 1
21164 LIBS="-lintl $LIBS"
21169 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21170 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21171 if test "${emacs_cv_localtime_cache+set}" = set; then
21172 echo $ECHO_N "(cached
) $ECHO_C" >&6
21174 if test x$ac_cv_func_tzset = xyes; then
21175 if test "$cross_compiling" = yes; then
21176 # If we have tzset, assume the worst when cross-compiling.
21177 emacs_cv_localtime_cache=yes
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21186 extern char **environ;
21190 for (to = from = environ; (*to = *from); from++)
21191 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21194 char TZ_GMT0[] = "TZ
=GMT0
";
21195 char TZ_PST8[] = "TZ
=PST8
";
21198 time_t now = time ((time_t *) 0);
21199 int hour_GMT0, hour_unset;
21200 if (putenv (TZ_GMT0) != 0)
21202 hour_GMT0 = localtime (&now)->tm_hour;
21204 hour_unset = localtime (&now)->tm_hour;
21205 if (putenv (TZ_PST8) != 0)
21207 if (localtime (&now)->tm_hour == hour_GMT0)
21210 if (localtime (&now)->tm_hour != hour_unset)
21215 rm -f conftest$ac_exeext
21216 if { (ac_try="$ac_link"
21217 case "(($ac_try" in
21218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21219 *) ac_try_echo=$ac_try;;
21221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21222 (eval "$ac_link") 2>&5
21224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21226 { (case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_try") 2>&5
21233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21234 (exit $ac_status); }; }; then
21235 emacs_cv_localtime_cache=no
21237 echo "$as_me: program exited with status
$ac_status" >&5
21238 echo "$as_me: failed program was
:" >&5
21239 sed 's/^/| /' conftest.$ac_ext >&5
21241 ( exit $ac_status )
21242 emacs_cv_localtime_cache=yes
21244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21249 # If we lack tzset, report that localtime does not cache TZ,
21250 # since we can't invalidate the cache if we don't have tzset.
21251 emacs_cv_localtime_cache=no
21254 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21255 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21256 if test $emacs_cv_localtime_cache = yes; then
21258 cat >>confdefs.h <<\_ACEOF
21259 #define LOCALTIME_CACHE 1
21264 if test "x
$HAVE_TIMEVAL" = xyes; then
21266 for ac_func in gettimeofday
21268 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21269 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21270 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21271 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21272 echo $ECHO_N "(cached
) $ECHO_C" >&6
21274 cat >conftest.$ac_ext <<_ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h. */
21280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21282 #define $ac_func innocuous_$ac_func
21284 /* System header to define __stub macros and hopefully few prototypes,
21285 which can conflict with char $ac_func (); below.
21286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21287 <limits.h> exists even on freestanding compilers. */
21290 # include <limits.h>
21292 # include <assert.h>
21297 /* Override any GCC internal prototype to avoid an error.
21298 Use char because int might match the return type of a GCC
21299 builtin and then its argument prototype would still apply. */
21304 /* The GNU C library defines this for functions which it implements
21305 to always fail with ENOSYS. Some functions are actually named
21306 something starting with __ and the normal name is an alias. */
21307 #if defined __stub_$ac_func || defined __stub___$ac_func
21314 return $ac_func ();
21319 rm -f conftest.$ac_objext conftest$ac_exeext
21320 if { (ac_try="$ac_link"
21321 case "(($ac_try" in
21322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21323 *) ac_try_echo=$ac_try;;
21325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21326 (eval "$ac_link") 2>conftest.er1
21328 grep -v '^ *+' conftest.er1 >conftest.err
21330 cat conftest.err >&5
21331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest$ac_exeext &&
21336 $as_test_x conftest$ac_exeext; then
21337 eval "$as_ac_var=yes"
21339 echo "$as_me: failed program was
:" >&5
21340 sed 's/^/| /' conftest.$ac_ext >&5
21342 eval "$as_ac_var=no
"
21345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21346 conftest$ac_exeext conftest.$ac_ext
21348 ac_res=`eval echo '${'$as_ac_var'}'`
21349 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21351 if test `eval echo '${'$as_ac_var'}'` = yes; then
21352 cat >>confdefs.h <<_ACEOF
21353 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21359 if test $ac_cv_func_gettimeofday = yes; then
21360 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21361 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21362 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21363 echo $ECHO_N "(cached
) $ECHO_C" >&6
21365 cat >conftest.$ac_ext <<_ACEOF
21368 cat confdefs.h >>conftest.$ac_ext
21369 cat >>conftest.$ac_ext <<_ACEOF
21370 /* end confdefs.h. */
21372 #ifdef TIME_WITH_SYS_TIME
21373 #include <sys/time.h>
21376 #ifdef HAVE_SYS_TIME_H
21377 #include <sys/time.h>
21385 struct timeval time;
21386 gettimeofday (&time, 0);
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 emacs_cv_gettimeofday_two_arguments=yes
21410 echo "$as_me: failed program was
:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 emacs_cv_gettimeofday_two_arguments=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21419 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21420 if test $emacs_cv_gettimeofday_two_arguments = no; then
21422 cat >>confdefs.h <<\_ACEOF
21423 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21431 { echo "$as_me:$LINENO: checking
for socket
" >&5
21432 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21433 if test "${ac_cv_func_socket+set}" = set; then
21434 echo $ECHO_N "(cached
) $ECHO_C" >&6
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21444 #define socket innocuous_socket
21446 /* System header to define __stub macros and hopefully few prototypes,
21447 which can conflict with char socket (); below.
21448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21449 <limits.h> exists even on freestanding compilers. */
21452 # include <limits.h>
21454 # include <assert.h>
21459 /* Override any GCC internal prototype to avoid an error.
21460 Use char because int might match the return type of a GCC
21461 builtin and then its argument prototype would still apply. */
21466 /* The GNU C library defines this for functions which it implements
21467 to always fail with ENOSYS. Some functions are actually named
21468 something starting with __ and the normal name is an alias. */
21469 #if defined __stub_socket || defined __stub___socket
21481 rm -f conftest.$ac_objext conftest$ac_exeext
21482 if { (ac_try="$ac_link"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_link") 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21494 (exit $ac_status); } && {
21495 test -z "$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 } && test -s conftest$ac_exeext &&
21498 $as_test_x conftest$ac_exeext; then
21499 ac_cv_func_socket=yes
21501 echo "$as_me: failed program was
:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21504 ac_cv_func_socket=no
21507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21508 conftest$ac_exeext conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21511 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21512 if test $ac_cv_func_socket = yes; then
21518 if test $ok_so_far = yes; then
21519 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21520 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21521 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21522 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21523 echo $ECHO_N "(cached
) $ECHO_C" >&6
21525 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21526 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21528 # Is the header compilable?
21529 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21530 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 $ac_includes_default
21538 #include <netinet/in.h>
21540 rm -f conftest.$ac_objext
21541 if { (ac_try="$ac_compile"
21542 case "(($ac_try" in
21543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21544 *) ac_try_echo=$ac_try;;
21546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21547 (eval "$ac_compile") 2>conftest.er1
21549 grep -v '^ *+' conftest.er1 >conftest.err
21551 cat conftest.err >&5
21552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest.$ac_objext; then
21557 ac_header_compiler=yes
21559 echo "$as_me: failed program was
:" >&5
21560 sed 's/^/| /' conftest.$ac_ext >&5
21562 ac_header_compiler=no
21565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21566 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21567 echo "${ECHO_T}$ac_header_compiler" >&6; }
21569 # Is the header present?
21570 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21571 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21572 cat >conftest.$ac_ext <<_ACEOF
21575 cat confdefs.h >>conftest.$ac_ext
21576 cat >>conftest.$ac_ext <<_ACEOF
21577 /* end confdefs.h. */
21578 #include <netinet/in.h>
21580 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21588 grep -v '^ *+' conftest.er1 >conftest.err
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21592 (exit $ac_status); } >/dev/null && {
21593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21594 test ! -s conftest.err
21596 ac_header_preproc=yes
21598 echo "$as_me: failed program was
:" >&5
21599 sed 's/^/| /' conftest.$ac_ext >&5
21601 ac_header_preproc=no
21604 rm -f conftest.err conftest.$ac_ext
21605 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21606 echo "${ECHO_T}$ac_header_preproc" >&6; }
21608 # So? What about this header?
21609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21611 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21612 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21613 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21614 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21615 ac_header_preproc=yes
21618 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21619 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21620 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21621 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21622 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21623 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21624 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21625 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21626 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21627 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21628 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21629 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21633 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21634 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21635 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21636 echo $ECHO_N "(cached
) $ECHO_C" >&6
21638 ac_cv_header_netinet_in_h=$ac_header_preproc
21640 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21641 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21644 if test $ac_cv_header_netinet_in_h = yes; then
21652 if test $ok_so_far = yes; then
21653 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21654 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21655 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21656 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21657 echo $ECHO_N "(cached
) $ECHO_C" >&6
21659 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21660 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21662 # Is the header compilable?
21663 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21664 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21665 cat >conftest.$ac_ext <<_ACEOF
21668 cat confdefs.h >>conftest.$ac_ext
21669 cat >>conftest.$ac_ext <<_ACEOF
21670 /* end confdefs.h. */
21671 $ac_includes_default
21672 #include <arpa/inet.h>
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21691 ac_header_compiler=yes
21693 echo "$as_me: failed program was
:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_compiler=no
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21701 echo "${ECHO_T}$ac_header_compiler" >&6; }
21703 # Is the header present?
21704 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21705 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <arpa/inet.h>
21714 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21720 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21722 grep -v '^ *+' conftest.er1 >conftest.err
21724 cat conftest.err >&5
21725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21726 (exit $ac_status); } >/dev/null && {
21727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21728 test ! -s conftest.err
21730 ac_header_preproc=yes
21732 echo "$as_me: failed program was
:" >&5
21733 sed 's/^/| /' conftest.$ac_ext >&5
21735 ac_header_preproc=no
21738 rm -f conftest.err conftest.$ac_ext
21739 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21740 echo "${ECHO_T}$ac_header_preproc" >&6; }
21742 # So? What about this header?
21743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21745 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21746 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21747 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21748 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21749 ac_header_preproc=yes
21752 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21753 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21754 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21755 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21756 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21757 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21758 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21759 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21760 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21761 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21762 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21763 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21767 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21768 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21769 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21770 echo $ECHO_N "(cached
) $ECHO_C" >&6
21772 ac_cv_header_arpa_inet_h=$ac_header_preproc
21774 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21775 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21778 if test $ac_cv_header_arpa_inet_h = yes; then
21786 if test $ok_so_far = yes; then
21788 cat >>confdefs.h <<\_ACEOF
21789 #define HAVE_INET_SOCKETS 1
21795 for ac_header in sys/ioctl.h
21797 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21798 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21799 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21800 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21801 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21802 echo $ECHO_N "(cached
) $ECHO_C" >&6
21804 ac_res=`eval echo '${'$as_ac_Header'}'`
21805 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21806 echo "${ECHO_T}$ac_res" >&6; }
21808 # Is the header compilable?
21809 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21810 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21811 cat >conftest.$ac_ext <<_ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h. */
21817 $ac_includes_default
21818 #include <$ac_header>
21820 rm -f conftest.$ac_objext
21821 if { (ac_try="$ac_compile"
21822 case "(($ac_try" in
21823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21824 *) ac_try_echo=$ac_try;;
21826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21827 (eval "$ac_compile") 2>conftest.er1
21829 grep -v '^ *+' conftest.er1 >conftest.err
21831 cat conftest.err >&5
21832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21833 (exit $ac_status); } && {
21834 test -z "$ac_c_werror_flag" ||
21835 test ! -s conftest.err
21836 } && test -s conftest.$ac_objext; then
21837 ac_header_compiler=yes
21839 echo "$as_me: failed program was
:" >&5
21840 sed 's/^/| /' conftest.$ac_ext >&5
21842 ac_header_compiler=no
21845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21846 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21847 echo "${ECHO_T}$ac_header_compiler" >&6; }
21849 # Is the header present?
21850 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21851 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21852 cat >conftest.$ac_ext <<_ACEOF
21855 cat confdefs.h >>conftest.$ac_ext
21856 cat >>conftest.$ac_ext <<_ACEOF
21857 /* end confdefs.h. */
21858 #include <$ac_header>
21860 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21872 (exit $ac_status); } >/dev/null && {
21873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21876 ac_header_preproc=yes
21878 echo "$as_me: failed program was
:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_header_preproc=no
21884 rm -f conftest.err conftest.$ac_ext
21885 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21886 echo "${ECHO_T}$ac_header_preproc" >&6; }
21888 # So? What about this header?
21889 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21891 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21892 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21893 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21894 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21895 ac_header_preproc=yes
21898 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21899 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21900 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21901 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21902 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21903 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21904 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21905 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21906 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21907 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21908 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21909 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21913 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21914 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21915 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21916 echo $ECHO_N "(cached
) $ECHO_C" >&6
21918 eval "$as_ac_Header=\
$ac_header_preproc"
21920 ac_res=`eval echo '${'$as_ac_Header'}'`
21921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21922 echo "${ECHO_T}$ac_res" >&6; }
21925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21935 if test -f /usr/lpp/X11/bin/smt.exp; then
21937 cat >>confdefs.h <<\_ACEOF
21938 #define HAVE_AIX_SMT_EXP 1
21943 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21944 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21945 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21946 { echo "$as_me:$LINENO: result
: yes" >&5
21947 echo "${ECHO_T}yes" >&6; }
21949 cat >>confdefs.h <<\_ACEOF
21950 #define HAVE_DEV_PTMX 1
21954 { echo "$as_me:$LINENO: result
: no
" >&5
21955 echo "${ECHO_T}no
" >&6; }
21958 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21959 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21960 if test "${ac_cv_type_pid_t+set}" = set; then
21961 echo $ECHO_N "(cached
) $ECHO_C" >&6
21963 cat >conftest.$ac_ext <<_ACEOF
21966 cat confdefs.h >>conftest.$ac_ext
21967 cat >>conftest.$ac_ext <<_ACEOF
21968 /* end confdefs.h. */
21969 $ac_includes_default
21970 typedef pid_t ac__type_new_;
21974 if ((ac__type_new_ *) 0)
21976 if (sizeof (ac__type_new_))
21982 rm -f conftest.$ac_objext
21983 if { (ac_try="$ac_compile"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_compile") 2>conftest.er1
21991 grep -v '^ *+' conftest.er1 >conftest.err
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21995 (exit $ac_status); } && {
21996 test -z "$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 } && test -s conftest.$ac_objext; then
21999 ac_cv_type_pid_t=yes
22001 echo "$as_me: failed program was
:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22004 ac_cv_type_pid_t=no
22007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22010 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22011 if test $ac_cv_type_pid_t = yes; then
22015 cat >>confdefs.h <<_ACEOF
22022 for ac_header in vfork.h
22024 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22025 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22026 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22027 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22028 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22029 echo $ECHO_N "(cached
) $ECHO_C" >&6
22031 ac_res=`eval echo '${'$as_ac_Header'}'`
22032 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22033 echo "${ECHO_T}$ac_res" >&6; }
22035 # Is the header compilable?
22036 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22037 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 $ac_includes_default
22045 #include <$ac_header>
22047 rm -f conftest.$ac_objext
22048 if { (ac_try="$ac_compile"
22049 case "(($ac_try" in
22050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22051 *) ac_try_echo=$ac_try;;
22053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22054 (eval "$ac_compile") 2>conftest.er1
22056 grep -v '^ *+' conftest.er1 >conftest.err
22058 cat conftest.err >&5
22059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22060 (exit $ac_status); } && {
22061 test -z "$ac_c_werror_flag" ||
22062 test ! -s conftest.err
22063 } && test -s conftest.$ac_objext; then
22064 ac_header_compiler=yes
22066 echo "$as_me: failed program was
:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_header_compiler=no
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22074 echo "${ECHO_T}$ac_header_compiler" >&6; }
22076 # Is the header present?
22077 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22078 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22079 cat >conftest.$ac_ext <<_ACEOF
22082 cat confdefs.h >>conftest.$ac_ext
22083 cat >>conftest.$ac_ext <<_ACEOF
22084 /* end confdefs.h. */
22085 #include <$ac_header>
22087 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22088 case "(($ac_try" in
22089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22090 *) ac_try_echo=$ac_try;;
22092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22095 grep -v '^ *+' conftest.er1 >conftest.err
22097 cat conftest.err >&5
22098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22099 (exit $ac_status); } >/dev/null && {
22100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22101 test ! -s conftest.err
22103 ac_header_preproc=yes
22105 echo "$as_me: failed program was
:" >&5
22106 sed 's/^/| /' conftest.$ac_ext >&5
22108 ac_header_preproc=no
22111 rm -f conftest.err conftest.$ac_ext
22112 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22113 echo "${ECHO_T}$ac_header_preproc" >&6; }
22115 # So? What about this header?
22116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22118 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22119 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22120 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22122 ac_header_preproc=yes
22125 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22126 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22127 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22128 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22129 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22130 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22131 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22132 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22133 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22135 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22136 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22140 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22141 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22143 echo $ECHO_N "(cached
) $ECHO_C" >&6
22145 eval "$as_ac_Header=\
$ac_header_preproc"
22147 ac_res=`eval echo '${'$as_ac_Header'}'`
22148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22149 echo "${ECHO_T}$ac_res" >&6; }
22152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22153 cat >>confdefs.h <<_ACEOF
22154 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22163 for ac_func in fork vfork
22165 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22166 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22167 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22168 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22169 echo $ECHO_N "(cached
) $ECHO_C" >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22179 #define $ac_func innocuous_$ac_func
22181 /* System header to define __stub macros and hopefully few prototypes,
22182 which can conflict with char $ac_func (); below.
22183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22184 <limits.h> exists even on freestanding compilers. */
22187 # include <limits.h>
22189 # include <assert.h>
22194 /* Override any GCC internal prototype to avoid an error.
22195 Use char because int might match the return type of a GCC
22196 builtin and then its argument prototype would still apply. */
22201 /* The GNU C library defines this for functions which it implements
22202 to always fail with ENOSYS. Some functions are actually named
22203 something starting with __ and the normal name is an alias. */
22204 #if defined __stub_$ac_func || defined __stub___$ac_func
22211 return $ac_func ();
22216 rm -f conftest.$ac_objext conftest$ac_exeext
22217 if { (ac_try="$ac_link"
22218 case "(($ac_try" in
22219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22220 *) ac_try_echo=$ac_try;;
22222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22223 (eval "$ac_link") 2>conftest.er1
22225 grep -v '^ *+' conftest.er1 >conftest.err
22227 cat conftest.err >&5
22228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22229 (exit $ac_status); } && {
22230 test -z "$ac_c_werror_flag" ||
22231 test ! -s conftest.err
22232 } && test -s conftest$ac_exeext &&
22233 $as_test_x conftest$ac_exeext; then
22234 eval "$as_ac_var=yes"
22236 echo "$as_me: failed program was
:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22239 eval "$as_ac_var=no
"
22242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22243 conftest$ac_exeext conftest.$ac_ext
22245 ac_res=`eval echo '${'$as_ac_var'}'`
22246 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22247 echo "${ECHO_T}$ac_res" >&6; }
22248 if test `eval echo '${'$as_ac_var'}'` = yes; then
22249 cat >>confdefs.h <<_ACEOF
22250 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22256 if test "x
$ac_cv_func_fork" = xyes; then
22257 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22258 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22259 if test "${ac_cv_func_fork_works+set}" = set; then
22260 echo $ECHO_N "(cached
) $ECHO_C" >&6
22262 if test "$cross_compiling" = yes; then
22263 ac_cv_func_fork_works=cross
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22276 /* By Ruediger Kuhlmann. */
22277 return fork () < 0;
22283 rm -f conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>&5
22292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22293 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22294 { (case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22299 (eval "$ac_try") 2>&5
22301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22302 (exit $ac_status); }; }; then
22303 ac_cv_func_fork_works=yes
22305 echo "$as_me: program exited with status
$ac_status" >&5
22306 echo "$as_me: failed program was
:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 ( exit $ac_status )
22310 ac_cv_func_fork_works=no
22312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22317 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22318 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22321 ac_cv_func_fork_works=$ac_cv_func_fork
22323 if test "x
$ac_cv_func_fork_works" = xcross; then
22325 *-*-amigaos* | *-*-msdosdjgpp*)
22326 # Override, as these systems have only a dummy fork() stub
22327 ac_cv_func_fork_works=no
22330 ac_cv_func_fork_works=yes
22333 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22334 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22336 ac_cv_func_vfork_works=$ac_cv_func_vfork
22337 if test "x
$ac_cv_func_vfork" = xyes; then
22338 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22339 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22340 if test "${ac_cv_func_vfork_works+set}" = set; then
22341 echo $ECHO_N "(cached
) $ECHO_C" >&6
22343 if test "$cross_compiling" = yes; then
22344 ac_cv_func_vfork_works=cross
22346 cat >conftest.$ac_ext <<_ACEOF
22349 cat confdefs.h >>conftest.$ac_ext
22350 cat >>conftest.$ac_ext <<_ACEOF
22351 /* end confdefs.h. */
22352 /* Thanks to Paul Eggert for this test. */
22353 $ac_includes_default
22354 #include <sys/wait.h>
22355 #ifdef HAVE_VFORK_H
22356 # include <vfork.h>
22358 /* On some sparc systems, changes by the child to local and incoming
22359 argument registers are propagated back to the parent. The compiler
22360 is told about this with #include <vfork.h>, but some compilers
22361 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22362 static variable whose address is put into a register that is
22363 clobbered by the vfork. */
22366 sparc_address_test (int arg)
22368 sparc_address_test (arg) int arg;
22371 static pid_t child;
22389 pid_t parent = getpid ();
22392 sparc_address_test (0);
22397 /* Here is another test for sparc vfork register problems. This
22398 test uses lots of local variables, at least as many local
22399 variables as main has allocated so far including compiler
22400 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22401 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22402 reuse the register of parent for one of the local variables,
22403 since it will think that parent can't possibly be used any more
22404 in this routine. Assigning to the local variable will thus
22405 munge parent in the parent process. */
22407 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22408 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22409 /* Convince the compiler that p..p7 are live; otherwise, it might
22410 use the same hardware register for all 8 local variables. */
22411 if (p != p1 || p != p2 || p != p3 || p != p4
22412 || p != p5 || p != p6 || p != p7)
22415 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22416 from child file descriptors. If the child closes a descriptor
22417 before it execs or exits, this munges the parent's descriptor
22418 as well. Test for this by closing stdout in the child. */
22419 _exit(close(fileno(stdout)) != 0);
22424 while (wait(&status) != child)
22427 /* Was there some problem with vforking? */
22430 /* Did the child fail? (This shouldn't happen.) */
22433 /* Did the vfork/compiler bug occur? */
22434 || parent != getpid()
22436 /* Did the file descriptor bug occur? */
22437 || fstat(fileno(stdout), &st) != 0
22442 rm -f conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>&5
22451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_try") 2>&5
22460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 ac_cv_func_vfork_works=yes
22464 echo "$as_me: program exited with status
$ac_status" >&5
22465 echo "$as_me: failed program was
:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ( exit $ac_status )
22469 ac_cv_func_vfork_works=no
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22476 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22477 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22480 if test "x
$ac_cv_func_fork_works" = xcross; then
22481 ac_cv_func_vfork_works=$ac_cv_func_vfork
22482 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22483 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22486 if test "x
$ac_cv_func_vfork_works" = xyes; then
22488 cat >>confdefs.h <<\_ACEOF
22489 #define HAVE_WORKING_VFORK 1
22494 cat >>confdefs.h <<\_ACEOF
22499 if test "x
$ac_cv_func_fork_works" = xyes; then
22501 cat >>confdefs.h <<\_ACEOF
22502 #define HAVE_WORKING_FORK 1
22508 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22509 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22510 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22511 echo $ECHO_N "(cached
) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 #include <langinfo.h>
22523 char* cs = nl_langinfo(CODESET);
22528 rm -f conftest.$ac_objext conftest$ac_exeext
22529 if { (ac_try="$ac_link"
22530 case "(($ac_try" in
22531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22532 *) ac_try_echo=$ac_try;;
22534 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22535 (eval "$ac_link") 2>conftest.er1
22537 grep -v '^ *+' conftest.er1 >conftest.err
22539 cat conftest.err >&5
22540 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22541 (exit $ac_status); } && {
22542 test -z "$ac_c_werror_flag" ||
22543 test ! -s conftest.err
22544 } && test -s conftest$ac_exeext &&
22545 $as_test_x conftest$ac_exeext; then
22546 emacs_cv_langinfo_codeset=yes
22548 echo "$as_me: failed program was
:" >&5
22549 sed 's/^/| /' conftest.$ac_ext >&5
22551 emacs_cv_langinfo_codeset=no
22554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22555 conftest$ac_exeext conftest.$ac_ext
22558 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22559 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22560 if test $emacs_cv_langinfo_codeset = yes; then
22562 cat >>confdefs.h <<\_ACEOF
22563 #define HAVE_LANGINFO_CODESET 1
22568 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22569 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22570 if test "${ac_cv_type_size_t+set}" = set; then
22571 echo $ECHO_N "(cached
) $ECHO_C" >&6
22573 cat >conftest.$ac_ext <<_ACEOF
22576 cat confdefs.h >>conftest.$ac_ext
22577 cat >>conftest.$ac_ext <<_ACEOF
22578 /* end confdefs.h. */
22579 $ac_includes_default
22580 typedef size_t ac__type_new_;
22584 if ((ac__type_new_ *) 0)
22586 if (sizeof (ac__type_new_))
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_cv_type_size_t=yes
22611 echo "$as_me: failed program was
:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_cv_type_size_t=no
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22620 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22621 if test $ac_cv_type_size_t = yes; then
22623 cat >>confdefs.h <<_ACEOF
22624 #define HAVE_SIZE_T 1
22631 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22632 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22633 if test "${ac_cv_type_mbstate_t+set}" = set; then
22634 echo $ECHO_N "(cached
) $ECHO_C" >&6
22636 cat >conftest.$ac_ext <<_ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 $ac_includes_default
22643 # include <wchar.h>
22647 mbstate_t x; return sizeof x;
22652 rm -f conftest.$ac_objext
22653 if { (ac_try="$ac_compile"
22654 case "(($ac_try" in
22655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22656 *) ac_try_echo=$ac_try;;
22658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22659 (eval "$ac_compile") 2>conftest.er1
22661 grep -v '^ *+' conftest.er1 >conftest.err
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22665 (exit $ac_status); } && {
22666 test -z "$ac_c_werror_flag" ||
22667 test ! -s conftest.err
22668 } && test -s conftest.$ac_objext; then
22669 ac_cv_type_mbstate_t=yes
22671 echo "$as_me: failed program was
:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22674 ac_cv_type_mbstate_t=no
22677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22679 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22680 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22681 if test $ac_cv_type_mbstate_t = yes; then
22683 cat >>confdefs.h <<\_ACEOF
22684 #define HAVE_MBSTATE_T 1
22689 cat >>confdefs.h <<\_ACEOF
22690 #define mbstate_t int
22695 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22696 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22697 if test "${emacs_cv_c_restrict+set}" = set; then
22698 echo $ECHO_N "(cached
) $ECHO_C" >&6
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 void fred (int *restrict x);
22715 rm -f conftest.$ac_objext
22716 if { (ac_try="$ac_compile"
22717 case "(($ac_try" in
22718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22719 *) ac_try_echo=$ac_try;;
22721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22722 (eval "$ac_compile") 2>conftest.er1
22724 grep -v '^ *+' conftest.er1 >conftest.err
22726 cat conftest.err >&5
22727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22728 (exit $ac_status); } && {
22729 test -z "$ac_c_werror_flag" ||
22730 test ! -s conftest.err
22731 } && test -s conftest.$ac_objext; then
22732 emacs_cv_c_restrict=yes
22734 echo "$as_me: failed program was
:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 void fred (int *__restrict x);
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756 *) ac_try_echo=$ac_try;;
22758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22759 (eval "$ac_compile") 2>conftest.er1
22761 grep -v '^ *+' conftest.er1 >conftest.err
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22765 (exit $ac_status); } && {
22766 test -z "$ac_c_werror_flag" ||
22767 test ! -s conftest.err
22768 } && test -s conftest.$ac_objext; then
22769 emacs_cv_c_restrict=__restrict
22771 echo "$as_me: failed program was
:" >&5
22772 sed 's/^/| /' conftest.$ac_ext >&5
22774 emacs_cv_c_restrict=no
22777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22783 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22784 case "$emacs_cv_c_restrict" in
22785 yes) emacs_restrict=restrict;;
22786 no) emacs_restrict="";;
22787 *) emacs_restrict="$emacs_cv_c_restrict";;
22789 if test "$emacs_restrict" != __restrict; then
22791 cat >>confdefs.h <<_ACEOF
22792 #define __restrict $emacs_restrict
22797 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22798 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22799 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22800 echo $ECHO_N "(cached
) $ECHO_C" >&6
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22808 void fred (int x[__restrict]);
22817 rm -f conftest.$ac_objext
22818 if { (ac_try="$ac_compile"
22819 case "(($ac_try" in
22820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22821 *) ac_try_echo=$ac_try;;
22823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22824 (eval "$ac_compile") 2>conftest.er1
22826 grep -v '^ *+' conftest.er1 >conftest.err
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22830 (exit $ac_status); } && {
22831 test -z "$ac_c_werror_flag" ||
22832 test ! -s conftest.err
22833 } && test -s conftest.$ac_objext; then
22834 emacs_cv_c_restrict_arr=yes
22836 echo "$as_me: failed program was
:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22839 emacs_cv_c_restrict_arr=no
22842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22845 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22846 if test "$emacs_cv_c_restrict_arr" = yes; then
22848 cat >>confdefs.h <<\_ACEOF
22849 #define __restrict_arr __restrict
22856 # Set up the CFLAGS for real compilation, so we can substitute it.
22857 CFLAGS="$REAL_CFLAGS"
22858 CPPFLAGS="$REAL_CPPFLAGS"
22860 #### Find out which version of Emacs this is.
22861 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22862 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22863 if test x"${version}" = x; then
22864 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22865 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22866 { (exit 1); exit 1; }; }
22869 ### Specify what sort of things we'll be editing into Makefile and config.h.
22870 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22906 cat >>confdefs.h <<_ACEOF
22907 #define EMACS_CONFIGURATION "${canonical}"
22911 cat >>confdefs.h <<_ACEOF
22912 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22916 cat >>confdefs.h <<_ACEOF
22917 #define config_machfile "${machfile}"
22921 cat >>confdefs.h <<_ACEOF
22922 #define config_opsysfile "${opsysfile}"
22926 cat >>confdefs.h <<_ACEOF
22927 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22931 cat >>confdefs.h <<_ACEOF
22932 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22936 cat >>confdefs.h <<_ACEOF
22937 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22941 cat >>confdefs.h <<_ACEOF
22942 #define UNEXEC_SRC ${UNEXEC_SRC}
22946 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22948 cat >>confdefs.h <<\_ACEOF
22949 #define HAVE_X_WINDOWS 1
22953 if test "${USE_X_TOOLKIT}" != "none
" ; then
22955 cat >>confdefs.h <<\_ACEOF
22956 #define USE_X_TOOLKIT 1
22960 if test "${HAVE_X11}" = "yes" ; then
22962 cat >>confdefs.h <<\_ACEOF
22967 if test "${HAVE_XFREE386}" = "yes" ; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_XFREE386 1
22974 if test "${HAVE_MENUS}" = "yes" ; then
22976 cat >>confdefs.h <<\_ACEOF
22977 #define HAVE_MENUS 1
22981 if test "${GNU_MALLOC}" = "yes" ; then
22983 cat >>confdefs.h <<\_ACEOF
22984 #define GNU_MALLOC 1
22988 if test "${REL_ALLOC}" = "yes" ; then
22990 cat >>confdefs.h <<\_ACEOF
22991 #define REL_ALLOC 1
23000 #### Report on what we decided to do.
23001 #### Report GTK as a toolkit, even if it doesn't use Xt.
23002 #### It makes printing result more understandable as using GTK sets
23003 #### toolkit_scroll_bars to yes by default.
23004 if test "${HAVE_GTK}" = "yes"; then
23009 Configured
for \
`${canonical}'.
23011 Where should the build process find the source code? ${srcdir}
23012 What operating system and machine description files should Emacs use?
23013 \`${opsysfile}' and \`${machfile}'
23014 What compiler should emacs be built with?
${CC} ${CFLAGS}
23015 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23016 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23017 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23018 What window system should Emacs use?
${window_system}
23019 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23021 if test -n "${x_includes}"; then
23022 echo " Where
do we
find X Windows header files?
${x_includes}"
23024 echo " Where
do we
find X Windows header files? Standard
dirs"
23026 if test -n "${x_libraries}"; then
23027 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23029 echo " Where
do we
find X Windows libraries? Standard
dirs"
23032 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23033 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23034 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23035 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23036 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23037 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23038 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23041 if test $USE_XASSERTS = yes; then
23042 echo " Compiling with asserts turned on.
"
23043 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23049 # Remove any trailing slashes in these variables.
23050 test "${prefix}" != NONE &&
23051 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23052 test "${exec_prefix}" != NONE &&
23053 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23055 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23056 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23057 ## from Makefile.c can correctly provide the arg `-traditional' to the
23060 cat >conftest.$ac_ext <<_ACEOF
23063 cat confdefs.h >>conftest.$ac_ext
23064 cat >>conftest.$ac_ext <<_ACEOF
23065 /* end confdefs.h. */
23068 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23069 $EGREP "yes..
yes" >/dev/null 2>&1; then
23070 CPP_NEED_TRADITIONAL=no
23072 CPP_NEED_TRADITIONAL=yes
23077 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
"
23079 ac_config_commands="$ac_config_commands default
"
23081 cat >confcache <<\_ACEOF
23082 # This file is a shell script that caches the results of configure
23083 # tests run on this system so they can be shared between configure
23084 # scripts and configure runs, see configure's option --config-cache.
23085 # It is not useful on other systems. If it contains results you don't
23086 # want to keep, you may remove or edit it.
23088 # config.status only pays attention to the cache file if you give it
23089 # the --recheck option to rerun configure.
23091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23093 # following values.
23097 # The following way of writing the cache mishandles newlines in values,
23098 # but we know of no workaround that is simple, portable, and efficient.
23099 # So, we kill variables containing newlines.
23100 # Ultrix sh set writes to stderr and can't be redirected directly,
23101 # and sets the high bit in the cache file unless we assign to the vars.
23103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23104 eval ac_val=\$$ac_var
23108 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23109 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23112 _ | IFS | as_nl) ;; #(
23113 *) $as_unset $ac_var ;;
23119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23120 *${as_nl}ac_space=\ *)
23121 # `set' does not quote correctly, so add quotes (double-quote
23122 # substitution turns \\\\ into \\, and sed turns \\ into \).
23125 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23128 # `set' quotes correctly as required by POSIX, so do not add quotes.
23129 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23138 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23143 if test -w "$cache_file"; then
23144 test "x
$cache_file" != "x
/dev
/null
" &&
23145 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23146 echo "$as_me: updating cache
$cache_file" >&6;}
23147 cat confcache >$cache_file
23149 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23150 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23155 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23156 # Let make expand exec_prefix.
23157 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23159 DEFS=-DHAVE_CONFIG_H
23163 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23164 # 1. Remove the extension, and $U if already installed.
23165 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23166 ac_i=`echo "$ac_i" | sed "$ac_script"`
23167 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23168 # will be set to the directory where LIBOBJS objects are built.
23169 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23170 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23172 LIBOBJS=$ac_libobjs
23174 LTLIBOBJS=$ac_ltlibobjs
23178 : ${CONFIG_STATUS=./config.status}
23179 ac_clean_files_save=$ac_clean_files
23180 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23181 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23182 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23183 cat >$CONFIG_STATUS <<_ACEOF
23185 # Generated by $as_me.
23186 # Run this file to recreate the current configuration.
23187 # Compiler output produced by configure, useful for debugging
23188 # configure, is in config.log if it exists.
23191 ac_cs_recheck=false
23193 SHELL=\${CONFIG_SHELL-$SHELL}
23196 cat >>$CONFIG_STATUS <<\_ACEOF
23197 ## --------------------- ##
23198 ## M4sh Initialization. ##
23199 ## --------------------- ##
23201 # Be more Bourne compatible
23202 DUALCASE=1; export DUALCASE # for MKS sh
23203 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23206 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23207 # is contrary to our usage. Disable this feature.
23208 alias -g '${1+"$@"}'='"$@
"'
23209 setopt NO_GLOB_SUBST
23211 case `(set -o) 2>/dev/null` in
23212 *posix*) set -o posix ;;
23221 # Avoid depending upon Character Ranges.
23222 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23223 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23224 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23225 as_cr_digits='0123456789'
23226 as_cr_alnum=$as_cr_Letters$as_cr_digits
23228 # The user is always right.
23229 if test "${PATH_SEPARATOR+set}" != set; then
23230 echo "#! /bin/sh" >conf$$.sh
23231 echo "exit 0" >>conf$$.sh
23233 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23241 # Support unset when possible.
23242 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23250 # We need space, tab and new line, in precisely that order. Quoting is
23251 # there to prevent editors from complaining about space-tab.
23252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23253 # splitting by setting IFS to empty value.)
23258 # Find who we are. Look in the path if we contain no directory separator.
23260 *[\\/]* ) as_myself
=$0 ;;
23261 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23262 for as_dir
in $PATH
23265 test -z "$as_dir" && as_dir
=.
23266 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23272 # We did not find ourselves, most probably we were run as `sh COMMAND'
23273 # in which case we are not to be found in the path.
23274 if test "x$as_myself" = x
; then
23277 if test ! -f "$as_myself"; then
23278 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23279 { (exit 1); exit 1; }
23282 # Work around bugs in pre-3.0 UWIN ksh.
23283 for as_var
in ENV MAIL MAILPATH
23284 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23292 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23293 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23294 LC_TELEPHONE LC_TIME
23296 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23297 eval $as_var=C
; export $as_var
23299 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23303 # Required to use basename.
23304 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23305 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23311 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23312 as_basename
=basename
23318 # Name of the executable.
23319 as_me
=`$as_basename -- "$0" ||
23320 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23321 X"$0" : 'X\(//\)$' \| \
23322 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23324 sed '/^.*\/\([^/][^/]*\)\/*$/{
23343 as_lineno_1
=$LINENO
23344 as_lineno_2
=$LINENO
23345 test "x$as_lineno_1" != "x$as_lineno_2" &&
23346 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23348 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23349 # uniformly replaced by the line number. The first 'sed' inserts a
23350 # line-number line after each line using $LINENO; the second 'sed'
23351 # does the real work. The second script uses 'N' to pair each
23352 # line-number line with the line containing $LINENO, and appends
23353 # trailing '-' during substitution so that $LINENO is not a special
23354 # case at line end.
23355 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23356 # scripts with optimization help from Paolo Bonzini. Blame Lee
23357 # E. McMahon (1931-1989) for sed's syntax. :-)
23369 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23372 ' >$as_me.lineno
&&
23373 chmod +x
"$as_me.lineno" ||
23374 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23375 { (exit 1); exit 1; }; }
23377 # Don't try to exec as it changes $[0], causing all sort of problems
23378 # (the dirname of $[0] is not the place where we might find the
23379 # original and so on. Autoconf is especially sensitive to this).
23380 .
"./$as_me.lineno"
23381 # Exit status is that of the last command.
23386 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23392 ECHO_C
= ECHO_N
= ECHO_T
=
23393 case `echo -n x` in
23395 case `echo 'x\c'` in
23396 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23403 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23404 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23410 rm -f conf$$ conf$$.exe conf$$.
file
23411 if test -d conf$$.dir
; then
23412 rm -f conf$$.dir
/conf$$.
file
23418 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23420 # ... but there are two gotchas:
23421 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23422 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23423 # In both cases, we have to default to `cp -p'.
23424 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23426 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23431 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23432 rmdir conf$$.dir
2>/dev
/null
23434 if mkdir
-p .
2>/dev
/null
; then
23437 test -d .
/-p && rmdir .
/-p
23441 if test -x / >/dev
/null
2>&1; then
23442 as_test_x
='test -x'
23444 if ls -dL / >/dev
/null
2>&1; then
23451 if test -d "$1"; then
23457 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23458 ???[sx]*):;;*)false;;esac;fi
23462 as_executable_p
=$as_test_x
23464 # Sed expression to map a string onto a valid CPP name.
23465 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23467 # Sed expression to map a string onto a valid variable name.
23468 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23473 # Save the log message, to keep $[0] and so on meaningful, and to
23474 # report actual input values of CONFIG_FILES etc. instead of their
23475 # values after options handling.
23477 This file was extended by $as_me, which was
23478 generated by GNU Autoconf 2.61. Invocation command line was
23480 CONFIG_FILES = $CONFIG_FILES
23481 CONFIG_HEADERS = $CONFIG_HEADERS
23482 CONFIG_LINKS = $CONFIG_LINKS
23483 CONFIG_COMMANDS = $CONFIG_COMMANDS
23486 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23491 cat >>$CONFIG_STATUS <<_ACEOF
23492 # Files that config.status was made for.
23493 config_files="$ac_config_files"
23494 config_headers="$ac_config_headers"
23495 config_commands="$ac_config_commands"
23499 cat >>$CONFIG_STATUS <<\_ACEOF
23501 \`$as_me' instantiates files from templates according to the
23502 current configuration.
23504 Usage: $0 [OPTIONS] [FILE]...
23506 -h, --help print this help, then exit
23507 -V, --version print version number and configuration settings, then exit
23508 -q, --quiet do not print progress messages
23509 -d, --debug don't remove temporary files
23510 --recheck update $as_me by reconfiguring in the same conditions
23511 --file=FILE[:TEMPLATE]
23512 instantiate the configuration file FILE
23513 --header=FILE[:TEMPLATE]
23514 instantiate the configuration header FILE
23516 Configuration files:
23519 Configuration headers:
23522 Configuration commands:
23525 Report bugs to <bug-autoconf@gnu.org>."
23528 cat >>$CONFIG_STATUS <<_ACEOF
23531 configured by $0, generated by GNU Autoconf 2.61,
23532 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23534 Copyright (C) 2006 Free Software Foundation, Inc.
23535 This config.status script is free software; the Free Software Foundation
23536 gives unlimited permission to copy, distribute and modify it."
23543 cat >>$CONFIG_STATUS <<\_ACEOF
23544 # If no file are specified by the user, then we need to provide default
23545 # value. By we need to know if files were specified by the user.
23551 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23552 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23563 # Handling of the options.
23564 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23566 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23567 echo "$ac_cs_version"; exit ;;
23568 --debug |
--debu |
--deb |
--de |
--d |
-d )
23570 --file |
--fil |
--fi |
--f )
23572 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23573 ac_need_defaults
=false
;;
23574 --header |
--heade |
--head |
--hea )
23576 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23577 ac_need_defaults
=false
;;
23579 # Conflict between --help and --header
23580 { echo "$as_me: error: ambiguous option: $1
23581 Try \`$0 --help' for more information." >&2
23582 { (exit 1); exit 1; }; };;
23583 --help |
--hel |
-h )
23584 echo "$ac_cs_usage"; exit ;;
23585 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23586 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23589 # This is an error.
23590 -*) { echo "$as_me: error: unrecognized option: $1
23591 Try \`$0 --help' for more information." >&2
23592 { (exit 1); exit 1; }; } ;;
23594 *) ac_config_targets
="$ac_config_targets $1"
23595 ac_need_defaults
=false
;;
23601 ac_configure_extra_args
=
23603 if $ac_cs_silent; then
23605 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23609 cat >>$CONFIG_STATUS <<_ACEOF
23610 if \$ac_cs_recheck; then
23611 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23612 CONFIG_SHELL=$SHELL
23613 export CONFIG_SHELL
23614 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23618 cat >>$CONFIG_STATUS <<\_ACEOF
23622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23623 ## Running $as_me. ##
23629 cat >>$CONFIG_STATUS <<_ACEOF
23633 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23637 cat >>$CONFIG_STATUS <<\_ACEOF
23639 # Handling of arguments.
23640 for ac_config_target
in $ac_config_targets
23642 case $ac_config_target in
23643 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23644 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23645 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23646 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23647 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23648 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23649 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23650 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23651 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23652 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23653 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23654 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23656 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23657 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23658 { (exit 1); exit 1; }; };;
23663 # If the user did not use the arguments to specify the items to instantiate,
23664 # then the envvar interface is used. Set only those that are not.
23665 # We use the long form for the default assignment because of an extremely
23666 # bizarre bug on SunOS 4.1.3.
23667 if $ac_need_defaults; then
23668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23669 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23673 # Have a temporary directory for convenience. Make it in the build tree
23674 # simply because there is no reason against having it here, and in addition,
23675 # creating and moving files from /tmp can sometimes cause problems.
23676 # Hook for its removal unless debugging.
23677 # Note that there is a small window in which the directory will not be cleaned:
23678 # after its creation but before its name has been assigned to `$tmp'.
23682 trap 'exit_status=$?
23683 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23685 trap '{ (exit 1); exit 1; }' 1 2 13 15
23687 # Create a (secure) tmp directory for tmp files.
23690 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23691 test -n "$tmp" && test -d "$tmp"
23694 tmp
=.
/conf$$
-$RANDOM
23695 (umask 077 && mkdir
"$tmp")
23698 echo "$me: cannot create a temporary directory in ." >&2
23699 { (exit 1); exit 1; }
23703 # Set up the sed scripts for CONFIG_FILES section.
23706 # No need to generate the scripts if there are no CONFIG_FILES.
23707 # This happens for instance when ./config.status config.h
23708 if test -n "$CONFIG_FILES"; then
23715 for ac_last_try
in false false false false false
:; do
23716 cat >conf$
$subs.
sed <<_ACEOF
23717 SHELL!$SHELL$ac_delim
23718 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23719 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23720 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23721 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23722 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23723 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23724 exec_prefix!$exec_prefix$ac_delim
23725 prefix!$prefix$ac_delim
23726 program_transform_name!$program_transform_name$ac_delim
23727 bindir!$bindir$ac_delim
23728 sbindir!$sbindir$ac_delim
23729 libexecdir!$libexecdir$ac_delim
23730 datarootdir!$datarootdir$ac_delim
23731 datadir!$datadir$ac_delim
23732 sysconfdir!$sysconfdir$ac_delim
23733 sharedstatedir!$sharedstatedir$ac_delim
23734 localstatedir!$localstatedir$ac_delim
23735 includedir!$includedir$ac_delim
23736 oldincludedir!$oldincludedir$ac_delim
23737 docdir!$docdir$ac_delim
23738 infodir!$infodir$ac_delim
23739 htmldir!$htmldir$ac_delim
23740 dvidir!$dvidir$ac_delim
23741 pdfdir!$pdfdir$ac_delim
23742 psdir!$psdir$ac_delim
23743 libdir!$libdir$ac_delim
23744 localedir!$localedir$ac_delim
23745 mandir!$mandir$ac_delim
23746 DEFS!$DEFS$ac_delim
23747 ECHO_C!$ECHO_C$ac_delim
23748 ECHO_N!$ECHO_N$ac_delim
23749 ECHO_T!$ECHO_T$ac_delim
23750 LIBS!$LIBS$ac_delim
23751 build_alias!$build_alias$ac_delim
23752 host_alias!$host_alias$ac_delim
23753 target_alias!$target_alias$ac_delim
23754 MAINT!$MAINT$ac_delim
23755 build!$build$ac_delim
23756 build_cpu!$build_cpu$ac_delim
23757 build_vendor!$build_vendor$ac_delim
23758 build_os!$build_os$ac_delim
23759 host!$host$ac_delim
23760 host_cpu!$host_cpu$ac_delim
23761 host_vendor!$host_vendor$ac_delim
23762 host_os!$host_os$ac_delim
23764 CFLAGS!$CFLAGS$ac_delim
23765 LDFLAGS!$LDFLAGS$ac_delim
23766 CPPFLAGS!$CPPFLAGS$ac_delim
23767 ac_ct_CC!$ac_ct_CC$ac_delim
23768 EXEEXT!$EXEEXT$ac_delim
23769 OBJEXT!$OBJEXT$ac_delim
23771 GREP!$GREP$ac_delim
23772 EGREP!$EGREP$ac_delim
23773 LN_S!$LN_S$ac_delim
23774 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23775 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23776 INSTALL_DATA!$INSTALL_DATA$ac_delim
23777 RANLIB!$RANLIB$ac_delim
23778 INSTALL_INFO!$INSTALL_INFO$ac_delim
23779 GZIP_PROG!$GZIP_PROG$ac_delim
23780 LIBSOUND!$LIBSOUND$ac_delim
23781 PKG_CONFIG!$PKG_CONFIG$ac_delim
23782 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23783 ALSA_LIBS!$ALSA_LIBS$ac_delim
23784 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23785 SET_MAKE!$SET_MAKE$ac_delim
23786 XMKMF!$XMKMF$ac_delim
23787 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23788 GTK_LIBS!$GTK_LIBS$ac_delim
23789 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23790 XFT_LIBS!$XFT_LIBS$ac_delim
23791 ALLOCA!$ALLOCA$ac_delim
23792 liblockfile!$liblockfile$ac_delim
23793 LIBOBJS!$LIBOBJS$ac_delim
23794 NEED_SETGID!$NEED_SETGID$ac_delim
23795 KMEM_GROUP!$KMEM_GROUP$ac_delim
23796 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23797 GETOPT_H!$GETOPT_H$ac_delim
23798 GETOPTOBJS!$GETOPTOBJS$ac_delim
23799 version!$version$ac_delim
23800 configuration!$configuration$ac_delim
23801 canonical!$canonical$ac_delim
23802 srcdir!$srcdir$ac_delim
23803 lispdir!$lispdir$ac_delim
23804 locallisppath!$locallisppath$ac_delim
23805 lisppath!$lisppath$ac_delim
23806 x_default_search_path!$x_default_search_path$ac_delim
23807 etcdir!$etcdir$ac_delim
23808 archlibdir!$archlibdir$ac_delim
23809 bitmapdir!$bitmapdir$ac_delim
23810 gamedir!$gamedir$ac_delim
23811 gameuser!$gameuser$ac_delim
23812 c_switch_system!$c_switch_system$ac_delim
23813 c_switch_machine!$c_switch_machine$ac_delim
23816 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23818 elif $ac_last_try; then
23819 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23820 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23821 { (exit 1); exit 1; }; }
23823 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23827 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23828 if test -n "$ac_eof"; then
23829 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23830 ac_eof
=`expr $ac_eof + 1`
23833 cat >>$CONFIG_STATUS <<_ACEOF
23834 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23835 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23838 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23839 s/^/s,@/; s/!/@,|#_!!_#|/
23842 s/'"$ac_delim"'$/,g/; t
23844 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23845 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23846 rm -f conf$
$subs.
sed
23847 cat >>$CONFIG_STATUS <<_ACEOF
23853 for ac_last_try
in false false false false false
:; do
23854 cat >conf$
$subs.
sed <<_ACEOF
23855 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23856 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23857 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23858 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23859 machfile!$machfile$ac_delim
23860 opsysfile!$opsysfile$ac_delim
23861 carbon_appdir!$carbon_appdir$ac_delim
23862 LTLIBOBJS!$LTLIBOBJS$ac_delim
23865 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23867 elif $ac_last_try; then
23868 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23869 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23870 { (exit 1); exit 1; }; }
23872 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23876 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23877 if test -n "$ac_eof"; then
23878 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23879 ac_eof
=`expr $ac_eof + 1`
23882 cat >>$CONFIG_STATUS <<_ACEOF
23883 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23884 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23887 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23888 s/^/s,@/; s/!/@,|#_!!_#|/
23891 s/'"$ac_delim"'$/,g/; t
23893 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23894 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23895 rm -f conf$
$subs.
sed
23896 cat >>$CONFIG_STATUS <<_ACEOF
23903 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23904 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23905 # trailing colons and then remove the whole line if VPATH becomes empty
23906 # (actually we leave an empty line to preserve line numbers).
23907 if test "x$srcdir" = x.
; then
23908 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23909 s/:*\$(srcdir):*/:/
23910 s/:*\${srcdir}:*/:/
23912 s/^\([^=]*=[ ]*\):*/\1/
23918 cat >>$CONFIG_STATUS <<\_ACEOF
23919 fi # test -n "$CONFIG_FILES"
23922 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23925 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23927 case $ac_mode$ac_tag in
23929 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23930 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23931 { (exit 1); exit 1; }; };;
23932 :[FH
]-) ac_tag
=-:-;;
23933 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23950 -) ac_f
="$tmp/stdin";;
23951 *) # Look for the file first in the build tree, then in the source tree
23952 # (if the path is not absolute). The absolute path cannot be DOS-style,
23953 # because $ac_f cannot contain `:'.
23957 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23959 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23960 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23961 { (exit 1); exit 1; }; };;
23963 ac_file_inputs
="$ac_file_inputs $ac_f"
23966 # Let's still pretend it is `configure' which instantiates (i.e., don't
23967 # use $as_me), people would be surprised to read:
23968 # /* config.h. Generated by config.status. */
23969 configure_input
="Generated from "`IFS=:
23970 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23971 if test x
"$ac_file" != x-
; then
23972 configure_input
="$ac_file. $configure_input"
23973 { echo "$as_me:$LINENO: creating $ac_file" >&5
23974 echo "$as_me: creating $ac_file" >&6;}
23978 *:-:* |
*:-) cat >"$tmp/stdin";;
23983 ac_dir
=`$as_dirname -- "$ac_file" ||
23984 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23985 X"$ac_file" : 'X\(//\)[^/]' \| \
23986 X"$ac_file" : 'X\(//\)$' \| \
23987 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23993 /^X\(\/\/\)[^/].*/{
24008 -*) as_dir
=.
/$as_dir;;
24010 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24014 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24015 *) as_qdir
=$as_dir;;
24017 as_dirs
="'$as_qdir' $as_dirs"
24018 as_dir
=`$as_dirname -- "$as_dir" ||
24019 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24020 X"$as_dir" : 'X\(//\)[^/]' \| \
24021 X"$as_dir" : 'X\(//\)$' \| \
24022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24028 /^X\(\/\/\)[^/].*/{
24041 test -d "$as_dir" && break
24043 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24044 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24045 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24046 { (exit 1); exit 1; }; }; }
24050 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24052 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24053 # A ".." for each directory in $ac_dir_suffix.
24054 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24055 case $ac_top_builddir_sub in
24056 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24057 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24060 ac_abs_top_builddir
=$ac_pwd
24061 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24062 # for backward compatibility:
24063 ac_top_builddir
=$ac_top_build_prefix
24066 .
) # We are building in place.
24068 ac_top_srcdir
=$ac_top_builddir_sub
24069 ac_abs_top_srcdir
=$ac_pwd ;;
24070 [\\/]* | ?
:[\\/]* ) # Absolute name.
24071 ac_srcdir
=$srcdir$ac_dir_suffix;
24072 ac_top_srcdir
=$srcdir
24073 ac_abs_top_srcdir
=$srcdir ;;
24074 *) # Relative name.
24075 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24076 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24077 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24079 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24089 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24090 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 # If the template does not know about datarootdir, expand it.
24096 # FIXME: This hack should be removed a few years after 2.60.
24097 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24099 case `sed -n '/datarootdir/ {
24108 ' $ac_file_inputs` in
24109 *datarootdir
*) ac_datarootdir_seen
=yes;;
24110 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24111 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24112 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24114 cat >>$CONFIG_STATUS <<_ACEOF
24115 ac_datarootdir_hack='
24116 s&@datadir@&$datadir&g
24117 s&@docdir@&$docdir&g
24118 s&@infodir@&$infodir&g
24119 s&@localedir@&$localedir&g
24120 s&@mandir@&$mandir&g
24121 s&\\\${datarootdir}&$datarootdir&g' ;;
24125 # Neutralize VPATH when `$srcdir' = `.'.
24126 # Shell code in configure.ac might set extrasub.
24127 # FIXME: do we really want to maintain this feature?
24128 cat >>$CONFIG_STATUS <<_ACEOF
24132 cat >>$CONFIG_STATUS <<\_ACEOF
24134 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24135 s
&@configure_input@
&$configure_input&;t t
24136 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24137 s
&@srcdir@
&$ac_srcdir&;t t
24138 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24139 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24140 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24141 s
&@builddir@
&$ac_builddir&;t t
24142 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24143 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24144 s
&@INSTALL@
&$ac_INSTALL&;t t
24145 $ac_datarootdir_hack
24146 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24148 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24149 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24150 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24151 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24152 which seems to be undefined. Please make sure it is defined." >&5
24153 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24154 which seems to be undefined. Please make sure it is defined." >&2;}
24158 -) cat "$tmp/out"; rm -f "$tmp/out";;
24159 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24168 # Transform confdefs.h into a sed script `conftest.defines', that
24169 # substitutes the proper values into config.h.in to produce config.h.
24170 rm -f conftest.defines conftest.
tail
24171 # First, append a space to every undef/define line, to ease matching.
24172 echo 's/$/ /' >conftest.defines
24173 # Then, protect against being on the right side of a sed subst, or in
24174 # an unquoted here document, in config.status. If some macros were
24175 # called several times there might be several #defines for the same
24176 # symbol, which is useless. But do not sort them, since the last
24177 # AC_DEFINE must be honored.
24178 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24179 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24180 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24181 # PARAMS is the parameter list in the macro definition--in most cases, it's
24182 # just an empty string.
24183 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24184 ac_dB
='\\)[ (].*,\\1define\\2'
24192 s/^[ ]*#[ ]*define[ ][ ]*//
24197 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24198 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24199 ' >>conftest.defines
24201 # Remove the space that was appended to ease matching.
24202 # Then replace #undef with comments. This is necessary, for
24203 # example, in the case of _POSIX_SOURCE, which is predefined and required
24204 # on some systems where configure will not decide to define it.
24205 # (The regexp can be short, since the line contains either #define or #undef.)
24207 s,^[ #]*u.*,/* & */,' >>conftest.defines
24209 # Break up conftest.defines:
24210 ac_max_sed_lines
=50
24212 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24213 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24214 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24216 ac_in
='$ac_file_inputs'
24217 ac_out
='"$tmp/out1"'
24218 ac_nxt
='"$tmp/out2"'
24222 # Write a here document:
24223 cat >>$CONFIG_STATUS <<_ACEOF
24224 # First, check the format of the line:
24225 cat >"\$tmp/defines.sed" <<\\CEOF
24226 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24227 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24231 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24233 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24234 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24235 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24236 grep . conftest.
tail >/dev
/null ||
break
24237 rm -f conftest.defines
24238 mv conftest.
tail conftest.defines
24240 rm -f conftest.defines conftest.
tail
24242 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244 if test x
"$ac_file" != x-
; then
24245 echo "/* $configure_input */" >"$tmp/config.h"
24246 cat "$ac_result" >>"$tmp/config.h"
24247 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24248 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24249 echo "$as_me: $ac_file is unchanged" >&6;}
24252 mv "$tmp/config.h" $ac_file
24255 echo "/* $configure_input */"
24261 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24262 echo "$as_me: executing $ac_file commands" >&6;}
24267 case $ac_file$ac_mode in
24270 ### Make the necessary directories, if they don't exist.
24271 for dir
in etc lisp
; do
24272 test -d ${dir} || mkdir
${dir}
24275 # Build src/Makefile from ${srcdir}/src/Makefile.c
24276 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24277 # This must be done after src/config.h is built, since we rely on that file.
24279 # Now get this: Some word that is part of the ${srcdir} directory name
24280 # or the ${configuration} value might, just might, happen to be an
24281 # identifier like `sun4' or `i386' or something, and be predefined by
24282 # the C preprocessor to some helpful value like 1, or maybe the empty
24283 # string. Needless to say consequent macro substitutions are less
24284 # than conducive to the makefile finding the correct directory.
24285 undefs
="`echo $top_srcdir $configuration $canonical |
24286 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24287 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24290 echo creating src
/epaths.h
24291 ${MAKE-make} epaths-force
24293 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24294 # `..' to `. .' unless invoked with -traditional
24296 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24297 CPPFLAGS
="$CPPFLAGS -traditional"
24300 echo creating lib-src
/Makefile
24302 rm -f junk.c junk1.c junk2.c
24303 sed -e '/start of cpp stuff/q' \
24304 < Makefile.c
> junk1.c
24305 sed -e '1,/start of cpp stuff/d'\
24306 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24307 < Makefile.c
> junk.c
24308 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24309 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24310 cat junk1.c junk2.c
> Makefile.new
24311 rm -f junk.c junk1.c junk2.c
24312 chmod 444 Makefile.new
24313 mv -f Makefile.new Makefile
24316 echo creating src
/Makefile
24318 rm -f junk.c junk1.c junk2.c
24319 sed -e '/start of cpp stuff/q' \
24320 < Makefile.c
> junk1.c
24321 sed -e '1,/start of cpp stuff/d'\
24322 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24323 < Makefile.c
> junk.c
24324 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24325 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24326 cat junk1.c junk2.c
> Makefile.new
24327 rm -f junk.c junk1.c junk2.c
24328 chmod 444 Makefile.new
24329 mv -f Makefile.new Makefile
24332 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24333 echo creating src
/.gdbinit
24334 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24337 # This is how we know whether to re-run configure in certain cases.
24338 touch src
/config.stamp
24346 { (exit 0); exit 0; }
24348 chmod +x
$CONFIG_STATUS
24349 ac_clean_files
=$ac_clean_files_save
24352 # configure is writing to config.log, and then calls config.status.
24353 # config.status does its own redirection, appending to config.log.
24354 # Unfortunately, on DOS this fails, as config.log is still kept open
24355 # by configure, so config.status won't be able to write to it; its
24356 # output is simply discarded. So we exec the FD to /dev/null,
24357 # effectively closing config.log, so it can be properly (re)opened and
24358 # appended to by config.status. When coming back to configure, we
24359 # need to make the FD available again.
24360 if test "$no_create" != yes; then
24362 ac_config_status_args
=
24363 test "$silent" = yes &&
24364 ac_config_status_args
="$ac_config_status_args --quiet"
24366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24369 # would make configure fail if this is the last instruction.
24370 $ac_cs_success ||
{ (exit 1); exit 1; }