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; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1905 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1906 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It
's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2030 srcdir
="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2059 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2062 ac_install_sh
="$ac_aux_dir/install-sh -c"
2064 elif test -f "$ac_dir/install.sh"; then
2066 ac_install_sh
="$ac_aux_dir/install.sh -c"
2068 elif test -f "$ac_dir/shtool"; then
2070 ac_install_sh
="$ac_aux_dir/shtool install -c"
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_build_alias
=$build_alias
2101 test "x$ac_build_alias" = x
&&
2102 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x
&&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test "x$host_alias" = x
; then
2141 ac_cv_host
=$ac_cv_build
2143 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 configuration
=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine
='' opsys
='' unported
=no
2201 case "${canonical}" in
2206 case "${canonical}" in
2207 alpha
*-*-freebsd*) machine
=alpha
;;
2208 ia64-
*-freebsd*) machine
=ia64
;;
2209 sparc64-
*-freebsd*) machine
=sparc
;;
2210 powerpc-
*-freebsd*) machine
=macppc
;;
2211 i
[3456]86-*-freebsd*) machine
=intel386
;;
2212 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2219 if test -f /usr
/lib
/crti.o
; then
2221 cat >>confdefs.h
<<\_ACEOF
2227 case "${canonical}" in
2228 alpha
*-*-netbsd*) machine
=alpha
;;
2229 i
[3456]86-*-netbsd*) machine
=intel386
;;
2231 # This is somewhat bogus.
2232 machine
=hp9000s300
;;
2233 mips-
*-netbsd*) machine
=pmax
;;
2234 mipsel-
*-netbsd*) machine
=pmax
;;
2235 mipseb-
*-netbsd*) machine
=pmax
;;
2236 ns32k-
*-netbsd*) machine
=ns32000
;;
2237 powerpc-
*-netbsd*) machine
=macppc
;;
2238 sparc
*-*-netbsd*) machine
=sparc
;;
2239 vax-
*-netbsd*) machine
=vax
;;
2240 arm-
*-netbsd*) machine
=arm
;;
2241 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2242 hppa-
*-netbsd*) machine
=hp800
;;
2243 shle-
*-netbsd*) machine
=sh3el
;;
2250 case "${canonical}" in
2251 alpha
*-*-openbsd*) machine
=alpha
;;
2252 arm-
*-openbsd*) machine
=arm
;;
2253 hppa-
*-openbsd*) machine
=hp9000s300
;;
2254 i386-
*-openbsd*) machine
=intel386
;;
2255 m68k-
*-openbsd*) machine
=hp9000s300
;;
2256 m88k-
*-openbsd*) machine
=aviion
;;
2257 mips64-
*-openbsd*) machine
=mips64
;;
2258 powerpc-
*-openbsd*) machine
=macppc
;;
2259 sh-
*-openbsd*) machine
=sh3el
;;
2260 sparc
*-*-openbsd*) machine
=sparc
;;
2261 vax-
*-openbsd*) machine
=vax
;;
2262 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2269 case "${canonical}" in
2270 i
[3456]86-*-lynxos*) machine
=intel386
;;
2271 powerpc-
*-lynxos*) machine
=powerpc
;;
2276 arm-acorn-riscix1.1
* )
2277 machine
=acorn opsys
=riscix1-1
2279 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine
=acorn opsys
=riscix12
2288 case "${canonical}" in
2289 i
[345]86-*-bsdi*) machine
=intel386
;;
2290 sparc-
*-bsdi*) machine
=sparc
;;
2291 powerpc-
*-bsdi*) machine
=macppc
;;
2293 case "${canonical}" in
2294 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2295 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2296 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2297 *-*-bsdi3* ) opsys
=bsdos3
;;
2298 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2309 machine
=alliant4 opsys
=bsd4-2
2312 machine
=alliant-2800 opsys
=bsd4-3
2315 ## Alpha (DEC) machines.
2317 machine
=alpha opsys
=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2320 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP
=/usr
/bin
/cpp
2326 case "${canonical}" in
2327 alpha
*-dec-osf[5-9]*)
2332 alpha
*-*-linux-gnu* )
2333 machine
=alpha opsys
=gnu-linux
2337 machine
=arm opsys
=gnu-linux
2342 machine
=altos opsys
=usg5-2
2347 machine
=amdahl opsys
=usg5-2-2
2350 ## Apollo, Domain/OS
2352 machine
=apollo opsys
=bsd4-3
2355 ## Apple Darwin / Mac OS X
2357 case "${canonical}" in
2358 i
[3456]86-* ) machine
=intel386
;;
2359 powerpc-
* ) machine
=powermac
;;
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP
="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw
/include
&& test -d /sw
/lib
; then
2367 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2368 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2375 machine
=att3b opsys
=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2380 machine
=7300 opsys
=usg5-2-2
2385 machine
=ibmrs6000 opsys
=aix3-2
2390 machine
=dpx2 opsys
=usg5-3
2395 machine
=sps7 opsys
=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd
* )
2405 machine
=celerity opsys
=bsd4-2
2409 ## What operating systems does this chip run that Emacs has been
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2418 mips-compaq-nonstopux
* )
2419 machine
=nonstopux opsys
=nonstopux
2423 *-convex-bsd* |
*-convex-convexos* )
2424 machine
=convex opsys
=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP
="cc -E -P"
2430 i
[3456]86-cubix-sysv* )
2431 machine
=intel386 opsys
=usg5-3
2435 cydra
*-cydrome-sysv* )
2436 machine
=cydra5 opsys
=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2446 machine
=aviion opsys
=dgux4
2448 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine
=aviion opsys
=dgux5-4-3
2453 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2454 machine
=aviion opsys
=dgux5-4r2
2457 machine
=aviion opsys
=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i
[345]86-dg-dguxR4* )
2464 machine
=aviion-intel opsys
=dgux4
2468 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2469 machine
=pmax opsys
=bsd4-2
2471 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2472 machine
=pmax opsys
=bsd4-3
2475 machine
=pmax opsys
=ultrix4-3
2478 machine
=pmax opsys
=osf1
2480 mips-dec-mach_bsd4.3
* )
2481 machine
=pmax opsys
=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2486 machine
=delta opsys
=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2489 if test -s /etc
/167config
2490 then CC
="gnucc -m68040"
2491 else CC
="gnucc -m68881"
2494 if test -z "`type gcc | grep 'not found'`"
2500 m88k-motorola-sysv4
* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine
=delta88k opsys
=usg5-4-2
2507 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2508 machine
=delta88k opsys
=usg5-3
2513 machine
=dual opsys
=usg5-2
2515 m68
*-dual-uniplus* )
2516 machine
=dual opsys
=unipl5-2
2521 machine
=elxsi opsys
=usg5-2
2526 machine
=ns16000 opsys
=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2534 machine
=gould opsys
=bsd4-2
2537 machine
=gould opsys
=bsd4-3
2540 machine
=gould-np1 opsys
=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2549 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2551 NON_GNU_CPP
="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2555 machine
=nh3000 opsys
=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix
)
2559 machine
=nh6000 opsys
=powerunix
2560 NON_GNU_CPP
="cc -Xo -E -P"
2562 ## SR2001/SR2201 running HI-UX/MPP
2563 hppa1.1
-hitachi-hiuxmpp* )
2564 machine
=sr2k opsys
=hiuxmpp
2566 hppa1.1
-hitachi-hiuxwe2* )
2567 machine
=sr2k opsys
=hiuxwe2
2570 xps
*-honeywell-sysv* )
2571 machine
=xps100 opsys
=usg5-2
2574 ## HP 9000 series 200 or 300
2576 machine
=hp9000s300 opsys
=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2584 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2585 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2586 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2587 *) machine
=hp9000s300 opsys
=hpux
;;
2591 ## HP 9000 series 700 and 800, running HP/UX
2593 machine
=hp800 opsys
=hpux
2596 machine
=hp800 opsys
=hpux8
2598 hppa
*-hp-hpux9shr* )
2599 machine
=hp800 opsys
=hpux9shr
2602 machine
=hp800 opsys
=hpux9
2604 hppa
*-hp-hpux10.2
* )
2605 machine
=hp800 opsys
=hpux10-20
2608 machine
=hp800 opsys
=hpux10
2610 hppa
*-hp-hpux1[1-9]* )
2611 machine
=hp800 opsys
=hpux11
2612 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2615 hppa
*-*-linux-gnu* )
2616 machine
=hp800 opsys
=gnu-linux
2619 ## HP 9000 series 700 and 800, running HP/UX
2621 ## Cross-compilation? Nah!
2622 case "`uname -r`" in
2623 ## Someone's system reports A.B8.05 for this.
2624 ## I wonder what other possibilities there are.
2625 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2626 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2627 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2628 *) machine
=hp800 opsys
=hpux10
;;
2632 machine
=hp800 opsys
=nextstep
2637 machine
=orion opsys
=bsd4-2
2639 clipper-orion-bsd
* )
2640 machine
=orion105 opsys
=bsd4-2
2644 i
[3456]86-ibm-aix1.1
* )
2645 machine
=ibmps2-aix opsys
=usg5-2-2
2647 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2648 machine
=ibmps2-aix opsys
=usg5-3
2651 machine
=ibm370aix opsys
=usg5-3
2654 machine
=ibms390 opsys
=gnu-linux
2656 s390x-
*-linux-gnu* )
2657 machine
=ibms390x opsys
=gnu-linux
2659 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2660 machine
=ibmrs6000 opsys
=aix3-1
2662 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2663 machine
=ibmrs6000 opsys
=aix3-2-5
2665 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2666 machine
=ibmrs6000 opsys
=aix4-1
2668 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2669 machine
=ibmrs6000 opsys
=aix4-2
2671 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2672 machine
=ibmrs6000 opsys
=aix4-2
2674 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2675 machine
=ibmrs6000 opsys
=aix4-2
2677 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2678 machine
=ibmrs6000 opsys
=aix4
2680 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2681 machine
=ibmrs6000 opsys
=aix4-1
2683 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2684 machine
=ibmrs6000 opsys
=aix3-2
2687 machine
=ibmrt opsys
=bsd4-3
2690 machine
=ibmrt opsys
=bsd4-2
2693 machine
=ibmrt opsys
=bsd4-3
2696 machine
=ibmrt opsys
=bsd4-2
2699 machine
=ibmrt opsys
=bsd4-3
2702 machine
=ibmrt opsys
=bsd4-3
2705 machine
=ibmrt-aix opsys
=usg5-2-2
2708 ## Integrated Solutions `Optimum V'
2710 machine
=isi-ov opsys
=bsd4-2
2713 machine
=isi-ov opsys
=bsd4-3
2716 ## Intel 386 machines where we do care about the manufacturer
2717 i
[3456]86-intsys-sysv* )
2718 machine
=is386 opsys
=usg5-2-2
2722 i
[3456]86-prime-sysv* )
2723 machine
=i386 opsys
=usg5-3
2726 ## Sequent Symmetry running Dynix
2727 i
[3456]86-sequent-bsd* )
2728 machine
=symmetry opsys
=bsd4-3
2731 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2732 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2733 machine
=sequent-ptx opsys
=ptx4
2734 NON_GNU_CPP
=/lib
/cpp
2737 ## Sequent Symmetry running DYNIX/ptx
2738 ## Use the old cpp rather than the newer ANSI one.
2739 i
[3456]86-sequent-ptx* )
2740 machine
=sequent-ptx opsys
=ptx
2741 NON_GNU_CPP
="/lib/cpp"
2744 ## ncr machine running svr4.3.
2745 i
[3456]86-ncr-sysv4.3
)
2746 machine
=ncr386 opsys
=usg5-4-3
2749 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2750 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2751 i
[3456]86-ncr-sysv* )
2752 machine
=ncr386 opsys
=usg5-4-2
2755 ## Intel Paragon OSF/1
2757 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2762 machine
=i860 opsys
=usg5-4
2763 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2764 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2767 ## Macintosh PowerPC
2768 powerpc
*-*-linux-gnu* )
2769 machine
=macppc opsys
=gnu-linux
2772 ## Masscomp machines
2773 m68
*-masscomp-rtu* )
2774 machine
=masscomp opsys
=rtu
2777 ## Megatest machines
2778 m68
*-megatest-bsd* )
2779 machine
=mega68 opsys
=bsd4-2
2782 ## Workstations sold by MIPS
2783 ## This is not necessarily all workstations using the MIPS processor -
2784 ## Irises are produced by SGI, and DECstations by DEC.
2786 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2787 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2788 ## it gives for choosing between the alternatives seems to be "Use
2789 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2790 ## the BSD world." I'll assume that these are instructions for
2791 ## handling two odd situations, and that every other situation
2792 ## should use mips.h and usg5-2-2, they being listed first.
2795 ## Fall through to the general code at the bottom to decide on the OS.
2797 mips-mips-riscos4
* )
2798 machine
=mips4 opsys
=bsd4-3
2799 NON_GNU_CC
="cc -systype bsd43"
2800 NON_GNU_CPP
="cc -systype bsd43 -E"
2802 mips-mips-riscos5
* )
2803 machine
=mips4 opsys
=riscos5
2804 NON_GNU_CC
="cc -systype bsd43"
2805 NON_GNU_CPP
="cc -systype bsd43 -E"
2808 machine
=mips opsys
=bsd4-3
2811 machine
=mips opsys
=usg5-2-2
2815 m68
*-next-* | m68k-
*-nextstep* )
2816 machine
=m68k opsys
=nextstep
2819 ## The complete machine from National Semiconductor
2821 machine
=ns32000 opsys
=usg5-2
2825 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2826 machine
=tower32 opsys
=usg5-2-2
2828 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2829 machine
=tower32v3 opsys
=usg5-3
2834 machine
=ews4800 opsys
=ux4800
2837 ## Nixdorf Targon 31
2838 m68
*-nixdorf-sysv* )
2839 machine
=targon31 opsys
=usg5-2-2
2844 machine
=nu opsys
=usg5-2
2849 machine
=plexus opsys
=usg5-2
2853 ## I don't really have any idea what sort of processor the Pyramid has,
2854 ## so I'm assuming it is its own architecture.
2855 pyramid-pyramid-bsd
* )
2856 machine
=pyramid opsys
=bsd4-2
2860 ns32k-sequent-bsd4.2
* )
2861 machine
=sequent opsys
=bsd4-2
2863 ns32k-sequent-bsd4.3
* )
2864 machine
=sequent opsys
=bsd4-3
2868 mips-siemens-sysv
* | mips-sni-sysv
*)
2869 machine
=mips-siemens opsys
=usg5-4
2870 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2871 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2874 ## Silicon Graphics machines
2875 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2877 machine
=irist opsys
=iris3-5
2879 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2880 machine
=irist opsys
=iris3-6
2884 machine
=iris4d opsys
=irix3-3
2887 machine
=iris4d opsys
=irix4-0
2890 machine
=iris4d opsys
=irix6-5
2891 # Without defining _LANGUAGE_C, things get masked out in the headers
2892 # so that, for instance, grepping for `free' in stdlib.h fails and
2893 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2894 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2895 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2898 machine
=iris4d opsys
=irix6-0
2899 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2900 # but presumably it does no harm.
2901 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2902 # -32 probably isn't necessary in later v.6s -- anyone know which?
2903 NON_GCC_TEST_OPTIONS
=-32
2905 mips-sgi-irix5.
[01]* )
2906 machine
=iris4d opsys
=irix5-0
2908 mips-sgi-irix5
* | mips-sgi-irix
* )
2909 machine
=iris4d opsys
=irix5-2
2914 machine
=news opsys
=bsd4-2
2917 machine
=news opsys
=bsd4-3
2919 m68
*-sony-newsos3* | m68
*-sony-news3*)
2920 machine
=news opsys
=bsd4-3
2922 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2923 machine
=news-risc opsys
=bsd4-3
2925 mips-sony-newsos6
* )
2926 machine
=news-r6 opsys
=newsos6
2929 machine
=news-risc opsys
=newsos5
2934 machine
=stride opsys
=usg5-2
2938 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2939 machine
=sparc opsys
=gnu-linux
2942 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2943 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2944 | rs6000-
*-solaris2*)
2945 case "${canonical}" in
2946 m68
*-sunos1* ) machine
=sun1
;;
2947 m68
*-sunos2* ) machine
=sun2
;;
2948 m68
* ) machine
=sun3
;;
2949 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2950 i
[3456]86-*-* ) machine
=intel386
;;
2951 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2952 powerpcle
* ) machine
=powerpcle
;;
2953 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2954 sparc
* ) machine
=sparc
;;
2957 case "${canonical}" in
2958 ## The Sun386 didn't get past 4.0.
2959 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2960 *-sunos4.0
* ) opsys
=sunos4-0
;;
2961 *-sunos4.1.
[3-9]*noshare
)
2962 ## This name is sunos413 instead of sunos4-1-3
2963 ## to avoid a file name conflict on MSDOS.
2965 NON_GNU_CPP
=/usr
/lib
/cpp
2966 NON_GCC_TEST_OPTIONS
=-Bstatic
2967 GCC_TEST_OPTIONS
=-static
2969 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2971 NON_GNU_CPP
=/usr
/lib
/cpp
2973 *-sunos4* |
*-sunos )
2975 NON_GCC_TEST_OPTIONS
=-Bstatic
2976 GCC_TEST_OPTIONS
=-static
2978 *-sunos5.3
* |
*-solaris2.3
* )
2980 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2982 *-sunos5.4
* |
*-solaris2.4
* )
2984 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2987 *-sunos5.5
* |
*-solaris2.5
* )
2989 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2992 *-sunos5.6
* |
*-solaris2.6
* )
2994 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2997 *-sunos5* |
*-solaris* )
2999 ## FIXME: make this into a proper fix that checks the compiler type,
3000 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3001 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3002 ## -Xs prevents spurious whitespace.
3003 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3005 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3010 ## Watch out for a compiler that we know will not work.
3011 case "${canonical}" in
3012 *-solaris* |
*-sunos5* )
3013 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3014 ## /usr/ucb/cc doesn't work;
3015 ## we should find some other compiler that does work.
3023 machine
=sparc opsys
=nextstep
3027 m68
*-tadpole-sysv* )
3028 machine
=tad68k opsys
=usg5-3
3032 tahoe-tahoe-bsd4.2
* )
3033 machine
=tahoe opsys
=bsd4-2
3035 tahoe-tahoe-bsd4.3
* )
3036 machine
=tahoe opsys
=bsd4-3
3039 ## Tandem Integrity S2
3041 machine
=tandem-s2 opsys
=usg5-3
3045 m88k-tektronix-sysv3
* )
3046 machine
=tekxd88 opsys
=usg5-3
3049 ## Tektronix 16000 box (6130?)
3050 ns16k-tektronix-bsd
* )
3051 machine
=ns16000 opsys
=bsd4-2
3054 ## src/m/tek4300.h hints that this is a m68k machine.
3055 m68
*-tektronix-bsd* )
3056 machine
=tek4300 opsys
=bsd4-3
3060 ## We seem to have lost the machine-description file titan.h!
3062 machine
=titan opsys
=usg5-3
3065 ## Ustation E30 (SS5E)
3066 m68
*-unisys-uniplus* )
3067 machine
=ustation opsystem
=unipl5-2
3073 case "${canonical}" in
3074 *-bsd4.1
* ) opsys
=bsd4-1
;;
3075 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3076 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3077 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3078 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3079 *-vms* ) opsys
=vms
;;
3085 ns16k-whitechapel-
* )
3087 ## We don't know what sort of OS runs on these; we'll let the
3088 ## operating system guessing code below try.
3093 machine
=wicat opsys
=usg5-2
3098 machine
=ia64 opsys
=gnu-linux
3101 ## Intel 386 machines where we don't care about the manufacturer
3104 case "${canonical}" in
3105 *-cygwin ) opsys
=cygwin
;;
3106 *-darwin* ) opsys
=darwin
3107 CPP
="${CC-cc} -E -no-cpp-precomp"
3109 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3110 *-isc2.2
* ) opsys
=isc2-2
;;
3111 *-isc4.0
* ) opsys
=isc4-0
;;
3112 *-isc4.
* ) opsys
=isc4-1
3113 GCC_TEST_OPTIONS
=-posix
3114 NON_GCC_TEST_OPTIONS
=-Xp
3116 *-isc* ) opsys
=isc3-0
;;
3117 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3118 *-esix* ) opsys
=esix
;;
3119 *-xenix* ) opsys
=xenix
;;
3120 *-linux-gnu* ) opsys
=gnu-linux
;;
3121 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3122 *-sco3.2v5
* ) opsys
=sco5
3123 NON_GNU_CPP
=/lib
/cpp
3124 # Prevent -belf from being passed to $CPP.
3125 # /lib/cpp does not accept it.
3126 OVERRIDE_CPPFLAGS
=" "
3128 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3129 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3130 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3131 *-386bsd* ) opsys
=386bsd
;;
3132 *-nextstep* ) opsys
=nextstep
;;
3133 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3137 ## m68k Linux-based GNU system
3139 machine
=m68k opsys
=gnu-linux
3142 ## Mips Linux-based GNU system
3143 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3144 machine
=mips opsys
=gnu-linux
3148 sparc-fujitsu-sysv4
* )
3149 machine
=sparc opsys
=uxpds
3150 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3155 f301-fujitsu-uxpv4.1
)
3156 machine
=f301 opsys
=uxpv
3159 ## AMD x86-64 Linux-based GNU system
3160 x86_64-
*-linux-gnu* )
3161 machine
=amdx86-64 opsys
=gnu-linux
3164 ## Tensilica Xtensa Linux-based GNU system
3165 xtensa-
*-linux-gnu* )
3166 machine
=xtensa opsys
=gnu-linux
3174 ### If the code above didn't choose an operating system, just choose
3175 ### an operating system based on the configuration name. You really
3176 ### only want to use this when you have no idea what the right
3177 ### operating system is; if you know what operating systems a machine
3178 ### runs, it's cleaner to make it explicit in the case statement
3180 if test x
"${opsys}" = x
; then
3181 case "${canonical}" in
3182 *-gnu* ) opsys
=gnu
;;
3183 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3184 *-bsd4.2
) opsys
=bsd4-2
;;
3185 *-bsd4.3
) opsys
=bsd4-3
;;
3186 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3187 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3188 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3189 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3190 *-sysv4.2uw
* ) opsys
=unixware
;;
3191 *-sysv5uw* ) opsys
=unixware
;;
3192 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3193 *-sysv4.1
* |
*-sysvr4.1
* )
3194 NON_GNU_CPP
=/usr
/lib
/cpp
3196 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3197 if [ x
$NON_GNU_CPP = x
]; then
3198 if [ -f /usr
/ccs
/lib
/cpp
]; then
3199 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3201 NON_GNU_CPP
=/lib
/cpp
3205 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3214 if test $unported = yes; then
3215 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3216 Check \`etc/MACHINES' for recognized configuration names." >&5
3217 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3218 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3219 { (exit 1); exit 1; }; }
3222 machfile
="m/${machine}.h"
3223 opsysfile
="s/${opsys}.h"
3226 #### Choose a compiler.
3227 test -n "$CC" && cc_specified
=yes
3229 # Save the value of CFLAGS that the user specified.
3230 SPECIFIED_CFLAGS
="$CFLAGS"
3233 "yes" ) CC
="gcc" GCC
=yes ;;
3234 "no" ) : ${CC=cc} ;;
3238 ac_cpp
='$CPP $CPPFLAGS'
3239 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3242 if test -n "$ac_tool_prefix"; then
3243 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3244 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3247 if test "${ac_cv_prog_CC+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 if test -n "$CC"; then
3251 ac_cv_prog_CC
="$CC" # Let the user override the test.
3253 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3257 test -z "$as_dir" && as_dir
=.
3258 for ac_exec_ext
in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3271 if test -n "$CC"; then
3272 { echo "$as_me:$LINENO: result: $CC" >&5
3273 echo "${ECHO_T}$CC" >&6; }
3275 { echo "$as_me:$LINENO: result: no" >&5
3276 echo "${ECHO_T}no" >&6; }
3281 if test -z "$ac_cv_prog_CC"; then
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc
; ac_word
=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -n "$ac_ct_CC"; then
3291 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_ac_ct_CC
="gcc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3311 if test -n "$ac_ct_CC"; then
3312 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3313 echo "${ECHO_T}$ac_ct_CC" >&6; }
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3319 if test "x$ac_ct_CC" = x
; then
3322 case $cross_compiling:$ac_tool_warned in
3324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3325 whose name does not start with the host triplet. If you think this
3326 configuration is useful to you, please write to autoconf@gnu.org." >&5
3327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3328 whose name does not start with the host triplet. If you think this
3329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3330 ac_tool_warned
=yes ;;
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$CC"; then
3348 ac_cv_prog_CC
="$CC" # Let the user override the test.
3350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir
=.
3355 for ac_exec_ext
in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3368 if test -n "$CC"; then
3369 { echo "$as_me:$LINENO: result: $CC" >&5
3370 echo "${ECHO_T}$CC" >&6; }
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3379 if test -z "$CC"; then
3380 # Extract the first word of "cc", so it can be a program name with args.
3381 set dummy cc
; ac_word
=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC
="$CC" # Let the user override the test.
3391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3395 test -z "$as_dir" && as_dir
=.
3396 for ac_exec_ext
in '' $ac_executable_extensions; do
3397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3399 ac_prog_rejected
=yes
3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 if test $ac_prog_rejected = yes; then
3411 # We found a bogon in the path, so make sure we never use it.
3412 set dummy
$ac_cv_prog_CC
3414 if test $# != 0; then
3415 # We chose a different compiler from the bogus one.
3416 # However, it has the same basename, so the bogon will be chosen
3417 # first if we set CC to just the basename; use the full file name.
3419 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 for ac_prog
in cl.exe
3439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3440 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC
="$CC" # Let the user override the test.
3449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3453 test -z "$as_dir" && as_dir
=.
3454 for ac_exec_ext
in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test -n "$CC"; then
3468 { echo "$as_me:$LINENO: result: $CC" >&5
3469 echo "${ECHO_T}$CC" >&6; }
3471 { echo "$as_me:$LINENO: result: no" >&5
3472 echo "${ECHO_T}no" >&6; }
3476 test -n "$CC" && break
3479 if test -z "$CC"; then
3481 for ac_prog
in cl.exe
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy
$ac_prog; ac_word
=$2
3485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 if test -n "$ac_ct_CC"; then
3491 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir
=.
3498 for ac_exec_ext
in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_ac_ct_CC
="$ac_prog"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3510 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3511 if test -n "$ac_ct_CC"; then
3512 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3513 echo "${ECHO_T}$ac_ct_CC" >&6; }
3515 { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3520 test -n "$ac_ct_CC" && break
3523 if test "x$ac_ct_CC" = x
; then
3526 case $cross_compiling:$ac_tool_warned in
3528 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3529 whose name does not start with the host triplet. If you think this
3530 configuration is useful to you, please write to autoconf@gnu.org." >&5
3531 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3532 whose name does not start with the host triplet. If you think this
3533 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3534 ac_tool_warned
=yes ;;
3543 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3544 See \`config.log' for more details." >&5
3545 echo "$as_me: error: no acceptable C compiler found in \$PATH
3546 See \`config.log' for more details." >&2;}
3547 { (exit 1); exit 1; }; }
3549 # Provide some information about the compiler.
3550 echo "$as_me:$LINENO: checking for C compiler version" >&5
3551 ac_compiler
=`set X $ac_compile; echo $2`
3552 { (ac_try
="$ac_compiler --version >&5"
3554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558 (eval "$ac_compiler --version >&5") 2>&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); }
3562 { (ac_try="$ac_compiler -v >&5"
3564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3565 *) ac_try_echo
=$ac_try;;
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler -v >&5") 2>&5
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try
="$ac_compiler -V >&5"
3574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -V >&5") 2>&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3598 ac_clean_files_save=$ac_clean_files
3599 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3600 # Try to create an executable without -o first, disregard a.out.
3601 # It will help us diagnose broken compilers, and finding out an intuition
3603 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3604 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3605 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3607 # List of possible output files, starting from the most likely.
3608 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3609 # only as a last resort. b.out is created by i960 compilers.
3610 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3612 # The IRIX 6 linker writes into existing files which may not be
3613 # executable, retaining their permissions. Remove them first so a
3614 # subsequent execution test works.
3616 for ac_file in $ac_files
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3625 if { (ac_try="$ac_link_default"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_link_default") 2>&5
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; then
3635 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3636 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3637 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3638 # so that the user can short-circuit this test for compilers unknown to
3640 for ac_file
in $ac_files ''
3642 test -f "$ac_file" ||
continue
3644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3647 # We found the default executable, but exeext='' is most
3651 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3653 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 # We set ac_cv_exeext here because the later test for it is not
3656 # safe: cross compilers may not add the suffix if given an `-o'
3657 # argument, so we may need to know it at that point already.
3658 # Even if this section looks crufty: it has the advantage of
3665 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3671 { echo "$as_me:$LINENO: result: $ac_file" >&5
3672 echo "${ECHO_T}$ac_file" >&6; }
3673 if test -z "$ac_file"; then
3674 echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.
$ac_ext >&5
3677 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3678 See \`config.log' for more details." >&5
3679 echo "$as_me: error: C compiler cannot create executables
3680 See \`config.log' for more details." >&2;}
3681 { (exit 77); exit 77; }; }
3684 ac_exeext
=$ac_cv_exeext
3686 # Check that the compiler produces executables we can run. If not, either
3687 # the compiler is broken, or we cross compile.
3688 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3689 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3690 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3691 # If not cross compiling, check that we can run a simple program.
3692 if test "$cross_compiling" != yes; then
3693 if { ac_try
='./$ac_file'
3694 { (case "(($ac_try" in
3695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3699 (eval "$ac_try") 2>&5
3701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702 (exit $ac_status); }; }; then
3705 if test "$cross_compiling" = maybe; then
3708 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3709 If you meant to cross compile, use \`--host'.
3710 See \`config.log' for more details.
" >&5
3711 echo "$as_me: error
: cannot run C compiled programs.
3712 If you meant to cross compile
, use \
`--host'.
3713 See \`config.log
' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3718 { echo "$as_me:$LINENO: result: yes" >&5
3719 echo "${ECHO_T}yes" >&6; }
3721 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3722 ac_clean_files=$ac_clean_files_save
3723 # Check that the compiler produces executables we can run. If not, either
3724 # the compiler is broken, or we cross compile.
3725 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3726 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3727 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3728 echo "${ECHO_T}$cross_compiling" >&6; }
3730 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3731 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3732 if { (ac_try="$ac_link"
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_link") 2>&5
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3743 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3746 for ac_file
in conftest.exe conftest conftest.
*; do
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3750 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3757 See \`config.log' for more details." >&5
3758 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details." >&2;}
3760 { (exit 1); exit 1; }; }
3763 rm -f conftest
$ac_cv_exeext
3764 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3765 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3767 rm -f conftest.
$ac_ext
3768 EXEEXT
=$ac_cv_exeext
3770 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3771 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3772 if test "${ac_cv_objext+set}" = set; then
3773 echo $ECHO_N "(cached) $ECHO_C" >&6
3775 cat >conftest.
$ac_ext <<_ACEOF
3778 cat confdefs.h
>>conftest.
$ac_ext
3779 cat >>conftest.
$ac_ext <<_ACEOF
3780 /* end confdefs.h. */
3790 rm -f conftest.o conftest.obj
3791 if { (ac_try
="$ac_compile"
3793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>&5
3799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); }; then
3801 for ac_file in conftest.o conftest.obj conftest.*; do
3802 test -f "$ac_file" || continue;
3804 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3805 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3810 echo "$as_me: failed program was:" >&5
3811 sed 's/^/| /' conftest.$ac_ext >&5
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3814 See \`config.log
' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3816 See \`config.log' for more details.
" >&2;}
3817 { (exit 1); exit 1; }; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3823 echo "${ECHO_T}$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3826 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3827 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3828 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3829 echo $ECHO_N "(cached
) $ECHO_C" >&6
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3849 rm -f conftest.$ac_objext
3850 if { (ac_try="$ac_compile"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3856 (eval "$ac_compile") 2>conftest.er1
3858 grep -v '^ *+' conftest.er1 >conftest.err
3860 cat conftest.err >&5
3861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3862 (exit $ac_status); } && {
3863 test -z "$ac_c_werror_flag" ||
3864 test ! -s conftest.err
3865 } && test -s conftest.$ac_objext; then
3868 echo "$as_me: failed program was
:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3878 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3879 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3880 GCC=`test $ac_compiler_gnu = yes && echo yes`
3881 ac_test_CFLAGS=${CFLAGS+set}
3882 ac_save_CFLAGS=$CFLAGS
3883 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3884 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3885 if test "${ac_cv_prog_cc_g+set}" = set; then
3886 echo $ECHO_N "(cached
) $ECHO_C" >&6
3888 ac_save_c_werror_flag=$ac_c_werror_flag
3889 ac_c_werror_flag=yes
3892 cat >conftest.$ac_ext <<_ACEOF
3895 cat confdefs.h >>conftest.$ac_ext
3896 cat >>conftest.$ac_ext <<_ACEOF
3897 /* end confdefs.h. */
3907 rm -f conftest.$ac_objext
3908 if { (ac_try="$ac_compile"
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
3926 echo "$as_me: failed program was
:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3930 cat >conftest.$ac_ext <<_ACEOF
3933 cat confdefs.h >>conftest.$ac_ext
3934 cat >>conftest.$ac_ext <<_ACEOF
3935 /* end confdefs.h. */
3945 rm -f conftest.$ac_objext
3946 if { (ac_try="$ac_compile"
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3952 (eval "$ac_compile") 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3958 (exit $ac_status); } && {
3959 test -z "$ac_c_werror_flag" ||
3960 test ! -s conftest.err
3961 } && test -s conftest.$ac_objext; then
3964 echo "$as_me: failed program was
:" >&5
3965 sed 's/^/| /' conftest.$ac_ext >&5
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 cat >conftest.$ac_ext <<_ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3984 rm -f conftest.$ac_objext
3985 if { (ac_try="$ac_compile"
3987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3988 *) ac_try_echo=$ac_try;;
3990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3991 (eval "$ac_compile") 2>conftest.er1
3993 grep -v '^ *+' conftest.er1 >conftest.err
3995 cat conftest.err >&5
3996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3997 (exit $ac_status); } && {
3998 test -z "$ac_c_werror_flag" ||
3999 test ! -s conftest.err
4000 } && test -s conftest.$ac_objext; then
4003 echo "$as_me: failed program was
:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4018 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4019 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4020 if test "$ac_test_CFLAGS" = set; then
4021 CFLAGS=$ac_save_CFLAGS
4022 elif test $ac_cv_prog_cc_g = yes; then
4023 if test "$GCC" = yes; then
4029 if test "$GCC" = yes; then
4035 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4036 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4037 if test "${ac_cv_prog_cc_c89+set}" = set; then
4038 echo $ECHO_N "(cached
) $ECHO_C" >&6
4040 ac_cv_prog_cc_c89=no
4042 cat >conftest.$ac_ext <<_ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4050 #include <sys/types.h>
4051 #include <sys/stat.h>
4052 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4053 struct buf { int x; };
4054 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4055 static char *e (p, i)
4061 static char *f (char * (*g) (char **, int), char **p, ...)
4066 s = g (p, va_arg (v,int));
4071 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4072 function prototypes and stuff, but not '\xHH' hex character constants.
4073 These don't provoke an error unfortunately, instead are silently treated
4074 as 'x'. The following induces an error, until -std is added to get
4075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4076 array size at least. It's necessary to write '\x00'==0 to get something
4077 that's true only with -std. */
4078 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4080 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4081 inside strings and character constants. */
4083 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4085 int test (int i, double x);
4086 struct s1 {int (*f) (int a);};
4087 struct s2 {int (*f) (double a);};
4088 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4094 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4099 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4102 CC="$ac_save_CC $ac_arg"
4103 rm -f conftest.$ac_objext
4104 if { (ac_try="$ac_compile"
4106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4107 *) ac_try_echo=$ac_try;;
4109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4110 (eval "$ac_compile") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1 >conftest.err
4114 cat conftest.err >&5
4115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest.$ac_objext; then
4120 ac_cv_prog_cc_c89=$ac_arg
4122 echo "$as_me: failed program was
:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4128 rm -f core conftest.err conftest.$ac_objext
4129 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4131 rm -f conftest.$ac_ext
4136 case "x
$ac_cv_prog_cc_c89" in
4138 { echo "$as_me:$LINENO: result
: none needed
" >&5
4139 echo "${ECHO_T}none needed
" >&6; } ;;
4141 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4142 echo "${ECHO_T}unsupported
" >&6; } ;;
4144 CC="$CC $ac_cv_prog_cc_c89"
4145 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4146 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4151 ac_cpp='$CPP $CPPFLAGS'
4152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157 # On Suns, sometimes $CPP names a directory.
4158 if test -n "$CPP" && test -d "$CPP"; then
4162 #### Some systems specify a CPP to use unless we are using GCC.
4163 #### Now that we know whether we are using GCC, we can decide whether
4164 #### to use that one.
4165 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4170 #### Some systems specify a CC to use unless we are using GCC.
4171 #### Now that we know whether we are using GCC, we can decide whether
4172 #### to use that one.
4173 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4174 test x$cc_specified != xyes
4179 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4181 CC="$CC $GCC_TEST_OPTIONS"
4184 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4186 CC="$CC $NON_GCC_TEST_OPTIONS"
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4196 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4201 if test -z "$CPP"; then
4202 if test "${ac_cv_prog_CPP+set}" = set; then
4203 echo $ECHO_N "(cached
) $ECHO_C" >&6
4205 # Double quotes because CPP needs to be expanded
4206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4209 for ac_c_preproc_warn_flag in '' yes
4211 # Use a header file that comes with gcc, so configuring glibc
4212 # with a fresh cross-compiler works.
4213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4214 # <limits.h> exists even on freestanding compilers.
4215 # On the NeXT, cc -E runs the code through the compiler's parser,
4216 # not just through cpp. "Syntax error
" is here to catch this case.
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4224 # include <limits.h>
4226 # include <assert.h>
4230 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233 *) ac_try_echo=$ac_try;;
4235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4236 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4238 grep -v '^ *+' conftest.er1 >conftest.err
4240 cat conftest.err >&5
4241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4242 (exit $ac_status); } >/dev/null && {
4243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4244 test ! -s conftest.err
4248 echo "$as_me: failed program was
:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4251 # Broken: fails on valid input.
4255 rm -f conftest.err conftest.$ac_ext
4257 # OK, works on sane cases. Now check whether nonexistent headers
4258 # can be detected and how.
4259 cat >conftest.$ac_ext <<_ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4265 #include <ac_nonexistent.h>
4267 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4273 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4275 grep -v '^ *+' conftest.er1 >conftest.err
4277 cat conftest.err >&5
4278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4279 (exit $ac_status); } >/dev/null && {
4280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4281 test ! -s conftest.err
4283 # Broken: success on invalid input.
4286 echo "$as_me: failed program was
:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4289 # Passes both tests.
4294 rm -f conftest.err conftest.$ac_ext
4297 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298 rm -f conftest.err conftest.$ac_ext
4299 if $ac_preproc_ok; then
4311 { echo "$as_me:$LINENO: result
: $CPP" >&5
4312 echo "${ECHO_T}$CPP" >&6; }
4314 for ac_c_preproc_warn_flag in '' yes
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error
" is here to catch this case.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4347 (exit $ac_status); } >/dev/null && {
4348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4353 echo "$as_me: failed program was
:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 # Broken: fails on valid input.
4360 rm -f conftest.err conftest.$ac_ext
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4388 # Broken: success on invalid input.
4391 echo "$as_me: failed program was
:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 # Passes both tests.
4399 rm -f conftest.err conftest.$ac_ext
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok; then
4407 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4408 See \
`config.log' for more details." >&5
4409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4410 See \`config.log
' for more details." >&2;}
4411 { (exit 1); exit 1; }; }
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4417 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4422 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4423 if test "${ac_cv_path_GREP+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 # Extract the first word of "grep ggrep" to use in msg output
4427 if test -z "$GREP"; then
4428 set dummy grep ggrep; ac_prog_name=$2
4429 if test "${ac_cv_path_GREP+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 ac_path_GREP_found=false
4433 # Loop through the user's path and
test for each of PROGNAME-LIST
4434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4435 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4438 test -z "$as_dir" && as_dir
=.
4439 for ac_prog
in grep ggrep
; do
4440 for ac_exec_ext
in '' $ac_executable_extensions; do
4441 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4442 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4443 # Check for GNU ac_path_GREP and select it if it is found.
4444 # Check for GNU $ac_path_GREP
4445 case `"$ac_path_GREP" --version 2>&1` in
4447 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4450 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4453 cat "conftest.in" "conftest.in" >"conftest.tmp"
4454 mv "conftest.tmp" "conftest.in"
4455 cp "conftest.in" "conftest.nl"
4456 echo 'GREP' >> "conftest.nl"
4457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4458 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4459 ac_count
=`expr $ac_count + 1`
4460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4461 # Best one so far, save it but keep looking for a better one
4462 ac_cv_path_GREP
="$ac_path_GREP"
4463 ac_path_GREP_max
=$ac_count
4465 # 10*(2^10) chars as input seems more than enough
4466 test $ac_count -gt 10 && break
4468 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4472 $ac_path_GREP_found && break 3
4482 GREP
="$ac_cv_path_GREP"
4483 if test -z "$GREP"; then
4484 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4485 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4486 { (exit 1); exit 1; }; }
4490 ac_cv_path_GREP
=$GREP
4495 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4496 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4497 GREP
="$ac_cv_path_GREP"
4500 { echo "$as_me:$LINENO: checking for egrep" >&5
4501 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4502 if test "${ac_cv_path_EGREP+set}" = set; then
4503 echo $ECHO_N "(cached) $ECHO_C" >&6
4505 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4506 then ac_cv_path_EGREP
="$GREP -E"
4508 # Extract the first word of "egrep" to use in msg output
4509 if test -z "$EGREP"; then
4510 set dummy
egrep; ac_prog_name
=$2
4511 if test "${ac_cv_path_EGREP+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4514 ac_path_EGREP_found
=false
4515 # Loop through the user's path and test for each of PROGNAME-LIST
4516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4517 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4520 test -z "$as_dir" && as_dir
=.
4521 for ac_prog
in egrep; do
4522 for ac_exec_ext
in '' $ac_executable_extensions; do
4523 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4524 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4525 # Check for GNU ac_path_EGREP and select it if it is found.
4526 # Check for GNU $ac_path_EGREP
4527 case `"$ac_path_EGREP" --version 2>&1` in
4529 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4532 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4535 cat "conftest.in" "conftest.in" >"conftest.tmp"
4536 mv "conftest.tmp" "conftest.in"
4537 cp "conftest.in" "conftest.nl"
4538 echo 'EGREP' >> "conftest.nl"
4539 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4540 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4541 ac_count
=`expr $ac_count + 1`
4542 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4543 # Best one so far, save it but keep looking for a better one
4544 ac_cv_path_EGREP
="$ac_path_EGREP"
4545 ac_path_EGREP_max
=$ac_count
4547 # 10*(2^10) chars as input seems more than enough
4548 test $ac_count -gt 10 && break
4550 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4554 $ac_path_EGREP_found && break 3
4564 EGREP
="$ac_cv_path_EGREP"
4565 if test -z "$EGREP"; then
4566 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4567 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4568 { (exit 1); exit 1; }; }
4572 ac_cv_path_EGREP
=$EGREP
4578 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4579 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4580 EGREP
="$ac_cv_path_EGREP"
4584 { echo "$as_me:$LINENO: checking for AIX" >&5
4585 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4586 cat >conftest.
$ac_ext <<_ACEOF
4589 cat confdefs.h
>>conftest.
$ac_ext
4590 cat >>conftest.
$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598 $EGREP "yes" >/dev
/null
2>&1; then
4599 { echo "$as_me:$LINENO: result: yes" >&5
4600 echo "${ECHO_T}yes" >&6; }
4601 cat >>confdefs.h
<<\_ACEOF
4602 #define _ALL_SOURCE 1
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4613 cat >>confdefs.h
<<\_ACEOF
4614 #define _GNU_SOURCE 1
4619 ### Use -Wno-pointer-sign if the compiler supports it
4620 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4621 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4622 SAVE_CFLAGS
="$CFLAGS"
4623 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4624 cat >conftest.
$ac_ext <<_ACEOF
4627 cat confdefs.h
>>conftest.
$ac_ext
4628 cat >>conftest.
$ac_ext <<_ACEOF
4629 /* end confdefs.h. */
4639 rm -f conftest.
$ac_objext
4640 if { (ac_try
="$ac_compile"
4642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4646 (eval "$ac_compile") 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && {
4653 test -z "$ac_c_werror_flag" ||
4654 test ! -s conftest.err
4655 } && test -s conftest.$ac_objext; then
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 if test $has_option = yes; then
4666 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4668 { echo "$as_me:$LINENO: result: $has_option" >&5
4669 echo "${ECHO_T}$has_option" >&6; }
4670 CFLAGS="$SAVE_CFLAGS"
4674 #### Some other nice autoconf tests.
4676 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4677 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4679 if test "$LN_S" = "ln -s"; then
4680 { echo "$as_me:$LINENO: result: yes" >&5
4681 echo "${ECHO_T}yes" >&6; }
4683 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4684 echo "${ECHO_T}no, using $LN_S" >&6; }
4688 ac_cpp='$CPP $CPPFLAGS'
4689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4692 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4693 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4694 # On Suns, sometimes $CPP names a directory.
4695 if test -n "$CPP" && test -d "$CPP"; then
4698 if test -z "$CPP"; then
4699 if test "${ac_cv_prog_CPP+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 # Double quotes because CPP needs to be expanded
4703 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4706 for ac_c_preproc_warn_flag in '' yes
4708 # Use a header file that comes with gcc, so configuring glibc
4709 # with a fresh cross-compiler works.
4710 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4711 # <limits.h> exists even on freestanding compilers.
4712 # On the NeXT, cc -E runs the code through the compiler's parser,
4713 # not just through cpp. "Syntax error" is here to catch this case.
4714 cat >conftest.$ac_ext <<_ACEOF
4717 cat confdefs.h >>conftest.$ac_ext
4718 cat >>conftest.$ac_ext <<_ACEOF
4719 /* end confdefs.h. */
4721 # include <limits.h>
4723 # include <assert.h>
4727 if { (ac_try="$ac_cpp conftest.$ac_ext"
4729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4730 *) ac_try_echo
=$ac_try;;
4732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4735 grep -v '^ *+' conftest.er1
>conftest.err
4737 cat conftest.err
>&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } >/dev
/null
&& {
4740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.
$ac_ext >&5
4748 # Broken: fails on valid input.
4752 rm -f conftest.err conftest.
$ac_ext
4754 # OK, works on sane cases. Now check whether nonexistent headers
4755 # can be detected and how.
4756 cat >conftest.
$ac_ext <<_ACEOF
4759 cat confdefs.h
>>conftest.
$ac_ext
4760 cat >>conftest.
$ac_ext <<_ACEOF
4761 /* end confdefs.h. */
4762 #include <ac_nonexistent.h>
4764 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4767 *) ac_try_echo=$ac_try;;
4769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } >/dev/null && {
4777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4778 test ! -s conftest.err
4780 # Broken: success on invalid input.
4783 echo "$as_me: failed program was:" >&5
4784 sed 's/^/| /' conftest.$ac_ext >&5
4786 # Passes both tests.
4791 rm -f conftest.err conftest.$ac_ext
4794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795 rm -f conftest.err conftest.
$ac_ext
4796 if $ac_preproc_ok; then
4808 { echo "$as_me:$LINENO: result: $CPP" >&5
4809 echo "${ECHO_T}$CPP" >&6; }
4811 for ac_c_preproc_warn_flag
in '' yes
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat >conftest.
$ac_ext <<_ACEOF
4822 cat confdefs.h
>>conftest.
$ac_ext
4823 cat >>conftest.
$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4826 # include <limits.h>
4828 # include <assert.h>
4832 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 grep -v '^ *+' conftest.er1 >conftest.err
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev/null && {
4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.$ac_ext >&5
4853 # Broken: fails on valid input.
4857 rm -f conftest.err conftest.$ac_ext
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat >conftest.$ac_ext <<_ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4869 if { (ac_try="$ac_cpp conftest.$ac_ext"
4871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4872 *) ac_try_echo
=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1
>conftest.err
4879 cat conftest.err
>&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev
/null
&& {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4885 # Broken: success on invalid input.
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.
$ac_ext >&5
4891 # Passes both tests.
4896 rm -f conftest.err conftest.
$ac_ext
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.
$ac_ext
4901 if $ac_preproc_ok; then
4904 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." >&5
4906 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4907 See \`config.log' for more details." >&2;}
4908 { (exit 1); exit 1; }; }
4912 ac_cpp
='$CPP $CPPFLAGS'
4913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4917 # Find a good install program. We prefer a C program (faster),
4918 # so one script is as good as another. But avoid the broken or
4919 # incompatible versions:
4920 # SysV /etc/install, /usr/sbin/install
4921 # SunOS /usr/etc/install
4922 # IRIX /sbin/install
4924 # AmigaOS /C/install, which installs bootblocks on floppy discs
4925 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4926 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4927 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4928 # OS/2's system install, which has a completely different semantic
4929 # ./install, which can be erroneously created by make from ./install.sh.
4930 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4931 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4932 if test -z "$INSTALL"; then
4933 if test "${ac_cv_path_install+set}" = set; then
4934 echo $ECHO_N "(cached) $ECHO_C" >&6
4936 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4940 test -z "$as_dir" && as_dir
=.
4941 # Account for people who put trailing slashes in PATH elements.
4943 .
/ | .
// |
/cC
/* | \
4944 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4945 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4948 # OSF1 and SCO ODT 3.0 have their own names for install.
4949 # Don't use installbsd from OSF since it installs stuff as root
4951 for ac_prog
in ginstall scoinst
install; do
4952 for ac_exec_ext
in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4954 if test $ac_prog = install &&
4955 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4956 # AIX install. It has an incompatible calling convention.
4958 elif test $ac_prog = install &&
4959 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4960 # program-specific install script used by HP pwplus--don't use.
4963 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4976 if test "${ac_cv_path_install+set}" = set; then
4977 INSTALL
=$ac_cv_path_install
4979 # As a last resort, use the slow shell script. Don't cache a
4980 # value for INSTALL within a source directory, because that will
4981 # break other packages using the cache if that directory is
4982 # removed, or if the value is a relative name.
4983 INSTALL
=$ac_install_sh
4986 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4987 echo "${ECHO_T}$INSTALL" >&6; }
4989 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4990 # It thinks the first close brace ends the variable substitution.
4991 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4993 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4995 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4997 if test "x$RANLIB" = x
; then
4998 if test -n "$ac_tool_prefix"; then
4999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5000 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_prog_RANLIB+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 if test -n "$RANLIB"; then
5007 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5013 test -z "$as_dir" && as_dir
=.
5014 for ac_exec_ext
in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5016 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5026 RANLIB
=$ac_cv_prog_RANLIB
5027 if test -n "$RANLIB"; then
5028 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5029 echo "${ECHO_T}$RANLIB" >&6; }
5031 { echo "$as_me:$LINENO: result: no" >&5
5032 echo "${ECHO_T}no" >&6; }
5037 if test -z "$ac_cv_prog_RANLIB"; then
5038 ac_ct_RANLIB
=$RANLIB
5039 # Extract the first word of "ranlib", so it can be a program name with args.
5040 set dummy ranlib
; ac_word
=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 if test -n "$ac_ct_RANLIB"; then
5047 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir
=.
5054 for ac_exec_ext
in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5056 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5066 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5067 if test -n "$ac_ct_RANLIB"; then
5068 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5069 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5071 { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5075 if test "x$ac_ct_RANLIB" = x
; then
5078 case $cross_compiling:$ac_tool_warned in
5080 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5081 whose name does not start with the host triplet. If you think this
5082 configuration is useful to you, please write to autoconf@gnu.org." >&5
5083 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5084 whose name does not start with the host triplet. If you think this
5085 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5086 ac_tool_warned
=yes ;;
5088 RANLIB
=$ac_ct_RANLIB
5091 RANLIB
="$ac_cv_prog_RANLIB"
5095 # Extract the first word of "install-info", so it can be a program name with args.
5096 set dummy install-info
; ac_word
=$2
5097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 case $INSTALL_INFO in
5104 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5107 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5111 test -z "$as_dir" && as_dir
=.
5112 for ac_exec_ext
in '' $ac_executable_extensions; do
5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5125 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5126 if test -n "$INSTALL_INFO"; then
5127 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5128 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5135 # Extract the first word of "install-info", so it can be a program name with args.
5136 set dummy install-info
; ac_word
=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 case $INSTALL_INFO in
5144 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5148 for as_dir
in /usr
/sbin
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5166 if test -n "$INSTALL_INFO"; then
5167 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5168 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5175 # Extract the first word of "install-info", so it can be a program name with args.
5176 set dummy install-info
; ac_word
=$2
5177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5179 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5182 case $INSTALL_INFO in
5184 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir
=.
5192 for ac_exec_ext
in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5206 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5207 if test -n "$INSTALL_INFO"; then
5208 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5209 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5211 { echo "$as_me:$LINENO: result: no" >&5
5212 echo "${ECHO_T}no" >&6; }
5216 # Extract the first word of "gzip", so it can be a program name with args.
5217 set dummy
gzip; ac_word
=$2
5218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5220 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5221 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5228 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir
=.
5233 for ac_exec_ext
in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5246 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5247 if test -n "$GZIP_PROG"; then
5248 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5249 echo "${ECHO_T}$GZIP_PROG" >&6; }
5251 { echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6; }
5258 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5260 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5263 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5265 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5269 late_LDFLAGS
=$LDFLAGS
5270 if test "$GCC" = yes; then
5271 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5273 LDFLAGS
="$LDFLAGS -znocombreloc"
5276 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5277 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5278 cat >conftest.
$ac_ext <<_ACEOF
5281 rm -f conftest.
$ac_objext conftest
$ac_exeext
5282 if { (ac_try
="$ac_link"
5284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_link") 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } && {
5295 test -z "$ac_c_werror_flag" ||
5296 test ! -s conftest.err
5297 } && test -s conftest$ac_exeext &&
5298 $as_test_x conftest$ac_exeext; then
5299 { echo "$as_me:$LINENO: result: yes" >&5
5300 echo "${ECHO_T}yes" >&6; }
5302 echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5305 LDFLAGS=$late_LDFLAGS
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5311 conftest$ac_exeext conftest.$ac_ext
5313 #### Extract some information from the operating system and machine files.
5315 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5316 - which libraries the lib-src programs will want, and
5317 - whether the GNU malloc routines are usable..." >&5
5318 echo "$as_me: checking the machine- and system-dependent files to find out
5319 - which libraries the lib-src programs will want, and
5320 - whether the GNU malloc routines are usable..." >&6;}
5322 ### First figure out CFLAGS (which we use for running the compiler here)
5323 ### and REAL_CFLAGS (which we use for real compilation).
5324 ### The two are the same except on a few systems, where they are made
5325 ### different to work around various lossages. For example,
5326 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5327 ### as implying static linking.
5329 ### If the CFLAGS env var is specified, we use that value
5330 ### instead of the default.
5332 ### It's not important that this name contain the PID; you can't run
5333 ### two configures in the same directory and have anything work
5335 tempcname="conftest.c"
5338 #include "'${srcdir}'/src/'${opsysfile}'"
5339 #include "'${srcdir}'/src/'${machfile}'"
5340 #ifndef LIBS_MACHINE
5341 #define LIBS_MACHINE
5346 #ifndef C_SWITCH_SYSTEM
5347 #define C_SWITCH_SYSTEM
5349 #ifndef C_SWITCH_MACHINE
5350 #define C_SWITCH_MACHINE
5352 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5353 configure___ c_switch_system=C_SWITCH_SYSTEM
5354 configure___ c_switch_machine=C_SWITCH_MACHINE
5357 #define LIB_X11_LIB -lX11
5360 #ifndef LIBX11_MACHINE
5361 #define LIBX11_MACHINE
5364 #ifndef LIBX11_SYSTEM
5365 #define LIBX11_SYSTEM
5367 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5370 configure___ unexec=UNEXEC
5372 configure___ unexec=unexec.o
5375 #ifdef SYSTEM_MALLOC
5376 configure___ system_malloc=yes
5378 configure___ system_malloc=no
5381 #ifdef USE_MMAP_FOR_BUFFERS
5382 configure___ use_mmap_for_buffers=yes
5384 configure___ use_mmap_for_buffers=no
5387 #ifndef C_DEBUG_SWITCH
5388 #define C_DEBUG_SWITCH -g
5391 #ifndef C_OPTIMIZE_SWITCH
5393 #define C_OPTIMIZE_SWITCH -O2
5395 #define C_OPTIMIZE_SWITCH -O
5399 #ifndef C_WARNINGS_SWITCH
5400 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5403 #ifndef LD_SWITCH_MACHINE
5404 #define LD_SWITCH_MACHINE
5407 #ifndef LD_SWITCH_SYSTEM
5408 #define LD_SWITCH_SYSTEM
5411 #ifndef LD_SWITCH_X_SITE_AUX
5412 #define LD_SWITCH_X_SITE_AUX
5415 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5416 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5418 #ifdef THIS_IS_CONFIGURE
5420 /* Get the CFLAGS for tests in configure. */
5422 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5424 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5427 #else /* not THIS_IS_CONFIGURE */
5429 /* Get the CFLAGS for real compilation. */
5431 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5433 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5436 #endif /* not THIS_IS_CONFIGURE */
5439 # The value of CPP is a quoted variable reference, so we need to do this
5440 # to get its actual value...
5441 CPP=`eval "echo $CPP"`
5442 eval `${CPP} -Isrc ${tempcname} \
5443 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5444 if test "x$SPECIFIED_CFLAGS" = x; then
5445 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5446 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5448 REAL_CFLAGS="$CFLAGS"
5452 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5454 ### Make sure subsequent tests use flags consistent with the build flags.
5456 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5457 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5459 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5464 # Check whether --enable-largefile was given.
5465 if test "${enable_largefile+set}" = set; then
5466 enableval=$enable_largefile;
5469 if test "$enable_largefile" != no; then
5471 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5472 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5473 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_cv_sys_largefile_CC=no
5477 if test "$GCC" != yes; then
5480 # IRIX 6.2 and later do not support large files by default,
5481 # so use the C compiler's -n32 option if that helps.
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 #include <sys/types.h>
5489 /* Check that off_t can represent 2**63 - 1 correctly.
5490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5491 since some C++ compilers masquerading as C compilers
5492 incorrectly reject 9223372036854775807. */
5493 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5495 && LARGE_OFF_T % 2147483647 == 1)
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5508 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5509 *) ac_try_echo
=$ac_try;;
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512 (eval "$ac_compile") 2>conftest.er1
5514 grep -v '^ *+' conftest.er1
>conftest.err
5516 cat conftest.err
>&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } && {
5519 test -z "$ac_c_werror_flag" ||
5520 test ! -s conftest.err
5521 } && test -s conftest.
$ac_objext; then
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.
$ac_ext >&5
5530 rm -f core conftest.err conftest.
$ac_objext
5532 rm -f conftest.
$ac_objext
5533 if { (ac_try
="$ac_compile"
5535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5539 (eval "$ac_compile") 2>conftest.er1
5541 grep -v '^ *+' conftest.er1 >conftest.err
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
5548 } && test -s conftest.$ac_objext; then
5549 ac_cv_sys_largefile_CC=' -n32'; break
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5557 rm -f core conftest.err conftest.$ac_objext
5561 rm -f conftest.$ac_ext
5564 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5565 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5566 if test "$ac_cv_sys_largefile_CC" != no; then
5567 CC=$CC$ac_cv_sys_largefile_CC
5570 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5571 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5572 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5576 cat >conftest.$ac_ext <<_ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585 since some C++ compilers masquerading as C compilers
5586 incorrectly reject 9223372036854775807. */
5587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589 && LARGE_OFF_T % 2147483647 == 1)
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5603 *) ac_try_echo
=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1
>conftest.err
5610 cat conftest.err
>&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.
$ac_objext; then
5616 ac_cv_sys_file_offset_bits
=no
; break
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.
$ac_ext >&5
5624 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5625 cat >conftest.
$ac_ext <<_ACEOF
5628 cat confdefs.h
>>conftest.
$ac_ext
5629 cat >>conftest.
$ac_ext <<_ACEOF
5630 /* end confdefs.h. */
5631 #define _FILE_OFFSET_BITS 64
5632 #include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly.
5634 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5635 since some C++ compilers masquerading as C compilers
5636 incorrectly reject 9223372036854775807. */
5637 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5638 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5639 && LARGE_OFF_T % 2147483647 == 1)
5649 rm -f conftest.
$ac_objext
5650 if { (ac_try
="$ac_compile"
5652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5653 *) ac_try_echo=$ac_try;;
5655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5656 (eval "$ac_compile") 2>conftest.er1
5658 grep -v '^ *+' conftest.er1 >conftest.err
5660 cat conftest.err >&5
5661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662 (exit $ac_status); } && {
5663 test -z "$ac_c_werror_flag" ||
5664 test ! -s conftest.err
5665 } && test -s conftest.$ac_objext; then
5666 ac_cv_sys_file_offset_bits=64; break
5668 echo "$as_me: failed program was:" >&5
5669 sed 's/^/| /' conftest.$ac_ext >&5
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_cv_sys_file_offset_bits=unknown
5679 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5680 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5681 case $ac_cv_sys_file_offset_bits in #(
5684 cat >>confdefs.h <<_ACEOF
5685 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5690 if test $ac_cv_sys_file_offset_bits = unknown; then
5691 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5692 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5693 if test "${ac_cv_sys_large_files+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5697 cat >conftest.$ac_ext <<_ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5724 *) ac_try_echo
=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1
>conftest.err
5731 cat conftest.err
>&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.
$ac_objext; then
5737 ac_cv_sys_large_files
=no
; break
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.
$ac_ext >&5
5745 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5746 cat >conftest.
$ac_ext <<_ACEOF
5749 cat confdefs.h
>>conftest.
$ac_ext
5750 cat >>conftest.
$ac_ext <<_ACEOF
5751 /* end confdefs.h. */
5752 #define _LARGE_FILES 1
5753 #include <sys/types.h>
5754 /* Check that off_t can represent 2**63 - 1 correctly.
5755 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5756 since some C++ compilers masquerading as C compilers
5757 incorrectly reject 9223372036854775807. */
5758 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5759 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5760 && LARGE_OFF_T % 2147483647 == 1)
5770 rm -f conftest.
$ac_objext
5771 if { (ac_try
="$ac_compile"
5773 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5774 *) ac_try_echo=$ac_try;;
5776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5777 (eval "$ac_compile") 2>conftest.er1
5779 grep -v '^ *+' conftest.er1 >conftest.err
5781 cat conftest.err >&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); } && {
5784 test -z "$ac_c_werror_flag" ||
5785 test ! -s conftest.err
5786 } && test -s conftest.$ac_objext; then
5787 ac_cv_sys_large_files=1; break
5789 echo "$as_me: failed program was:" >&5
5790 sed 's/^/| /' conftest.$ac_ext >&5
5795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 ac_cv_sys_large_files=unknown
5800 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5801 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5802 case $ac_cv_sys_large_files in #(
5805 cat >>confdefs.h <<_ACEOF
5806 #define _LARGE_FILES $ac_cv_sys_large_files
5816 ### The standard library on x86-64 GNU/Linux distributions can
5817 ### be located in either /usr/lib64 or /usr/lib.
5818 case "${canonical}" in
5819 x86_64-*-linux-gnu* )
5820 if test -d /usr/lib64; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_X86_64_LIB64_DIR 1
5832 if test "${with_sound}" != "no"; then
5833 # Sound support for GNU/Linux and the free BSDs.
5834 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5835 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5836 if test "${ac_cv_header_stdc+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.$ac_ext <<_ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5858 rm -f conftest.$ac_objext
5859 if { (ac_try="$ac_compile"
5861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5862 *) ac_try_echo
=$ac_try;;
5864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1
>conftest.err
5869 cat conftest.err
>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.
$ac_objext; then
5875 ac_cv_header_stdc
=yes
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.
$ac_ext >&5
5880 ac_cv_header_stdc
=no
5883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5885 if test $ac_cv_header_stdc = yes; then
5886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5887 cat >conftest.
$ac_ext <<_ACEOF
5890 cat confdefs.h
>>conftest.
$ac_ext
5891 cat >>conftest.
$ac_ext <<_ACEOF
5892 /* end confdefs.h. */
5896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5897 $EGREP "memchr" >/dev
/null
2>&1; then
5900 ac_cv_header_stdc
=no
5906 if test $ac_cv_header_stdc = yes; then
5907 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5908 cat >conftest.
$ac_ext <<_ACEOF
5911 cat confdefs.h
>>conftest.
$ac_ext
5912 cat >>conftest.
$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5918 $EGREP "free" >/dev
/null
2>&1; then
5921 ac_cv_header_stdc
=no
5927 if test $ac_cv_header_stdc = yes; then
5928 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5929 if test "$cross_compiling" = yes; then
5932 cat >conftest.
$ac_ext <<_ACEOF
5935 cat confdefs.h
>>conftest.
$ac_ext
5936 cat >>conftest.
$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5940 #if ((' ' & 0x0FF) == 0x020)
5941 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5942 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5944 # define ISLOWER(c) \
5945 (('a' <= (c) && (c) <= 'i') \
5946 || ('j' <= (c) && (c) <= 'r') \
5947 || ('s' <= (c) && (c) <= 'z'))
5948 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5951 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5956 for (i = 0; i < 256; i++)
5957 if (XOR (islower (i), ISLOWER (i))
5958 || toupper (i) != TOUPPER (i))
5963 rm -f conftest
$ac_exeext
5964 if { (ac_try
="$ac_link"
5966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5970 (eval "$ac_link") 2>&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5974 { (case "(($ac_try" in
5975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5976 *) ac_try_echo
=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; }; then
5985 echo "$as_me: program exited with status $ac_status" >&5
5986 echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.
$ac_ext >&5
5990 ac_cv_header_stdc
=no
5992 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5998 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5999 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6000 if test $ac_cv_header_stdc = yes; then
6002 cat >>confdefs.h
<<\_ACEOF
6003 #define STDC_HEADERS 1
6008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6018 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6019 inttypes.h stdint.h unistd.h
6021 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6024 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 cat >conftest.
$ac_ext <<_ACEOF
6030 cat confdefs.h
>>conftest.
$ac_ext
6031 cat >>conftest.
$ac_ext <<_ACEOF
6032 /* end confdefs.h. */
6033 $ac_includes_default
6035 #include <$ac_header>
6037 rm -f conftest.
$ac_objext
6038 if { (ac_try
="$ac_compile"
6040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_c_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 eval "$as_ac_Header=yes"
6056 echo "$as_me: failed program was:" >&5
6057 sed 's/^/| /' conftest.$ac_ext >&5
6059 eval "$as_ac_Header=no"
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 ac_res=`eval echo '${'$as_ac_Header'}'`
6065 { echo "$as_me:$LINENO: result: $ac_res" >&5
6066 echo "${ECHO_T}$ac_res" >&6; }
6067 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6068 cat >>confdefs.h <<_ACEOF
6069 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6080 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6082 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6084 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6085 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6089 ac_res=`eval echo '${'$as_ac_Header'}'`
6090 { echo "$as_me:$LINENO: result: $ac_res" >&5
6091 echo "${ECHO_T}$ac_res" >&6; }
6093 # Is the header compilable?
6094 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6095 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6096 cat >conftest.$ac_ext <<_ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6103 #include <$ac_header>
6105 rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6109 *) ac_try_echo
=$ac_try;;
6111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6112 (eval "$ac_compile") 2>conftest.er1
6114 grep -v '^ *+' conftest.er1
>conftest.err
6116 cat conftest.err
>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } && {
6119 test -z "$ac_c_werror_flag" ||
6120 test ! -s conftest.err
6121 } && test -s conftest.
$ac_objext; then
6122 ac_header_compiler
=yes
6124 echo "$as_me: failed program was:" >&5
6125 sed 's/^/| /' conftest.
$ac_ext >&5
6127 ac_header_compiler
=no
6130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6131 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6132 echo "${ECHO_T}$ac_header_compiler" >&6; }
6134 # Is the header present?
6135 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6136 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6137 cat >conftest.
$ac_ext <<_ACEOF
6140 cat confdefs.h
>>conftest.
$ac_ext
6141 cat >>conftest.
$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #include <$ac_header>
6145 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6147 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6148 *) ac_try_echo=$ac_try;;
6150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6153 grep -v '^ *+' conftest.er1 >conftest.err
6155 cat conftest.err >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } >/dev/null && {
6158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6159 test ! -s conftest.err
6161 ac_header_preproc=yes
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.$ac_ext >&5
6166 ac_header_preproc=no
6169 rm -f conftest.err conftest.$ac_ext
6170 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6171 echo "${ECHO_T}$ac_header_preproc" >&6; }
6173 # So? What about this header?
6174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6180 ac_header_preproc=yes
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6198 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6199 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6200 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6203 eval "$as_ac_Header=\$ac_header_preproc"
6205 ac_res=`eval echo '${'$as_ac_Header'}'`
6206 { echo "$as_me:$LINENO: result: $ac_res" >&5
6207 echo "${ECHO_T}$ac_res" >&6; }
6210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6211 cat >>confdefs.h <<_ACEOF
6212 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6219 # Emulation library used on NetBSD.
6220 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6221 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6222 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 ac_check_lib_save_LIBS=$LIBS
6226 LIBS="-lossaudio $LIBS"
6227 cat >conftest.$ac_ext <<_ACEOF
6230 cat confdefs.h >>conftest.$ac_ext
6231 cat >>conftest.$ac_ext <<_ACEOF
6232 /* end confdefs.h. */
6234 /* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
6244 return _oss_ioctl ();
6249 rm -f conftest.$ac_objext conftest$ac_exeext
6250 if { (ac_try="$ac_link"
6252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6253 *) ac_try_echo
=$ac_try;;
6255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6256 (eval "$ac_link") 2>conftest.er1
6258 grep -v '^ *+' conftest.er1
>conftest.err
6260 cat conftest.err
>&5
6261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6262 (exit $ac_status); } && {
6263 test -z "$ac_c_werror_flag" ||
6264 test ! -s conftest.err
6265 } && test -s conftest
$ac_exeext &&
6266 $as_test_x conftest
$ac_exeext; then
6267 ac_cv_lib_ossaudio__oss_ioctl
=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.
$ac_ext >&5
6272 ac_cv_lib_ossaudio__oss_ioctl
=no
6275 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6276 conftest
$ac_exeext conftest.
$ac_ext
6277 LIBS
=$ac_check_lib_save_LIBS
6279 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6280 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6281 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6290 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6291 if test "X${with_pkg_config_prog}" != X
; then
6292 PKG_CONFIG
="${with_pkg_config_prog}"
6297 if test -z "$PKG_CONFIG"; then
6298 # Extract the first word of "pkg-config", so it can be a program name with args.
6299 set dummy pkg-config
; ac_word
=$2
6300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6302 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6307 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6314 test -z "$as_dir" && as_dir
=.
6315 for ac_exec_ext
in '' $ac_executable_extensions; do
6316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6317 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6329 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6330 if test -n "$PKG_CONFIG"; then
6331 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6332 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6334 { echo "$as_me:$LINENO: result: no" >&5
6335 echo "${ECHO_T}no" >&6; }
6341 if test "$PKG_CONFIG" = "no" ; then
6344 PKG_CONFIG_MIN_VERSION
=0.9.0
6345 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6346 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6347 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6349 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6350 { echo "$as_me:$LINENO: result: yes" >&5
6351 echo "${ECHO_T}yes" >&6; }
6354 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6355 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6356 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6357 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6358 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6360 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6361 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6362 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6363 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6364 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6366 { echo "$as_me:$LINENO: result: no" >&5
6367 echo "${ECHO_T}no" >&6; }
6370 ## If we have a custom action on failure, don't print errors, but
6371 ## do set a variable so people can do so.
6372 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6384 if test $succeeded = yes; then
6390 if test $HAVE_ALSA = yes; then
6391 SAVE_CFLAGS
="$CFLAGS"
6392 SAVE_LDFLAGS
="$LDFLAGS"
6393 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6394 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6395 cat >conftest.
$ac_ext <<_ACEOF
6398 cat confdefs.h
>>conftest.
$ac_ext
6399 cat >>conftest.
$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 #include <asoundlib.h>
6405 snd_lib_error_set_handler (0);
6410 rm -f conftest.
$ac_objext
6411 if { (ac_try
="$ac_compile"
6413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6414 *) ac_try_echo=$ac_try;;
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417 (eval "$ac_compile") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest.$ac_objext; then
6427 emacs_alsa_normal=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 emacs_alsa_normal=no
6435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436 if test "$emacs_alsa_normal" != yes; then
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <alsa/asoundlib.h>
6447 snd_lib_error_set_handler (0);
6452 rm -f conftest.$ac_objext
6453 if { (ac_try="$ac_compile"
6455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6456 *) ac_try_echo
=$ac_try;;
6458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6459 (eval "$ac_compile") 2>conftest.er1
6461 grep -v '^ *+' conftest.er1
>conftest.err
6463 cat conftest.err
>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); } && {
6466 test -z "$ac_c_werror_flag" ||
6467 test ! -s conftest.err
6468 } && test -s conftest.
$ac_objext; then
6469 emacs_alsa_subdir
=yes
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.
$ac_ext >&5
6474 emacs_alsa_subdir
=no
6477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6478 if test "$emacs_alsa_subdir" != yes; then
6479 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6480 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6481 { (exit 1); exit 1; }; }
6483 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6486 CFLAGS
="$SAVE_CFLAGS"
6487 LDFLAGS
="$SAVE_LDFLAGS"
6488 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6489 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6491 cat >>confdefs.h
<<\_ACEOF
6525 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6526 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6527 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6528 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6535 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6536 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 ac_res
=`eval echo '${'$as_ac_Header'}'`
6539 { echo "$as_me:$LINENO: result: $ac_res" >&5
6540 echo "${ECHO_T}$ac_res" >&6; }
6542 # Is the header compilable?
6543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6545 cat >conftest.
$ac_ext <<_ACEOF
6548 cat confdefs.h
>>conftest.
$ac_ext
6549 cat >>conftest.
$ac_ext <<_ACEOF
6550 /* end confdefs.h. */
6551 $ac_includes_default
6552 #include <$ac_header>
6554 rm -f conftest.
$ac_objext
6555 if { (ac_try
="$ac_compile"
6557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 ac_header_compiler=yes
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 ac_header_compiler=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6581 echo "${ECHO_T}$ac_header_compiler" >&6; }
6583 # Is the header present?
6584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6586 cat >conftest.$ac_ext <<_ACEOF
6589 cat confdefs.h >>conftest.$ac_ext
6590 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */
6592 #include <$ac_header>
6594 if { (ac_try="$ac_cpp conftest.$ac_ext"
6596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6597 *) ac_try_echo
=$ac_try;;
6599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6602 grep -v '^ *+' conftest.er1
>conftest.err
6604 cat conftest.err
>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev
/null
&& {
6607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6608 test ! -s conftest.err
6610 ac_header_preproc
=yes
6612 echo "$as_me: failed program was:" >&5
6613 sed 's/^/| /' conftest.
$ac_ext >&5
6615 ac_header_preproc
=no
6618 rm -f conftest.err conftest.
$ac_ext
6619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6620 echo "${ECHO_T}$ac_header_preproc" >&6; }
6622 # So? What about this header?
6623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6629 ac_header_preproc
=yes
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6650 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 eval "$as_ac_Header=\$ac_header_preproc"
6654 ac_res
=`eval echo '${'$as_ac_Header'}'`
6655 { echo "$as_me:$LINENO: result: $ac_res" >&5
6656 echo "${ECHO_T}$ac_res" >&6; }
6659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6660 cat >>confdefs.h
<<_ACEOF
6661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6670 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6671 cat >conftest.
$ac_ext <<_ACEOF
6674 cat confdefs.h
>>conftest.
$ac_ext
6675 cat >>conftest.
$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <sys/personality.h>
6681 personality (PER_LINUX32)
6686 rm -f conftest.
$ac_objext
6687 if { (ac_try
="$ac_compile"
6689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6690 *) ac_try_echo=$ac_try;;
6692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6693 (eval "$ac_compile") 2>conftest.er1
6695 grep -v '^ *+' conftest.er1 >conftest.err
6697 cat conftest.err >&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); } && {
6700 test -z "$ac_c_werror_flag" ||
6701 test ! -s conftest.err
6702 } && test -s conftest.$ac_objext; then
6703 emacs_cv_personality_linux32=yes
6705 echo "$as_me: failed program was:" >&5
6706 sed 's/^/| /' conftest.$ac_ext >&5
6708 emacs_cv_personality_linux32=no
6711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6712 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6713 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6715 if test $emacs_cv_personality_linux32 = yes; then
6717 cat >>confdefs.h <<\_ACEOF
6718 #define HAVE_PERSONALITY_LINUX32 1
6724 for ac_header in term.h
6726 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6732 cat >conftest.$ac_ext <<_ACEOF
6735 cat confdefs.h >>conftest.$ac_ext
6736 cat >>conftest.$ac_ext <<_ACEOF
6737 /* end confdefs.h. */
6738 #include <$ac_header>
6740 if { (ac_try="$ac_cpp conftest.$ac_ext"
6742 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6743 *) ac_try_echo
=$ac_try;;
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6748 grep -v '^ *+' conftest.er1
>conftest.err
6750 cat conftest.err
>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev
/null
&& {
6753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6754 test ! -s conftest.err
6756 eval "$as_ac_Header=yes"
6758 echo "$as_me: failed program was:" >&5
6759 sed 's/^/| /' conftest.
$ac_ext >&5
6761 eval "$as_ac_Header=no"
6764 rm -f conftest.err conftest.
$ac_ext
6766 ac_res
=`eval echo '${'$as_ac_Header'}'`
6767 { echo "$as_me:$LINENO: result: $ac_res" >&5
6768 echo "${ECHO_T}$ac_res" >&6; }
6769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6770 cat >>confdefs.h
<<_ACEOF
6771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6779 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6780 if test "${ac_cv_header_stdc+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.
$ac_ext <<_ACEOF
6786 cat confdefs.h
>>conftest.
$ac_ext
6787 cat >>conftest.
$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6802 rm -f conftest.
$ac_objext
6803 if { (ac_try
="$ac_compile"
6805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809 (eval "$ac_compile") 2>conftest.er1
6811 grep -v '^ *+' conftest.er1 >conftest.err
6813 cat conftest.err >&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } && {
6816 test -z "$ac_c_werror_flag" ||
6817 test ! -s conftest.err
6818 } && test -s conftest.$ac_objext; then
6819 ac_cv_header_stdc=yes
6821 echo "$as_me: failed program was:" >&5
6822 sed 's/^/| /' conftest.$ac_ext >&5
6824 ac_cv_header_stdc=no
6827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6829 if test $ac_cv_header_stdc = yes; then
6830 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6831 cat >conftest.$ac_ext <<_ACEOF
6834 cat confdefs.h >>conftest.$ac_ext
6835 cat >>conftest.$ac_ext <<_ACEOF
6836 /* end confdefs.h. */
6840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6841 $EGREP "memchr" >/dev/null 2>&1; then
6844 ac_cv_header_stdc=no
6850 if test $ac_cv_header_stdc = yes; then
6851 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6852 cat >conftest.$ac_ext <<_ACEOF
6855 cat confdefs.h >>conftest.$ac_ext
6856 cat >>conftest.$ac_ext <<_ACEOF
6857 /* end confdefs.h. */
6861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862 $EGREP "free" >/dev/null 2>&1; then
6865 ac_cv_header_stdc=no
6871 if test $ac_cv_header_stdc = yes; then
6872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6873 if test "$cross_compiling" = yes; then
6876 cat >conftest.$ac_ext <<_ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h. */
6884 #if ((' ' & 0x0FF) == 0x020)
6885 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6886 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6888 # define ISLOWER(c) \
6889 (('a' <= (c) && (c) <= 'i') \
6890 || ('j' <= (c) && (c) <= 'r') \
6891 || ('s' <= (c) && (c) <= 'z'))
6892 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6895 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6900 for (i = 0; i < 256; i++)
6901 if (XOR (islower (i), ISLOWER (i))
6902 || toupper (i) != TOUPPER (i))
6907 rm -f conftest$ac_exeext
6908 if { (ac_try="$ac_link"
6910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6911 *) ac_try_echo
=$ac_try;;
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_link") 2>&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6918 { (case "(($ac_try" in
6919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6920 *) ac_try_echo=$ac_try;;
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923 (eval "$ac_try") 2>&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6929 echo "$as_me: program exited with status $ac_status" >&5
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6934 ac_cv_header_stdc=no
6936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6943 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6944 if test $ac_cv_header_stdc = yes; then
6946 cat >>confdefs.h <<\_ACEOF
6947 #define STDC_HEADERS 1
6952 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6953 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6954 if test "${ac_cv_header_time+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6957 cat >conftest.$ac_ext <<_ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <sys/types.h>
6964 #include <sys/time.h>
6970 if ((struct tm *) 0)
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6980 *) ac_try_echo
=$ac_try;;
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1
>conftest.err
6987 cat conftest.err
>&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.
$ac_objext; then
6993 ac_cv_header_time
=yes
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.
$ac_ext >&5
6998 ac_cv_header_time
=no
7001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7004 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7005 if test $ac_cv_header_time = yes; then
7007 cat >>confdefs.h
<<\_ACEOF
7008 #define TIME_WITH_SYS_TIME 1
7013 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7014 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7015 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7016 echo $ECHO_N "(cached) $ECHO_C" >&6
7018 cat >conftest.
$ac_ext <<_ACEOF
7021 cat confdefs.h
>>conftest.
$ac_ext
7022 cat >>conftest.
$ac_ext <<_ACEOF
7023 /* end confdefs.h. */
7024 $ac_includes_default
7036 rm -f conftest.
$ac_objext
7037 if { (ac_try
="$ac_compile"
7039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7040 *) ac_try_echo=$ac_try;;
7042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7043 (eval "$ac_compile") 2>conftest.er1
7045 grep -v '^ *+' conftest.er1 >conftest.err
7047 cat conftest.err >&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); } && {
7050 test -z "$ac_c_werror_flag" ||
7051 test ! -s conftest.err
7052 } && test -s conftest.$ac_objext; then
7053 ac_cv_have_decl_sys_siglist=yes
7055 echo "$as_me: failed program was:" >&5
7056 sed 's/^/| /' conftest.$ac_ext >&5
7058 ac_cv_have_decl_sys_siglist=no
7061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7064 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7065 if test $ac_cv_have_decl_sys_siglist = yes; then
7067 cat >>confdefs.h <<_ACEOF
7068 #define HAVE_DECL_SYS_SIGLIST 1
7073 cat >>confdefs.h <<_ACEOF
7074 #define HAVE_DECL_SYS_SIGLIST 0
7081 if test $ac_cv_have_decl_sys_siglist != yes; then
7082 # For Tru64, at least:
7083 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7084 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7085 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
7088 cat >conftest.$ac_ext <<_ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h. */
7094 $ac_includes_default
7098 #ifndef __sys_siglist
7099 (void) __sys_siglist;
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7110 *) ac_try_echo
=$ac_try;;
7112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7113 (eval "$ac_compile") 2>conftest.er1
7115 grep -v '^ *+' conftest.er1
>conftest.err
7117 cat conftest.err
>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } && {
7120 test -z "$ac_c_werror_flag" ||
7121 test ! -s conftest.err
7122 } && test -s conftest.
$ac_objext; then
7123 ac_cv_have_decl___sys_siglist
=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.
$ac_ext >&5
7128 ac_cv_have_decl___sys_siglist
=no
7131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7134 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7135 if test $ac_cv_have_decl___sys_siglist = yes; then
7137 cat >>confdefs.h
<<_ACEOF
7138 #define HAVE_DECL___SYS_SIGLIST 1
7143 cat >>confdefs.h
<<_ACEOF
7144 #define HAVE_DECL___SYS_SIGLIST 0
7151 if test $ac_cv_have_decl___sys_siglist = yes; then
7153 cat >>confdefs.h
<<\_ACEOF
7154 #define sys_siglist __sys_siglist
7159 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7160 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7161 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7162 echo $ECHO_N "(cached) $ECHO_C" >&6
7164 cat >conftest.
$ac_ext <<_ACEOF
7167 cat confdefs.h
>>conftest.
$ac_ext
7168 cat >>conftest.
$ac_ext <<_ACEOF
7169 /* end confdefs.h. */
7170 #include <sys/types.h>
7171 #include <sys/wait.h>
7173 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7176 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7184 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7189 rm -f conftest.
$ac_objext
7190 if { (ac_try
="$ac_compile"
7192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 ac_cv_header_sys_wait_h=yes
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 ac_cv_header_sys_wait_h=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7217 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7218 if test $ac_cv_header_sys_wait_h = yes; then
7220 cat >>confdefs.h <<\_ACEOF
7221 #define HAVE_SYS_WAIT_H 1
7227 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7228 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7238 #ifdef TIME_WITH_SYS_TIME
7239 #include <sys/time.h>
7242 #ifdef HAVE_SYS_TIME_H
7243 #include <sys/time.h>
7254 static struct utimbuf x; x.actime = x.modtime;
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7263 *) ac_try_echo
=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1
>conftest.err
7270 cat conftest.err
>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.
$ac_objext; then
7276 emacs_cv_struct_utimbuf
=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.
$ac_ext >&5
7281 emacs_cv_struct_utimbuf
=no
7284 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7288 if test $emacs_cv_struct_utimbuf = yes; then
7290 cat >>confdefs.h
<<\_ACEOF
7291 #define HAVE_STRUCT_UTIMBUF 1
7296 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7297 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7298 if test "${ac_cv_type_signal+set}" = set; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 cat >conftest.
$ac_ext <<_ACEOF
7304 cat confdefs.h
>>conftest.
$ac_ext
7305 cat >>conftest.
$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7307 #include <sys/types.h>
7313 return *(signal (0, 0)) (0) == 1;
7318 rm -f conftest.
$ac_objext
7319 if { (ac_try
="$ac_compile"
7321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7327 grep -v '^ *+' conftest.er1 >conftest.err
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } && {
7332 test -z "$ac_c_werror_flag" ||
7333 test ! -s conftest.err
7334 } && test -s conftest.$ac_objext; then
7335 ac_cv_type_signal=int
7337 echo "$as_me: failed program was:" >&5
7338 sed 's/^/| /' conftest.$ac_ext >&5
7340 ac_cv_type_signal=void
7343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7346 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7348 cat >>confdefs.h <<_ACEOF
7349 #define RETSIGTYPE $ac_cv_type_signal
7354 { echo "$as_me:$LINENO: checking for speed_t" >&5
7355 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7356 if test "${emacs_cv_speed_t+set}" = set; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 cat >conftest.$ac_ext <<_ACEOF
7362 cat confdefs.h >>conftest.$ac_ext
7363 cat >>conftest.$ac_ext <<_ACEOF
7364 /* end confdefs.h. */
7365 #include <termios.h>
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_speed_t
=yes
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.
$ac_ext >&5
7399 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7401 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7402 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7403 if test $emacs_cv_speed_t = yes; then
7405 cat >>confdefs.h
<<\_ACEOF
7406 #define HAVE_SPEED_T 1
7411 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7412 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7413 if test "${emacs_cv_struct_timeval+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.
$ac_ext <<_ACEOF
7419 cat confdefs.h
>>conftest.
$ac_ext
7420 cat >>conftest.
$ac_ext <<_ACEOF
7421 /* end confdefs.h. */
7422 #ifdef TIME_WITH_SYS_TIME
7423 #include <sys/time.h>
7426 #ifdef HAVE_SYS_TIME_H
7427 #include <sys/time.h>
7435 static struct timeval x; x.tv_sec = x.tv_usec;
7440 rm -f conftest.
$ac_objext
7441 if { (ac_try
="$ac_compile"
7443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7447 (eval "$ac_compile") 2>conftest.er1
7449 grep -v '^ *+' conftest.er1 >conftest.err
7451 cat conftest.err >&5
7452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7453 (exit $ac_status); } && {
7454 test -z "$ac_c_werror_flag" ||
7455 test ! -s conftest.err
7456 } && test -s conftest.$ac_objext; then
7457 emacs_cv_struct_timeval=yes
7459 echo "$as_me: failed program was:" >&5
7460 sed 's/^/| /' conftest.$ac_ext >&5
7462 emacs_cv_struct_timeval=no
7465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7467 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7468 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7469 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7470 if test $emacs_cv_struct_timeval = yes; then
7472 cat >>confdefs.h <<\_ACEOF
7473 #define HAVE_TIMEVAL 1
7478 { echo "$as_me:$LINENO: checking for struct exception" >&5
7479 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7480 if test "${emacs_cv_struct_exception+set}" = set; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7493 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7498 rm -f conftest.$ac_objext
7499 if { (ac_try="$ac_compile"
7501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7502 *) ac_try_echo
=$ac_try;;
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_compile") 2>conftest.er1
7507 grep -v '^ *+' conftest.er1
>conftest.err
7509 cat conftest.err
>&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } && {
7512 test -z "$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 } && test -s conftest.
$ac_objext; then
7515 emacs_cv_struct_exception
=yes
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.
$ac_ext >&5
7520 emacs_cv_struct_exception
=no
7523 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7525 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7526 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7527 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7528 if test $emacs_cv_struct_exception != yes; then
7530 cat >>confdefs.h
<<\_ACEOF
7531 #define NO_MATHERR 1
7537 for ac_header
in sys
/socket.h
7539 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7540 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7543 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 ac_res
=`eval echo '${'$as_ac_Header'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7550 # Is the header compilable?
7551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #include <$ac_header>
7562 rm -f conftest.
$ac_objext
7563 if { (ac_try
="$ac_compile"
7565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7571 grep -v '^ *+' conftest.er1 >conftest.err
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 ac_header_compiler=yes
7581 echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_header_compiler=no
7587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7589 echo "${ECHO_T}$ac_header_compiler" >&6; }
7591 # Is the header present?
7592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <$ac_header>
7602 if { (ac_try="$ac_cpp conftest.$ac_ext"
7604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7605 *) ac_try_echo
=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7610 grep -v '^ *+' conftest.er1
>conftest.err
7612 cat conftest.err
>&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } >/dev
/null
&& {
7615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7618 ac_header_preproc
=yes
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.
$ac_ext >&5
7623 ac_header_preproc
=no
7626 rm -f conftest.err conftest.
$ac_ext
7627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7628 echo "${ECHO_T}$ac_header_preproc" >&6; }
7630 # So? What about this header?
7631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7637 ac_header_preproc
=yes
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7660 eval "$as_ac_Header=\$ac_header_preproc"
7662 ac_res
=`eval echo '${'$as_ac_Header'}'`
7663 { echo "$as_me:$LINENO: result: $ac_res" >&5
7664 echo "${ECHO_T}$ac_res" >&6; }
7667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668 cat >>confdefs.h
<<_ACEOF
7669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 for ac_header
in net
/if.h
7679 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7682 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 cat >conftest.
$ac_ext <<_ACEOF
7688 cat confdefs.h
>>conftest.
$ac_ext
7689 cat >>conftest.
$ac_ext <<_ACEOF
7690 /* end confdefs.h. */
7691 $ac_includes_default
7692 #if HAVE_SYS_SOCKET_H
7693 #include <sys/socket.h>
7696 #include <$ac_header>
7698 rm -f conftest.
$ac_objext
7699 if { (ac_try
="$ac_compile"
7701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7702 *) ac_try_echo=$ac_try;;
7704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7705 (eval "$ac_compile") 2>conftest.er1
7707 grep -v '^ *+' conftest.er1 >conftest.err
7709 cat conftest.err >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } && {
7712 test -z "$ac_c_werror_flag" ||
7713 test ! -s conftest.err
7714 } && test -s conftest.$ac_objext; then
7715 eval "$as_ac_Header=yes"
7717 echo "$as_me: failed program was:" >&5
7718 sed 's/^/| /' conftest.$ac_ext >&5
7720 eval "$as_ac_Header=no"
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 ac_res=`eval echo '${'$as_ac_Header'}'`
7726 { echo "$as_me:$LINENO: result: $ac_res" >&5
7727 echo "${ECHO_T}$ac_res" >&6; }
7728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7729 cat >>confdefs.h <<_ACEOF
7730 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7738 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7739 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7740 if test "${ac_cv_struct_tm+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7756 int *p = &tm.tm_sec;
7762 rm -f conftest.$ac_objext
7763 if { (ac_try="$ac_compile"
7765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7766 *) ac_try_echo
=$ac_try;;
7768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7769 (eval "$ac_compile") 2>conftest.er1
7771 grep -v '^ *+' conftest.er1
>conftest.err
7773 cat conftest.err
>&5
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); } && {
7776 test -z "$ac_c_werror_flag" ||
7777 test ! -s conftest.err
7778 } && test -s conftest.
$ac_objext; then
7779 ac_cv_struct_tm
=time.h
7781 echo "$as_me: failed program was:" >&5
7782 sed 's/^/| /' conftest.
$ac_ext >&5
7784 ac_cv_struct_tm
=sys
/time.h
7787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7789 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7790 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7791 if test $ac_cv_struct_tm = sys
/time.h
; then
7793 cat >>confdefs.h
<<\_ACEOF
7794 #define TM_IN_SYS_TIME 1
7799 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7800 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7801 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7802 echo $ECHO_N "(cached) $ECHO_C" >&6
7804 cat >conftest.
$ac_ext <<_ACEOF
7807 cat confdefs.h
>>conftest.
$ac_ext
7808 cat >>conftest.
$ac_ext <<_ACEOF
7809 /* end confdefs.h. */
7810 #include <sys/types.h>
7811 #include <$ac_cv_struct_tm>
7817 static struct tm ac_aggr;
7818 if (ac_aggr.tm_zone)
7824 rm -f conftest.
$ac_objext
7825 if { (ac_try
="$ac_compile"
7827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7828 *) ac_try_echo=$ac_try;;
7830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7831 (eval "$ac_compile") 2>conftest.er1
7833 grep -v '^ *+' conftest.er1 >conftest.err
7835 cat conftest.err >&5
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && {
7838 test -z "$ac_c_werror_flag" ||
7839 test ! -s conftest.err
7840 } && test -s conftest.$ac_objext; then
7841 ac_cv_member_struct_tm_tm_zone=yes
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7846 cat >conftest.$ac_ext <<_ACEOF
7849 cat confdefs.h >>conftest.$ac_ext
7850 cat >>conftest.$ac_ext <<_ACEOF
7851 /* end confdefs.h. */
7852 #include <sys/types.h>
7853 #include <$ac_cv_struct_tm>
7859 static struct tm ac_aggr;
7860 if (sizeof ac_aggr.tm_zone)
7866 rm -f conftest.$ac_objext
7867 if { (ac_try="$ac_compile"
7869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7870 *) ac_try_echo
=$ac_try;;
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7875 grep -v '^ *+' conftest.er1
>conftest.err
7877 cat conftest.err
>&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.
$ac_objext; then
7883 ac_cv_member_struct_tm_tm_zone
=yes
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.
$ac_ext >&5
7888 ac_cv_member_struct_tm_tm_zone
=no
7891 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7897 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7898 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7900 cat >>confdefs.h
<<_ACEOF
7901 #define HAVE_STRUCT_TM_TM_ZONE 1
7907 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7909 cat >>confdefs.h
<<\_ACEOF
7910 #define HAVE_TM_ZONE 1
7914 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7915 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7916 if test "${ac_cv_have_decl_tzname+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 cat >conftest.
$ac_ext <<_ACEOF
7922 cat confdefs.h
>>conftest.
$ac_ext
7923 cat >>conftest.
$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7938 rm -f conftest.
$ac_objext
7939 if { (ac_try
="$ac_compile"
7941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_have_decl_tzname=yes
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 ac_cv_have_decl_tzname=no
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7966 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7967 if test $ac_cv_have_decl_tzname = yes; then
7969 cat >>confdefs.h <<_ACEOF
7970 #define HAVE_DECL_TZNAME 1
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_DECL_TZNAME 0
7983 { echo "$as_me:$LINENO: checking for tzname" >&5
7984 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7985 if test "${ac_cv_var_tzname+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7995 #if !HAVE_DECL_TZNAME
7996 extern char *tzname[];
8002 return tzname[0][0];
8007 rm -f conftest.$ac_objext conftest$ac_exeext
8008 if { (ac_try="$ac_link"
8010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8011 *) ac_try_echo
=$ac_try;;
8013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8014 (eval "$ac_link") 2>conftest.er1
8016 grep -v '^ *+' conftest.er1
>conftest.err
8018 cat conftest.err
>&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } && {
8021 test -z "$ac_c_werror_flag" ||
8022 test ! -s conftest.err
8023 } && test -s conftest
$ac_exeext &&
8024 $as_test_x conftest
$ac_exeext; then
8025 ac_cv_var_tzname
=yes
8027 echo "$as_me: failed program was:" >&5
8028 sed 's/^/| /' conftest.
$ac_ext >&5
8033 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8034 conftest
$ac_exeext conftest.
$ac_ext
8036 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8037 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8038 if test $ac_cv_var_tzname = yes; then
8040 cat >>confdefs.h
<<\_ACEOF
8041 #define HAVE_TZNAME 1
8047 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8048 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8049 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8052 cat >conftest.
$ac_ext <<_ACEOF
8055 cat confdefs.h
>>conftest.
$ac_ext
8056 cat >>conftest.
$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8063 static struct tm ac_aggr;
8064 if (ac_aggr.tm_gmtoff)
8070 rm -f conftest.
$ac_objext
8071 if { (ac_try
="$ac_compile"
8073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8074 *) ac_try_echo=$ac_try;;
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077 (eval "$ac_compile") 2>conftest.er1
8079 grep -v '^ *+' conftest.er1 >conftest.err
8081 cat conftest.err >&5
8082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083 (exit $ac_status); } && {
8084 test -z "$ac_c_werror_flag" ||
8085 test ! -s conftest.err
8086 } && test -s conftest.$ac_objext; then
8087 ac_cv_member_struct_tm_tm_gmtoff=yes
8089 echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8103 static struct tm ac_aggr;
8104 if (sizeof ac_aggr.tm_gmtoff)
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8114 *) ac_try_echo
=$ac_try;;
8116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8119 grep -v '^ *+' conftest.er1
>conftest.err
8121 cat conftest.err
>&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.
$ac_objext; then
8127 ac_cv_member_struct_tm_tm_gmtoff
=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.
$ac_ext >&5
8132 ac_cv_member_struct_tm_tm_gmtoff
=no
8135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8138 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8140 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8141 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8142 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8144 cat >>confdefs.h
<<\_ACEOF
8145 #define HAVE_TM_GMTOFF 1
8150 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8151 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8152 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8153 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 cat >conftest.
$ac_ext <<_ACEOF
8158 cat confdefs.h
>>conftest.
$ac_ext
8159 cat >>conftest.
$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8162 #if HAVE_SYS_SOCKET_H
8163 #include <sys/socket.h>
8172 static struct ifreq ac_aggr;
8173 if (ac_aggr.ifr_flags)
8179 rm -f conftest.
$ac_objext
8180 if { (ac_try
="$ac_compile"
8182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1 >conftest.err
8190 cat conftest.err >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_member_struct_ifreq_ifr_flags=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8207 $ac_includes_default
8208 #if HAVE_SYS_SOCKET_H
8209 #include <sys/socket.h>
8218 static struct ifreq ac_aggr;
8219 if (sizeof ac_aggr.ifr_flags)
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8229 *) ac_try_echo
=$ac_try;;
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232 (eval "$ac_compile") 2>conftest.er1
8234 grep -v '^ *+' conftest.er1
>conftest.err
8236 cat conftest.err
>&5
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } && {
8239 test -z "$ac_c_werror_flag" ||
8240 test ! -s conftest.err
8241 } && test -s conftest.
$ac_objext; then
8242 ac_cv_member_struct_ifreq_ifr_flags
=yes
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.
$ac_ext >&5
8247 ac_cv_member_struct_ifreq_ifr_flags
=no
8250 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8256 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8257 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8259 cat >>confdefs.h
<<_ACEOF
8260 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8265 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8266 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8267 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8270 cat >conftest.
$ac_ext <<_ACEOF
8273 cat confdefs.h
>>conftest.
$ac_ext
8274 cat >>conftest.
$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8287 static struct ifreq ac_aggr;
8288 if (ac_aggr.ifr_hwaddr)
8294 rm -f conftest.
$ac_objext
8295 if { (ac_try
="$ac_compile"
8297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8298 *) ac_try_echo=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1 >conftest.err
8305 cat conftest.err >&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.$ac_objext; then
8311 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 $ac_includes_default
8323 #if HAVE_SYS_SOCKET_H
8324 #include <sys/socket.h>
8333 static struct ifreq ac_aggr;
8334 if (sizeof ac_aggr.ifr_hwaddr)
8340 rm -f conftest.$ac_objext
8341 if { (ac_try="$ac_compile"
8343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8344 *) ac_try_echo
=$ac_try;;
8346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8347 (eval "$ac_compile") 2>conftest.er1
8349 grep -v '^ *+' conftest.er1
>conftest.err
8351 cat conftest.err
>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && {
8354 test -z "$ac_c_werror_flag" ||
8355 test ! -s conftest.err
8356 } && test -s conftest.
$ac_objext; then
8357 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8359 echo "$as_me: failed program was:" >&5
8360 sed 's/^/| /' conftest.
$ac_ext >&5
8362 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8365 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8371 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8372 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8374 cat >>confdefs.h
<<_ACEOF
8375 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8380 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8381 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8382 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 cat >conftest.
$ac_ext <<_ACEOF
8388 cat confdefs.h
>>conftest.
$ac_ext
8389 cat >>conftest.
$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8402 static struct ifreq ac_aggr;
8403 if (ac_aggr.ifr_netmask)
8409 rm -f conftest.
$ac_objext
8410 if { (ac_try
="$ac_compile"
8412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8413 *) ac_try_echo=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1 >conftest.err
8420 cat conftest.err >&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && {
8423 test -z "$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 } && test -s conftest.$ac_objext; then
8426 ac_cv_member_struct_ifreq_ifr_netmask=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 cat >conftest.$ac_ext <<_ACEOF
8434 cat confdefs.h >>conftest.$ac_ext
8435 cat >>conftest.$ac_ext <<_ACEOF
8436 /* end confdefs.h. */
8437 $ac_includes_default
8438 #if HAVE_SYS_SOCKET_H
8439 #include <sys/socket.h>
8448 static struct ifreq ac_aggr;
8449 if (sizeof ac_aggr.ifr_netmask)
8455 rm -f conftest.$ac_objext
8456 if { (ac_try="$ac_compile"
8458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8459 *) ac_try_echo
=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_compile") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1
>conftest.err
8466 cat conftest.err
>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } && {
8469 test -z "$ac_c_werror_flag" ||
8470 test ! -s conftest.err
8471 } && test -s conftest.
$ac_objext; then
8472 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.
$ac_ext >&5
8477 ac_cv_member_struct_ifreq_ifr_netmask
=no
8480 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8486 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8487 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8489 cat >>confdefs.h
<<_ACEOF
8490 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8495 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8496 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8497 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8498 echo $ECHO_N "(cached) $ECHO_C" >&6
8500 cat >conftest.
$ac_ext <<_ACEOF
8503 cat confdefs.h
>>conftest.
$ac_ext
8504 cat >>conftest.
$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8517 static struct ifreq ac_aggr;
8518 if (ac_aggr.ifr_broadaddr)
8524 rm -f conftest.
$ac_objext
8525 if { (ac_try
="$ac_compile"
8527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8546 cat >conftest.$ac_ext <<_ACEOF
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8552 $ac_includes_default
8553 #if HAVE_SYS_SOCKET_H
8554 #include <sys/socket.h>
8563 static struct ifreq ac_aggr;
8564 if (sizeof ac_aggr.ifr_broadaddr)
8570 rm -f conftest.$ac_objext
8571 if { (ac_try="$ac_compile"
8573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8574 *) ac_try_echo
=$ac_try;;
8576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_compile") 2>conftest.er1
8579 grep -v '^ *+' conftest.er1
>conftest.err
8581 cat conftest.err
>&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } && {
8584 test -z "$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 } && test -s conftest.
$ac_objext; then
8587 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.
$ac_ext >&5
8592 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8595 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8601 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8602 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8604 cat >>confdefs.h
<<_ACEOF
8605 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8610 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8611 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8612 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 cat >conftest.
$ac_ext <<_ACEOF
8618 cat confdefs.h
>>conftest.
$ac_ext
8619 cat >>conftest.
$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 #if HAVE_SYS_SOCKET_H
8623 #include <sys/socket.h>
8632 static struct ifreq ac_aggr;
8633 if (ac_aggr.ifr_addr)
8639 rm -f conftest.
$ac_objext
8640 if { (ac_try
="$ac_compile"
8642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_addr=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8661 cat >conftest.$ac_ext <<_ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 $ac_includes_default
8668 #if HAVE_SYS_SOCKET_H
8669 #include <sys/socket.h>
8678 static struct ifreq ac_aggr;
8679 if (sizeof ac_aggr.ifr_addr)
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8689 *) ac_try_echo
=$ac_try;;
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1
>conftest.err
8696 cat conftest.err
>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.
$ac_objext; then
8702 ac_cv_member_struct_ifreq_ifr_addr
=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.
$ac_ext >&5
8707 ac_cv_member_struct_ifreq_ifr_addr
=no
8710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8716 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8717 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8719 cat >>confdefs.h
<<_ACEOF
8720 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8728 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8729 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8730 if test "$ac_cv_prog_cc_c89" != no
; then
8731 { echo "$as_me:$LINENO: result: yes" >&5
8732 echo "${ECHO_T}yes" >&6; }
8734 cat >>confdefs.h
<<\_ACEOF
8735 #define PROTOTYPES 1
8739 cat >>confdefs.h
<<\_ACEOF
8740 #define __PROTOTYPES 1
8744 { echo "$as_me:$LINENO: result: no" >&5
8745 echo "${ECHO_T}no" >&6; }
8748 { echo "$as_me:$LINENO: checking for working volatile" >&5
8749 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8750 if test "${ac_cv_c_volatile+set}" = set; then
8751 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 cat >conftest.
$ac_ext <<_ACEOF
8756 cat confdefs.h
>>conftest.
$ac_ext
8757 cat >>conftest.
$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8765 int * volatile y = (int *) 0;
8771 rm -f conftest.
$ac_objext
8772 if { (ac_try
="$ac_compile"
8774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778 (eval "$ac_compile") 2>conftest.er1
8780 grep -v '^ *+' conftest.er1 >conftest.err
8782 cat conftest.err >&5
8783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784 (exit $ac_status); } && {
8785 test -z "$ac_c_werror_flag" ||
8786 test ! -s conftest.err
8787 } && test -s conftest.$ac_objext; then
8788 ac_cv_c_volatile=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8799 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8800 if test $ac_cv_c_volatile = no; then
8802 cat >>confdefs.h <<\_ACEOF
8808 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8809 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8810 if test "${ac_cv_c_const+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8823 /* FIXME: Include the comments suggested by Paul. */
8825 /* Ultrix mips cc rejects this. */
8826 typedef int charset[2];
8828 /* SunOS 4.1.1 cc rejects this. */
8829 char const *const *pcpcc;
8831 /* NEC SVR4.0.2 mips cc rejects this. */
8832 struct point {int x, y;};
8833 static struct point const zero = {0,0};
8834 /* AIX XL C 1.02.0.0 rejects this.
8835 It does not let you subtract one const X* pointer from another in
8836 an arm of an if-expression whose if-part is not a constant
8838 const char *g = "string";
8839 pcpcc = &g + (g ? g-g : 0);
8840 /* HPUX 7.0 cc rejects these. */
8842 ppc = (char**) pcpcc;
8843 pcpcc = (char const *const *) ppc;
8844 { /* SCO 3.2v4 cc rejects this. */
8846 char const *s = 0 ? (char *) 0 : (char const *) 0;
8851 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8853 const int *foo = &x[0];
8856 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8857 typedef const int *iptr;
8861 { /* AIX XL C 1.02.0.0 rejects this saying
8862 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8863 struct s { int j; const int *ap[3]; };
8864 struct s *b; b->j = 5;
8866 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8870 return !cs[0] && !zero.x;
8877 rm -f conftest.$ac_objext
8878 if { (ac_try="$ac_compile"
8880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8881 *) ac_try_echo
=$ac_try;;
8883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8886 grep -v '^ *+' conftest.er1
>conftest.err
8888 cat conftest.err
>&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_c_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.
$ac_objext; then
8896 echo "$as_me: failed program was:" >&5
8897 sed 's/^/| /' conftest.
$ac_ext >&5
8902 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8904 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8905 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8906 if test $ac_cv_c_const = no
; then
8908 cat >>confdefs.h
<<\_ACEOF
8914 { echo "$as_me:$LINENO: checking for void * support" >&5
8915 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8916 if test "${emacs_cv_void_star+set}" = set; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8919 cat >conftest.
$ac_ext <<_ACEOF
8922 cat confdefs.h
>>conftest.
$ac_ext
8923 cat >>conftest.
$ac_ext <<_ACEOF
8924 /* end confdefs.h. */
8934 rm -f conftest.
$ac_objext
8935 if { (ac_try
="$ac_compile"
8937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8938 *) ac_try_echo=$ac_try;;
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941 (eval "$ac_compile") 2>conftest.er1
8943 grep -v '^ *+' conftest.er1 >conftest.err
8945 cat conftest.err >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); } && {
8948 test -z "$ac_c_werror_flag" ||
8949 test ! -s conftest.err
8950 } && test -s conftest.$ac_objext; then
8951 emacs_cv_void_star=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 emacs_cv_void_star=no
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8962 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8963 if test $emacs_cv_void_star = yes; then
8964 cat >>confdefs.h <<\_ACEOF
8965 #define POINTER_TYPE void
8969 cat >>confdefs.h <<\_ACEOF
8970 #define POINTER_TYPE char
8979 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8980 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8981 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8982 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 cat >conftest.make <<\_ACEOF
8988 @echo '@@@%%%=$(MAKE)=@@@%%%'
8990 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8991 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8993 eval ac_cv_prog_make_${ac_make}_set=yes;;
8995 eval ac_cv_prog_make_${ac_make}_set=no;;
8999 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9000 { echo "$as_me:$LINENO: result: yes" >&5
9001 echo "${ECHO_T}yes" >&6; }
9004 { echo "$as_me:$LINENO: result: no" >&5
9005 echo "${ECHO_T}no" >&6; }
9006 SET_MAKE="MAKE=${MAKE-make}"
9010 { echo "$as_me:$LINENO: checking for long file names" >&5
9011 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9012 if test "${ac_cv_sys_long_file_names+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 ac_cv_sys_long_file_names=yes
9016 # Test for long file names in all the places we know might matter:
9017 # . the current directory, where building will happen
9018 # $prefix/lib where we will be installing things
9019 # $exec_prefix/lib likewise
9020 # $TMPDIR if set, where it might want to write temporary files
9021 # /tmp where it might want to write temporary files
9024 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9025 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9026 # in the usual case where exec_prefix is '${prefix}'.
9028 . | /* | ?:[\\/]*) ;; #(
9031 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9032 ac_xdir=$ac_dir/cf$$
9033 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9034 ac_tf1=$ac_xdir/conftest9012345
9035 ac_tf2=$ac_xdir/conftest9012346
9036 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9037 ac_cv_sys_long_file_names=no
9038 rm -f -r "$ac_xdir" 2>/dev/null
9039 test $ac_cv_sys_long_file_names = no && break
9042 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9043 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9044 if test $ac_cv_sys_long_file_names = yes; then
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_LONG_FILE_NAMES 1
9053 #### Choose a window system.
9055 { echo "$as_me:$LINENO: checking for X" >&5
9056 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9059 # Check whether --with-x was given.
9060 if test "${with_x+set}" = set; then
9064 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9065 if test "x$with_x" = xno; then
9066 # The user explicitly disabled X.
9069 case $x_includes,$x_libraries in #(
9070 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9071 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9072 { (exit 1); exit 1; }; };; #(
9073 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9074 echo $ECHO_N "(cached) $ECHO_C" >&6
9076 # One or both of the vars are not set, and there is no cached value.
9077 ac_x_includes=no ac_x_libraries=no
9078 rm -f -r conftest.dir
9079 if mkdir conftest.dir; then
9081 cat >Imakefile <<'_ACEOF'
9083 @echo incroot='${INCROOT}'
9085 @echo usrlibdir='${USRLIBDIR}'
9087 @echo libdir='${LIBDIR}'
9089 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9090 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9091 for ac_var in incroot usrlibdir libdir; do
9092 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9095 for ac_extension in a so sl; do
9096 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9097 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9098 ac_im_usrlibdir=$ac_im_libdir; break
9101 # Screen out bogus values from the imake configuration. They are
9102 # bogus both because they are the default anyway, and because
9103 # using them would break gcc on systems where it needs fixed includes.
9104 case $ac_im_incroot in
9105 /usr/include) ac_x_includes= ;;
9106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9108 case $ac_im_usrlibdir in
9110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9114 rm -f -r conftest.dir
9117 # Standard set of common directories for X headers.
9118 # Check X11 before X11Rn because it is often a symlink to the current release.
9130 /usr/local/X11/include
9131 /usr/local/X11R6/include
9132 /usr/local/X11R5/include
9133 /usr/local/X11R4/include
9135 /usr/local/include/X11
9136 /usr/local/include/X11R6
9137 /usr/local/include/X11R5
9138 /usr/local/include/X11R4
9142 /usr/XFree86/include/X11
9146 /usr/unsupported/include
9148 /usr/local/x11r5/include
9149 /usr/lpp/Xamples/include
9151 /usr/openwin/include
9152 /usr/openwin/share/include'
9154 if test "$ac_x_includes" = no; then
9155 # Guess where to find include files, by looking for Xlib.h.
9156 # First, try using that file with no special directory specified.
9157 cat >conftest.$ac_ext <<_ACEOF
9160 cat confdefs.h >>conftest.$ac_ext
9161 cat >>conftest.$ac_ext <<_ACEOF
9162 /* end confdefs.h. */
9163 #include <X11/Xlib.h>
9165 if { (ac_try="$ac_cpp conftest.$ac_ext"
9167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9168 *) ac_try_echo
=$ac_try;;
9170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9173 grep -v '^ *+' conftest.er1
>conftest.err
9175 cat conftest.err
>&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); } >/dev
/null
&& {
9178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9179 test ! -s conftest.err
9181 # We can compile using X headers with no special include directory.
9184 echo "$as_me: failed program was:" >&5
9185 sed 's/^/| /' conftest.
$ac_ext >&5
9187 for ac_dir
in $ac_x_header_dirs; do
9188 if test -r "$ac_dir/X11/Xlib.h"; then
9189 ac_x_includes
=$ac_dir
9195 rm -f conftest.err conftest.
$ac_ext
9196 fi # $ac_x_includes = no
9198 if test "$ac_x_libraries" = no
; then
9199 # Check for the libraries.
9200 # See if we find them without any special options.
9201 # Don't add to $LIBS permanently.
9204 cat >conftest.
$ac_ext <<_ACEOF
9207 cat confdefs.h
>>conftest.
$ac_ext
9208 cat >>conftest.
$ac_ext <<_ACEOF
9209 /* end confdefs.h. */
9210 #include <X11/Xlib.h>
9219 rm -f conftest.
$ac_objext conftest
$ac_exeext
9220 if { (ac_try
="$ac_link"
9222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9223 *) ac_try_echo=$ac_try;;
9225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226 (eval "$ac_link") 2>conftest.er1
9228 grep -v '^ *+' conftest.er1 >conftest.err
9230 cat conftest.err >&5
9231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232 (exit $ac_status); } && {
9233 test -z "$ac_c_werror_flag" ||
9234 test ! -s conftest.err
9235 } && test -s conftest$ac_exeext &&
9236 $as_test_x conftest$ac_exeext; then
9238 # We can link X programs with no special library path.
9241 echo "$as_me: failed program was:" >&5
9242 sed 's/^/| /' conftest.$ac_ext >&5
9245 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9247 # Don't even attempt the hair of trying to link an X program!
9248 for ac_extension in a so sl; do
9249 if test -r "$ac_dir/libX11.$ac_extension"; then
9250 ac_x_libraries=$ac_dir
9257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9258 conftest$ac_exeext conftest.$ac_ext
9259 fi # $ac_x_libraries = no
9261 case $ac_x_includes,$ac_x_libraries in #(
9263 # Didn't find X, or a directory has "'" in its name.
9264 ac_cv_have_x="have_x=no";; #(
9266 # Record where we found X for the cache.
9267 ac_cv_have_x="have_x=yes\
9268 ac_x_includes='$ac_x_includes'\
9269 ac_x_libraries='$ac_x_libraries'"
9275 eval "$ac_cv_have_x"
9278 if test "$have_x" != yes; then
9279 { echo "$as_me:$LINENO: result: $have_x" >&5
9280 echo "${ECHO_T}$have_x" >&6; }
9283 # If each of the values was on the command line, it overrides each guess.
9284 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9285 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9286 # Update the cache value to reflect the command line values.
9287 ac_cv_have_x="have_x=yes\
9288 ac_x_includes='$x_includes'\
9289 ac_x_libraries='$x_libraries'"
9290 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9291 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9294 if test "$no_x" = yes; then
9300 if test "${x_libraries}" != NONE; then
9301 if test -n "${x_libraries}"; then
9302 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9303 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9305 x_default_search_path=""
9306 x_search_path=${x_libraries}
9307 if test -z "${x_search_path}"; then
9308 x_search_path=/usr/lib
9310 for x_library in `echo ${x_search_path}: | \
9311 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9313 ${x_library}/X11/%L/%T/%N%C%S:\
9314 ${x_library}/X11/%l/%T/%N%C%S:\
9315 ${x_library}/X11/%T/%N%C%S:\
9316 ${x_library}/X11/%L/%T/%N%S:\
9317 ${x_library}/X11/%l/%T/%N%S:\
9318 ${x_library}/X11/%T/%N%S"
9319 if test x"${x_default_search_path}" = x; then
9320 x_default_search_path=${x_search_path}
9322 x_default_search_path="${x_search_path}:${x_default_search_path}"
9326 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9327 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9330 if test x"${x_includes}" = x; then
9331 bitmapdir=/usr/include/X11/bitmaps
9333 # accumulate include directories that have X11 bitmap subdirectories
9335 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9336 if test -d "${bmd}/X11/bitmaps"; then
9337 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9339 if test -d "${bmd}/bitmaps"; then
9340 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9343 if test ${bmd_acc} != "dummyval"; then
9344 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9349 if test "${with_carbon}" != no; then
9350 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9351 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9352 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9353 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9357 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9359 # Is the header compilable?
9360 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9361 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 #include <Carbon/Carbon.h>
9371 rm -f conftest.$ac_objext
9372 if { (ac_try="$ac_compile"
9374 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9375 *) ac_try_echo
=$ac_try;;
9377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9378 (eval "$ac_compile") 2>conftest.er1
9380 grep -v '^ *+' conftest.er1
>conftest.err
9382 cat conftest.err
>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); } && {
9385 test -z "$ac_c_werror_flag" ||
9386 test ! -s conftest.err
9387 } && test -s conftest.
$ac_objext; then
9388 ac_header_compiler
=yes
9390 echo "$as_me: failed program was:" >&5
9391 sed 's/^/| /' conftest.
$ac_ext >&5
9393 ac_header_compiler
=no
9396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9398 echo "${ECHO_T}$ac_header_compiler" >&6; }
9400 # Is the header present?
9401 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9402 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9403 cat >conftest.
$ac_ext <<_ACEOF
9406 cat confdefs.h
>>conftest.
$ac_ext
9407 cat >>conftest.
$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 #include <Carbon/Carbon.h>
9411 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9414 *) ac_try_echo=$ac_try;;
9416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9419 grep -v '^ *+' conftest.er1 >conftest.err
9421 cat conftest.err >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); } >/dev/null && {
9424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9425 test ! -s conftest.err
9427 ac_header_preproc=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_header_preproc=no
9435 rm -f conftest.err conftest.$ac_ext
9436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9437 echo "${ECHO_T}$ac_header_preproc" >&6; }
9439 # So? What about this header?
9440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9446 ac_header_preproc=yes
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9464 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9465 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9466 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9467 echo $ECHO_N "(cached) $ECHO_C" >&6
9469 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9471 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9472 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9475 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9481 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9482 if test "${with_carbon+set}" != set \
9483 && test "${carbon_appdir_x+set}" != set; then
9484 for var in with_x with_x_toolkit with_gtk with_xim \
9485 with_xpm with_jpeg with_tiff with_gif with_png; do
9486 if eval test \"\${$var+set}\" = set; then
9493 if test "${HAVE_CARBON}" = yes; then
9497 case "${window_system}" in
9501 case "${with_x_toolkit}" in
9502 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9503 motif ) USE_X_TOOLKIT=MOTIF ;;
9505 USE_X_TOOLKIT=none ;;
9506 no ) USE_X_TOOLKIT=none ;;
9507 * ) USE_X_TOOLKIT=maybe ;;
9517 ### If we're using X11, we should use the X menu package.
9520 yes ) HAVE_MENUS=yes ;;
9523 if test "${opsys}" = "hpux9"; then
9524 case "${x_libraries}" in
9526 opsysfile="s/hpux9-x11r4.h"
9531 if test "${opsys}" = "hpux9shr"; then
9532 case "${x_libraries}" in
9534 opsysfile="s/hpux9shxr4.h"
9539 ### Compute the unexec source name from the object name.
9540 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9542 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9543 # Assume not, until told otherwise.
9546 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9547 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9548 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9557 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9559 #define malloc_get_state innocuous_malloc_get_state
9561 /* System header to define __stub macros and hopefully few prototypes,
9562 which can conflict with char malloc_get_state (); below.
9563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9564 <limits.h> exists even on freestanding compilers. */
9567 # include <limits.h>
9569 # include <assert.h>
9572 #undef malloc_get_state
9574 /* Override any GCC internal prototype to avoid an error.
9575 Use char because int might match the return type of a GCC
9576 builtin and then its argument prototype would still apply. */
9580 char malloc_get_state ();
9581 /* The GNU C library defines this for functions which it implements
9582 to always fail with ENOSYS. Some functions are actually named
9583 something starting with __ and the normal name is an alias. */
9584 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9591 return malloc_get_state ();
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9599 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9600 *) ac_try_echo
=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9605 grep -v '^ *+' conftest.er1
>conftest.err
9607 cat conftest.err
>&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest
$ac_exeext &&
9613 $as_test_x conftest
$ac_exeext; then
9614 ac_cv_func_malloc_get_state
=yes
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.
$ac_ext >&5
9619 ac_cv_func_malloc_get_state
=no
9622 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9623 conftest
$ac_exeext conftest.
$ac_ext
9625 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9626 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9627 if test $ac_cv_func_malloc_get_state = yes; then
9633 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9634 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9635 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9636 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 cat >conftest.
$ac_ext <<_ACEOF
9641 cat confdefs.h
>>conftest.
$ac_ext
9642 cat >>conftest.
$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9646 #define malloc_set_state innocuous_malloc_set_state
9648 /* System header to define __stub macros and hopefully few prototypes,
9649 which can conflict with char malloc_set_state (); below.
9650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9651 <limits.h> exists even on freestanding compilers. */
9654 # include <limits.h>
9656 # include <assert.h>
9659 #undef malloc_set_state
9661 /* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
9667 char malloc_set_state ();
9668 /* The GNU C library defines this for functions which it implements
9669 to always fail with ENOSYS. Some functions are actually named
9670 something starting with __ and the normal name is an alias. */
9671 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9678 return malloc_set_state ();
9683 rm -f conftest.
$ac_objext conftest
$ac_exeext
9684 if { (ac_try
="$ac_link"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 ac_cv_func_malloc_set_state=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_func_malloc_set_state=no
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9713 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9714 if test $ac_cv_func_malloc_set_state = yes; then
9720 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9721 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9722 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 extern void (* __after_morecore_hook)();
9735 __after_morecore_hook = 0
9740 rm -f conftest.$ac_objext conftest$ac_exeext
9741 if { (ac_try="$ac_link"
9743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9744 *) ac_try_echo
=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_link") 2>conftest.er1
9749 grep -v '^ *+' conftest.er1
>conftest.err
9751 cat conftest.err
>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && {
9754 test -z "$ac_c_werror_flag" ||
9755 test ! -s conftest.err
9756 } && test -s conftest
$ac_exeext &&
9757 $as_test_x conftest
$ac_exeext; then
9758 emacs_cv_var___after_morecore_hook
=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.
$ac_ext >&5
9763 emacs_cv_var___after_morecore_hook
=no
9766 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9767 conftest
$ac_exeext conftest.
$ac_ext
9769 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9770 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9771 if test $emacs_cv_var___after_morecore_hook = no
; then
9774 if test "${system_malloc}" = "yes"; then
9777 (The GNU allocators don't work with this system configuration.)"
9779 if test "$doug_lea_malloc" = "yes" ; then
9780 if test "$GNU_MALLOC" = yes ; then
9782 (Using Doug Lea's new malloc from the GNU C Library.)"
9785 cat >>confdefs.h
<<\_ACEOF
9786 #define DOUG_LEA_MALLOC 1
9791 if test x
"${REL_ALLOC}" = x
; then
9792 REL_ALLOC
=${GNU_MALLOC}
9798 for ac_header
in stdlib.h unistd.h
9800 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9801 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9804 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 ac_res
=`eval echo '${'$as_ac_Header'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9811 # Is the header compilable?
9812 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9813 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 $ac_includes_default
9821 #include <$ac_header>
9823 rm -f conftest.
$ac_objext
9824 if { (ac_try
="$ac_compile"
9826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9827 *) ac_try_echo=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_compile") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1 >conftest.err
9834 cat conftest.err >&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest.$ac_objext; then
9840 ac_header_compiler=yes
9842 echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9845 ac_header_compiler=no
9848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9850 echo "${ECHO_T}$ac_header_compiler" >&6; }
9852 # Is the header present?
9853 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9854 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9855 cat >conftest.$ac_ext <<_ACEOF
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9861 #include <$ac_header>
9863 if { (ac_try="$ac_cpp conftest.$ac_ext"
9865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9866 *) ac_try_echo
=$ac_try;;
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9871 grep -v '^ *+' conftest.er1
>conftest.err
9873 cat conftest.err
>&5
9874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875 (exit $ac_status); } >/dev
/null
&& {
9876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9877 test ! -s conftest.err
9879 ac_header_preproc
=yes
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.
$ac_ext >&5
9884 ac_header_preproc
=no
9887 rm -f conftest.err conftest.
$ac_ext
9888 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889 echo "${ECHO_T}$ac_header_preproc" >&6; }
9891 # So? What about this header?
9892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc
=yes
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9916 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9917 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 eval "$as_ac_Header=\$ac_header_preproc"
9923 ac_res
=`eval echo '${'$as_ac_Header'}'`
9924 { echo "$as_me:$LINENO: result: $ac_res" >&5
9925 echo "${ECHO_T}$ac_res" >&6; }
9928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9929 cat >>confdefs.h
<<_ACEOF
9930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938 for ac_func
in getpagesize
9940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9943 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9944 echo $ECHO_N "(cached) $ECHO_C" >&6
9946 cat >conftest.
$ac_ext <<_ACEOF
9949 cat confdefs.h
>>conftest.
$ac_ext
9950 cat >>conftest.
$ac_ext <<_ACEOF
9951 /* end confdefs.h. */
9952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9954 #define $ac_func innocuous_$ac_func
9956 /* System header to define __stub macros and hopefully few prototypes,
9957 which can conflict with char $ac_func (); below.
9958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9959 <limits.h> exists even on freestanding compilers. */
9962 # include <limits.h>
9964 # include <assert.h>
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9976 /* The GNU C library defines this for functions which it implements
9977 to always fail with ENOSYS. Some functions are actually named
9978 something starting with __ and the normal name is an alias. */
9979 #if defined __stub_$ac_func || defined __stub___$ac_func
9991 rm -f conftest.
$ac_objext conftest
$ac_exeext
9992 if { (ac_try
="$ac_link"
9994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9995 *) ac_try_echo=$ac_try;;
9997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9998 (eval "$ac_link") 2>conftest.er1
10000 grep -v '^ *+' conftest.er1 >conftest.err
10002 cat conftest.err >&5
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); } && {
10005 test -z "$ac_c_werror_flag" ||
10006 test ! -s conftest.err
10007 } && test -s conftest$ac_exeext &&
10008 $as_test_x conftest$ac_exeext; then
10009 eval "$as_ac_var=yes"
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 eval "$as_ac_var=no"
10017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10018 conftest$ac_exeext conftest.$ac_ext
10020 ac_res=`eval echo '${'$as_ac_var'}'`
10021 { echo "$as_me:$LINENO: result: $ac_res" >&5
10022 echo "${ECHO_T}$ac_res" >&6; }
10023 if test `eval echo '${'$as_ac_var'}'` = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10031 { echo "$as_me:$LINENO: checking for working mmap" >&5
10032 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10033 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10034 echo $ECHO_N "(cached) $ECHO_C" >&6
10036 if test "$cross_compiling" = yes; then
10037 ac_cv_func_mmap_fixed_mapped=no
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 $ac_includes_default
10046 /* malloc might have been renamed as rpl_malloc. */
10049 /* Thanks to Mike Haertel and Jim Avera for this test.
10050 Here is a matrix of mmap possibilities:
10051 mmap private not fixed
10052 mmap private fixed at somewhere currently unmapped
10053 mmap private fixed at somewhere already mapped
10054 mmap shared not fixed
10055 mmap shared fixed at somewhere currently unmapped
10056 mmap shared fixed at somewhere already mapped
10057 For private mappings, we should verify that changes cannot be read()
10058 back from the file, nor mmap's back from the file at a different
10059 address. (There have been systems where private was not correctly
10060 implemented like the infamous i386 svr4.0, and systems where the
10061 VM page cache was not coherent with the file system buffer cache
10062 like early versions of FreeBSD and possibly contemporary NetBSD.)
10063 For shared mappings, we should conversely verify that changes get
10064 propagated back to all the places they're supposed to be.
10066 Grep wants private fixed already mapped.
10067 The main things grep needs to know about mmap are:
10068 * does it exist and is it safe to write into the mmap'd area
10069 * how to use it (BSD variants) */
10072 #include <sys/mman.h>
10074 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10078 /* This mess was copied from the GNU getpagesize.h. */
10079 #ifndef HAVE_GETPAGESIZE
10080 /* Assume that all systems that can run configure have sys/param.h. */
10081 # ifndef HAVE_SYS_PARAM_H
10082 # define HAVE_SYS_PARAM_H 1
10085 # ifdef _SC_PAGESIZE
10086 # define getpagesize() sysconf(_SC_PAGESIZE)
10087 # else /* no _SC_PAGESIZE */
10088 # ifdef HAVE_SYS_PARAM_H
10089 # include <sys/param.h>
10090 # ifdef EXEC_PAGESIZE
10091 # define getpagesize() EXEC_PAGESIZE
10092 # else /* no EXEC_PAGESIZE */
10094 # define getpagesize() NBPG * CLSIZE
10097 # endif /* no CLSIZE */
10098 # else /* no NBPG */
10100 # define getpagesize() NBPC
10101 # else /* no NBPC */
10103 # define getpagesize() PAGESIZE
10104 # endif /* PAGESIZE */
10105 # endif /* no NBPC */
10106 # endif /* no NBPG */
10107 # endif /* no EXEC_PAGESIZE */
10108 # else /* no HAVE_SYS_PARAM_H */
10109 # define getpagesize() 8192 /* punt totally */
10110 # endif /* no HAVE_SYS_PARAM_H */
10111 # endif /* no _SC_PAGESIZE */
10113 #endif /* no HAVE_GETPAGESIZE */
10118 char *data, *data2, *data3;
10122 pagesize = getpagesize ();
10124 /* First, make a file with some known garbage in it. */
10125 data = (char *) malloc (pagesize);
10128 for (i = 0; i < pagesize; ++i)
10129 *(data + i) = rand ();
10131 fd = creat ("conftest.mmap", 0600);
10134 if (write (fd, data, pagesize) != pagesize)
10138 /* Next, try to mmap the file at a fixed address which already has
10139 something else allocated at it. If we can, also make sure that
10140 we see the same garbage. */
10141 fd = open ("conftest.mmap", O_RDWR);
10144 data2 = (char *) malloc (2 * pagesize);
10147 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10151 for (i = 0; i < pagesize; ++i)
10152 if (*(data + i) != *(data2 + i))
10155 /* Finally, make sure that changes to the mapped area do not
10156 percolate back to the file as seen by read(). (This is a bug on
10157 some variants of i386 svr4.0.) */
10158 for (i = 0; i < pagesize; ++i)
10159 *(data2 + i) = *(data2 + i) + 1;
10160 data3 = (char *) malloc (pagesize);
10163 if (read (fd, data3, pagesize) != pagesize)
10165 for (i = 0; i < pagesize; ++i)
10166 if (*(data + i) != *(data3 + i))
10172 rm -f conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10176 *) ac_try_echo
=$ac_try;;
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10183 { (case "(($ac_try" in
10184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10185 *) ac_try_echo=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_try") 2>&5
10190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); }; }; then
10192 ac_cv_func_mmap_fixed_mapped=yes
10194 echo "$as_me: program exited with status $ac_status" >&5
10195 echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10198 ( exit $ac_status )
10199 ac_cv_func_mmap_fixed_mapped=no
10201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10206 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10207 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10208 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10210 cat >>confdefs.h <<\_ACEOF
10211 #define HAVE_MMAP 1
10215 rm -f conftest.mmap
10217 if test $use_mmap_for_buffers = yes; then
10221 LIBS="$libsrc_libs $LIBS"
10224 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10225 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-ldnet $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10248 return dnet_ntoa ();
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10257 *) ac_try_echo
=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1
>conftest.err
10264 cat conftest.err
>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest
$ac_exeext &&
10270 $as_test_x conftest
$ac_exeext; then
10271 ac_cv_lib_dnet_dnet_ntoa
=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.
$ac_ext >&5
10276 ac_cv_lib_dnet_dnet_ntoa
=no
10279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10280 conftest
$ac_exeext conftest.
$ac_ext
10281 LIBS
=$ac_check_lib_save_LIBS
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10284 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10285 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10286 cat >>confdefs.h
<<_ACEOF
10287 #define HAVE_LIBDNET 1
10290 LIBS
="-ldnet $LIBS"
10295 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10296 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10300 ac_check_lib_save_LIBS
=$LIBS
10301 LIBS
="-lXbsd $LIBS"
10302 cat >conftest.
$ac_ext <<_ACEOF
10305 cat confdefs.h
>>conftest.
$ac_ext
10306 cat >>conftest.
$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10318 rm -f conftest.
$ac_objext conftest
$ac_exeext
10319 if { (ac_try
="$ac_link"
10320 case "(($ac_try" in
10321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10325 (eval "$ac_link") 2>conftest.er1
10327 grep -v '^ *+' conftest.er1 >conftest.err
10329 cat conftest.err >&5
10330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331 (exit $ac_status); } && {
10332 test -z "$ac_c_werror_flag" ||
10333 test ! -s conftest.err
10334 } && test -s conftest$ac_exeext &&
10335 $as_test_x conftest$ac_exeext; then
10336 ac_cv_lib_Xbsd_main=yes
10338 echo "$as_me: failed program was:" >&5
10339 sed 's/^/| /' conftest.$ac_ext >&5
10341 ac_cv_lib_Xbsd_main=no
10344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10345 conftest$ac_exeext conftest.$ac_ext
10346 LIBS=$ac_check_lib_save_LIBS
10348 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10349 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10350 if test $ac_cv_lib_Xbsd_main = yes; then
10351 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10356 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10357 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10358 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 ac_check_lib_save_LIBS=$LIBS
10362 LIBS="-lpthreads $LIBS"
10363 cat >conftest.$ac_ext <<_ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h. */
10370 /* Override any GCC internal prototype to avoid an error.
10371 Use char because int might match the return type of a GCC
10372 builtin and then its argument prototype would still apply. */
10380 return cma_open ();
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10389 *) ac_try_echo
=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1
>conftest.err
10396 cat conftest.err
>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest
$ac_exeext &&
10402 $as_test_x conftest
$ac_exeext; then
10403 ac_cv_lib_pthreads_cma_open
=yes
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 ac_cv_lib_pthreads_cma_open
=no
10411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10412 conftest
$ac_exeext conftest.
$ac_ext
10413 LIBS
=$ac_check_lib_save_LIBS
10415 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10416 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10417 if test $ac_cv_lib_pthreads_cma_open = yes; then
10418 cat >>confdefs.h
<<_ACEOF
10419 #define HAVE_LIBPTHREADS 1
10422 LIBS
="-lpthreads $LIBS"
10427 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10428 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10429 if test -d /usr
/X386
/include
; then
10431 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10435 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10436 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10441 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10442 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10443 if test "${gdb_cv_bigtoc+set}" = set; then
10444 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10449 *) gdb_cv_bigtoc
=-bbigtoc ;;
10452 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10453 cat >conftest.
$ac_ext <<_ACEOF
10456 cat confdefs.h
>>conftest.
$ac_ext
10457 cat >>conftest.
$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10468 rm -f conftest.
$ac_objext conftest
$ac_exeext
10469 if { (ac_try
="$ac_link"
10470 case "(($ac_try" in
10471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_link") 2>conftest.er1
10477 grep -v '^ *+' conftest.er1 >conftest.err
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); } && {
10482 test -z "$ac_c_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest$ac_exeext &&
10485 $as_test_x conftest$ac_exeext; then
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10495 conftest$ac_exeext conftest.$ac_ext
10498 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10499 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10503 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10504 # used for the tests that follow. We set them back to REAL_CFLAGS and
10505 # REAL_CPPFLAGS later on.
10507 REAL_CPPFLAGS="$CPPFLAGS"
10509 if test "${HAVE_X11}" = "yes"; then
10510 DEFS="$C_SWITCH_X_SITE $DEFS"
10511 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10513 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10514 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10516 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10517 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10518 # but it's more convenient here to set LD_RUN_PATH
10519 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10520 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10521 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10525 if test "${opsys}" = "gnu-linux"; then
10526 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10527 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10528 cat >conftest.$ac_ext <<_ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10538 XOpenDisplay ("foo");
10543 rm -f conftest.$ac_objext conftest$ac_exeext
10544 if { (ac_try="$ac_link"
10545 case "(($ac_try" in
10546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10547 *) ac_try_echo
=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1
>conftest.err
10554 cat conftest.err
>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest
$ac_exeext &&
10560 $as_test_x conftest
$ac_exeext; then
10561 xlinux_first_failure
=no
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.
$ac_ext >&5
10566 xlinux_first_failure
=yes
10569 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10570 conftest
$ac_exeext conftest.
$ac_ext
10571 if test "${xlinux_first_failure}" = "yes"; then
10572 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10573 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10574 OLD_CPPFLAGS
="$CPPFLAGS"
10576 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10577 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10578 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10579 LIBS
="$LIBS -b i486-linuxaout"
10580 cat >conftest.
$ac_ext <<_ACEOF
10583 cat confdefs.h
>>conftest.
$ac_ext
10584 cat >>conftest.
$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10590 XOpenDisplay ("foo");
10595 rm -f conftest.
$ac_objext conftest
$ac_exeext
10596 if { (ac_try
="$ac_link"
10597 case "(($ac_try" in
10598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_link") 2>conftest.er1
10604 grep -v '^ *+' conftest.er1 >conftest.err
10606 cat conftest.err >&5
10607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608 (exit $ac_status); } && {
10609 test -z "$ac_c_werror_flag" ||
10610 test ! -s conftest.err
10611 } && test -s conftest$ac_exeext &&
10612 $as_test_x conftest$ac_exeext; then
10613 xlinux_second_failure=no
10615 echo "$as_me: failed program was:" >&5
10616 sed 's/^/| /' conftest.$ac_ext >&5
10618 xlinux_second_failure=yes
10621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10622 conftest$ac_exeext conftest.$ac_ext
10623 if test "${xlinux_second_failure}" = "yes"; then
10624 # If we get the same failure with -b, there is no use adding -b.
10625 # So take it out. This plays safe.
10626 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10627 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10628 CPPFLAGS="$OLD_CPPFLAGS"
10630 { echo "$as_me:$LINENO: result: no" >&5
10631 echo "${ECHO_T}no" >&6; }
10633 { echo "$as_me:$LINENO: result: yes" >&5
10634 echo "${ECHO_T}yes" >&6; }
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10642 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10643 # header files included from there.
10644 { echo "$as_me:$LINENO: checking for Xkb" >&5
10645 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10646 cat >conftest.$ac_ext <<_ACEOF
10649 cat confdefs.h >>conftest.$ac_ext
10650 cat >>conftest.$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 #include <X11/Xlib.h>
10653 #include <X11/XKBlib.h>
10657 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10662 rm -f conftest.$ac_objext conftest$ac_exeext
10663 if { (ac_try="$ac_link"
10664 case "(($ac_try" in
10665 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10666 *) ac_try_echo
=$ac_try;;
10668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10669 (eval "$ac_link") 2>conftest.er1
10671 grep -v '^ *+' conftest.er1
>conftest.err
10673 cat conftest.err
>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); } && {
10676 test -z "$ac_c_werror_flag" ||
10677 test ! -s conftest.err
10678 } && test -s conftest
$ac_exeext &&
10679 $as_test_x conftest
$ac_exeext; then
10682 echo "$as_me: failed program was:" >&5
10683 sed 's/^/| /' conftest.
$ac_ext >&5
10688 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10689 conftest
$ac_exeext conftest.
$ac_ext
10690 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10691 echo "${ECHO_T}$emacs_xkb" >&6; }
10692 if test $emacs_xkb = yes; then
10694 cat >>confdefs.h
<<\_ACEOF
10695 #define HAVE_XKBGETKEYBOARD 1
10704 for ac_func
in XrmSetDatabase XScreenResourceString \
10705 XScreenNumberOfScreen XSetWMProtocols
10707 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10708 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10710 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 cat >conftest.
$ac_ext <<_ACEOF
10716 cat confdefs.h
>>conftest.
$ac_ext
10717 cat >>conftest.
$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define $ac_func innocuous_$ac_func
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char $ac_func (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10729 # include <limits.h>
10731 # include <assert.h>
10736 /* Override any GCC internal prototype to avoid an error.
10737 Use char because int might match the return type of a GCC
10738 builtin and then its argument prototype would still apply. */
10743 /* The GNU C library defines this for functions which it implements
10744 to always fail with ENOSYS. Some functions are actually named
10745 something starting with __ and the normal name is an alias. */
10746 #if defined __stub_$ac_func || defined __stub___$ac_func
10753 return $ac_func ();
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 eval "$as_ac_var=yes"
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 eval "$as_ac_var=no"
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10787 ac_res=`eval echo '${'$as_ac_var'}'`
10788 { echo "$as_me:$LINENO: result: $ac_res" >&5
10789 echo "${ECHO_T}$ac_res" >&6; }
10790 if test `eval echo '${'$as_ac_var'}'` = yes; then
10791 cat >>confdefs.h <<_ACEOF
10792 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10800 if test "${window_system}" = "x11"; then
10801 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10802 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10803 if test "${emacs_cv_x11_version_6+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 cat >conftest.$ac_ext <<_ACEOF
10809 cat confdefs.h >>conftest.$ac_ext
10810 cat >>conftest.$ac_ext <<_ACEOF
10811 /* end confdefs.h. */
10812 #include <X11/Xlib.h>
10816 #if XlibSpecificationRelease < 6
10824 rm -f conftest.$ac_objext conftest$ac_exeext
10825 if { (ac_try="$ac_link"
10826 case "(($ac_try" in
10827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10828 *) ac_try_echo
=$ac_try;;
10830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10831 (eval "$ac_link") 2>conftest.er1
10833 grep -v '^ *+' conftest.er1
>conftest.err
10835 cat conftest.err
>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && {
10838 test -z "$ac_c_werror_flag" ||
10839 test ! -s conftest.err
10840 } && test -s conftest
$ac_exeext &&
10841 $as_test_x conftest
$ac_exeext; then
10842 emacs_cv_x11_version_6
=yes
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 emacs_cv_x11_version_6
=no
10850 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10851 conftest
$ac_exeext conftest.
$ac_ext
10854 if test $emacs_cv_x11_version_6 = yes; then
10855 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10856 echo "${ECHO_T}6 or newer" >&6; }
10858 cat >>confdefs.h
<<\_ACEOF
10859 #define HAVE_X11R6 1
10863 { echo "$as_me:$LINENO: result: before 6" >&5
10864 echo "${ECHO_T}before 6" >&6; }
10868 if test "${window_system}" = "x11"; then
10869 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10870 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10871 if test "${emacs_cv_x11_version_5+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 cat >conftest.
$ac_ext <<_ACEOF
10877 cat confdefs.h
>>conftest.
$ac_ext
10878 cat >>conftest.
$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10880 #include <X11/Xlib.h>
10884 #if XlibSpecificationRelease < 5
10892 rm -f conftest.
$ac_objext conftest
$ac_exeext
10893 if { (ac_try
="$ac_link"
10894 case "(($ac_try" in
10895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_link") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest$ac_exeext &&
10909 $as_test_x conftest$ac_exeext; then
10910 emacs_cv_x11_version_5=yes
10912 echo "$as_me: failed program was:" >&5
10913 sed 's/^/| /' conftest.$ac_ext >&5
10915 emacs_cv_x11_version_5=no
10918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10919 conftest$ac_exeext conftest.$ac_ext
10922 if test $emacs_cv_x11_version_5 = yes; then
10923 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10924 echo "${ECHO_T}5 or newer" >&6; }
10927 cat >>confdefs.h <<\_ACEOF
10928 #define HAVE_X11R5 1
10933 { echo "$as_me:$LINENO: result: before 5" >&5
10934 echo "${ECHO_T}before 5" >&6; }
10939 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10942 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10943 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10944 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10945 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10946 { (exit 1); exit 1; }; };
10950 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10952 if test "X${with_pkg_config_prog}" != X; then
10953 PKG_CONFIG="${with_pkg_config_prog}"
10958 if test -z "$PKG_CONFIG"; then
10959 # Extract the first word of "pkg-config", so it can be a program name with args.
10960 set dummy pkg-config; ac_word=$2
10961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10964 echo $ECHO_N "(cached) $ECHO_C" >&6
10966 case $PKG_CONFIG in
10968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10991 if test -n "$PKG_CONFIG"; then
10992 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10993 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
11002 if test "$PKG_CONFIG" = "no" ; then
11003 { { echo "$as_me:$LINENO: error:
11004 *** 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
11005 echo "$as_me: error:
11006 *** 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;}
11007 { (exit 1); exit 1; }; }
11009 PKG_CONFIG_MIN_VERSION=0.9.0
11010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11011 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11012 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11014 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11015 { echo "$as_me:$LINENO: result: yes" >&5
11016 echo "${ECHO_T}yes" >&6; }
11019 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11020 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11021 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11022 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11023 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11025 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11026 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11027 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11028 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11029 echo "${ECHO_T}$GTK_LIBS" >&6; }
11031 { echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6; }
11035 ## If we have a custom action on failure, don't print errors, but
11036 ## do set a variable so people can do so.
11037 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11038 echo $GTK_PKG_ERRORS
11044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11049 if test $succeeded = yes; then
11052 { { 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
11053 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;}
11054 { (exit 1); exit 1; }; }
11059 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11060 CFLAGS="$CFLAGS $GTK_CFLAGS"
11061 LIBS="$GTK_LIBS $LIBS"
11064 for ac_func in gtk_main
11066 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11072 cat >conftest.$ac_ext <<_ACEOF
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11080 #define $ac_func innocuous_$ac_func
11082 /* System header to define __stub macros and hopefully few prototypes,
11083 which can conflict with char $ac_func (); below.
11084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11085 <limits.h> exists even on freestanding compilers. */
11088 # include <limits.h>
11090 # include <assert.h>
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11102 /* The GNU C library defines this for functions which it implements
11103 to always fail with ENOSYS. Some functions are actually named
11104 something starting with __ and the normal name is an alias. */
11105 #if defined __stub_$ac_func || defined __stub___$ac_func
11112 return $ac_func ();
11117 rm -f conftest.$ac_objext conftest$ac_exeext
11118 if { (ac_try="$ac_link"
11119 case "(($ac_try" in
11120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11121 *) ac_try_echo
=$ac_try;;
11123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11124 (eval "$ac_link") 2>conftest.er1
11126 grep -v '^ *+' conftest.er1
>conftest.err
11128 cat conftest.err
>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest
$ac_exeext &&
11134 $as_test_x conftest
$ac_exeext; then
11135 eval "$as_ac_var=yes"
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.
$ac_ext >&5
11140 eval "$as_ac_var=no"
11143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11144 conftest
$ac_exeext conftest.
$ac_ext
11146 ac_res
=`eval echo '${'$as_ac_var'}'`
11147 { echo "$as_me:$LINENO: result: $ac_res" >&5
11148 echo "${ECHO_T}$ac_res" >&6; }
11149 if test `eval echo '${'$as_ac_var'}'` = yes; then
11150 cat >>confdefs.h
<<_ACEOF
11151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11157 if test "${GTK_COMPILES}" != "yes"; then
11158 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11159 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11160 { (exit 1); exit 1; }; };
11165 cat >>confdefs.h
<<\_ACEOF
11171 if test "$with_toolkit_scroll_bars" != no
; then
11172 with_toolkit_scroll_bars
=yes
11175 HAVE_GTK_MULTIDISPLAY
=no
11177 for ac_func
in gdk_display_open
11179 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11182 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11183 echo $ECHO_N "(cached) $ECHO_C" >&6
11185 cat >conftest.
$ac_ext <<_ACEOF
11188 cat confdefs.h
>>conftest.
$ac_ext
11189 cat >>conftest.
$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11193 #define $ac_func innocuous_$ac_func
11195 /* System header to define __stub macros and hopefully few prototypes,
11196 which can conflict with char $ac_func (); below.
11197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11198 <limits.h> exists even on freestanding compilers. */
11201 # include <limits.h>
11203 # include <assert.h>
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11215 /* The GNU C library defines this for functions which it implements
11216 to always fail with ENOSYS. Some functions are actually named
11217 something starting with __ and the normal name is an alias. */
11218 #if defined __stub_$ac_func || defined __stub___$ac_func
11225 return $ac_func ();
11230 rm -f conftest.
$ac_objext conftest
$ac_exeext
11231 if { (ac_try
="$ac_link"
11232 case "(($ac_try" in
11233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_link") 2>conftest.er1
11239 grep -v '^ *+' conftest.er1 >conftest.err
11241 cat conftest.err >&5
11242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243 (exit $ac_status); } && {
11244 test -z "$ac_c_werror_flag" ||
11245 test ! -s conftest.err
11246 } && test -s conftest$ac_exeext &&
11247 $as_test_x conftest$ac_exeext; then
11248 eval "$as_ac_var=yes"
11250 echo "$as_me: failed program was:" >&5
11251 sed 's/^/| /' conftest.$ac_ext >&5
11253 eval "$as_ac_var=no"
11256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11257 conftest$ac_exeext conftest.$ac_ext
11259 ac_res=`eval echo '${'$as_ac_var'}'`
11260 { echo "$as_me:$LINENO: result: $ac_res" >&5
11261 echo "${ECHO_T}$ac_res" >&6; }
11262 if test `eval echo '${'$as_ac_var'}'` = yes; then
11263 cat >>confdefs.h <<_ACEOF
11264 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11266 HAVE_GTK_MULTIDISPLAY=yes
11270 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11272 cat >>confdefs.h <<\_ACEOF
11273 #define HAVE_GTK_MULTIDISPLAY 1
11277 HAVE_GTK_FILE_SELECTION=no
11279 for ac_func in gtk_file_selection_new
11281 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11285 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 cat >conftest.$ac_ext <<_ACEOF
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11295 #define $ac_func innocuous_$ac_func
11297 /* System header to define __stub macros and hopefully few prototypes,
11298 which can conflict with char $ac_func (); below.
11299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11300 <limits.h> exists even on freestanding compilers. */
11303 # include <limits.h>
11305 # include <assert.h>
11310 /* Override any GCC internal prototype to avoid an error.
11311 Use char because int might match the return type of a GCC
11312 builtin and then its argument prototype would still apply. */
11317 /* The GNU C library defines this for functions which it implements
11318 to always fail with ENOSYS. Some functions are actually named
11319 something starting with __ and the normal name is an alias. */
11320 #if defined __stub_$ac_func || defined __stub___$ac_func
11327 return $ac_func ();
11332 rm -f conftest.$ac_objext conftest$ac_exeext
11333 if { (ac_try="$ac_link"
11334 case "(($ac_try" in
11335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11336 *) ac_try_echo
=$ac_try;;
11338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11339 (eval "$ac_link") 2>conftest.er1
11341 grep -v '^ *+' conftest.er1
>conftest.err
11343 cat conftest.err
>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); } && {
11346 test -z "$ac_c_werror_flag" ||
11347 test ! -s conftest.err
11348 } && test -s conftest
$ac_exeext &&
11349 $as_test_x conftest
$ac_exeext; then
11350 eval "$as_ac_var=yes"
11352 echo "$as_me: failed program was:" >&5
11353 sed 's/^/| /' conftest.
$ac_ext >&5
11355 eval "$as_ac_var=no"
11358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11359 conftest
$ac_exeext conftest.
$ac_ext
11361 ac_res
=`eval echo '${'$as_ac_var'}'`
11362 { echo "$as_me:$LINENO: result: $ac_res" >&5
11363 echo "${ECHO_T}$ac_res" >&6; }
11364 if test `eval echo '${'$as_ac_var'}'` = yes; then
11365 cat >>confdefs.h
<<_ACEOF
11366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11368 HAVE_GTK_FILE_SELECTION
=yes
11373 HAVE_GTK_FILE_CHOOSER
=no
11375 for ac_func
in gtk_file_chooser_dialog_new
11377 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11380 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.
$ac_ext <<_ACEOF
11386 cat confdefs.h
>>conftest.
$ac_ext
11387 cat >>conftest.
$ac_ext <<_ACEOF
11388 /* end confdefs.h. */
11389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11391 #define $ac_func innocuous_$ac_func
11393 /* System header to define __stub macros and hopefully few prototypes,
11394 which can conflict with char $ac_func (); below.
11395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11396 <limits.h> exists even on freestanding compilers. */
11399 # include <limits.h>
11401 # include <assert.h>
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11413 /* The GNU C library defines this for functions which it implements
11414 to always fail with ENOSYS. Some functions are actually named
11415 something starting with __ and the normal name is an alias. */
11416 #if defined __stub_$ac_func || defined __stub___$ac_func
11423 return $ac_func ();
11428 rm -f conftest.
$ac_objext conftest
$ac_exeext
11429 if { (ac_try
="$ac_link"
11430 case "(($ac_try" in
11431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_link") 2>conftest.er1
11437 grep -v '^ *+' conftest.er1 >conftest.err
11439 cat conftest.err >&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } && {
11442 test -z "$ac_c_werror_flag" ||
11443 test ! -s conftest.err
11444 } && test -s conftest$ac_exeext &&
11445 $as_test_x conftest$ac_exeext; then
11446 eval "$as_ac_var=yes"
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 eval "$as_ac_var=no"
11454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11455 conftest$ac_exeext conftest.$ac_ext
11457 ac_res=`eval echo '${'$as_ac_var'}'`
11458 { echo "$as_me:$LINENO: result: $ac_res" >&5
11459 echo "${ECHO_T}$ac_res" >&6; }
11460 if test `eval echo '${'$as_ac_var'}'` = yes; then
11461 cat >>confdefs.h <<_ACEOF
11462 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11464 HAVE_GTK_FILE_CHOOSER=yes
11469 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11470 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_GTK_FILE_BOTH 1
11478 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11479 HAVE_GTK_AND_PTHREAD=no
11481 for ac_header in pthread.h
11483 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 ac_res=`eval echo '${'$as_ac_Header'}'`
11491 { echo "$as_me:$LINENO: result: $ac_res" >&5
11492 echo "${ECHO_T}$ac_res" >&6; }
11494 # Is the header compilable?
11495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 $ac_includes_default
11504 #include <$ac_header>
11506 rm -f conftest.$ac_objext
11507 if { (ac_try="$ac_compile"
11508 case "(($ac_try" in
11509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11510 *) ac_try_echo
=$ac_try;;
11512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11513 (eval "$ac_compile") 2>conftest.er1
11515 grep -v '^ *+' conftest.er1
>conftest.err
11517 cat conftest.err
>&5
11518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11519 (exit $ac_status); } && {
11520 test -z "$ac_c_werror_flag" ||
11521 test ! -s conftest.err
11522 } && test -s conftest.
$ac_objext; then
11523 ac_header_compiler
=yes
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.
$ac_ext >&5
11528 ac_header_compiler
=no
11531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11533 echo "${ECHO_T}$ac_header_compiler" >&6; }
11535 # Is the header present?
11536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11538 cat >conftest.
$ac_ext <<_ACEOF
11541 cat confdefs.h
>>conftest.
$ac_ext
11542 cat >>conftest.
$ac_ext <<_ACEOF
11543 /* end confdefs.h. */
11544 #include <$ac_header>
11546 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11547 case "(($ac_try" in
11548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11549 *) ac_try_echo=$ac_try;;
11551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11554 grep -v '^ *+' conftest.er1 >conftest.err
11556 cat conftest.err >&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } >/dev/null && {
11559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11560 test ! -s conftest.err
11562 ac_header_preproc=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_header_preproc=no
11570 rm -f conftest.err conftest.$ac_ext
11571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11572 echo "${ECHO_T}$ac_header_preproc" >&6; }
11574 # So? What about this header?
11575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11581 ac_header_preproc=yes
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 eval "$as_ac_Header=\$ac_header_preproc"
11606 ac_res=`eval echo '${'$as_ac_Header'}'`
11607 { echo "$as_me:$LINENO: result: $ac_res" >&5
11608 echo "${ECHO_T}$ac_res" >&6; }
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11620 if test "$ac_cv_header_pthread_h"; then
11621 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11622 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11623 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 ac_check_lib_save_LIBS=$LIBS
11627 LIBS="-lpthread $LIBS"
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11635 /* Override any GCC internal prototype to avoid an error.
11636 Use char because int might match the return type of a GCC
11637 builtin and then its argument prototype would still apply. */
11641 char pthread_self ();
11645 return pthread_self ();
11650 rm -f conftest.$ac_objext conftest$ac_exeext
11651 if { (ac_try="$ac_link"
11652 case "(($ac_try" in
11653 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11654 *) ac_try_echo
=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_link") 2>conftest.er1
11659 grep -v '^ *+' conftest.er1
>conftest.err
11661 cat conftest.err
>&5
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest
$ac_exeext &&
11667 $as_test_x conftest
$ac_exeext; then
11668 ac_cv_lib_pthread_pthread_self
=yes
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.
$ac_ext >&5
11673 ac_cv_lib_pthread_pthread_self
=no
11676 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11677 conftest
$ac_exeext conftest.
$ac_ext
11678 LIBS
=$ac_check_lib_save_LIBS
11680 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11681 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11682 if test $ac_cv_lib_pthread_pthread_self = yes; then
11683 HAVE_GTK_AND_PTHREAD
=yes
11687 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11688 GTK_LIBS
="$GTK_LIBS -lpthread"
11690 cat >>confdefs.h
<<\_ACEOF
11691 #define HAVE_GTK_AND_PTHREAD 1
11698 ### Link with -lXft if available to work around a bug.
11700 if test "${HAVE_GTK}" = "yes"; then
11701 if test "X${with_pkg_config_prog}" != X
; then
11702 PKG_CONFIG
="${with_pkg_config_prog}"
11708 if test -z "$PKG_CONFIG"; then
11709 # Extract the first word of "pkg-config", so it can be a program name with args.
11710 set dummy pkg-config
; ac_word
=$2
11711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11713 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 case $PKG_CONFIG in
11718 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11722 for as_dir
in $PATH
11725 test -z "$as_dir" && as_dir
=.
11726 for ac_exec_ext
in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11728 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11736 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11740 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11741 if test -n "$PKG_CONFIG"; then
11742 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11743 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11745 { echo "$as_me:$LINENO: result: no" >&5
11746 echo "${ECHO_T}no" >&6; }
11752 if test "$PKG_CONFIG" = "no" ; then
11755 PKG_CONFIG_MIN_VERSION
=0.9.0
11756 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11757 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11758 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11760 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11761 { echo "$as_me:$LINENO: result: yes" >&5
11762 echo "${ECHO_T}yes" >&6; }
11765 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11766 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11767 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11768 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11769 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11771 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11772 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11773 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11774 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11775 echo "${ECHO_T}$XFT_LIBS" >&6; }
11777 { echo "$as_me:$LINENO: result: no" >&5
11778 echo "${ECHO_T}no" >&6; }
11781 ## If we have a custom action on failure, don't print errors, but
11782 ## do set a variable so people can do so.
11783 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11790 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11791 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11795 if test $succeeded = yes; then
11801 if test "$HAVE_XFT" != no
; then
11802 OLD_CFLAGS
="$CPPFLAGS"
11803 OLD_CPPFLAGS
="$CFLAGS"
11805 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11806 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11807 LIBS
="$XFT_LIBS $LIBS"
11808 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11809 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11810 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11811 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11815 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11817 # Is the header compilable?
11818 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11819 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11820 cat >conftest.
$ac_ext <<_ACEOF
11823 cat confdefs.h
>>conftest.
$ac_ext
11824 cat >>conftest.
$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11826 $ac_includes_default
11827 #include <X11/Xft/Xft.h>
11829 rm -f conftest.
$ac_objext
11830 if { (ac_try
="$ac_compile"
11831 case "(($ac_try" in
11832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11833 *) ac_try_echo=$ac_try;;
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836 (eval "$ac_compile") 2>conftest.er1
11838 grep -v '^ *+' conftest.er1 >conftest.err
11840 cat conftest.err >&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } && {
11843 test -z "$ac_c_werror_flag" ||
11844 test ! -s conftest.err
11845 } && test -s conftest.$ac_objext; then
11846 ac_header_compiler=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11851 ac_header_compiler=no
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11856 echo "${ECHO_T}$ac_header_compiler" >&6; }
11858 # Is the header present?
11859 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11860 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 #include <X11/Xft/Xft.h>
11869 if { (ac_try="$ac_cpp conftest.$ac_ext"
11870 case "(($ac_try" in
11871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11872 *) ac_try_echo
=$ac_try;;
11874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11877 grep -v '^ *+' conftest.er1
>conftest.err
11879 cat conftest.err
>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } >/dev
/null
&& {
11882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11885 ac_header_preproc
=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.
$ac_ext >&5
11890 ac_header_preproc
=no
11893 rm -f conftest.err conftest.
$ac_ext
11894 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11895 echo "${ECHO_T}$ac_header_preproc" >&6; }
11897 # So? What about this header?
11898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11904 ac_header_preproc
=yes
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11922 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11923 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11924 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11929 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11930 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11933 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11934 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11935 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11936 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11937 echo $ECHO_N "(cached) $ECHO_C" >&6
11939 ac_check_lib_save_LIBS
=$LIBS
11940 LIBS
="-lXft $XFT_LIBS $LIBS"
11941 cat >conftest.
$ac_ext <<_ACEOF
11944 cat confdefs.h
>>conftest.
$ac_ext
11945 cat >>conftest.
$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 /* Override any GCC internal prototype to avoid an error.
11949 Use char because int might match the return type of a GCC
11950 builtin and then its argument prototype would still apply. */
11954 char XftFontOpen ();
11958 return XftFontOpen ();
11963 rm -f conftest.
$ac_objext conftest
$ac_exeext
11964 if { (ac_try
="$ac_link"
11965 case "(($ac_try" in
11966 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11967 *) ac_try_echo=$ac_try;;
11969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11970 (eval "$ac_link") 2>conftest.er1
11972 grep -v '^ *+' conftest.er1 >conftest.err
11974 cat conftest.err >&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); } && {
11977 test -z "$ac_c_werror_flag" ||
11978 test ! -s conftest.err
11979 } && test -s conftest$ac_exeext &&
11980 $as_test_x conftest$ac_exeext; then
11981 ac_cv_lib_Xft_XftFontOpen=yes
11983 echo "$as_me: failed program was:" >&5
11984 sed 's/^/| /' conftest.$ac_ext >&5
11986 ac_cv_lib_Xft_XftFontOpen=no
11989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11990 conftest$ac_exeext conftest.$ac_ext
11991 LIBS=$ac_check_lib_save_LIBS
11993 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11994 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11995 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12003 if test "${HAVE_XFT}" = "yes"; then
12005 cat >>confdefs.h <<\_ACEOF
12010 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12012 CFLAGS="$OLD_CPPFLAGS"
12013 CFLAGS="$OLD_CFLAGS"
12019 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12020 if test x"${HAVE_X11R5}" = xyes; then
12021 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12022 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12023 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 #include <X11/Intrinsic.h>
12034 #include <X11/Xaw/Simple.h>
12043 rm -f conftest.$ac_objext conftest$ac_exeext
12044 if { (ac_try="$ac_link"
12045 case "(($ac_try" in
12046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12047 *) ac_try_echo
=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_link") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1
>conftest.err
12054 cat conftest.err
>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest
$ac_exeext &&
12060 $as_test_x conftest
$ac_exeext; then
12061 emacs_cv_x11_version_5_with_xaw
=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.
$ac_ext >&5
12066 emacs_cv_x11_version_5_with_xaw
=no
12069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12070 conftest
$ac_exeext conftest.
$ac_ext
12073 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12074 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12075 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12076 USE_X_TOOLKIT
=LUCID
12078 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12079 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12080 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12081 { (exit 1); exit 1; }; }
12083 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12084 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12093 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12095 if test "${USE_X_TOOLKIT}" != "none"; then
12096 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12097 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12098 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 cat >conftest.
$ac_ext <<_ACEOF
12104 cat confdefs.h
>>conftest.
$ac_ext
12105 cat >>conftest.
$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12107 #include <X11/Intrinsic.h>
12111 #if XtSpecificationRelease < 6
12119 rm -f conftest.
$ac_objext conftest
$ac_exeext
12120 if { (ac_try
="$ac_link"
12121 case "(($ac_try" in
12122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest$ac_exeext &&
12136 $as_test_x conftest$ac_exeext; then
12137 emacs_cv_x11_toolkit_version_6=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12142 emacs_cv_x11_toolkit_version_6=no
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12149 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12150 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12151 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12152 echo "${ECHO_T}6 or newer" >&6; }
12154 cat >>confdefs.h <<\_ACEOF
12155 #define HAVE_X11XTR6 1
12159 { echo "$as_me:$LINENO: result: before 6" >&5
12160 echo "${ECHO_T}before 6" >&6; }
12164 if test x$HAVE_X11XTR6 = xyes; then
12165 LIBS="-lXt -lSM -lICE $LIBS"
12170 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12171 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12172 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 ac_check_lib_save_LIBS=$LIBS
12177 cat >conftest.$ac_ext <<_ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12190 char XmuConvertStandardSelection ();
12194 return XmuConvertStandardSelection ();
12199 rm -f conftest.$ac_objext conftest$ac_exeext
12200 if { (ac_try="$ac_link"
12201 case "(($ac_try" in
12202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12203 *) ac_try_echo
=$ac_try;;
12205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12206 (eval "$ac_link") 2>conftest.er1
12208 grep -v '^ *+' conftest.er1
>conftest.err
12210 cat conftest.err
>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); } && {
12213 test -z "$ac_c_werror_flag" ||
12214 test ! -s conftest.err
12215 } && test -s conftest
$ac_exeext &&
12216 $as_test_x conftest
$ac_exeext; then
12217 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.
$ac_ext >&5
12222 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12226 conftest
$ac_exeext conftest.
$ac_ext
12227 LIBS
=$ac_check_lib_save_LIBS
12229 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12230 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12231 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12232 cat >>confdefs.h
<<_ACEOF
12233 #define HAVE_LIBXMU 1
12240 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12243 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12244 if test "${HAVE_X11}" = "yes"; then
12245 if test "${USE_X_TOOLKIT}" != "none"; then
12247 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12248 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12249 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 ac_check_lib_save_LIBS
=$LIBS
12253 LIBS
="-lXext $LIBS"
12254 cat >conftest.
$ac_ext <<_ACEOF
12257 cat confdefs.h
>>conftest.
$ac_ext
12258 cat >>conftest.
$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12261 /* Override any GCC internal prototype to avoid an error.
12262 Use char because int might match the return type of a GCC
12263 builtin and then its argument prototype would still apply. */
12267 char XShapeQueryExtension ();
12271 return XShapeQueryExtension ();
12276 rm -f conftest.
$ac_objext conftest
$ac_exeext
12277 if { (ac_try
="$ac_link"
12278 case "(($ac_try" in
12279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12285 grep -v '^ *+' conftest.er1 >conftest.err
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_c_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 ac_cv_lib_Xext_XShapeQueryExtension=yes
12296 echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_lib_Xext_XShapeQueryExtension=no
12302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12307 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12308 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12309 cat >>confdefs.h <<_ACEOF
12310 #define HAVE_LIBXEXT 1
12313 LIBS="-lXext $LIBS"
12320 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12321 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12322 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12323 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12336 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12339 Motif version prior to 2.1.
12345 rm -f conftest.$ac_objext
12346 if { (ac_try="$ac_compile"
12347 case "(($ac_try" in
12348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12349 *) ac_try_echo
=$ac_try;;
12351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12352 (eval "$ac_compile") 2>conftest.er1
12354 grep -v '^ *+' conftest.er1
>conftest.err
12356 cat conftest.err
>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && {
12359 test -z "$ac_c_werror_flag" ||
12360 test ! -s conftest.err
12361 } && test -s conftest.
$ac_objext; then
12362 emacs_cv_motif_version_2_1
=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.
$ac_ext >&5
12367 emacs_cv_motif_version_2_1
=no
12370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12372 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12373 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12374 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12375 if test $emacs_cv_motif_version_2_1 = yes; then
12378 cat >>confdefs.h
<<\_ACEOF
12379 #define HAVE_MOTIF_2_1 1
12382 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12383 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12384 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 ac_check_lib_save_LIBS
=$LIBS
12389 cat >conftest.
$ac_ext <<_ACEOF
12392 cat confdefs.h
>>conftest.
$ac_ext
12393 cat >>conftest.
$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12402 char XpCreateContext ();
12406 return XpCreateContext ();
12411 rm -f conftest.
$ac_objext conftest
$ac_exeext
12412 if { (ac_try
="$ac_link"
12413 case "(($ac_try" in
12414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12415 *) ac_try_echo=$ac_try;;
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418 (eval "$ac_link") 2>conftest.er1
12420 grep -v '^ *+' conftest.er1 >conftest.err
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } && {
12425 test -z "$ac_c_werror_flag" ||
12426 test ! -s conftest.err
12427 } && test -s conftest$ac_exeext &&
12428 $as_test_x conftest$ac_exeext; then
12429 ac_cv_lib_Xp_XpCreateContext=yes
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12434 ac_cv_lib_Xp_XpCreateContext=no
12437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12442 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12443 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12447 if test ${HAVE_LIBXP} = yes; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define HAVE_LIBXP 1
12455 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12456 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12457 if test "${emacs_cv_lesstif+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12460 # We put this in CFLAGS temporarily to precede other -I options
12461 # that might be in CFLAGS temporarily.
12462 # We put this in CPPFLAGS where it precedes the other -I options.
12463 OLD_CPPFLAGS=$CPPFLAGS
12465 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12466 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12482 rm -f conftest.$ac_objext
12483 if { (ac_try="$ac_compile"
12484 case "(($ac_try" in
12485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12486 *) ac_try_echo
=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_compile") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1
>conftest.err
12493 cat conftest.err
>&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest.
$ac_objext; then
12499 emacs_cv_lesstif
=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.
$ac_ext >&5
12504 emacs_cv_lesstif
=no
12507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12509 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12510 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12511 if test $emacs_cv_lesstif = yes; then
12512 # Make sure this -I option remains in CPPFLAGS after it is set
12513 # back to REAL_CPPFLAGS.
12514 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12515 # have those other -I options anyway. Ultimately, having this
12516 # directory ultimately in CPPFLAGS will be enough.
12517 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12518 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12521 CPPFLAGS
=$OLD_CPPFLAGS
12526 ### Is -lXaw3d available?
12528 if test "${HAVE_X11}" = "yes"; then
12529 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12530 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12531 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12532 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 cat >conftest.
$ac_ext <<_ACEOF
12538 cat confdefs.h
>>conftest.
$ac_ext
12539 cat >>conftest.
$ac_ext <<_ACEOF
12540 /* end confdefs.h. */
12541 #include <X11/Xaw3d/Scrollbar.h>
12543 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12544 case "(($ac_try" in
12545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } >/dev/null && {
12556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12559 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12561 echo "$as_me: failed program was:" >&5
12562 sed 's/^/| /' conftest.$ac_ext >&5
12564 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12567 rm -f conftest.err conftest.$ac_ext
12569 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12570 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12571 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12572 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12573 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12574 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12575 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-lXaw3d $LIBS"
12579 cat >conftest.$ac_ext <<_ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12592 char XawScrollbarSetThumb ();
12596 return XawScrollbarSetThumb ();
12601 rm -f conftest.$ac_objext conftest$ac_exeext
12602 if { (ac_try="$ac_link"
12603 case "(($ac_try" in
12604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12605 *) ac_try_echo
=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_link") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1
>conftest.err
12612 cat conftest.err
>&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && {
12615 test -z "$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12617 } && test -s conftest
$ac_exeext &&
12618 $as_test_x conftest
$ac_exeext; then
12619 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12621 echo "$as_me: failed program was:" >&5
12622 sed 's/^/| /' conftest.
$ac_ext >&5
12624 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12627 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12628 conftest
$ac_exeext conftest.
$ac_ext
12629 LIBS
=$ac_check_lib_save_LIBS
12631 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12632 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12633 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12640 if test "${HAVE_XAW3D}" = "yes"; then
12642 cat >>confdefs.h
<<\_ACEOF
12643 #define HAVE_XAW3D 1
12652 USE_TOOLKIT_SCROLL_BARS
=no
12653 if test "${with_toolkit_scroll_bars}" != "no"; then
12654 if test "${USE_X_TOOLKIT}" != "none"; then
12655 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12656 cat >>confdefs.h
<<\_ACEOF
12657 #define USE_TOOLKIT_SCROLL_BARS 1
12661 USE_TOOLKIT_SCROLL_BARS
=yes
12662 elif test "${HAVE_XAW3D}" = "yes"; then
12663 cat >>confdefs.h
<<\_ACEOF
12664 #define USE_TOOLKIT_SCROLL_BARS 1
12667 USE_TOOLKIT_SCROLL_BARS
=yes
12669 elif test "${HAVE_GTK}" = "yes"; then
12670 cat >>confdefs.h
<<\_ACEOF
12671 #define USE_TOOLKIT_SCROLL_BARS 1
12674 USE_TOOLKIT_SCROLL_BARS
=yes
12675 elif test "${HAVE_CARBON}" = "yes"; then
12676 cat >>confdefs.h
<<\_ACEOF
12677 #define USE_TOOLKIT_SCROLL_BARS 1
12680 USE_TOOLKIT_SCROLL_BARS
=yes
12684 cat >conftest.
$ac_ext <<_ACEOF
12687 cat confdefs.h
>>conftest.
$ac_ext
12688 cat >>conftest.
$ac_ext <<_ACEOF
12689 /* end confdefs.h. */
12691 #include <X11/Xlib.h>
12692 #include <X11/Xresource.h>
12701 rm -f conftest.
$ac_objext
12702 if { (ac_try
="$ac_compile"
12703 case "(($ac_try" in
12704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
12720 cat >>confdefs.h <<\_ACEOF
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
12734 if test "${with_xim}" != "no"; then
12736 cat >>confdefs.h <<\_ACEOF
12743 if test "${HAVE_XIM}" != "no"; then
12744 late_CFLAGS=$CFLAGS
12745 if test "$GCC" = yes; then
12746 CFLAGS="$CFLAGS --pedantic-errors"
12748 cat >conftest.$ac_ext <<_ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12755 #include <X11/Xlib.h>
12756 #include <X11/Xresource.h>
12765 XPointer *client_data;
12767 /* If we're not using GCC, it's probably not XFree86, and this is
12768 probably right, but we can't use something like --pedantic-errors. */
12769 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12770 char*, XIMProc, XPointer*);
12772 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12778 rm -f conftest.$ac_objext
12779 if { (ac_try="$ac_compile"
12780 case "(($ac_try" in
12781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12782 *) ac_try_echo
=$ac_try;;
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_compile") 2>conftest.er1
12787 grep -v '^ *+' conftest.er1
>conftest.err
12789 cat conftest.err
>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest.
$ac_objext; then
12795 emacs_cv_arg6_star
=yes
12797 echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.
$ac_ext >&5
12803 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12805 if test "$emacs_cv_arg6_star" = yes; then
12806 cat >>confdefs.h
<<\_ACEOF
12807 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12811 cat >>confdefs.h
<<\_ACEOF
12812 #define XRegisterIMInstantiateCallback_arg6 XPointer
12816 CFLAGS
=$late_CFLAGS
12819 ### Use -lXpm if available, unless `--with-xpm=no'.
12821 if test "${HAVE_X11}" = "yes"; then
12822 if test "${with_xpm}" != "no"; then
12823 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12824 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12825 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12826 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12829 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12830 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12832 # Is the header compilable?
12833 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12834 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12835 cat >conftest.
$ac_ext <<_ACEOF
12838 cat confdefs.h
>>conftest.
$ac_ext
12839 cat >>conftest.
$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 $ac_includes_default
12842 #include <X11/xpm.h>
12844 rm -f conftest.
$ac_objext
12845 if { (ac_try
="$ac_compile"
12846 case "(($ac_try" in
12847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_compile") 2>conftest.er1
12853 grep -v '^ *+' conftest.er1 >conftest.err
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest.$ac_objext; then
12861 ac_header_compiler=yes
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_header_compiler=no
12869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12871 echo "${ECHO_T}$ac_header_compiler" >&6; }
12873 # Is the header present?
12874 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12875 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12876 cat >conftest.$ac_ext <<_ACEOF
12879 cat confdefs.h >>conftest.$ac_ext
12880 cat >>conftest.$ac_ext <<_ACEOF
12881 /* end confdefs.h. */
12882 #include <X11/xpm.h>
12884 if { (ac_try="$ac_cpp conftest.$ac_ext"
12885 case "(($ac_try" in
12886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12887 *) ac_try_echo
=$ac_try;;
12889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12892 grep -v '^ *+' conftest.er1
>conftest.err
12894 cat conftest.err
>&5
12895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } >/dev
/null
&& {
12897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12900 ac_header_preproc
=yes
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.
$ac_ext >&5
12905 ac_header_preproc
=no
12908 rm -f conftest.err conftest.
$ac_ext
12909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910 echo "${ECHO_T}$ac_header_preproc" >&6; }
12912 # So? What about this header?
12913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12915 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12916 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12919 ac_header_preproc
=yes
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12927 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12929 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12937 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12938 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12939 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12944 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12945 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12948 if test $ac_cv_header_X11_xpm_h = yes; then
12949 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12950 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12951 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12952 echo $ECHO_N "(cached) $ECHO_C" >&6
12954 ac_check_lib_save_LIBS
=$LIBS
12955 LIBS
="-lXpm -lX11 $LIBS"
12956 cat >conftest.
$ac_ext <<_ACEOF
12959 cat confdefs.h
>>conftest.
$ac_ext
12960 cat >>conftest.
$ac_ext <<_ACEOF
12961 /* end confdefs.h. */
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12969 char XpmReadFileToPixmap ();
12973 return XpmReadFileToPixmap ();
12978 rm -f conftest.
$ac_objext conftest
$ac_exeext
12979 if { (ac_try
="$ac_link"
12980 case "(($ac_try" in
12981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12982 *) ac_try_echo=$ac_try;;
12984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12985 (eval "$ac_link") 2>conftest.er1
12987 grep -v '^ *+' conftest.er1 >conftest.err
12989 cat conftest.err >&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); } && {
12992 test -z "$ac_c_werror_flag" ||
12993 test ! -s conftest.err
12994 } && test -s conftest$ac_exeext &&
12995 $as_test_x conftest$ac_exeext; then
12996 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13005 conftest$ac_exeext conftest.$ac_ext
13006 LIBS=$ac_check_lib_save_LIBS
13008 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13009 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13010 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13017 if test "${HAVE_XPM}" = "yes"; then
13018 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13019 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 #include "X11/xpm.h"
13027 #ifndef XpmReturnAllocPixels
13028 no_return_alloc_pixels
13032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13033 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13041 if test "${HAVE_XPM}" = "yes"; then
13042 { echo "$as_me:$LINENO: result: yes" >&5
13043 echo "${ECHO_T}yes" >&6; }
13045 { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13051 if test "${HAVE_XPM}" = "yes"; then
13053 cat >>confdefs.h <<\_ACEOF
13060 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13062 if test "${HAVE_X11}" = "yes"; then
13063 if test "${with_jpeg}" != "no"; then
13064 if test "${ac_cv_header_jerror_h+set}" = set; then
13065 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13066 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13067 if test "${ac_cv_header_jerror_h+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13073 # Is the header compilable?
13074 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13075 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13076 cat >conftest.$ac_ext <<_ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13083 #include <jerror.h>
13085 rm -f conftest.$ac_objext
13086 if { (ac_try="$ac_compile"
13087 case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_compile") 2>conftest.er1
13094 grep -v '^
*+' conftest.er1 >conftest.err
13096 cat conftest.err >&5
13097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13098 (exit $ac_status); } && {
13099 test -z "$ac_c_werror_flag" ||
13100 test ! -s conftest.err
13101 } && test -s conftest.$ac_objext; then
13102 ac_header_compiler=yes
13104 echo "$as_me: failed program was:" >&5
13105 sed 's
/^
/|
/' conftest.$ac_ext >&5
13107 ac_header_compiler=no
13110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13112 echo "${ECHO_T}$ac_header_compiler" >&6; }
13114 # Is the header present?
13115 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13116 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13117 cat >conftest.$ac_ext <<_ACEOF
13120 cat confdefs.h >>conftest.$ac_ext
13121 cat >>conftest.$ac_ext <<_ACEOF
13122 /* end confdefs.h. */
13123 #include <jerror.h>
13125 if { (ac_try="$ac_cpp conftest.$ac_ext"
13126 case "(($ac_try" in
13127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13128 *) ac_try_echo=$ac_try;;
13130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13133 grep -v '^
*+' conftest.er1 >conftest.err
13135 cat conftest.err >&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } >/dev/null && {
13138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13139 test ! -s conftest.err
13141 ac_header_preproc=yes
13143 echo "$as_me: failed program was:" >&5
13144 sed 's
/^
/|
/' conftest.$ac_ext >&5
13146 ac_header_preproc=no
13149 rm -f conftest.err conftest.$ac_ext
13150 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13151 echo "${ECHO_T}$ac_header_preproc" >&6; }
13153 # So? What about this header?
13154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13156 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13157 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13159 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13160 ac_header_preproc=yes
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13164 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13166 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13168 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13170 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13172 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13174 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13178 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13179 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13180 if test "${ac_cv_header_jerror_h+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 ac_cv_header_jerror_h=$ac_header_preproc
13185 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13186 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13189 if test $ac_cv_header_jerror_h = yes; then
13190 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13191 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13192 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 ac_check_lib_save_LIBS=$LIBS
13196 LIBS="-ljpeg $LIBS"
13197 cat >conftest.$ac_ext <<_ACEOF
13200 cat confdefs.h >>conftest.$ac_ext
13201 cat >>conftest.$ac_ext <<_ACEOF
13202 /* end confdefs.h. */
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13210 char jpeg_destroy_compress ();
13214 return jpeg_destroy_compress ();
13219 rm -f conftest.$ac_objext conftest$ac_exeext
13220 if { (ac_try="$ac_link"
13221 case "(($ac_try" in
13222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13223 *) ac_try_echo=$ac_try;;
13225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13226 (eval "$ac_link") 2>conftest.er1
13228 grep -v '^
*+' conftest.er1 >conftest.err
13230 cat conftest.err >&5
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); } && {
13233 test -z "$ac_c_werror_flag" ||
13234 test ! -s conftest.err
13235 } && test -s conftest$ac_exeext &&
13236 $as_test_x conftest$ac_exeext; then
13237 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13239 echo "$as_me: failed program was:" >&5
13240 sed 's
/^
/|
/' conftest.$ac_ext >&5
13242 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13246 conftest$ac_exeext conftest.$ac_ext
13247 LIBS=$ac_check_lib_save_LIBS
13249 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13250 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13251 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13261 if test "${HAVE_JPEG}" = "yes"; then
13262 cat >>confdefs.h <<\_ACEOF
13263 #define HAVE_JPEG 1
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <jpeglib.h>
13273 version=JPEG_LIB_VERSION
13276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13277 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13278 cat >>confdefs.h <<\_ACEOF
13279 #define HAVE_JPEG 1
13283 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13284 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13292 ### Use -lpng if available, unless `--with-png=no'.
13294 if test "${HAVE_X11}" = "yes"; then
13295 if test "${with_png}" != "no"; then
13296 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13297 # in /usr/include/libpng.
13300 for ac_header
in png.h libpng
/png.h
13302 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13303 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13304 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13305 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13306 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 ac_res
=`eval echo '${'$as_ac_Header'}'`
13310 { echo "$as_me:$LINENO: result: $ac_res" >&5
13311 echo "${ECHO_T}$ac_res" >&6; }
13313 # Is the header compilable?
13314 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13316 cat >conftest.
$ac_ext <<_ACEOF
13319 cat confdefs.h
>>conftest.
$ac_ext
13320 cat >>conftest.
$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 $ac_includes_default
13323 #include <$ac_header>
13325 rm -f conftest.
$ac_objext
13326 if { (ac_try
="$ac_compile"
13327 case "(($ac_try" in
13328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_compile") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } && {
13339 test -z "$ac_c_werror_flag" ||
13340 test ! -s conftest.err
13341 } && test -s conftest.$ac_objext; then
13342 ac_header_compiler=yes
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_header_compiler=no
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13352 echo "${ECHO_T}$ac_header_compiler" >&6; }
13354 # Is the header present?
13355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include <$ac_header>
13365 if { (ac_try="$ac_cpp conftest.$ac_ext"
13366 case "(($ac_try" in
13367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13368 *) ac_try_echo
=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13373 grep -v '^ *+' conftest.er1
>conftest.err
13375 cat conftest.err
>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev
/null
&& {
13378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13379 test ! -s conftest.err
13381 ac_header_preproc
=yes
13383 echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.
$ac_ext >&5
13386 ac_header_preproc
=no
13389 rm -f conftest.err conftest.
$ac_ext
13390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13391 echo "${ECHO_T}$ac_header_preproc" >&6; }
13393 # So? What about this header?
13394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13400 ac_header_preproc
=yes
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13420 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13421 echo $ECHO_N "(cached) $ECHO_C" >&6
13423 eval "$as_ac_Header=\$ac_header_preproc"
13425 ac_res
=`eval echo '${'$as_ac_Header'}'`
13426 { echo "$as_me:$LINENO: result: $ac_res" >&5
13427 echo "${ECHO_T}$ac_res" >&6; }
13430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13431 cat >>confdefs.h
<<_ACEOF
13432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13439 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13440 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13441 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13442 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13443 echo $ECHO_N "(cached) $ECHO_C" >&6
13445 ac_check_lib_save_LIBS
=$LIBS
13446 LIBS
="-lpng -lz -lm $LIBS"
13447 cat >conftest.
$ac_ext <<_ACEOF
13450 cat confdefs.h
>>conftest.
$ac_ext
13451 cat >>conftest.
$ac_ext <<_ACEOF
13452 /* end confdefs.h. */
13454 /* Override any GCC internal prototype to avoid an error.
13455 Use char because int might match the return type of a GCC
13456 builtin and then its argument prototype would still apply. */
13460 char png_get_channels ();
13464 return png_get_channels ();
13469 rm -f conftest.
$ac_objext conftest
$ac_exeext
13470 if { (ac_try
="$ac_link"
13471 case "(($ac_try" in
13472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13473 *) ac_try_echo=$ac_try;;
13475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13476 (eval "$ac_link") 2>conftest.er1
13478 grep -v '^ *+' conftest.er1 >conftest.err
13480 cat conftest.err >&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); } && {
13483 test -z "$ac_c_werror_flag" ||
13484 test ! -s conftest.err
13485 } && test -s conftest$ac_exeext &&
13486 $as_test_x conftest$ac_exeext; then
13487 ac_cv_lib_png_png_get_channels=yes
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13492 ac_cv_lib_png_png_get_channels=no
13495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13496 conftest$ac_exeext conftest.$ac_ext
13497 LIBS=$ac_check_lib_save_LIBS
13499 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13500 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13501 if test $ac_cv_lib_png_png_get_channels = yes; then
13508 if test "${HAVE_PNG}" = "yes"; then
13510 cat >>confdefs.h <<\_ACEOF
13517 ### Use -ltiff if available, unless `--with-tiff=no
'.
13519 if test "${HAVE_X11}" = "yes"; then
13520 if test "${with_tiff}" != "no"; then
13521 if test "${ac_cv_header_tiffio_h+set}" = set; then
13522 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13523 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13524 if test "${ac_cv_header_tiffio_h+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13528 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13530 # Is the header compilable?
13531 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13532 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 #include <tiffio.h>
13542 rm -f conftest.$ac_objext
13543 if { (ac_try="$ac_compile"
13544 case "(($ac_try" in
13545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13546 *) ac_try_echo=$ac_try;;
13548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13549 (eval "$ac_compile") 2>conftest.er1
13551 grep -v '^
*+' conftest.er1 >conftest.err
13553 cat conftest.err >&5
13554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13555 (exit $ac_status); } && {
13556 test -z "$ac_c_werror_flag" ||
13557 test ! -s conftest.err
13558 } && test -s conftest.$ac_objext; then
13559 ac_header_compiler=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's
/^
/|
/' conftest.$ac_ext >&5
13564 ac_header_compiler=no
13567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13569 echo "${ECHO_T}$ac_header_compiler" >&6; }
13571 # Is the header present?
13572 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13573 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13574 cat >conftest.$ac_ext <<_ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h. */
13580 #include <tiffio.h>
13582 if { (ac_try="$ac_cpp conftest.$ac_ext"
13583 case "(($ac_try" in
13584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13585 *) ac_try_echo=$ac_try;;
13587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13590 grep -v '^
*+' conftest.er1 >conftest.err
13592 cat conftest.err >&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } >/dev/null && {
13595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13596 test ! -s conftest.err
13598 ac_header_preproc=yes
13600 echo "$as_me: failed program was:" >&5
13601 sed 's
/^
/|
/' conftest.$ac_ext >&5
13603 ac_header_preproc=no
13606 rm -f conftest.err conftest.$ac_ext
13607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13608 echo "${ECHO_T}$ac_header_preproc" >&6; }
13610 # So? What about this header?
13611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13613 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13614 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13616 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13617 ac_header_preproc=yes
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13621 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13623 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13625 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13627 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13629 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13631 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13635 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13636 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13637 if test "${ac_cv_header_tiffio_h+set}" = set; then
13638 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 ac_cv_header_tiffio_h=$ac_header_preproc
13642 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13643 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13646 if test $ac_cv_header_tiffio_h = yes; then
13648 # At least one tiff package requires the jpeg library.
13649 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13650 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13651 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13652 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 ac_check_lib_save_LIBS=$LIBS
13656 LIBS="-ltiff $tifflibs $LIBS"
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13664 /* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13670 char TIFFGetVersion ();
13674 return TIFFGetVersion ();
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13688 grep -v '^
*+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } && {
13693 test -z "$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 } && test -s conftest$ac_exeext &&
13696 $as_test_x conftest$ac_exeext; then
13697 ac_cv_lib_tiff_TIFFGetVersion=yes
13699 echo "$as_me: failed program was:" >&5
13700 sed 's
/^
/|
/' conftest.$ac_ext >&5
13702 ac_cv_lib_tiff_TIFFGetVersion=no
13705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13706 conftest$ac_exeext conftest.$ac_ext
13707 LIBS=$ac_check_lib_save_LIBS
13709 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13710 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13711 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13720 if test "${HAVE_TIFF}" = "yes"; then
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_TIFF 1
13729 ### Use -lgif if available, unless `--with-gif=no'.
13731 if test "${HAVE_X11}" = "yes"; then
13732 if test "${with_gif}" != "no"; then
13733 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13734 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13735 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13736 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13737 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13740 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13742 # Is the header compilable?
13743 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13744 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 #include <gif_lib.h>
13754 rm -f conftest.
$ac_objext
13755 if { (ac_try
="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_header_compiler=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13785 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <gif_lib.h>
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13797 *) ac_try_echo
=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1
>conftest.err
13804 cat conftest.err
>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev
/null
&& {
13807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13810 ac_header_preproc
=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.
$ac_ext >&5
13815 ac_header_preproc
=no
13818 rm -f conftest.err conftest.
$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6; }
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc
=yes
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13847 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13848 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13849 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 ac_cv_header_gif_lib_h
=$ac_header_preproc
13854 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13855 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13858 if test $ac_cv_header_gif_lib_h = yes; then
13859 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13860 # Earlier versions can crash Emacs.
13861 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13862 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13863 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 ac_check_lib_save_LIBS
=$LIBS
13867 LIBS
="-lungif $LIBS"
13868 cat >conftest.
$ac_ext <<_ACEOF
13871 cat confdefs.h
>>conftest.
$ac_ext
13872 cat >>conftest.
$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13881 char EGifPutExtensionLast ();
13885 return EGifPutExtensionLast ();
13890 rm -f conftest.
$ac_objext conftest
$ac_exeext
13891 if { (ac_try
="$ac_link"
13892 case "(($ac_try" in
13893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_link") 2>conftest.er1
13899 grep -v '^ *+' conftest.er1 >conftest.err
13901 cat conftest.err >&5
13902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903 (exit $ac_status); } && {
13904 test -z "$ac_c_werror_flag" ||
13905 test ! -s conftest.err
13906 } && test -s conftest$ac_exeext &&
13907 $as_test_x conftest$ac_exeext; then
13908 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_lib_ungif_EGifPutExtensionLast=no
13916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13917 conftest$ac_exeext conftest.$ac_ext
13918 LIBS=$ac_check_lib_save_LIBS
13920 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13921 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13922 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13931 if test "${HAVE_GIF}" = "yes"; then
13933 cat >>confdefs.h <<\_ACEOF
13940 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13941 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13942 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13943 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13944 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13947 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13949 # Is the header compilable?
13950 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13951 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13952 cat >conftest.$ac_ext <<_ACEOF
13955 cat confdefs.h >>conftest.$ac_ext
13956 cat >>conftest.$ac_ext <<_ACEOF
13957 /* end confdefs.h. */
13958 $ac_includes_default
13959 #include <malloc/malloc.h>
13961 rm -f conftest.$ac_objext
13962 if { (ac_try="$ac_compile"
13963 case "(($ac_try" in
13964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13965 *) ac_try_echo
=$ac_try;;
13967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13968 (eval "$ac_compile") 2>conftest.er1
13970 grep -v '^ *+' conftest.er1
>conftest.err
13972 cat conftest.err
>&5
13973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974 (exit $ac_status); } && {
13975 test -z "$ac_c_werror_flag" ||
13976 test ! -s conftest.err
13977 } && test -s conftest.
$ac_objext; then
13978 ac_header_compiler
=yes
13980 echo "$as_me: failed program was:" >&5
13981 sed 's/^/| /' conftest.
$ac_ext >&5
13983 ac_header_compiler
=no
13986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13988 echo "${ECHO_T}$ac_header_compiler" >&6; }
13990 # Is the header present?
13991 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13992 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13993 cat >conftest.
$ac_ext <<_ACEOF
13996 cat confdefs.h
>>conftest.
$ac_ext
13997 cat >>conftest.
$ac_ext <<_ACEOF
13998 /* end confdefs.h. */
13999 #include <malloc/malloc.h>
14001 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14002 case "(($ac_try" in
14003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14009 grep -v '^ *+' conftest.er1 >conftest.err
14011 cat conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); } >/dev/null && {
14014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14015 test ! -s conftest.err
14017 ac_header_preproc=yes
14019 echo "$as_me: failed program was:" >&5
14020 sed 's/^/| /' conftest.$ac_ext >&5
14022 ac_header_preproc=no
14025 rm -f conftest.err conftest.$ac_ext
14026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14027 echo "${ECHO_T}$ac_header_preproc" >&6; }
14029 # So? What about this header?
14030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14032 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14033 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14036 ac_header_preproc=yes
14039 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14040 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14044 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14046 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14054 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14055 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14056 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14061 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14062 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14065 if test $ac_cv_header_malloc_malloc_h = yes; then
14067 cat >>confdefs.h <<\_ACEOF
14068 #define HAVE_MALLOC_MALLOC_H 1
14075 ### Use Mac OS X Carbon API to implement GUI.
14076 if test "${HAVE_CARBON}" = "yes"; then
14078 cat >>confdefs.h <<\_ACEOF
14079 #define HAVE_CARBON 1
14082 ## Specify the install directory
14084 if test "${carbon_appdir_x}" != ""; then
14085 case ${carbon_appdir_x} in
14086 y | ye | yes) carbon_appdir=/Applications ;;
14087 * ) carbon_appdir=${carbon_appdir_x} ;;
14090 # We also have mouse menus.
14094 ### Use session management (-lSM -lICE) if available
14096 if test "${HAVE_X11}" = "yes"; then
14097 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14098 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14099 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14100 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14104 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14106 # Is the header compilable?
14107 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14108 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14109 cat >conftest.$ac_ext <<_ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14116 #include <X11/SM/SMlib.h>
14118 rm -f conftest.$ac_objext
14119 if { (ac_try="$ac_compile"
14120 case "(($ac_try" in
14121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14122 *) ac_try_echo
=$ac_try;;
14124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14125 (eval "$ac_compile") 2>conftest.er1
14127 grep -v '^ *+' conftest.er1
>conftest.err
14129 cat conftest.err
>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } && {
14132 test -z "$ac_c_werror_flag" ||
14133 test ! -s conftest.err
14134 } && test -s conftest.
$ac_objext; then
14135 ac_header_compiler
=yes
14137 echo "$as_me: failed program was:" >&5
14138 sed 's/^/| /' conftest.
$ac_ext >&5
14140 ac_header_compiler
=no
14143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14144 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14145 echo "${ECHO_T}$ac_header_compiler" >&6; }
14147 # Is the header present?
14148 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14149 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14150 cat >conftest.
$ac_ext <<_ACEOF
14153 cat confdefs.h
>>conftest.
$ac_ext
14154 cat >>conftest.
$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14156 #include <X11/SM/SMlib.h>
14158 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14159 case "(($ac_try" in
14160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } >/dev/null && {
14171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14174 ac_header_preproc=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14182 rm -f conftest.err conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14184 echo "${ECHO_T}$ac_header_preproc" >&6; }
14186 # So? What about this header?
14187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14190 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14193 ac_header_preproc=yes
14196 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14197 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14201 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14203 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14211 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14212 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14218 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14219 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14222 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14223 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14224 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14225 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14226 echo $ECHO_N "(cached) $ECHO_C" >&6
14228 ac_check_lib_save_LIBS=$LIBS
14229 LIBS="-lSM -lICE $LIBS"
14230 cat >conftest.$ac_ext <<_ACEOF
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14237 /* Override any GCC internal prototype to avoid an error.
14238 Use char because int might match the return type of a GCC
14239 builtin and then its argument prototype would still apply. */
14243 char SmcOpenConnection ();
14247 return SmcOpenConnection ();
14252 rm -f conftest.$ac_objext conftest$ac_exeext
14253 if { (ac_try="$ac_link"
14254 case "(($ac_try" in
14255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14256 *) ac_try_echo
=$ac_try;;
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259 (eval "$ac_link") 2>conftest.er1
14261 grep -v '^ *+' conftest.er1
>conftest.err
14263 cat conftest.err
>&5
14264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265 (exit $ac_status); } && {
14266 test -z "$ac_c_werror_flag" ||
14267 test ! -s conftest.err
14268 } && test -s conftest
$ac_exeext &&
14269 $as_test_x conftest
$ac_exeext; then
14270 ac_cv_lib_SM_SmcOpenConnection
=yes
14272 echo "$as_me: failed program was:" >&5
14273 sed 's/^/| /' conftest.
$ac_ext >&5
14275 ac_cv_lib_SM_SmcOpenConnection
=no
14278 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14279 conftest
$ac_exeext conftest.
$ac_ext
14280 LIBS
=$ac_check_lib_save_LIBS
14282 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14283 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14284 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14292 if test "${HAVE_X_SM}" = "yes"; then
14294 cat >>confdefs.h
<<\_ACEOF
14295 #define HAVE_X_SM 1
14300 *) LIBS
="-lSM -lICE $LIBS" ;;
14305 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14306 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14307 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14308 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14309 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 cat >conftest.
$ac_ext <<_ACEOF
14314 cat confdefs.h
>>conftest.
$ac_ext
14315 cat >>conftest.
$ac_ext <<_ACEOF
14316 /* end confdefs.h. */
14326 rm -f conftest.
$ac_objext conftest
$ac_exeext
14327 if { (ac_try
="$ac_link"
14328 case "(($ac_try" in
14329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_link") 2>conftest.er1
14335 grep -v '^ *+' conftest.er1 >conftest.err
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); } && {
14340 test -z "$ac_c_werror_flag" ||
14341 test ! -s conftest.err
14342 } && test -s conftest$ac_exeext &&
14343 $as_test_x conftest$ac_exeext; then
14344 emacs_cv_netdb_declares_h_errno=yes
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 emacs_cv_netdb_declares_h_errno=no
14352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14353 conftest$ac_exeext conftest.$ac_ext
14355 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14356 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14357 if test $emacs_cv_netdb_declares_h_errno = yes; then
14359 cat >>confdefs.h <<\_ACEOF
14360 #define HAVE_H_ERRNO 1
14365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14366 # for constant arguments. Useless!
14367 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14369 if test "${ac_cv_working_alloca_h+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 cat >conftest.$ac_ext <<_ACEOF
14375 cat confdefs.h >>conftest.$ac_ext
14376 cat >>conftest.$ac_ext <<_ACEOF
14377 /* end confdefs.h. */
14378 #include <alloca.h>
14382 char *p = (char *) alloca (2 * sizeof (int));
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14392 *) ac_try_echo
=$ac_try;;
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1
>conftest.err
14399 cat conftest.err
>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_c_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest
$ac_exeext &&
14405 $as_test_x conftest
$ac_exeext; then
14406 ac_cv_working_alloca_h
=yes
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.
$ac_ext >&5
14411 ac_cv_working_alloca_h
=no
14414 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14415 conftest
$ac_exeext conftest.
$ac_ext
14417 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14418 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14419 if test $ac_cv_working_alloca_h = yes; then
14421 cat >>confdefs.h
<<\_ACEOF
14422 #define HAVE_ALLOCA_H 1
14427 { echo "$as_me:$LINENO: checking for alloca" >&5
14428 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14429 if test "${ac_cv_func_alloca_works+set}" = set; then
14430 echo $ECHO_N "(cached) $ECHO_C" >&6
14432 cat >conftest.
$ac_ext <<_ACEOF
14435 cat confdefs.h
>>conftest.
$ac_ext
14436 cat >>conftest.
$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14439 # define alloca __builtin_alloca
14442 # include <malloc.h>
14443 # define alloca _alloca
14445 # ifdef HAVE_ALLOCA_H
14446 # include <alloca.h>
14451 # ifndef alloca /* predefined by HP cc +Olibcalls */
14462 char *p = (char *) alloca (1);
14468 rm -f conftest.
$ac_objext conftest
$ac_exeext
14469 if { (ac_try
="$ac_link"
14470 case "(($ac_try" in
14471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14472 *) ac_try_echo=$ac_try;;
14474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14475 (eval "$ac_link") 2>conftest.er1
14477 grep -v '^ *+' conftest.er1 >conftest.err
14479 cat conftest.err >&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); } && {
14482 test -z "$ac_c_werror_flag" ||
14483 test ! -s conftest.err
14484 } && test -s conftest$ac_exeext &&
14485 $as_test_x conftest$ac_exeext; then
14486 ac_cv_func_alloca_works=yes
14488 echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14491 ac_cv_func_alloca_works=no
14494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14495 conftest$ac_exeext conftest.$ac_ext
14497 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14498 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14500 if test $ac_cv_func_alloca_works = yes; then
14502 cat >>confdefs.h <<\_ACEOF
14503 #define HAVE_ALLOCA 1
14507 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14508 # that cause trouble. Some versions do not even contain alloca or
14509 # contain a buggy version. If you still want to use their alloca,
14510 # use ar to extract alloca.o from them instead of compiling alloca.c.
14512 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14514 cat >>confdefs.h <<\_ACEOF
14519 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14520 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14521 if test "${ac_cv_os_cray+set}" = set; then
14522 echo $ECHO_N "(cached
) $ECHO_C" >&6
14524 cat >conftest.$ac_ext <<_ACEOF
14527 cat confdefs.h >>conftest.$ac_ext
14528 cat >>conftest.$ac_ext <<_ACEOF
14529 /* end confdefs.h. */
14530 #if defined CRAY && ! defined CRAY2
14537 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14538 $EGREP "webecray
" >/dev/null 2>&1; then
14546 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14547 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14548 if test $ac_cv_os_cray = yes; then
14549 for ac_func in _getb67 GETB67 getb67; do
14550 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14551 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14552 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14553 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14554 echo $ECHO_N "(cached
) $ECHO_C" >&6
14556 cat >conftest.$ac_ext <<_ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14562 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14563 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14564 #define $ac_func innocuous_$ac_func
14566 /* System header to define __stub macros and hopefully few prototypes,
14567 which can conflict with char $ac_func (); below.
14568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14569 <limits.h> exists even on freestanding compilers. */
14572 # include <limits.h>
14574 # include <assert.h>
14579 /* Override any GCC internal prototype to avoid an error.
14580 Use char because int might match the return type of a GCC
14581 builtin and then its argument prototype would still apply. */
14586 /* The GNU C library defines this for functions which it implements
14587 to always fail with ENOSYS. Some functions are actually named
14588 something starting with __ and the normal name is an alias. */
14589 #if defined __stub_$ac_func || defined __stub___$ac_func
14596 return $ac_func ();
14601 rm -f conftest.$ac_objext conftest$ac_exeext
14602 if { (ac_try="$ac_link"
14603 case "(($ac_try" in
14604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14605 *) ac_try_echo=$ac_try;;
14607 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14608 (eval "$ac_link") 2>conftest.er1
14610 grep -v '^ *+' conftest.er1 >conftest.err
14612 cat conftest.err >&5
14613 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14614 (exit $ac_status); } && {
14615 test -z "$ac_c_werror_flag" ||
14616 test ! -s conftest.err
14617 } && test -s conftest$ac_exeext &&
14618 $as_test_x conftest$ac_exeext; then
14619 eval "$as_ac_var=yes"
14621 echo "$as_me: failed program was
:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 eval "$as_ac_var=no
"
14627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14628 conftest$ac_exeext conftest.$ac_ext
14630 ac_res=`eval echo '${'$as_ac_var'}'`
14631 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14632 echo "${ECHO_T}$ac_res" >&6; }
14633 if test `eval echo '${'$as_ac_var'}'` = yes; then
14635 cat >>confdefs.h <<_ACEOF
14636 #define CRAY_STACKSEG_END $ac_func
14645 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14646 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14647 if test "${ac_cv_c_stack_direction+set}" = set; then
14648 echo $ECHO_N "(cached
) $ECHO_C" >&6
14650 if test "$cross_compiling" = yes; then
14651 ac_cv_c_stack_direction=0
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 $ac_includes_default
14661 find_stack_direction ()
14663 static char *addr = 0;
14668 return find_stack_direction ();
14671 return (&dummy > addr) ? 1 : -1;
14677 return find_stack_direction () < 0;
14680 rm -f conftest$ac_exeext
14681 if { (ac_try="$ac_link"
14682 case "(($ac_try" in
14683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14684 *) ac_try_echo=$ac_try;;
14686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14687 (eval "$ac_link") 2>&5
14689 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_c_stack_direction=1
14702 echo "$as_me: program exited with status
$ac_status" >&5
14703 echo "$as_me: failed program was
:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ( exit $ac_status )
14707 ac_cv_c_stack_direction=-1
14709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14715 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14717 cat >>confdefs.h <<_ACEOF
14718 #define STACK_DIRECTION $ac_cv_c_stack_direction
14725 # fmod, logb, and frexp are found in -lm on most systems.
14726 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14728 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14729 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14730 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14731 echo $ECHO_N "(cached
) $ECHO_C" >&6
14733 ac_check_lib_save_LIBS=$LIBS
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14742 /* Override any GCC internal prototype to avoid an error.
14743 Use char because int might match the return type of a GCC
14744 builtin and then its argument prototype would still apply. */
14757 rm -f conftest.$ac_objext conftest$ac_exeext
14758 if { (ac_try="$ac_link"
14759 case "(($ac_try" in
14760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14761 *) ac_try_echo=$ac_try;;
14763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_link") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1 >conftest.err
14768 cat conftest.err >&5
14769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest$ac_exeext &&
14774 $as_test_x conftest$ac_exeext; then
14775 ac_cv_lib_m_sqrt=yes
14777 echo "$as_me: failed program was
:" >&5
14778 sed 's/^/| /' conftest.$ac_ext >&5
14780 ac_cv_lib_m_sqrt=no
14783 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14784 conftest$ac_exeext conftest.$ac_ext
14785 LIBS=$ac_check_lib_save_LIBS
14787 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14788 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14789 if test $ac_cv_lib_m_sqrt = yes; then
14790 cat >>confdefs.h <<_ACEOF
14791 #define HAVE_LIBM 1
14799 # Check for mail-locking functions in a "mail" library. Probably this should
14800 # have the same check as for liblockfile below.
14802 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14803 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14804 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14805 echo $ECHO_N "(cached
) $ECHO_C" >&6
14807 ac_check_lib_save_LIBS=$LIBS
14808 LIBS="-lmail $LIBS"
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14816 /* Override any GCC internal prototype to avoid an error.
14817 Use char because int might match the return type of a GCC
14818 builtin and then its argument prototype would still apply. */
14826 return maillock ();
14831 rm -f conftest.$ac_objext conftest$ac_exeext
14832 if { (ac_try="$ac_link"
14833 case "(($ac_try" in
14834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14835 *) ac_try_echo=$ac_try;;
14837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14838 (eval "$ac_link") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest$ac_exeext &&
14848 $as_test_x conftest$ac_exeext; then
14849 ac_cv_lib_mail_maillock=yes
14851 echo "$as_me: failed program was
:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14854 ac_cv_lib_mail_maillock=no
14857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14858 conftest$ac_exeext conftest.$ac_ext
14859 LIBS=$ac_check_lib_save_LIBS
14861 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14862 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14863 if test $ac_cv_lib_mail_maillock = yes; then
14864 cat >>confdefs.h <<_ACEOF
14865 #define HAVE_LIBMAIL 1
14868 LIBS="-lmail $LIBS"
14873 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14874 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14875 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14876 echo $ECHO_N "(cached
) $ECHO_C" >&6
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-llockfile $LIBS"
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14897 return maillock ();
14902 rm -f conftest.$ac_objext conftest$ac_exeext
14903 if { (ac_try="$ac_link"
14904 case "(($ac_try" in
14905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_link") 2>conftest.er1
14911 grep -v '^ *+' conftest.er1 >conftest.err
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14915 (exit $ac_status); } && {
14916 test -z "$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14918 } && test -s conftest$ac_exeext &&
14919 $as_test_x conftest$ac_exeext; then
14920 ac_cv_lib_lockfile_maillock=yes
14922 echo "$as_me: failed program was
:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_lib_lockfile_maillock=no
14928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14929 conftest$ac_exeext conftest.$ac_ext
14930 LIBS=$ac_check_lib_save_LIBS
14932 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14933 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14934 if test $ac_cv_lib_lockfile_maillock = yes; then
14935 cat >>confdefs.h <<_ACEOF
14936 #define HAVE_LIBLOCKFILE 1
14939 LIBS="-llockfile $LIBS"
14943 # If we have the shared liblockfile, assume we must use it for mail
14944 # locking (e.g. Debian). If we couldn't link against liblockfile
14945 # (no liblockfile.a installed), ensure that we don't need to.
14946 if test "$ac_cv_lib_lockfile_maillock" = no; then
14947 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14948 set dummy liblockfile.so; ac_word=$2
14949 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14950 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14951 if test "${ac_cv_prog_liblockfile+set}" = set; then
14952 echo $ECHO_N "(cached
) $ECHO_C" >&6
14954 if test -n "$liblockfile"; then
14955 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14958 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14959 for as_dir in $as_dummy
14962 test -z "$as_dir" && as_dir=.
14963 for ac_exec_ext in '' $ac_executable_extensions; do
14964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14965 ac_cv_prog_liblockfile="yes"
14966 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14973 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14976 liblockfile=$ac_cv_prog_liblockfile
14977 if test -n "$liblockfile"; then
14978 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14979 echo "${ECHO_T}$liblockfile" >&6; }
14981 { echo "$as_me:$LINENO: result
: no
" >&5
14982 echo "${ECHO_T}no
" >&6; }
14986 if test $ac_cv_prog_liblockfile = yes; then
14987 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14988 This probably means that movemail could lose mail.
14989 There may be a \`development' package to
install containing liblockfile.
" >&5
14990 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14991 This probably means that movemail could lose mail.
14992 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14993 { (exit 1); exit 1; }; }
14998 for ac_func in touchlock
15000 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15001 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15002 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15003 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15004 echo $ECHO_N "(cached
) $ECHO_C" >&6
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15014 #define $ac_func innocuous_$ac_func
15016 /* System header to define __stub macros and hopefully few prototypes,
15017 which can conflict with char $ac_func (); below.
15018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15019 <limits.h> exists even on freestanding compilers. */
15022 # include <limits.h>
15024 # include <assert.h>
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15036 /* The GNU C library defines this for functions which it implements
15037 to always fail with ENOSYS. Some functions are actually named
15038 something starting with __ and the normal name is an alias. */
15039 #if defined __stub_$ac_func || defined __stub___$ac_func
15046 return $ac_func ();
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (ac_try="$ac_link"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_link") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest$ac_exeext &&
15068 $as_test_x conftest$ac_exeext; then
15069 eval "$as_ac_var=yes"
15071 echo "$as_me: failed program was
:" >&5
15072 sed 's/^/| /' conftest.$ac_ext >&5
15074 eval "$as_ac_var=no
"
15077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15078 conftest$ac_exeext conftest.$ac_ext
15080 ac_res=`eval echo '${'$as_ac_var'}'`
15081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15083 if test `eval echo '${'$as_ac_var'}'` = yes; then
15084 cat >>confdefs.h <<_ACEOF
15085 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15092 for ac_header in maillock.h
15094 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15096 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15097 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15099 echo $ECHO_N "(cached
) $ECHO_C" >&6
15101 ac_res=`eval echo '${'$as_ac_Header'}'`
15102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15103 echo "${ECHO_T}$ac_res" >&6; }
15105 # Is the header compilable?
15106 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15107 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15114 $ac_includes_default
15115 #include <$ac_header>
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_compile") 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest.$ac_objext; then
15134 ac_header_compiler=yes
15136 echo "$as_me: failed program was
:" >&5
15137 sed 's/^/| /' conftest.$ac_ext >&5
15139 ac_header_compiler=no
15142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15143 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15144 echo "${ECHO_T}$ac_header_compiler" >&6; }
15146 # Is the header present?
15147 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15148 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15149 cat >conftest.$ac_ext <<_ACEOF
15152 cat confdefs.h >>conftest.$ac_ext
15153 cat >>conftest.$ac_ext <<_ACEOF
15154 /* end confdefs.h. */
15155 #include <$ac_header>
15157 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15158 case "(($ac_try" in
15159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15160 *) ac_try_echo=$ac_try;;
15162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15163 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15165 grep -v '^ *+' conftest.er1 >conftest.err
15167 cat conftest.err >&5
15168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15169 (exit $ac_status); } >/dev/null && {
15170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15171 test ! -s conftest.err
15173 ac_header_preproc=yes
15175 echo "$as_me: failed program was
:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15178 ac_header_preproc=no
15181 rm -f conftest.err conftest.$ac_ext
15182 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15183 echo "${ECHO_T}$ac_header_preproc" >&6; }
15185 # So? What about this header?
15186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15188 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15189 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15192 ac_header_preproc=yes
15195 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15196 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15197 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15198 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15199 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15200 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15201 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15202 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15203 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15205 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15206 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15210 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15211 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15213 echo $ECHO_N "(cached
) $ECHO_C" >&6
15215 eval "$as_ac_Header=\
$ac_header_preproc"
15217 ac_res=`eval echo '${'$as_ac_Header'}'`
15218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15219 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15301 for ac_func in gethostname getdomainname dup2 \
15302 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15303 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15304 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15305 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15306 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15307 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15308 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15309 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15311 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15312 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15313 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15314 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15315 echo $ECHO_N "(cached
) $ECHO_C" >&6
15317 cat >conftest.$ac_ext <<_ACEOF
15320 cat confdefs.h >>conftest.$ac_ext
15321 cat >>conftest.$ac_ext <<_ACEOF
15322 /* end confdefs.h. */
15323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15325 #define $ac_func innocuous_$ac_func
15327 /* System header to define __stub macros and hopefully few prototypes,
15328 which can conflict with char $ac_func (); below.
15329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15330 <limits.h> exists even on freestanding compilers. */
15333 # include <limits.h>
15335 # include <assert.h>
15340 /* Override any GCC internal prototype to avoid an error.
15341 Use char because int might match the return type of a GCC
15342 builtin and then its argument prototype would still apply. */
15347 /* The GNU C library defines this for functions which it implements
15348 to always fail with ENOSYS. Some functions are actually named
15349 something starting with __ and the normal name is an alias. */
15350 #if defined __stub_$ac_func || defined __stub___$ac_func
15357 return $ac_func ();
15362 rm -f conftest.$ac_objext conftest$ac_exeext
15363 if { (ac_try="$ac_link"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_link") 2>conftest.er1
15371 grep -v '^ *+' conftest.er1 >conftest.err
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext &&
15379 $as_test_x conftest$ac_exeext; then
15380 eval "$as_ac_var=yes"
15382 echo "$as_me: failed program was
:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 eval "$as_ac_var=no
"
15388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15389 conftest$ac_exeext conftest.$ac_ext
15391 ac_res=`eval echo '${'$as_ac_var'}'`
15392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15393 echo "${ECHO_T}$ac_res" >&6; }
15394 if test `eval echo '${'$as_ac_var'}'` = yes; then
15395 cat >>confdefs.h <<_ACEOF
15396 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15404 for ac_header in sys/un.h
15406 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15408 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15409 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15411 echo $ECHO_N "(cached
) $ECHO_C" >&6
15413 ac_res=`eval echo '${'$as_ac_Header'}'`
15414 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15415 echo "${ECHO_T}$ac_res" >&6; }
15417 # Is the header compilable?
15418 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15419 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15427 #include <$ac_header>
15429 rm -f conftest.$ac_objext
15430 if { (ac_try="$ac_compile"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_compile") 2>conftest.er1
15438 grep -v '^ *+' conftest.er1 >conftest.err
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15442 (exit $ac_status); } && {
15443 test -z "$ac_c_werror_flag" ||
15444 test ! -s conftest.err
15445 } && test -s conftest.$ac_objext; then
15446 ac_header_compiler=yes
15448 echo "$as_me: failed program was
:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15451 ac_header_compiler=no
15454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15455 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15456 echo "${ECHO_T}$ac_header_compiler" >&6; }
15458 # Is the header present?
15459 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15460 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15461 cat >conftest.$ac_ext <<_ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15467 #include <$ac_header>
15469 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15470 case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15475 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15477 grep -v '^ *+' conftest.er1 >conftest.err
15479 cat conftest.err >&5
15480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15481 (exit $ac_status); } >/dev/null && {
15482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15483 test ! -s conftest.err
15485 ac_header_preproc=yes
15487 echo "$as_me: failed program was
:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 ac_header_preproc=no
15493 rm -f conftest.err conftest.$ac_ext
15494 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15495 echo "${ECHO_T}$ac_header_preproc" >&6; }
15497 # So? What about this header?
15498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15500 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15501 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15502 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15504 ac_header_preproc=yes
15507 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15508 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15509 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15510 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15511 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15512 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15513 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15514 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15515 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15517 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15518 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15522 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15523 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15525 echo $ECHO_N "(cached
) $ECHO_C" >&6
15527 eval "$as_ac_Header=\
$ac_header_preproc"
15529 ac_res=`eval echo '${'$as_ac_Header'}'`
15530 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15531 echo "${ECHO_T}$ac_res" >&6; }
15534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15535 cat >>confdefs.h <<_ACEOF
15536 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15548 for ac_header in $ac_header_list
15550 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15551 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15555 echo $ECHO_N "(cached
) $ECHO_C" >&6
15557 ac_res=`eval echo '${'$as_ac_Header'}'`
15558 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15559 echo "${ECHO_T}$ac_res" >&6; }
15561 # Is the header compilable?
15562 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15563 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 $ac_includes_default
15571 #include <$ac_header>
15573 rm -f conftest.$ac_objext
15574 if { (ac_try="$ac_compile"
15575 case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_compile") 2>conftest.er1
15582 grep -v '^ *+' conftest.er1 >conftest.err
15584 cat conftest.err >&5
15585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest.$ac_objext; then
15590 ac_header_compiler=yes
15592 echo "$as_me: failed program was
:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15595 ac_header_compiler=no
15598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15599 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15600 echo "${ECHO_T}$ac_header_compiler" >&6; }
15602 # Is the header present?
15603 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15604 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15605 cat >conftest.$ac_ext <<_ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15611 #include <$ac_header>
15613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15614 case "(($ac_try" in
15615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15616 *) ac_try_echo=$ac_try;;
15618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15621 grep -v '^ *+' conftest.er1 >conftest.err
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15625 (exit $ac_status); } >/dev/null && {
15626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15627 test ! -s conftest.err
15629 ac_header_preproc=yes
15631 echo "$as_me: failed program was
:" >&5
15632 sed 's/^/| /' conftest.$ac_ext >&5
15634 ac_header_preproc=no
15637 rm -f conftest.err conftest.$ac_ext
15638 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15639 echo "${ECHO_T}$ac_header_preproc" >&6; }
15641 # So? What about this header?
15642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15644 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15645 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15648 ac_header_preproc=yes
15651 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15652 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15653 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15654 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15655 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15656 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15657 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15658 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15659 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15661 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15662 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15666 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15667 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15669 echo $ECHO_N "(cached
) $ECHO_C" >&6
15671 eval "$as_ac_Header=\
$ac_header_preproc"
15673 ac_res=`eval echo '${'$as_ac_Header'}'`
15674 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15675 echo "${ECHO_T}$ac_res" >&6; }
15678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15679 cat >>confdefs.h <<_ACEOF
15680 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15695 for ac_func in $ac_func_list
15697 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15698 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15699 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15700 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15701 echo $ECHO_N "(cached
) $ECHO_C" >&6
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15711 #define $ac_func innocuous_$ac_func
15713 /* System header to define __stub macros and hopefully few prototypes,
15714 which can conflict with char $ac_func (); below.
15715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15716 <limits.h> exists even on freestanding compilers. */
15719 # include <limits.h>
15721 # include <assert.h>
15726 /* Override any GCC internal prototype to avoid an error.
15727 Use char because int might match the return type of a GCC
15728 builtin and then its argument prototype would still apply. */
15733 /* The GNU C library defines this for functions which it implements
15734 to always fail with ENOSYS. Some functions are actually named
15735 something starting with __ and the normal name is an alias. */
15736 #if defined __stub_$ac_func || defined __stub___$ac_func
15743 return $ac_func ();
15748 rm -f conftest.$ac_objext conftest$ac_exeext
15749 if { (ac_try="$ac_link"
15750 case "(($ac_try" in
15751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15752 *) ac_try_echo=$ac_try;;
15754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15755 (eval "$ac_link") 2>conftest.er1
15757 grep -v '^ *+' conftest.er1 >conftest.err
15759 cat conftest.err >&5
15760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15761 (exit $ac_status); } && {
15762 test -z "$ac_c_werror_flag" ||
15763 test ! -s conftest.err
15764 } && test -s conftest$ac_exeext &&
15765 $as_test_x conftest$ac_exeext; then
15766 eval "$as_ac_var=yes"
15768 echo "$as_me: failed program was
:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15771 eval "$as_ac_var=no
"
15774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15775 conftest$ac_exeext conftest.$ac_ext
15777 ac_res=`eval echo '${'$as_ac_var'}'`
15778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15779 echo "${ECHO_T}$ac_res" >&6; }
15780 if test `eval echo '${'$as_ac_var'}'` = yes; then
15781 cat >>confdefs.h <<_ACEOF
15782 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15804 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15805 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15806 if test "${ac_cv_func_working_mktime+set}" = set; then
15807 echo $ECHO_N "(cached
) $ECHO_C" >&6
15809 if test "$cross_compiling" = yes; then
15810 ac_cv_func_working_mktime=no
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Test program from Paul Eggert and Tony Leneis. */
15819 #ifdef TIME_WITH_SYS_TIME
15820 # include <sys/time.h>
15823 # ifdef HAVE_SYS_TIME_H
15824 # include <sys/time.h>
15830 #include <stdlib.h>
15832 #ifdef HAVE_UNISTD_H
15833 # include <unistd.h>
15837 # define alarm(X) /* empty */
15840 /* Work around redefinition to rpl_putenv by other config tests. */
15843 static time_t time_t_max;
15844 static time_t time_t_min;
15846 /* Values we'll use to set the TZ environment variable. */
15847 static char *tz_strings[] = {
15848 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15849 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15851 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15853 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15854 Based on a problem report from Andreas Jaeger. */
15856 spring_forward_gap ()
15858 /* glibc (up to about 1998-10-07) failed this test. */
15861 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15862 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15863 on systems that don't support the Olson extension, or don't have the
15864 full zoneinfo tables installed. */
15865 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15874 return mktime (&tm) != (time_t) -1;
15882 return ! (lt = localtime (&now)) || mktime (lt) == now;
15889 return (mktime_test1 (now)
15890 && mktime_test1 ((time_t) (time_t_max - now))
15891 && mktime_test1 ((time_t) (time_t_min + now)));
15897 /* Based on code from Ariel Faigon. */
15907 return tm.tm_mon == 2 && tm.tm_mday == 31;
15916 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15917 now = mktime (&tm);
15918 if (now != (time_t) -1)
15920 struct tm *lt = localtime (&now);
15922 && lt->tm_year == tm.tm_year
15923 && lt->tm_mon == tm.tm_mon
15924 && lt->tm_mday == tm.tm_mday
15925 && lt->tm_hour == tm.tm_hour
15926 && lt->tm_min == tm.tm_min
15927 && lt->tm_sec == tm.tm_sec
15928 && lt->tm_yday == tm.tm_yday
15929 && lt->tm_wday == tm.tm_wday
15930 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15931 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15940 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15941 ignoring leap seconds. */
15942 unsigned long int answer = 2527315200UL;
15946 tm.tm_year = 2050 - 1900;
15949 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15952 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15953 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15954 on systems that don't support the Olson extension, or don't have the
15955 full zoneinfo tables installed. */
15956 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15960 /* Check that the result is either a failure, or close enough
15961 to the correct answer that we can assume the discrepancy is
15962 due to leap seconds. */
15963 return (t == (time_t) -1
15964 || (0 < t && answer - 120 <= t && t <= answer + 120));
15973 /* This test makes some buggy mktime implementations loop.
15974 Give up after 60 seconds; a mktime slower than that
15975 isn't worth using anyway. */
15978 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15981 if ((time_t) -1 < 0)
15982 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15984 delta = time_t_max / 997; /* a suitable prime number */
15985 for (i = 0; i < N_STRINGS; i++)
15988 putenv (tz_strings[i]);
15990 for (t = 0; t <= time_t_max - delta; t += delta)
15991 if (! mktime_test (t))
15993 if (! (mktime_test ((time_t) 1)
15994 && mktime_test ((time_t) (60 * 60))
15995 && mktime_test ((time_t) (60 * 60 * 24))))
15998 for (j = 1; 0 < j; j *= 2)
15999 if (! bigtime_test (j))
16001 if (! bigtime_test (j - 1))
16004 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16007 rm -f conftest$ac_exeext
16008 if { (ac_try="$ac_link"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_link") 2>&5
16016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16018 { (case "(($ac_try" in
16019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16020 *) ac_try_echo=$ac_try;;
16022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16023 (eval "$ac_try") 2>&5
16025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16026 (exit $ac_status); }; }; then
16027 ac_cv_func_working_mktime=yes
16029 echo "$as_me: program exited with status
$ac_status" >&5
16030 echo "$as_me: failed program was
:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 ( exit $ac_status )
16034 ac_cv_func_working_mktime=no
16036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16041 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16042 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16043 if test $ac_cv_func_working_mktime = no; then
16044 case " $LIBOBJS " in
16045 *" mktime.
$ac_objext "* ) ;;
16046 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16052 if test "$ac_cv_func_working_mktime" = no; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define BROKEN_MKTIME 1
16060 ac_have_func=no # yes means we've found a way to get the load average.
16062 # Make sure getloadavg.c is where it belongs, at configure-time.
16063 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16064 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16065 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16066 { (exit 1); exit 1; }; }
16070 # Check for getloadavg, but be sure not to touch the cache variable.
16071 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16072 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16073 if test "${ac_cv_func_getloadavg+set}" = set; then
16074 echo $ECHO_N "(cached
) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h. */
16082 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16084 #define getloadavg innocuous_getloadavg
16086 /* System header to define __stub macros and hopefully few prototypes,
16087 which can conflict with char getloadavg (); below.
16088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089 <limits.h> exists even on freestanding compilers. */
16092 # include <limits.h>
16094 # include <assert.h>
16099 /* Override any GCC internal prototype to avoid an error.
16100 Use char because int might match the return type of a GCC
16101 builtin and then its argument prototype would still apply. */
16105 char getloadavg ();
16106 /* The GNU C library defines this for functions which it implements
16107 to always fail with ENOSYS. Some functions are actually named
16108 something starting with __ and the normal name is an alias. */
16109 #if defined __stub_getloadavg || defined __stub___getloadavg
16116 return getloadavg ();
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_link") 2>conftest.er1
16130 grep -v '^ *+' conftest.er1 >conftest.err
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16134 (exit $ac_status); } && {
16135 test -z "$ac_c_werror_flag" ||
16136 test ! -s conftest.err
16137 } && test -s conftest$ac_exeext &&
16138 $as_test_x conftest$ac_exeext; then
16139 ac_cv_func_getloadavg=yes
16141 echo "$as_me: failed program was
:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 ac_cv_func_getloadavg=no
16147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16148 conftest$ac_exeext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16151 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16152 if test $ac_cv_func_getloadavg = yes; then
16157 ) && ac_have_func=yes
16159 # On HPUX9, an unprivileged user can get load averages through this function.
16161 for ac_func in pstat_getdynamic
16163 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16164 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16165 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached
) $ECHO_C" >&6
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16177 #define $ac_func innocuous_$ac_func
16179 /* System header to define __stub macros and hopefully few prototypes,
16180 which can conflict with char $ac_func (); below.
16181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16182 <limits.h> exists even on freestanding compilers. */
16185 # include <limits.h>
16187 # include <assert.h>
16192 /* Override any GCC internal prototype to avoid an error.
16193 Use char because int might match the return type of a GCC
16194 builtin and then its argument prototype would still apply. */
16199 /* The GNU C library defines this for functions which it implements
16200 to always fail with ENOSYS. Some functions are actually named
16201 something starting with __ and the normal name is an alias. */
16202 #if defined __stub_$ac_func || defined __stub___$ac_func
16209 return $ac_func ();
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 eval "$as_ac_var=yes"
16234 echo "$as_me: failed program was
:" >&5
16235 sed 's/^/| /' conftest.$ac_ext >&5
16237 eval "$as_ac_var=no
"
16240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16241 conftest$ac_exeext conftest.$ac_ext
16243 ac_res=`eval echo '${'$as_ac_var'}'`
16244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16245 echo "${ECHO_T}$ac_res" >&6; }
16246 if test `eval echo '${'$as_ac_var'}'` = yes; then
16247 cat >>confdefs.h <<_ACEOF
16248 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16255 # Solaris has libkstat which does not require root.
16257 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16258 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16259 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16260 echo $ECHO_N "(cached
) $ECHO_C" >&6
16262 ac_check_lib_save_LIBS=$LIBS
16263 LIBS="-lkstat $LIBS"
16264 cat >conftest.$ac_ext <<_ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h. */
16271 /* Override any GCC internal prototype to avoid an error.
16272 Use char because int might match the return type of a GCC
16273 builtin and then its argument prototype would still apply. */
16277 char kstat_open ();
16281 return kstat_open ();
16286 rm -f conftest.$ac_objext conftest$ac_exeext
16287 if { (ac_try="$ac_link"
16288 case "(($ac_try" in
16289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16290 *) ac_try_echo=$ac_try;;
16292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16293 (eval "$ac_link") 2>conftest.er1
16295 grep -v '^ *+' conftest.er1 >conftest.err
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16299 (exit $ac_status); } && {
16300 test -z "$ac_c_werror_flag" ||
16301 test ! -s conftest.err
16302 } && test -s conftest$ac_exeext &&
16303 $as_test_x conftest$ac_exeext; then
16304 ac_cv_lib_kstat_kstat_open=yes
16306 echo "$as_me: failed program was
:" >&5
16307 sed 's/^/| /' conftest.$ac_ext >&5
16309 ac_cv_lib_kstat_kstat_open=no
16312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16313 conftest$ac_exeext conftest.$ac_ext
16314 LIBS=$ac_check_lib_save_LIBS
16316 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16317 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16318 if test $ac_cv_lib_kstat_kstat_open = yes; then
16319 cat >>confdefs.h <<_ACEOF
16320 #define HAVE_LIBKSTAT 1
16323 LIBS="-lkstat $LIBS"
16327 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16329 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16330 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16331 # to get the right answer into the cache.
16332 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16333 if test $ac_have_func = no; then
16334 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16335 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16336 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16337 echo $ECHO_N "(cached
) $ECHO_C" >&6
16339 ac_check_lib_save_LIBS=$LIBS
16341 cat >conftest.$ac_ext <<_ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16348 /* Override any GCC internal prototype to avoid an error.
16349 Use char because int might match the return type of a GCC
16350 builtin and then its argument prototype would still apply. */
16358 return elf_begin ();
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (ac_try="$ac_link"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16369 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_link") 2>conftest.er1
16372 grep -v '^ *+' conftest.er1 >conftest.err
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext &&
16380 $as_test_x conftest$ac_exeext; then
16381 ac_cv_lib_elf_elf_begin=yes
16383 echo "$as_me: failed program was
:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16386 ac_cv_lib_elf_elf_begin=no
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16391 LIBS=$ac_check_lib_save_LIBS
16393 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16394 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16395 if test $ac_cv_lib_elf_elf_begin = yes; then
16400 if test $ac_have_func = no; then
16401 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16402 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16403 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16404 echo $ECHO_N "(cached
) $ECHO_C" >&6
16406 ac_check_lib_save_LIBS=$LIBS
16408 cat >conftest.$ac_ext <<_ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h. */
16415 /* Override any GCC internal prototype to avoid an error.
16416 Use char because int might match the return type of a GCC
16417 builtin and then its argument prototype would still apply. */
16425 return kvm_open ();
16430 rm -f conftest.$ac_objext conftest$ac_exeext
16431 if { (ac_try="$ac_link"
16432 case "(($ac_try" in
16433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16434 *) ac_try_echo=$ac_try;;
16436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16437 (eval "$ac_link") 2>conftest.er1
16439 grep -v '^ *+' conftest.er1 >conftest.err
16441 cat conftest.err >&5
16442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16443 (exit $ac_status); } && {
16444 test -z "$ac_c_werror_flag" ||
16445 test ! -s conftest.err
16446 } && test -s conftest$ac_exeext &&
16447 $as_test_x conftest$ac_exeext; then
16448 ac_cv_lib_kvm_kvm_open=yes
16450 echo "$as_me: failed program was
:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16453 ac_cv_lib_kvm_kvm_open=no
16456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16457 conftest$ac_exeext conftest.$ac_ext
16458 LIBS=$ac_check_lib_save_LIBS
16460 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16461 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16462 if test $ac_cv_lib_kvm_kvm_open = yes; then
16466 # Check for the 4.4BSD definition of getloadavg.
16467 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16468 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16469 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16470 echo $ECHO_N "(cached
) $ECHO_C" >&6
16472 ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lutil $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_util_getloadavg=yes
16516 echo "$as_me: failed program was
:" >&5
16517 sed 's/^/| /' conftest.$ac_ext >&5
16519 ac_cv_lib_util_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_util_getloadavg" >&5
16527 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16528 if test $ac_cv_lib_util_getloadavg = yes; then
16529 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16534 if test $ac_have_func = no; then
16535 # There is a commonly available library for RS/6000 AIX.
16536 # Since it is not a standard part of AIX, it might be installed locally.
16537 ac_getloadavg_LIBS=$LIBS
16538 LIBS="-L/usr
/local
/lib
$LIBS"
16539 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16540 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16541 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16542 echo $ECHO_N "(cached
) $ECHO_C" >&6
16544 ac_check_lib_save_LIBS=$LIBS
16545 LIBS="-lgetloadavg $LIBS"
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16553 /* Override any GCC internal prototype to avoid an error.
16554 Use char because int might match the return type of a GCC
16555 builtin and then its argument prototype would still apply. */
16559 char getloadavg ();
16563 return getloadavg ();
16568 rm -f conftest.$ac_objext conftest$ac_exeext
16569 if { (ac_try="$ac_link"
16570 case "(($ac_try" in
16571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16572 *) ac_try_echo=$ac_try;;
16574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16575 (eval "$ac_link") 2>conftest.er1
16577 grep -v '^ *+' conftest.er1 >conftest.err
16579 cat conftest.err >&5
16580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16581 (exit $ac_status); } && {
16582 test -z "$ac_c_werror_flag" ||
16583 test ! -s conftest.err
16584 } && test -s conftest$ac_exeext &&
16585 $as_test_x conftest$ac_exeext; then
16586 ac_cv_lib_getloadavg_getloadavg=yes
16588 echo "$as_me: failed program was
:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ac_cv_lib_getloadavg_getloadavg=no
16594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16595 conftest$ac_exeext conftest.$ac_ext
16596 LIBS=$ac_check_lib_save_LIBS
16598 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16599 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16600 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16601 LIBS="-lgetloadavg $LIBS"
16603 LIBS=$ac_getloadavg_LIBS
16608 # Make sure it is really in the library, if we think we found it,
16609 # otherwise set up the replacement function.
16611 for ac_func in getloadavg
16613 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16614 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16615 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16616 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16617 echo $ECHO_N "(cached
) $ECHO_C" >&6
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16627 #define $ac_func innocuous_$ac_func
16629 /* System header to define __stub macros and hopefully few prototypes,
16630 which can conflict with char $ac_func (); below.
16631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16632 <limits.h> exists even on freestanding compilers. */
16635 # include <limits.h>
16637 # include <assert.h>
16642 /* Override any GCC internal prototype to avoid an error.
16643 Use char because int might match the return type of a GCC
16644 builtin and then its argument prototype would still apply. */
16649 /* The GNU C library defines this for functions which it implements
16650 to always fail with ENOSYS. Some functions are actually named
16651 something starting with __ and the normal name is an alias. */
16652 #if defined __stub_$ac_func || defined __stub___$ac_func
16659 return $ac_func ();
16664 rm -f conftest.$ac_objext conftest$ac_exeext
16665 if { (ac_try="$ac_link"
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_link") 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_exeext &&
16681 $as_test_x conftest$ac_exeext; then
16682 eval "$as_ac_var=yes"
16684 echo "$as_me: failed program was
:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 eval "$as_ac_var=no
"
16690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16691 conftest$ac_exeext conftest.$ac_ext
16693 ac_res=`eval echo '${'$as_ac_var'}'`
16694 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16695 echo "${ECHO_T}$ac_res" >&6; }
16696 if test `eval echo '${'$as_ac_var'}'` = yes; then
16697 cat >>confdefs.h <<_ACEOF
16698 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16702 case " $LIBOBJS " in
16703 *" getloadavg.
$ac_objext "* ) ;;
16704 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16709 cat >>confdefs.h <<\_ACEOF
16710 #define C_GETLOADAVG 1
16713 # Figure out what our getloadavg.c needs.
16715 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16716 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16717 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16718 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16719 echo $ECHO_N "(cached
) $ECHO_C" >&6
16721 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16722 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16724 # Is the header compilable?
16725 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16726 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16727 cat >conftest.$ac_ext <<_ACEOF
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16733 $ac_includes_default
16734 #include <sys/dg_sys_info.h>
16736 rm -f conftest.$ac_objext
16737 if { (ac_try="$ac_compile"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_compile") 2>conftest.er1
16745 grep -v '^ *+' conftest.er1 >conftest.err
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16749 (exit $ac_status); } && {
16750 test -z "$ac_c_werror_flag" ||
16751 test ! -s conftest.err
16752 } && test -s conftest.$ac_objext; then
16753 ac_header_compiler=yes
16755 echo "$as_me: failed program was
:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_header_compiler=no
16761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16763 echo "${ECHO_T}$ac_header_compiler" >&6; }
16765 # Is the header present?
16766 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16767 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16774 #include <sys/dg_sys_info.h>
16776 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16777 case "(($ac_try" in
16778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16779 *) ac_try_echo=$ac_try;;
16781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16782 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16784 grep -v '^ *+' conftest.er1 >conftest.err
16786 cat conftest.err >&5
16787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16788 (exit $ac_status); } >/dev/null && {
16789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16790 test ! -s conftest.err
16792 ac_header_preproc=yes
16794 echo "$as_me: failed program was
:" >&5
16795 sed 's/^/| /' conftest.$ac_ext >&5
16797 ac_header_preproc=no
16800 rm -f conftest.err conftest.$ac_ext
16801 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16802 echo "${ECHO_T}$ac_header_preproc" >&6; }
16804 # So? What about this header?
16805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16807 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16808 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16809 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16810 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16811 ac_header_preproc=yes
16814 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16815 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16816 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16817 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16818 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16819 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16820 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16821 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16822 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16823 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16824 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16825 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16829 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16830 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16831 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16832 echo $ECHO_N "(cached
) $ECHO_C" >&6
16834 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16836 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16837 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16840 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16843 cat >>confdefs.h <<\_ACEOF
16848 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16849 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16850 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16851 echo $ECHO_N "(cached
) $ECHO_C" >&6
16853 ac_check_lib_save_LIBS=$LIBS
16855 cat >conftest.$ac_ext <<_ACEOF
16858 cat confdefs.h >>conftest.$ac_ext
16859 cat >>conftest.$ac_ext <<_ACEOF
16860 /* end confdefs.h. */
16862 /* Override any GCC internal prototype to avoid an error.
16863 Use char because int might match the return type of a GCC
16864 builtin and then its argument prototype would still apply. */
16868 char dg_sys_info ();
16872 return dg_sys_info ();
16877 rm -f conftest.$ac_objext conftest$ac_exeext
16878 if { (ac_try="$ac_link"
16879 case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16884 (eval "$ac_link") 2>conftest.er1
16886 grep -v '^ *+' conftest.er1 >conftest.err
16888 cat conftest.err >&5
16889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16890 (exit $ac_status); } && {
16891 test -z "$ac_c_werror_flag" ||
16892 test ! -s conftest.err
16893 } && test -s conftest$ac_exeext &&
16894 $as_test_x conftest$ac_exeext; then
16895 ac_cv_lib_dgc_dg_sys_info=yes
16897 echo "$as_me: failed program was
:" >&5
16898 sed 's/^/| /' conftest.$ac_ext >&5
16900 ac_cv_lib_dgc_dg_sys_info=no
16903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16904 conftest$ac_exeext conftest.$ac_ext
16905 LIBS=$ac_check_lib_save_LIBS
16907 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16908 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16909 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16910 cat >>confdefs.h <<_ACEOF
16911 #define HAVE_LIBDGC 1
16922 if test "${ac_cv_header_locale_h+set}" = set; then
16923 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16924 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16925 if test "${ac_cv_header_locale_h+set}" = set; then
16926 echo $ECHO_N "(cached
) $ECHO_C" >&6
16928 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16929 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16931 # Is the header compilable?
16932 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16933 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16934 cat >conftest.$ac_ext <<_ACEOF
16937 cat confdefs.h >>conftest.$ac_ext
16938 cat >>conftest.$ac_ext <<_ACEOF
16939 /* end confdefs.h. */
16940 $ac_includes_default
16941 #include <locale.h>
16943 rm -f conftest.$ac_objext
16944 if { (ac_try="$ac_compile"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_compile") 2>conftest.er1
16952 grep -v '^ *+' conftest.er1 >conftest.err
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest.$ac_objext; then
16960 ac_header_compiler=yes
16962 echo "$as_me: failed program was
:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16965 ac_header_compiler=no
16968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16970 echo "${ECHO_T}$ac_header_compiler" >&6; }
16972 # Is the header present?
16973 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16974 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16975 cat >conftest.$ac_ext <<_ACEOF
16978 cat confdefs.h >>conftest.$ac_ext
16979 cat >>conftest.$ac_ext <<_ACEOF
16980 /* end confdefs.h. */
16981 #include <locale.h>
16983 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16984 case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16991 grep -v '^ *+' conftest.er1 >conftest.err
16993 cat conftest.err >&5
16994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16995 (exit $ac_status); } >/dev/null && {
16996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16997 test ! -s conftest.err
16999 ac_header_preproc=yes
17001 echo "$as_me: failed program was
:" >&5
17002 sed 's/^/| /' conftest.$ac_ext >&5
17004 ac_header_preproc=no
17007 rm -f conftest.err conftest.$ac_ext
17008 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17009 echo "${ECHO_T}$ac_header_preproc" >&6; }
17011 # So? What about this header?
17012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17014 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17015 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17016 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17017 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17018 ac_header_preproc=yes
17021 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17022 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17023 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17024 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17025 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17026 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17027 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17028 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17029 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17030 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17031 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17032 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17036 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17037 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17038 if test "${ac_cv_header_locale_h+set}" = set; then
17039 echo $ECHO_N "(cached
) $ECHO_C" >&6
17041 ac_cv_header_locale_h=$ac_header_preproc
17043 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17044 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17050 for ac_func in setlocale
17052 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17053 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17054 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17055 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17056 echo $ECHO_N "(cached
) $ECHO_C" >&6
17058 cat >conftest.$ac_ext <<_ACEOF
17061 cat confdefs.h >>conftest.$ac_ext
17062 cat >>conftest.$ac_ext <<_ACEOF
17063 /* end confdefs.h. */
17064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17066 #define $ac_func innocuous_$ac_func
17068 /* System header to define __stub macros and hopefully few prototypes,
17069 which can conflict with char $ac_func (); below.
17070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17071 <limits.h> exists even on freestanding compilers. */
17074 # include <limits.h>
17076 # include <assert.h>
17081 /* Override any GCC internal prototype to avoid an error.
17082 Use char because int might match the return type of a GCC
17083 builtin and then its argument prototype would still apply. */
17088 /* The GNU C library defines this for functions which it implements
17089 to always fail with ENOSYS. Some functions are actually named
17090 something starting with __ and the normal name is an alias. */
17091 #if defined __stub_$ac_func || defined __stub___$ac_func
17098 return $ac_func ();
17103 rm -f conftest.$ac_objext conftest$ac_exeext
17104 if { (ac_try="$ac_link"
17105 case "(($ac_try" in
17106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17107 *) ac_try_echo=$ac_try;;
17109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17110 (eval "$ac_link") 2>conftest.er1
17112 grep -v '^ *+' conftest.er1 >conftest.err
17114 cat conftest.err >&5
17115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17116 (exit $ac_status); } && {
17117 test -z "$ac_c_werror_flag" ||
17118 test ! -s conftest.err
17119 } && test -s conftest$ac_exeext &&
17120 $as_test_x conftest$ac_exeext; then
17121 eval "$as_ac_var=yes"
17123 echo "$as_me: failed program was
:" >&5
17124 sed 's/^/| /' conftest.$ac_ext >&5
17126 eval "$as_ac_var=no
"
17129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17130 conftest$ac_exeext conftest.$ac_ext
17132 ac_res=`eval echo '${'$as_ac_var'}'`
17133 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17134 echo "${ECHO_T}$ac_res" >&6; }
17135 if test `eval echo '${'$as_ac_var'}'` = yes; then
17136 cat >>confdefs.h <<_ACEOF
17137 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17144 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17145 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17146 # Irix 4.0.5F has the header but not the library.
17147 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17150 cat >>confdefs.h <<\_ACEOF
17156 if test $ac_have_func = no; then
17157 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17158 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17159 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17160 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17161 echo $ECHO_N "(cached
) $ECHO_C" >&6
17163 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17164 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17166 # Is the header compilable?
17167 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17168 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17169 cat >conftest.$ac_ext <<_ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17175 $ac_includes_default
17176 #include <inq_stats/cpustats.h>
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182 *) ac_try_echo=$ac_try;;
17184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17185 (eval "$ac_compile") 2>conftest.er1
17187 grep -v '^ *+' conftest.er1 >conftest.err
17189 cat conftest.err >&5
17190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17191 (exit $ac_status); } && {
17192 test -z "$ac_c_werror_flag" ||
17193 test ! -s conftest.err
17194 } && test -s conftest.$ac_objext; then
17195 ac_header_compiler=yes
17197 echo "$as_me: failed program was
:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17200 ac_header_compiler=no
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17205 echo "${ECHO_T}$ac_header_compiler" >&6; }
17207 # Is the header present?
17208 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17209 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 #include <inq_stats/cpustats.h>
17218 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17219 case "(($ac_try" in
17220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17221 *) ac_try_echo=$ac_try;;
17223 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17224 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17226 grep -v '^ *+' conftest.er1 >conftest.err
17228 cat conftest.err >&5
17229 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17230 (exit $ac_status); } >/dev/null && {
17231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17234 ac_header_preproc=yes
17236 echo "$as_me: failed program was
:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17239 ac_header_preproc=no
17242 rm -f conftest.err conftest.$ac_ext
17243 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17244 echo "${ECHO_T}$ac_header_preproc" >&6; }
17246 # So? What about this header?
17247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17249 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17250 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17251 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17252 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17253 ac_header_preproc=yes
17256 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17257 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17258 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17259 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17260 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17261 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17262 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17263 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17264 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17265 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17266 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17267 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17271 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17272 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17273 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17274 echo $ECHO_N "(cached
) $ECHO_C" >&6
17276 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17278 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17279 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17282 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17285 cat >>confdefs.h <<\_ACEOF
17290 cat >>confdefs.h <<\_ACEOF
17299 if test $ac_have_func = no; then
17300 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17301 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17302 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17303 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17304 echo $ECHO_N "(cached
) $ECHO_C" >&6
17306 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17307 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17309 # Is the header compilable?
17310 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17311 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <sys/cpustats.h>
17321 rm -f conftest.$ac_objext
17322 if { (ac_try="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17334 (exit $ac_status); } && {
17335 test -z "$ac_c_werror_flag" ||
17336 test ! -s conftest.err
17337 } && test -s conftest.$ac_objext; then
17338 ac_header_compiler=yes
17340 echo "$as_me: failed program was
:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_header_compiler=no
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17348 echo "${ECHO_T}$ac_header_compiler" >&6; }
17350 # Is the header present?
17351 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17352 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17353 cat >conftest.$ac_ext <<_ACEOF
17356 cat confdefs.h >>conftest.$ac_ext
17357 cat >>conftest.$ac_ext <<_ACEOF
17358 /* end confdefs.h. */
17359 #include <sys/cpustats.h>
17361 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17362 case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17369 grep -v '^ *+' conftest.er1 >conftest.err
17371 cat conftest.err >&5
17372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17373 (exit $ac_status); } >/dev/null && {
17374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17375 test ! -s conftest.err
17377 ac_header_preproc=yes
17379 echo "$as_me: failed program was
:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_header_preproc=no
17385 rm -f conftest.err conftest.$ac_ext
17386 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17387 echo "${ECHO_T}$ac_header_preproc" >&6; }
17389 # So? What about this header?
17390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17392 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17393 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17394 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17395 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17396 ac_header_preproc=yes
17399 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17400 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17401 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17402 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17403 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17404 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17405 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17406 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17407 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17408 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17409 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17410 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17414 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17415 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17416 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17417 echo $ECHO_N "(cached
) $ECHO_C" >&6
17419 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17421 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17422 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17425 if test $ac_cv_header_sys_cpustats_h = yes; then
17426 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17435 if test $ac_have_func = no; then
17437 for ac_header in mach/mach.h
17439 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17444 echo $ECHO_N "(cached
) $ECHO_C" >&6
17446 ac_res=`eval echo '${'$as_ac_Header'}'`
17447 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17448 echo "${ECHO_T}$ac_res" >&6; }
17450 # Is the header compilable?
17451 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17452 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 $ac_includes_default
17460 #include <$ac_header>
17462 rm -f conftest.$ac_objext
17463 if { (ac_try="$ac_compile"
17464 case "(($ac_try" in
17465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466 *) ac_try_echo=$ac_try;;
17468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17469 (eval "$ac_compile") 2>conftest.er1
17471 grep -v '^ *+' conftest.er1 >conftest.err
17473 cat conftest.err >&5
17474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17475 (exit $ac_status); } && {
17476 test -z "$ac_c_werror_flag" ||
17477 test ! -s conftest.err
17478 } && test -s conftest.$ac_objext; then
17479 ac_header_compiler=yes
17481 echo "$as_me: failed program was
:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_header_compiler=no
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17488 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17489 echo "${ECHO_T}$ac_header_compiler" >&6; }
17491 # Is the header present?
17492 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17493 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17494 cat >conftest.$ac_ext <<_ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17500 #include <$ac_header>
17502 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17503 case "(($ac_try" in
17504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505 *) ac_try_echo=$ac_try;;
17507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17508 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17510 grep -v '^ *+' conftest.er1 >conftest.err
17512 cat conftest.err >&5
17513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17514 (exit $ac_status); } >/dev/null && {
17515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17516 test ! -s conftest.err
17518 ac_header_preproc=yes
17520 echo "$as_me: failed program was
:" >&5
17521 sed 's/^/| /' conftest.$ac_ext >&5
17523 ac_header_preproc=no
17526 rm -f conftest.err conftest.$ac_ext
17527 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17528 echo "${ECHO_T}$ac_header_preproc" >&6; }
17530 # So? What about this header?
17531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17533 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17534 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17535 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17537 ac_header_preproc=yes
17540 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17541 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17542 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17543 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17544 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17545 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17546 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17547 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17550 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17551 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17555 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17556 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17558 echo $ECHO_N "(cached
) $ECHO_C" >&6
17560 eval "$as_ac_Header=\
$ac_header_preproc"
17562 ac_res=`eval echo '${'$as_ac_Header'}'`
17563 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17564 echo "${ECHO_T}$ac_res" >&6; }
17567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17568 cat >>confdefs.h <<_ACEOF
17569 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17579 for ac_header in nlist.h
17581 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17582 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17583 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17584 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17586 echo $ECHO_N "(cached
) $ECHO_C" >&6
17588 ac_res=`eval echo '${'$as_ac_Header'}'`
17589 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17590 echo "${ECHO_T}$ac_res" >&6; }
17592 # Is the header compilable?
17593 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17594 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17595 cat >conftest.$ac_ext <<_ACEOF
17598 cat confdefs.h >>conftest.$ac_ext
17599 cat >>conftest.$ac_ext <<_ACEOF
17600 /* end confdefs.h. */
17601 $ac_includes_default
17602 #include <$ac_header>
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17613 grep -v '^ *+' conftest.er1 >conftest.err
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest.$ac_objext; then
17621 ac_header_compiler=yes
17623 echo "$as_me: failed program was
:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 ac_header_compiler=no
17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17630 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17631 echo "${ECHO_T}$ac_header_compiler" >&6; }
17633 # Is the header present?
17634 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17635 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 #include <$ac_header>
17644 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17645 case "(($ac_try" in
17646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17647 *) ac_try_echo=$ac_try;;
17649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1 >conftest.err
17654 cat conftest.err >&5
17655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17656 (exit $ac_status); } >/dev/null && {
17657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17658 test ! -s conftest.err
17660 ac_header_preproc=yes
17662 echo "$as_me: failed program was
:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_header_preproc=no
17668 rm -f conftest.err conftest.$ac_ext
17669 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17670 echo "${ECHO_T}$ac_header_preproc" >&6; }
17672 # So? What about this header?
17673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17675 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17676 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17677 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17679 ac_header_preproc=yes
17682 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17683 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17684 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17685 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17686 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17687 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17688 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17689 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17692 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17693 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17697 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17698 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17699 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17700 echo $ECHO_N "(cached
) $ECHO_C" >&6
17702 eval "$as_ac_Header=\
$ac_header_preproc"
17704 ac_res=`eval echo '${'$as_ac_Header'}'`
17705 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17706 echo "${ECHO_T}$ac_res" >&6; }
17709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17710 cat >>confdefs.h <<_ACEOF
17711 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17713 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17714 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17715 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17716 echo $ECHO_N "(cached
) $ECHO_C" >&6
17718 cat >conftest.$ac_ext <<_ACEOF
17721 cat confdefs.h >>conftest.$ac_ext
17722 cat >>conftest.$ac_ext <<_ACEOF
17723 /* end confdefs.h. */
17729 static struct nlist ac_aggr;
17730 if (ac_aggr.n_un.n_name)
17736 rm -f conftest.$ac_objext
17737 if { (ac_try="$ac_compile"
17738 case "(($ac_try" in
17739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740 *) ac_try_echo=$ac_try;;
17742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_compile") 2>conftest.er1
17745 grep -v '^ *+' conftest.er1 >conftest.err
17747 cat conftest.err >&5
17748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17749 (exit $ac_status); } && {
17750 test -z "$ac_c_werror_flag" ||
17751 test ! -s conftest.err
17752 } && test -s conftest.$ac_objext; then
17753 ac_cv_member_struct_nlist_n_un_n_name=yes
17755 echo "$as_me: failed program was
:" >&5
17756 sed 's/^/| /' conftest.$ac_ext >&5
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17769 static struct nlist ac_aggr;
17770 if (sizeof ac_aggr.n_un.n_name)
17776 rm -f conftest.$ac_objext
17777 if { (ac_try="$ac_compile"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_compile") 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17789 (exit $ac_status); } && {
17790 test -z "$ac_c_werror_flag" ||
17791 test ! -s conftest.err
17792 } && test -s conftest.$ac_objext; then
17793 ac_cv_member_struct_nlist_n_un_n_name=yes
17795 echo "$as_me: failed program was
:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ac_cv_member_struct_nlist_n_un_n_name=no
17801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17807 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17808 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17810 cat >>confdefs.h <<_ACEOF
17811 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17815 cat >>confdefs.h <<\_ACEOF
17816 #define NLIST_NAME_UNION 1
17830 # Some definitions of getloadavg require that the program be installed setgid.
17831 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17832 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17833 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17834 echo $ECHO_N "(cached
) $ECHO_C" >&6
17836 cat >conftest.$ac_ext <<_ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h. */
17842 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17843 #ifdef LDAV_PRIVILEGED
17844 Yowza Am I SETGID yet
17847 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17848 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17849 ac_cv_func_getloadavg_setgid=yes
17851 ac_cv_func_getloadavg_setgid=no
17856 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17857 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17858 if test $ac_cv_func_getloadavg_setgid = yes; then
17861 cat >>confdefs.h <<\_ACEOF
17862 #define GETLOADAVG_PRIVILEGED 1
17869 if test $ac_cv_func_getloadavg_setgid = yes; then
17870 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17871 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17872 if test "${ac_cv_group_kmem+set}" = set; then
17873 echo $ECHO_N "(cached
) $ECHO_C" >&6
17875 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17876 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17877 # If we got an error (system does not support symlinks), try without -L.
17878 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17879 ac_cv_group_kmem=`echo $ac_ls_output \
17880 | sed -ne 's/[ ][ ]*/ /g;
17881 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17885 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17886 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17887 KMEM_GROUP=$ac_cv_group_kmem
17889 if test "x
$ac_save_LIBS" = x; then
17890 GETLOADAVG_LIBS=$LIBS
17892 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17898 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17899 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17900 if test "${ac_cv_sys_largefile_source+set}" = set; then
17901 echo $ECHO_N "(cached
) $ECHO_C" >&6
17904 cat >conftest.$ac_ext <<_ACEOF
17907 cat confdefs.h >>conftest.$ac_ext
17908 cat >>conftest.$ac_ext <<_ACEOF
17909 /* end confdefs.h. */
17914 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17919 rm -f conftest.$ac_objext conftest$ac_exeext
17920 if { (ac_try="$ac_link"
17921 case "(($ac_try" in
17922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17923 *) ac_try_echo=$ac_try;;
17925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17926 (eval "$ac_link") 2>conftest.er1
17928 grep -v '^ *+' conftest.er1 >conftest.err
17930 cat conftest.err >&5
17931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17932 (exit $ac_status); } && {
17933 test -z "$ac_c_werror_flag" ||
17934 test ! -s conftest.err
17935 } && test -s conftest$ac_exeext &&
17936 $as_test_x conftest$ac_exeext; then
17937 ac_cv_sys_largefile_source=no; break
17939 echo "$as_me: failed program was
:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17946 conftest$ac_exeext conftest.$ac_ext
17947 cat >conftest.$ac_ext <<_ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953 #define _LARGEFILE_SOURCE 1
17958 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17963 rm -f conftest.$ac_objext conftest$ac_exeext
17964 if { (ac_try="$ac_link"
17965 case "(($ac_try" in
17966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17967 *) ac_try_echo=$ac_try;;
17969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17970 (eval "$ac_link") 2>conftest.er1
17972 grep -v '^ *+' conftest.er1 >conftest.err
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17976 (exit $ac_status); } && {
17977 test -z "$ac_c_werror_flag" ||
17978 test ! -s conftest.err
17979 } && test -s conftest$ac_exeext &&
17980 $as_test_x conftest$ac_exeext; then
17981 ac_cv_sys_largefile_source=1; break
17983 echo "$as_me: failed program was
:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext conftest.$ac_ext
17991 ac_cv_sys_largefile_source=unknown
17995 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17996 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17997 case $ac_cv_sys_largefile_source in #(
18000 cat >>confdefs.h <<_ACEOF
18001 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18007 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18008 # in glibc 2.1.3, but that breaks too many other things.
18009 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18010 if test $ac_cv_sys_largefile_source != unknown; then
18012 cat >>confdefs.h <<\_ACEOF
18013 #define HAVE_FSEEKO 1
18019 # Configure getopt.
18020 # getopt.m4 serial 10
18022 # The getopt module assume you want GNU getopt, with getopt_long etc,
18023 # rather than vanilla POSIX getopt. This means your your code should
18024 # always include <getopt.h> for the getopt prototypes.
18036 # Prerequisites of lib/getopt*.
18043 for ac_header in getopt.h
18045 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18047 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18048 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18050 echo $ECHO_N "(cached
) $ECHO_C" >&6
18052 ac_res=`eval echo '${'$as_ac_Header'}'`
18053 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18054 echo "${ECHO_T}$ac_res" >&6; }
18056 # Is the header compilable?
18057 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18058 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 $ac_includes_default
18066 #include <$ac_header>
18068 rm -f conftest.$ac_objext
18069 if { (ac_try="$ac_compile"
18070 case "(($ac_try" in
18071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_compile") 2>conftest.er1
18077 grep -v '^ *+' conftest.er1 >conftest.err
18079 cat conftest.err >&5
18080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18081 (exit $ac_status); } && {
18082 test -z "$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18084 } && test -s conftest.$ac_objext; then
18085 ac_header_compiler=yes
18087 echo "$as_me: failed program was
:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_header_compiler=no
18093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18094 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18095 echo "${ECHO_T}$ac_header_compiler" >&6; }
18097 # Is the header present?
18098 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18099 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18100 cat >conftest.$ac_ext <<_ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h. */
18106 #include <$ac_header>
18108 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18109 case "(($ac_try" in
18110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18116 grep -v '^ *+' conftest.er1 >conftest.err
18118 cat conftest.err >&5
18119 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18120 (exit $ac_status); } >/dev/null && {
18121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18122 test ! -s conftest.err
18124 ac_header_preproc=yes
18126 echo "$as_me: failed program was
:" >&5
18127 sed 's/^/| /' conftest.$ac_ext >&5
18129 ac_header_preproc=no
18132 rm -f conftest.err conftest.$ac_ext
18133 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18134 echo "${ECHO_T}$ac_header_preproc" >&6; }
18136 # So? What about this header?
18137 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18139 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18140 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18141 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18142 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18143 ac_header_preproc=yes
18146 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18147 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18148 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18149 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18150 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18151 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18152 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18153 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18154 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18156 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18157 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18161 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18162 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18163 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18164 echo $ECHO_N "(cached
) $ECHO_C" >&6
18166 eval "$as_ac_Header=\
$ac_header_preproc"
18168 ac_res=`eval echo '${'$as_ac_Header'}'`
18169 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18170 echo "${ECHO_T}$ac_res" >&6; }
18173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18184 if test -z "$GETOPT_H"; then
18186 for ac_func in getopt_long_only
18188 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18189 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18190 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18191 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18192 echo $ECHO_N "(cached
) $ECHO_C" >&6
18194 cat >conftest.$ac_ext <<_ACEOF
18197 cat confdefs.h >>conftest.$ac_ext
18198 cat >>conftest.$ac_ext <<_ACEOF
18199 /* end confdefs.h. */
18200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18202 #define $ac_func innocuous_$ac_func
18204 /* System header to define __stub macros and hopefully few prototypes,
18205 which can conflict with char $ac_func (); below.
18206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18207 <limits.h> exists even on freestanding compilers. */
18210 # include <limits.h>
18212 # include <assert.h>
18217 /* Override any GCC internal prototype to avoid an error.
18218 Use char because int might match the return type of a GCC
18219 builtin and then its argument prototype would still apply. */
18224 /* The GNU C library defines this for functions which it implements
18225 to always fail with ENOSYS. Some functions are actually named
18226 something starting with __ and the normal name is an alias. */
18227 #if defined __stub_$ac_func || defined __stub___$ac_func
18234 return $ac_func ();
18239 rm -f conftest.$ac_objext conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18252 (exit $ac_status); } && {
18253 test -z "$ac_c_werror_flag" ||
18254 test ! -s conftest.err
18255 } && test -s conftest$ac_exeext &&
18256 $as_test_x conftest$ac_exeext; then
18257 eval "$as_ac_var=yes"
18259 echo "$as_me: failed program was
:" >&5
18260 sed 's/^/| /' conftest.$ac_ext >&5
18262 eval "$as_ac_var=no
"
18265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18266 conftest$ac_exeext conftest.$ac_ext
18268 ac_res=`eval echo '${'$as_ac_var'}'`
18269 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271 if test `eval echo '${'$as_ac_var'}'` = yes; then
18272 cat >>confdefs.h <<_ACEOF
18273 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18283 if test -z "$GETOPT_H"; then
18284 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18285 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18286 if test "${ac_cv_have_decl_optreset+set}" = set; then
18287 echo $ECHO_N "(cached
) $ECHO_C" >&6
18289 cat >conftest.$ac_ext <<_ACEOF
18292 cat confdefs.h >>conftest.$ac_ext
18293 cat >>conftest.$ac_ext <<_ACEOF
18294 /* end confdefs.h. */
18295 #include <getopt.h>
18308 rm -f conftest.$ac_objext
18309 if { (ac_try="$ac_compile"
18310 case "(($ac_try" in
18311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312 *) ac_try_echo=$ac_try;;
18314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18315 (eval "$ac_compile") 2>conftest.er1
18317 grep -v '^ *+' conftest.er1 >conftest.err
18319 cat conftest.err >&5
18320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18321 (exit $ac_status); } && {
18322 test -z "$ac_c_werror_flag" ||
18323 test ! -s conftest.err
18324 } && test -s conftest.$ac_objext; then
18325 ac_cv_have_decl_optreset=yes
18327 echo "$as_me: failed program was
:" >&5
18328 sed 's/^/| /' conftest.$ac_ext >&5
18330 ac_cv_have_decl_optreset=no
18333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18335 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18336 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18337 if test $ac_cv_have_decl_optreset = yes; then
18343 if test -z "$GETOPT_H"; then
18344 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18345 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18346 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18347 echo $ECHO_N "(cached
) $ECHO_C" >&6
18349 if test "$cross_compiling" = yes; then
18350 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18351 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18352 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18353 echo $ECHO_N "(cached
) $ECHO_C" >&6
18355 cat >conftest.$ac_ext <<_ACEOF
18358 cat confdefs.h >>conftest.$ac_ext
18359 cat >>conftest.$ac_ext <<_ACEOF
18360 /* end confdefs.h. */
18361 #include <getopt.h>
18366 #ifndef getopt_clip
18367 (void) getopt_clip;
18374 rm -f conftest.$ac_objext
18375 if { (ac_try="$ac_compile"
18376 case "(($ac_try" in
18377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18378 *) ac_try_echo=$ac_try;;
18380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18381 (eval "$ac_compile") 2>conftest.er1
18383 grep -v '^ *+' conftest.er1 >conftest.err
18385 cat conftest.err >&5
18386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18387 (exit $ac_status); } && {
18388 test -z "$ac_c_werror_flag" ||
18389 test ! -s conftest.err
18390 } && test -s conftest.$ac_objext; then
18391 ac_cv_have_decl_getopt_clip=yes
18393 echo "$as_me: failed program was
:" >&5
18394 sed 's/^/| /' conftest.$ac_ext >&5
18396 ac_cv_have_decl_getopt_clip=no
18399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18402 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18403 if test $ac_cv_have_decl_getopt_clip = yes; then
18404 gl_cv_func_gnu_getopt=no
18406 gl_cv_func_gnu_getopt=yes
18410 cat >conftest.$ac_ext <<_ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 #include <getopt.h>
18422 myargv[0] = "conftest
";
18425 return getopt (2, myargv, "+a
") != '?';
18431 rm -f conftest$ac_exeext
18432 if { (ac_try="$ac_link"
18433 case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_link") 2>&5
18440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 gl_cv_func_gnu_getopt=yes
18453 echo "$as_me: program exited with status
$ac_status" >&5
18454 echo "$as_me: failed program was
:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ( exit $ac_status )
18458 gl_cv_func_gnu_getopt=no
18460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18465 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18466 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18467 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18474 if test -n "$GETOPT_H"; then
18479 cat >>confdefs.h <<\_ACEOF
18480 #define __GETOPT_PREFIX rpl_
18486 GETOPTOBJS='getopt.o getopt1.o'
18493 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18494 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18495 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18496 echo $ECHO_N "(cached
) $ECHO_C" >&6
18498 # Use it with a single arg.
18499 cat >conftest.$ac_ext <<_ACEOF
18502 cat confdefs.h >>conftest.$ac_ext
18503 cat >>conftest.$ac_ext <<_ACEOF
18504 /* end confdefs.h. */
18505 $ac_includes_default
18514 rm -f conftest.$ac_objext
18515 if { (ac_try="$ac_compile"
18516 case "(($ac_try" in
18517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18518 *) ac_try_echo=$ac_try;;
18520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18521 (eval "$ac_compile") 2>conftest.er1
18523 grep -v '^ *+' conftest.er1 >conftest.err
18525 cat conftest.err >&5
18526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest.$ac_objext; then
18531 ac_cv_func_getpgrp_void=no
18533 echo "$as_me: failed program was
:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 ac_cv_func_getpgrp_void=yes
18539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18543 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18544 if test $ac_cv_func_getpgrp_void = yes; then
18546 cat >>confdefs.h <<\_ACEOF
18547 #define GETPGRP_VOID 1
18554 for ac_func in strftime
18556 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18557 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18558 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18559 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18560 echo $ECHO_N "(cached
) $ECHO_C" >&6
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18568 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18569 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18570 #define $ac_func innocuous_$ac_func
18572 /* System header to define __stub macros and hopefully few prototypes,
18573 which can conflict with char $ac_func (); below.
18574 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18575 <limits.h> exists even on freestanding compilers. */
18578 # include <limits.h>
18580 # include <assert.h>
18585 /* Override any GCC internal prototype to avoid an error.
18586 Use char because int might match the return type of a GCC
18587 builtin and then its argument prototype would still apply. */
18592 /* The GNU C library defines this for functions which it implements
18593 to always fail with ENOSYS. Some functions are actually named
18594 something starting with __ and the normal name is an alias. */
18595 #if defined __stub_$ac_func || defined __stub___$ac_func
18602 return $ac_func ();
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (ac_try="$ac_link"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_link") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest$ac_exeext &&
18624 $as_test_x conftest$ac_exeext; then
18625 eval "$as_ac_var=yes"
18627 echo "$as_me: failed program was
:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 eval "$as_ac_var=no
"
18633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18634 conftest$ac_exeext conftest.$ac_ext
18636 ac_res=`eval echo '${'$as_ac_var'}'`
18637 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18638 echo "${ECHO_T}$ac_res" >&6; }
18639 if test `eval echo '${'$as_ac_var'}'` = yes; then
18640 cat >>confdefs.h <<_ACEOF
18641 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18645 # strftime is in -lintl on SCO UNIX.
18646 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18647 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18648 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18649 echo $ECHO_N "(cached
) $ECHO_C" >&6
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lintl $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18670 return strftime ();
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679 *) ac_try_echo=$ac_try;;
18681 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18682 (eval "$ac_link") 2>conftest.er1
18684 grep -v '^ *+' conftest.er1 >conftest.err
18686 cat conftest.err >&5
18687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18688 (exit $ac_status); } && {
18689 test -z "$ac_c_werror_flag" ||
18690 test ! -s conftest.err
18691 } && test -s conftest$ac_exeext &&
18692 $as_test_x conftest$ac_exeext; then
18693 ac_cv_lib_intl_strftime=yes
18695 echo "$as_me: failed program was
:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18698 ac_cv_lib_intl_strftime=no
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702 conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18705 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18706 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18707 if test $ac_cv_lib_intl_strftime = yes; then
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_STRFTIME 1
18712 LIBS="-lintl $LIBS"
18721 for ac_func in grantpt
18723 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18724 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18725 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18726 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18727 echo $ECHO_N "(cached
) $ECHO_C" >&6
18729 cat >conftest.$ac_ext <<_ACEOF
18732 cat confdefs.h >>conftest.$ac_ext
18733 cat >>conftest.$ac_ext <<_ACEOF
18734 /* end confdefs.h. */
18735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18737 #define $ac_func innocuous_$ac_func
18739 /* System header to define __stub macros and hopefully few prototypes,
18740 which can conflict with char $ac_func (); below.
18741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18742 <limits.h> exists even on freestanding compilers. */
18745 # include <limits.h>
18747 # include <assert.h>
18752 /* Override any GCC internal prototype to avoid an error.
18753 Use char because int might match the return type of a GCC
18754 builtin and then its argument prototype would still apply. */
18759 /* The GNU C library defines this for functions which it implements
18760 to always fail with ENOSYS. Some functions are actually named
18761 something starting with __ and the normal name is an alias. */
18762 #if defined __stub_$ac_func || defined __stub___$ac_func
18769 return $ac_func ();
18774 rm -f conftest.$ac_objext conftest$ac_exeext
18775 if { (ac_try="$ac_link"
18776 case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_link") 2>conftest.er1
18783 grep -v '^ *+' conftest.er1 >conftest.err
18785 cat conftest.err >&5
18786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18787 (exit $ac_status); } && {
18788 test -z "$ac_c_werror_flag" ||
18789 test ! -s conftest.err
18790 } && test -s conftest$ac_exeext &&
18791 $as_test_x conftest$ac_exeext; then
18792 eval "$as_ac_var=yes"
18794 echo "$as_me: failed program was
:" >&5
18795 sed 's/^/| /' conftest.$ac_ext >&5
18797 eval "$as_ac_var=no
"
18800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18801 conftest$ac_exeext conftest.$ac_ext
18803 ac_res=`eval echo '${'$as_ac_var'}'`
18804 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18805 echo "${ECHO_T}$ac_res" >&6; }
18806 if test `eval echo '${'$as_ac_var'}'` = yes; then
18807 cat >>confdefs.h <<_ACEOF
18808 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18815 # PTY-related GNU extensions.
18817 for ac_func in getpt
18819 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18820 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18821 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18822 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18823 echo $ECHO_N "(cached
) $ECHO_C" >&6
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18832 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18833 #define $ac_func innocuous_$ac_func
18835 /* System header to define __stub macros and hopefully few prototypes,
18836 which can conflict with char $ac_func (); below.
18837 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18838 <limits.h> exists even on freestanding compilers. */
18841 # include <limits.h>
18843 # include <assert.h>
18848 /* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18855 /* The GNU C library defines this for functions which it implements
18856 to always fail with ENOSYS. Some functions are actually named
18857 something starting with __ and the normal name is an alias. */
18858 #if defined __stub_$ac_func || defined __stub___$ac_func
18865 return $ac_func ();
18870 rm -f conftest.$ac_objext conftest$ac_exeext
18871 if { (ac_try="$ac_link"
18872 case "(($ac_try" in
18873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18874 *) ac_try_echo=$ac_try;;
18876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18877 (eval "$ac_link") 2>conftest.er1
18879 grep -v '^ *+' conftest.er1 >conftest.err
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18883 (exit $ac_status); } && {
18884 test -z "$ac_c_werror_flag" ||
18885 test ! -s conftest.err
18886 } && test -s conftest$ac_exeext &&
18887 $as_test_x conftest$ac_exeext; then
18888 eval "$as_ac_var=yes"
18890 echo "$as_me: failed program was
:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 eval "$as_ac_var=no
"
18896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18897 conftest$ac_exeext conftest.$ac_ext
18899 ac_res=`eval echo '${'$as_ac_var'}'`
18900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18901 echo "${ECHO_T}$ac_res" >&6; }
18902 if test `eval echo '${'$as_ac_var'}'` = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18911 # Check this now, so that we will NOT find the above functions in ncurses.
18912 # That is because we have not set up to link ncurses in lib-src.
18913 # It's better to believe a function is not available
18914 # than to expect to find it in ncurses.
18916 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18917 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18918 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18919 echo $ECHO_N "(cached
) $ECHO_C" >&6
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lncurses $LIBS"
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18930 /* Override any GCC internal prototype to avoid an error.
18931 Use char because int might match the return type of a GCC
18932 builtin and then its argument prototype would still apply. */
18945 rm -f conftest.$ac_objext conftest$ac_exeext
18946 if { (ac_try="$ac_link"
18947 case "(($ac_try" in
18948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18949 *) ac_try_echo=$ac_try;;
18951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18952 (eval "$ac_link") 2>conftest.er1
18954 grep -v '^ *+' conftest.er1 >conftest.err
18956 cat conftest.err >&5
18957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext &&
18962 $as_test_x conftest$ac_exeext; then
18963 ac_cv_lib_ncurses_tparm=yes
18965 echo "$as_me: failed program was
:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_lib_ncurses_tparm=no
18971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18972 conftest$ac_exeext conftest.$ac_ext
18973 LIBS=$ac_check_lib_save_LIBS
18975 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18976 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18977 if test $ac_cv_lib_ncurses_tparm = yes; then
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_LIBNCURSES 1
18982 LIBS="-lncurses $LIBS"
18987 # Do we need the Hesiod library to provide the support routines?
18988 if test "$with_hesiod" = yes ; then
18989 # Don't set $LIBS here -- see comments above.
18991 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18992 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18993 if test "${ac_cv_func_res_send+set}" = set; then
18994 echo $ECHO_N "(cached
) $ECHO_C" >&6
18996 cat >conftest.$ac_ext <<_ACEOF
18999 cat confdefs.h >>conftest.$ac_ext
19000 cat >>conftest.$ac_ext <<_ACEOF
19001 /* end confdefs.h. */
19002 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19004 #define res_send innocuous_res_send
19006 /* System header to define __stub macros and hopefully few prototypes,
19007 which can conflict with char res_send (); below.
19008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19009 <limits.h> exists even on freestanding compilers. */
19012 # include <limits.h>
19014 # include <assert.h>
19019 /* Override any GCC internal prototype to avoid an error.
19020 Use char because int might match the return type of a GCC
19021 builtin and then its argument prototype would still apply. */
19026 /* The GNU C library defines this for functions which it implements
19027 to always fail with ENOSYS. Some functions are actually named
19028 something starting with __ and the normal name is an alias. */
19029 #if defined __stub_res_send || defined __stub___res_send
19036 return res_send ();
19041 rm -f conftest.$ac_objext conftest$ac_exeext
19042 if { (ac_try="$ac_link"
19043 case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_link") 2>conftest.er1
19050 grep -v '^ *+' conftest.er1 >conftest.err
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19054 (exit $ac_status); } && {
19055 test -z "$ac_c_werror_flag" ||
19056 test ! -s conftest.err
19057 } && test -s conftest$ac_exeext &&
19058 $as_test_x conftest$ac_exeext; then
19059 ac_cv_func_res_send=yes
19061 echo "$as_me: failed program was
:" >&5
19062 sed 's/^/| /' conftest.$ac_ext >&5
19064 ac_cv_func_res_send=no
19067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19068 conftest$ac_exeext conftest.$ac_ext
19070 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19071 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19072 if test $ac_cv_func_res_send = yes; then
19075 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19076 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19077 if test "${ac_cv_func___res_send+set}" = set; then
19078 echo $ECHO_N "(cached
) $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19088 #define __res_send innocuous___res_send
19090 /* System header to define __stub macros and hopefully few prototypes,
19091 which can conflict with char __res_send (); below.
19092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19093 <limits.h> exists even on freestanding compilers. */
19096 # include <limits.h>
19098 # include <assert.h>
19103 /* Override any GCC internal prototype to avoid an error.
19104 Use char because int might match the return type of a GCC
19105 builtin and then its argument prototype would still apply. */
19109 char __res_send ();
19110 /* The GNU C library defines this for functions which it implements
19111 to always fail with ENOSYS. Some functions are actually named
19112 something starting with __ and the normal name is an alias. */
19113 #if defined __stub___res_send || defined __stub_____res_send
19120 return __res_send ();
19125 rm -f conftest.$ac_objext conftest$ac_exeext
19126 if { (ac_try="$ac_link"
19127 case "(($ac_try" in
19128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19129 *) ac_try_echo=$ac_try;;
19131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19132 (eval "$ac_link") 2>conftest.er1
19134 grep -v '^ *+' conftest.er1 >conftest.err
19136 cat conftest.err >&5
19137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19138 (exit $ac_status); } && {
19139 test -z "$ac_c_werror_flag" ||
19140 test ! -s conftest.err
19141 } && test -s conftest$ac_exeext &&
19142 $as_test_x conftest$ac_exeext; then
19143 ac_cv_func___res_send=yes
19145 echo "$as_me: failed program was
:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_cv_func___res_send=no
19151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19152 conftest$ac_exeext conftest.$ac_ext
19154 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19155 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19156 if test $ac_cv_func___res_send = yes; then
19159 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19160 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19161 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19162 echo $ECHO_N "(cached
) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lresolv $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19183 return res_send ();
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 ac_cv_lib_resolv_res_send=yes
19208 echo "$as_me: failed program was
:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_resolv_res_send=no
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19218 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19219 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19220 if test $ac_cv_lib_resolv_res_send = yes; then
19223 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19224 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19225 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19226 echo $ECHO_N "(cached
) $ECHO_C" >&6
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lresolv $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19243 char __res_send ();
19247 return __res_send ();
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19261 grep -v '^ *+' conftest.er1 >conftest.err
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 ac_cv_lib_resolv___res_send=yes
19272 echo "$as_me: failed program was
:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19275 ac_cv_lib_resolv___res_send=no
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19282 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19283 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19284 if test $ac_cv_lib_resolv___res_send = yes; then
19294 if test "$resolv" = yes ; then
19297 cat >>confdefs.h <<\_ACEOF
19298 #define HAVE_LIBRESOLV 1
19304 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19305 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19306 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19307 echo $ECHO_N "(cached
) $ECHO_C" >&6
19309 cat >conftest.$ac_ext <<_ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19315 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19317 #define hes_getmailhost innocuous_hes_getmailhost
19319 /* System header to define __stub macros and hopefully few prototypes,
19320 which can conflict with char hes_getmailhost (); below.
19321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19322 <limits.h> exists even on freestanding compilers. */
19325 # include <limits.h>
19327 # include <assert.h>
19330 #undef hes_getmailhost
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19338 char hes_getmailhost ();
19339 /* The GNU C library defines this for functions which it implements
19340 to always fail with ENOSYS. Some functions are actually named
19341 something starting with __ and the normal name is an alias. */
19342 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19349 return hes_getmailhost ();
19354 rm -f conftest.$ac_objext conftest$ac_exeext
19355 if { (ac_try="$ac_link"
19356 case "(($ac_try" in
19357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19358 *) ac_try_echo=$ac_try;;
19360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19361 (eval "$ac_link") 2>conftest.er1
19363 grep -v '^ *+' conftest.er1 >conftest.err
19365 cat conftest.err >&5
19366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest$ac_exeext &&
19371 $as_test_x conftest$ac_exeext; then
19372 ac_cv_func_hes_getmailhost=yes
19374 echo "$as_me: failed program was
:" >&5
19375 sed 's/^/| /' conftest.$ac_ext >&5
19377 ac_cv_func_hes_getmailhost=no
19380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19381 conftest$ac_exeext conftest.$ac_ext
19383 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19384 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19385 if test $ac_cv_func_hes_getmailhost = yes; then
19388 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19389 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19390 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19391 echo $ECHO_N "(cached
) $ECHO_C" >&6
19393 ac_check_lib_save_LIBS=$LIBS
19394 LIBS="-lhesiod $RESOLVLIB $LIBS"
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19408 char hes_getmailhost ();
19412 return hes_getmailhost ();
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421 *) ac_try_echo=$ac_try;;
19423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19424 (eval "$ac_link") 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19430 (exit $ac_status); } && {
19431 test -z "$ac_c_werror_flag" ||
19432 test ! -s conftest.err
19433 } && test -s conftest$ac_exeext &&
19434 $as_test_x conftest$ac_exeext; then
19435 ac_cv_lib_hesiod_hes_getmailhost=yes
19437 echo "$as_me: failed program was
:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ac_cv_lib_hesiod_hes_getmailhost=no
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444 conftest$ac_exeext conftest.$ac_ext
19445 LIBS=$ac_check_lib_save_LIBS
19447 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19448 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19449 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19451 cat >>confdefs.h <<\_ACEOF
19452 #define HAVE_LIBHESIOD 1
19463 # These tell us which Kerberos-related libraries to use.
19464 if test "${with_kerberos+set}" = set; then
19466 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19467 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19468 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19469 echo $ECHO_N "(cached
) $ECHO_C" >&6
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lcom_err $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19504 grep -v '^ *+' conftest.er1 >conftest.err
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_com_err_com_err=yes
19515 echo "$as_me: failed program was
:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_cv_lib_com_err_com_err=no
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19525 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19526 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19527 if test $ac_cv_lib_com_err_com_err = yes; then
19528 cat >>confdefs.h <<_ACEOF
19529 #define HAVE_LIBCOM_ERR 1
19532 LIBS="-lcom_err $LIBS"
19537 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19538 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19539 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19540 echo $ECHO_N "(cached
) $ECHO_C" >&6
19542 ac_check_lib_save_LIBS=$LIBS
19543 LIBS="-lk5crypto $LIBS"
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19557 char mit_des_cbc_encrypt ();
19561 return mit_des_cbc_encrypt ();
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19586 echo "$as_me: failed program was
:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19594 LIBS=$ac_check_lib_save_LIBS
19596 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19597 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19598 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_LIBK5CRYPTO 1
19603 LIBS="-lk5crypto $LIBS"
19608 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19609 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19610 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19611 echo $ECHO_N "(cached
) $ECHO_C" >&6
19613 ac_check_lib_save_LIBS=$LIBS
19614 LIBS="-lcrypto $LIBS"
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19622 /* Override any GCC internal prototype to avoid an error.
19623 Use char because int might match the return type of a GCC
19624 builtin and then its argument prototype would still apply. */
19628 char mit_des_cbc_encrypt ();
19632 return mit_des_cbc_encrypt ();
19637 rm -f conftest.$ac_objext conftest$ac_exeext
19638 if { (ac_try="$ac_link"
19639 case "(($ac_try" in
19640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19641 *) ac_try_echo=$ac_try;;
19643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19644 (eval "$ac_link") 2>conftest.er1
19646 grep -v '^ *+' conftest.er1 >conftest.err
19648 cat conftest.err >&5
19649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19650 (exit $ac_status); } && {
19651 test -z "$ac_c_werror_flag" ||
19652 test ! -s conftest.err
19653 } && test -s conftest$ac_exeext &&
19654 $as_test_x conftest$ac_exeext; then
19655 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19657 echo "$as_me: failed program was
:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19664 conftest$ac_exeext conftest.$ac_ext
19665 LIBS=$ac_check_lib_save_LIBS
19667 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19668 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19669 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define HAVE_LIBCRYPTO 1
19674 LIBS="-lcrypto $LIBS"
19679 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19680 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19681 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19682 echo $ECHO_N "(cached
) $ECHO_C" >&6
19684 ac_check_lib_save_LIBS=$LIBS
19685 LIBS="-lkrb5 $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 krb5_init_context ();
19703 return krb5_init_context ();
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_krb5_krb5_init_context=yes
19728 echo "$as_me: failed program was
:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19731 ac_cv_lib_krb5_krb5_init_context=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_krb5_krb5_init_context" >&5
19739 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19740 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19741 cat >>confdefs.h <<_ACEOF
19742 #define HAVE_LIBKRB5 1
19745 LIBS="-lkrb5 $LIBS"
19749 if test "${with_kerberos5+set}" != set; then
19751 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19752 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19753 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19754 echo $ECHO_N "(cached
) $ECHO_C" >&6
19756 ac_check_lib_save_LIBS=$LIBS
19757 LIBS="-ldes425 $LIBS"
19758 cat >conftest.$ac_ext <<_ACEOF
19761 cat confdefs.h >>conftest.$ac_ext
19762 cat >>conftest.$ac_ext <<_ACEOF
19763 /* end confdefs.h. */
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19771 char des_cbc_encrypt ();
19775 return des_cbc_encrypt ();
19780 rm -f conftest.$ac_objext conftest$ac_exeext
19781 if { (ac_try="$ac_link"
19782 case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_link") 2>conftest.er1
19789 grep -v '^ *+' conftest.er1 >conftest.err
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19793 (exit $ac_status); } && {
19794 test -z "$ac_c_werror_flag" ||
19795 test ! -s conftest.err
19796 } && test -s conftest$ac_exeext &&
19797 $as_test_x conftest$ac_exeext; then
19798 ac_cv_lib_des425_des_cbc_encrypt=yes
19800 echo "$as_me: failed program was
:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_lib_des425_des_cbc_encrypt=no
19806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19807 conftest$ac_exeext conftest.$ac_ext
19808 LIBS=$ac_check_lib_save_LIBS
19810 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19811 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19812 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19813 cat >>confdefs.h <<_ACEOF
19814 #define HAVE_LIBDES425 1
19817 LIBS="-ldes425 $LIBS"
19821 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19822 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19823 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19824 echo $ECHO_N "(cached
) $ECHO_C" >&6
19826 ac_check_lib_save_LIBS=$LIBS
19828 cat >conftest.$ac_ext <<_ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19841 char des_cbc_encrypt ();
19845 return des_cbc_encrypt ();
19850 rm -f conftest.$ac_objext conftest$ac_exeext
19851 if { (ac_try="$ac_link"
19852 case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_link") 2>conftest.er1
19859 grep -v '^ *+' conftest.er1 >conftest.err
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19863 (exit $ac_status); } && {
19864 test -z "$ac_c_werror_flag" ||
19865 test ! -s conftest.err
19866 } && test -s conftest$ac_exeext &&
19867 $as_test_x conftest$ac_exeext; then
19868 ac_cv_lib_des_des_cbc_encrypt=yes
19870 echo "$as_me: failed program was
:" >&5
19871 sed 's/^/| /' conftest.$ac_ext >&5
19873 ac_cv_lib_des_des_cbc_encrypt=no
19876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19877 conftest$ac_exeext conftest.$ac_ext
19878 LIBS=$ac_check_lib_save_LIBS
19880 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19881 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19882 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19883 cat >>confdefs.h <<_ACEOF
19884 #define HAVE_LIBDES 1
19894 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19895 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19896 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19897 echo $ECHO_N "(cached
) $ECHO_C" >&6
19899 ac_check_lib_save_LIBS=$LIBS
19900 LIBS="-lkrb4 $LIBS"
19901 cat >conftest.$ac_ext <<_ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19914 char krb_get_cred ();
19918 return krb_get_cred ();
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19932 grep -v '^ *+' conftest.er1 >conftest.err
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
19941 ac_cv_lib_krb4_krb_get_cred=yes
19943 echo "$as_me: failed program was
:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19946 ac_cv_lib_krb4_krb_get_cred=no
19949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19953 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19954 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19955 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_LIBKRB4 1
19960 LIBS="-lkrb4 $LIBS"
19964 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19965 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19966 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19967 echo $ECHO_N "(cached
) $ECHO_C" >&6
19969 ac_check_lib_save_LIBS=$LIBS
19971 cat >conftest.$ac_ext <<_ACEOF
19974 cat confdefs.h >>conftest.$ac_ext
19975 cat >>conftest.$ac_ext <<_ACEOF
19976 /* end confdefs.h. */
19978 /* Override any GCC internal prototype to avoid an error.
19979 Use char because int might match the return type of a GCC
19980 builtin and then its argument prototype would still apply. */
19984 char krb_get_cred ();
19988 return krb_get_cred ();
19993 rm -f conftest.$ac_objext conftest$ac_exeext
19994 if { (ac_try="$ac_link"
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_link") 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_exeext &&
20010 $as_test_x conftest$ac_exeext; then
20011 ac_cv_lib_krb_krb_get_cred=yes
20013 echo "$as_me: failed program was
:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20016 ac_cv_lib_krb_krb_get_cred=no
20019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20020 conftest$ac_exeext conftest.$ac_ext
20021 LIBS=$ac_check_lib_save_LIBS
20023 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20024 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20025 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20026 cat >>confdefs.h <<_ACEOF
20027 #define HAVE_LIBKRB 1
20038 if test "${with_kerberos5+set}" = set; then
20040 for ac_header in krb5.h
20042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20047 echo $ECHO_N "(cached
) $ECHO_C" >&6
20049 ac_res=`eval echo '${'$as_ac_Header'}'`
20050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20051 echo "${ECHO_T}$ac_res" >&6; }
20053 # Is the header compilable?
20054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 $ac_includes_default
20063 #include <$ac_header>
20065 rm -f conftest.$ac_objext
20066 if { (ac_try="$ac_compile"
20067 case "(($ac_try" in
20068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20069 *) ac_try_echo=$ac_try;;
20071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20072 (eval "$ac_compile") 2>conftest.er1
20074 grep -v '^ *+' conftest.er1 >conftest.err
20076 cat conftest.err >&5
20077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest.$ac_objext; then
20082 ac_header_compiler=yes
20084 echo "$as_me: failed program was
:" >&5
20085 sed 's/^/| /' conftest.$ac_ext >&5
20087 ac_header_compiler=no
20090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20092 echo "${ECHO_T}$ac_header_compiler" >&6; }
20094 # Is the header present?
20095 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20096 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20097 cat >conftest.$ac_ext <<_ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 #include <$ac_header>
20105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20113 grep -v '^ *+' conftest.er1 >conftest.err
20115 cat conftest.err >&5
20116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20117 (exit $ac_status); } >/dev/null && {
20118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20119 test ! -s conftest.err
20121 ac_header_preproc=yes
20123 echo "$as_me: failed program was
:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_header_preproc=no
20129 rm -f conftest.err conftest.$ac_ext
20130 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20131 echo "${ECHO_T}$ac_header_preproc" >&6; }
20133 # So? What about this header?
20134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20136 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20137 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20140 ac_header_preproc=yes
20143 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20144 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20145 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20146 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20147 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20148 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20149 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20150 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20153 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20154 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20158 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20159 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20161 echo $ECHO_N "(cached
) $ECHO_C" >&6
20163 eval "$as_ac_Header=\
$ac_header_preproc"
20165 ac_res=`eval echo '${'$as_ac_Header'}'`
20166 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20167 echo "${ECHO_T}$ac_res" >&6; }
20170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20171 cat >>confdefs.h <<_ACEOF
20172 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20181 for ac_header in des.h
20183 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20184 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20185 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20186 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20188 echo $ECHO_N "(cached
) $ECHO_C" >&6
20190 ac_res=`eval echo '${'$as_ac_Header'}'`
20191 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20192 echo "${ECHO_T}$ac_res" >&6; }
20194 # Is the header compilable?
20195 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20196 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20197 cat >conftest.$ac_ext <<_ACEOF
20200 cat confdefs.h >>conftest.$ac_ext
20201 cat >>conftest.$ac_ext <<_ACEOF
20202 /* end confdefs.h. */
20203 $ac_includes_default
20204 #include <$ac_header>
20206 rm -f conftest.$ac_objext
20207 if { (ac_try="$ac_compile"
20208 case "(($ac_try" in
20209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20210 *) ac_try_echo=$ac_try;;
20212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20213 (eval "$ac_compile") 2>conftest.er1
20215 grep -v '^ *+' conftest.er1 >conftest.err
20217 cat conftest.err >&5
20218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20219 (exit $ac_status); } && {
20220 test -z "$ac_c_werror_flag" ||
20221 test ! -s conftest.err
20222 } && test -s conftest.$ac_objext; then
20223 ac_header_compiler=yes
20225 echo "$as_me: failed program was
:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20228 ac_header_compiler=no
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20233 echo "${ECHO_T}$ac_header_compiler" >&6; }
20235 # Is the header present?
20236 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20237 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 #include <$ac_header>
20246 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20247 case "(($ac_try" in
20248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249 *) ac_try_echo=$ac_try;;
20251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20254 grep -v '^ *+' conftest.er1 >conftest.err
20256 cat conftest.err >&5
20257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20258 (exit $ac_status); } >/dev/null && {
20259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20260 test ! -s conftest.err
20262 ac_header_preproc=yes
20264 echo "$as_me: failed program was
:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_header_preproc=no
20270 rm -f conftest.err conftest.$ac_ext
20271 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20272 echo "${ECHO_T}$ac_header_preproc" >&6; }
20274 # So? What about this header?
20275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20277 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20278 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20279 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20281 ac_header_preproc=yes
20284 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20285 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20286 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20287 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20288 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20289 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20290 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20291 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20292 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20294 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20295 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20299 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20300 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20302 echo $ECHO_N "(cached
) $ECHO_C" >&6
20304 eval "$as_ac_Header=\
$ac_header_preproc"
20306 ac_res=`eval echo '${'$as_ac_Header'}'`
20307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20308 echo "${ECHO_T}$ac_res" >&6; }
20311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20312 cat >>confdefs.h <<_ACEOF
20313 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20318 for ac_header in kerberosIV/des.h
20320 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20321 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20322 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20323 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20324 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20325 echo $ECHO_N "(cached
) $ECHO_C" >&6
20327 ac_res=`eval echo '${'$as_ac_Header'}'`
20328 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20329 echo "${ECHO_T}$ac_res" >&6; }
20331 # Is the header compilable?
20332 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20333 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 $ac_includes_default
20341 #include <$ac_header>
20343 rm -f conftest.$ac_objext
20344 if { (ac_try="$ac_compile"
20345 case "(($ac_try" in
20346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20347 *) ac_try_echo=$ac_try;;
20349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20350 (eval "$ac_compile") 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20356 (exit $ac_status); } && {
20357 test -z "$ac_c_werror_flag" ||
20358 test ! -s conftest.err
20359 } && test -s conftest.$ac_objext; then
20360 ac_header_compiler=yes
20362 echo "$as_me: failed program was
:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_header_compiler=no
20368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20369 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20370 echo "${ECHO_T}$ac_header_compiler" >&6; }
20372 # Is the header present?
20373 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20374 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20375 cat >conftest.$ac_ext <<_ACEOF
20378 cat confdefs.h >>conftest.$ac_ext
20379 cat >>conftest.$ac_ext <<_ACEOF
20380 /* end confdefs.h. */
20381 #include <$ac_header>
20383 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20384 case "(($ac_try" in
20385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386 *) ac_try_echo=$ac_try;;
20388 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20389 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20391 grep -v '^ *+' conftest.er1 >conftest.err
20393 cat conftest.err >&5
20394 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20395 (exit $ac_status); } >/dev/null && {
20396 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20397 test ! -s conftest.err
20399 ac_header_preproc=yes
20401 echo "$as_me: failed program was
:" >&5
20402 sed 's/^/| /' conftest.$ac_ext >&5
20404 ac_header_preproc=no
20407 rm -f conftest.err conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20409 echo "${ECHO_T}$ac_header_preproc" >&6; }
20411 # So? What about this header?
20412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20414 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20415 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20416 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20418 ac_header_preproc=yes
20421 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20422 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20423 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20424 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20425 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20426 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20427 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20428 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20429 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20431 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20432 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20436 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20437 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20438 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20439 echo $ECHO_N "(cached
) $ECHO_C" >&6
20441 eval "$as_ac_Header=\
$ac_header_preproc"
20443 ac_res=`eval echo '${'$as_ac_Header'}'`
20444 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20445 echo "${ECHO_T}$ac_res" >&6; }
20448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20455 for ac_header in kerberos/des.h
20457 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20459 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20460 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20462 echo $ECHO_N "(cached
) $ECHO_C" >&6
20464 ac_res=`eval echo '${'$as_ac_Header'}'`
20465 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20466 echo "${ECHO_T}$ac_res" >&6; }
20468 # Is the header compilable?
20469 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20470 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20471 cat >conftest.$ac_ext <<_ACEOF
20474 cat confdefs.h >>conftest.$ac_ext
20475 cat >>conftest.$ac_ext <<_ACEOF
20476 /* end confdefs.h. */
20477 $ac_includes_default
20478 #include <$ac_header>
20480 rm -f conftest.$ac_objext
20481 if { (ac_try="$ac_compile"
20482 case "(($ac_try" in
20483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20484 *) ac_try_echo=$ac_try;;
20486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20487 (eval "$ac_compile") 2>conftest.er1
20489 grep -v '^ *+' conftest.er1 >conftest.err
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20493 (exit $ac_status); } && {
20494 test -z "$ac_c_werror_flag" ||
20495 test ! -s conftest.err
20496 } && test -s conftest.$ac_objext; then
20497 ac_header_compiler=yes
20499 echo "$as_me: failed program was
:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_header_compiler=no
20505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20507 echo "${ECHO_T}$ac_header_compiler" >&6; }
20509 # Is the header present?
20510 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20511 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20512 cat >conftest.$ac_ext <<_ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20518 #include <$ac_header>
20520 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20526 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20528 grep -v '^ *+' conftest.er1 >conftest.err
20530 cat conftest.err >&5
20531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20532 (exit $ac_status); } >/dev/null && {
20533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20534 test ! -s conftest.err
20536 ac_header_preproc=yes
20538 echo "$as_me: failed program was
:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_header_preproc=no
20544 rm -f conftest.err conftest.$ac_ext
20545 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20546 echo "${ECHO_T}$ac_header_preproc" >&6; }
20548 # So? What about this header?
20549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20551 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20552 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20553 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20555 ac_header_preproc=yes
20558 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20559 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20560 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20561 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20562 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20563 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20564 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20565 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20566 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20568 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20569 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20573 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20574 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20576 echo $ECHO_N "(cached
) $ECHO_C" >&6
20578 eval "$as_ac_Header=\
$ac_header_preproc"
20580 ac_res=`eval echo '${'$as_ac_Header'}'`
20581 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20582 echo "${ECHO_T}$ac_res" >&6; }
20585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20586 cat >>confdefs.h <<_ACEOF
20587 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20603 for ac_header in krb.h
20605 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20606 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20607 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20608 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20609 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20610 echo $ECHO_N "(cached
) $ECHO_C" >&6
20612 ac_res=`eval echo '${'$as_ac_Header'}'`
20613 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20614 echo "${ECHO_T}$ac_res" >&6; }
20616 # Is the header compilable?
20617 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20618 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h. */
20625 $ac_includes_default
20626 #include <$ac_header>
20628 rm -f conftest.$ac_objext
20629 if { (ac_try="$ac_compile"
20630 case "(($ac_try" in
20631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20632 *) ac_try_echo=$ac_try;;
20634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20635 (eval "$ac_compile") 2>conftest.er1
20637 grep -v '^ *+' conftest.er1 >conftest.err
20639 cat conftest.err >&5
20640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20641 (exit $ac_status); } && {
20642 test -z "$ac_c_werror_flag" ||
20643 test ! -s conftest.err
20644 } && test -s conftest.$ac_objext; then
20645 ac_header_compiler=yes
20647 echo "$as_me: failed program was
:" >&5
20648 sed 's/^/| /' conftest.$ac_ext >&5
20650 ac_header_compiler=no
20653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20655 echo "${ECHO_T}$ac_header_compiler" >&6; }
20657 # Is the header present?
20658 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20659 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20660 cat >conftest.$ac_ext <<_ACEOF
20663 cat confdefs.h >>conftest.$ac_ext
20664 cat >>conftest.$ac_ext <<_ACEOF
20665 /* end confdefs.h. */
20666 #include <$ac_header>
20668 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20669 case "(($ac_try" in
20670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20671 *) ac_try_echo=$ac_try;;
20673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20674 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20676 grep -v '^ *+' conftest.er1 >conftest.err
20678 cat conftest.err >&5
20679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20680 (exit $ac_status); } >/dev/null && {
20681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20682 test ! -s conftest.err
20684 ac_header_preproc=yes
20686 echo "$as_me: failed program was
:" >&5
20687 sed 's/^/| /' conftest.$ac_ext >&5
20689 ac_header_preproc=no
20692 rm -f conftest.err conftest.$ac_ext
20693 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20694 echo "${ECHO_T}$ac_header_preproc" >&6; }
20696 # So? What about this header?
20697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20699 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20700 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20701 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20703 ac_header_preproc=yes
20706 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20707 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20708 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20709 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20710 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20711 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20712 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20713 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20714 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20716 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20717 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20721 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20722 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20723 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20724 echo $ECHO_N "(cached
) $ECHO_C" >&6
20726 eval "$as_ac_Header=\
$ac_header_preproc"
20728 ac_res=`eval echo '${'$as_ac_Header'}'`
20729 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20730 echo "${ECHO_T}$ac_res" >&6; }
20733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20734 cat >>confdefs.h <<_ACEOF
20735 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20740 for ac_header in kerberosIV/krb.h
20742 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20743 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20744 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20745 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20746 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20747 echo $ECHO_N "(cached
) $ECHO_C" >&6
20749 ac_res=`eval echo '${'$as_ac_Header'}'`
20750 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20751 echo "${ECHO_T}$ac_res" >&6; }
20753 # Is the header compilable?
20754 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20755 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20756 cat >conftest.$ac_ext <<_ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h. */
20762 $ac_includes_default
20763 #include <$ac_header>
20765 rm -f conftest.$ac_objext
20766 if { (ac_try="$ac_compile"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_compile") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest.$ac_objext; then
20782 ac_header_compiler=yes
20784 echo "$as_me: failed program was
:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 ac_header_compiler=no
20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20792 echo "${ECHO_T}$ac_header_compiler" >&6; }
20794 # Is the header present?
20795 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20796 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 #include <$ac_header>
20805 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20806 case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20813 grep -v '^ *+' conftest.er1 >conftest.err
20815 cat conftest.err >&5
20816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20817 (exit $ac_status); } >/dev/null && {
20818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20819 test ! -s conftest.err
20821 ac_header_preproc=yes
20823 echo "$as_me: failed program was
:" >&5
20824 sed 's/^/| /' conftest.$ac_ext >&5
20826 ac_header_preproc=no
20829 rm -f conftest.err conftest.$ac_ext
20830 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20831 echo "${ECHO_T}$ac_header_preproc" >&6; }
20833 # So? What about this header?
20834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20836 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20837 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20838 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20840 ac_header_preproc=yes
20843 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20844 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20845 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20846 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20847 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20848 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20849 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20850 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20851 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20853 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20854 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20858 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20859 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20860 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20861 echo $ECHO_N "(cached
) $ECHO_C" >&6
20863 eval "$as_ac_Header=\
$ac_header_preproc"
20865 ac_res=`eval echo '${'$as_ac_Header'}'`
20866 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20867 echo "${ECHO_T}$ac_res" >&6; }
20870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20871 cat >>confdefs.h <<_ACEOF
20872 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20877 for ac_header in kerberos/krb.h
20879 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20881 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20882 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20883 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20884 echo $ECHO_N "(cached
) $ECHO_C" >&6
20886 ac_res=`eval echo '${'$as_ac_Header'}'`
20887 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20888 echo "${ECHO_T}$ac_res" >&6; }
20890 # Is the header compilable?
20891 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20892 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 $ac_includes_default
20900 #include <$ac_header>
20902 rm -f conftest.$ac_objext
20903 if { (ac_try="$ac_compile"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_compile") 2>conftest.er1
20911 grep -v '^ *+' conftest.er1 >conftest.err
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20915 (exit $ac_status); } && {
20916 test -z "$ac_c_werror_flag" ||
20917 test ! -s conftest.err
20918 } && test -s conftest.$ac_objext; then
20919 ac_header_compiler=yes
20921 echo "$as_me: failed program was
:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_header_compiler=no
20927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20928 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20929 echo "${ECHO_T}$ac_header_compiler" >&6; }
20931 # Is the header present?
20932 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20933 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20934 cat >conftest.$ac_ext <<_ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h. */
20940 #include <$ac_header>
20942 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1 >conftest.err
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20954 (exit $ac_status); } >/dev/null && {
20955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20958 ac_header_preproc=yes
20960 echo "$as_me: failed program was
:" >&5
20961 sed 's/^/| /' conftest.$ac_ext >&5
20963 ac_header_preproc=no
20966 rm -f conftest.err conftest.$ac_ext
20967 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20968 echo "${ECHO_T}$ac_header_preproc" >&6; }
20970 # So? What about this header?
20971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20973 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20974 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20975 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20977 ac_header_preproc=yes
20980 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20981 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20982 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20983 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20984 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20985 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20986 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20987 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20988 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20990 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20991 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20995 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20996 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20998 echo $ECHO_N "(cached
) $ECHO_C" >&6
21000 eval "$as_ac_Header=\
$ac_header_preproc"
21002 ac_res=`eval echo '${'$as_ac_Header'}'`
21003 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21004 echo "${ECHO_T}$ac_res" >&6; }
21007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21008 cat >>confdefs.h <<_ACEOF
21009 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21026 for ac_header in com_err.h
21028 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21030 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21031 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached
) $ECHO_C" >&6
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21041 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <$ac_header>
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21060 grep -v '^ *+' conftest.er1 >conftest.err
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21070 echo "$as_me: failed program was
:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21073 ac_header_compiler=no
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21082 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <$ac_header>
21091 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21099 grep -v '^ *+' conftest.er1 >conftest.err
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21103 (exit $ac_status); } >/dev/null && {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21107 ac_header_preproc=yes
21109 echo "$as_me: failed program was
:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21112 ac_header_preproc=no
21115 rm -f conftest.err conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21122 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21123 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21126 ac_header_preproc=yes
21129 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21130 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21131 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21132 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21133 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21134 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21136 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21140 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21144 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21145 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21147 echo $ECHO_N "(cached
) $ECHO_C" >&6
21149 eval "$as_ac_Header=\
$ac_header_preproc"
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21167 # Solaris requires -lintl if you want strerror (which calls dgettext)
21168 # to return localized messages.
21170 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21171 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21172 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21173 echo $ECHO_N "(cached
) $ECHO_C" >&6
21175 ac_check_lib_save_LIBS=$LIBS
21176 LIBS="-lintl $LIBS"
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21184 /* Override any GCC internal prototype to avoid an error.
21185 Use char because int might match the return type of a GCC
21186 builtin and then its argument prototype would still apply. */
21194 return dgettext ();
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (ac_try="$ac_link"
21201 case "(($ac_try" in
21202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203 *) ac_try_echo=$ac_try;;
21205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21206 (eval "$ac_link") 2>conftest.er1
21208 grep -v '^ *+' conftest.er1 >conftest.err
21210 cat conftest.err >&5
21211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21212 (exit $ac_status); } && {
21213 test -z "$ac_c_werror_flag" ||
21214 test ! -s conftest.err
21215 } && test -s conftest$ac_exeext &&
21216 $as_test_x conftest$ac_exeext; then
21217 ac_cv_lib_intl_dgettext=yes
21219 echo "$as_me: failed program was
:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_cv_lib_intl_dgettext=no
21225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21226 conftest$ac_exeext conftest.$ac_ext
21227 LIBS=$ac_check_lib_save_LIBS
21229 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21230 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21231 if test $ac_cv_lib_intl_dgettext = yes; then
21232 cat >>confdefs.h <<_ACEOF
21233 #define HAVE_LIBINTL 1
21236 LIBS="-lintl $LIBS"
21241 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21242 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21243 if test "${emacs_cv_localtime_cache+set}" = set; then
21244 echo $ECHO_N "(cached
) $ECHO_C" >&6
21246 if test x$ac_cv_func_tzset = xyes; then
21247 if test "$cross_compiling" = yes; then
21248 # If we have tzset, assume the worst when cross-compiling.
21249 emacs_cv_localtime_cache=yes
21251 cat >conftest.$ac_ext <<_ACEOF
21254 cat confdefs.h >>conftest.$ac_ext
21255 cat >>conftest.$ac_ext <<_ACEOF
21256 /* end confdefs.h. */
21258 extern char **environ;
21262 for (to = from = environ; (*to = *from); from++)
21263 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21266 char TZ_GMT0[] = "TZ
=GMT0
";
21267 char TZ_PST8[] = "TZ
=PST8
";
21270 time_t now = time ((time_t *) 0);
21271 int hour_GMT0, hour_unset;
21272 if (putenv (TZ_GMT0) != 0)
21274 hour_GMT0 = localtime (&now)->tm_hour;
21276 hour_unset = localtime (&now)->tm_hour;
21277 if (putenv (TZ_PST8) != 0)
21279 if (localtime (&now)->tm_hour == hour_GMT0)
21282 if (localtime (&now)->tm_hour != hour_unset)
21287 rm -f conftest$ac_exeext
21288 if { (ac_try="$ac_link"
21289 case "(($ac_try" in
21290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291 *) ac_try_echo=$ac_try;;
21293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21294 (eval "$ac_link") 2>&5
21296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21298 { (case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_try") 2>&5
21305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 emacs_cv_localtime_cache=no
21309 echo "$as_me: program exited with status
$ac_status" >&5
21310 echo "$as_me: failed program was
:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21313 ( exit $ac_status )
21314 emacs_cv_localtime_cache=yes
21316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21321 # If we lack tzset, report that localtime does not cache TZ,
21322 # since we can't invalidate the cache if we don't have tzset.
21323 emacs_cv_localtime_cache=no
21326 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21327 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21328 if test $emacs_cv_localtime_cache = yes; then
21330 cat >>confdefs.h <<\_ACEOF
21331 #define LOCALTIME_CACHE 1
21336 if test "x
$HAVE_TIMEVAL" = xyes; then
21338 for ac_func in gettimeofday
21340 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21341 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21342 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21343 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached
) $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21354 #define $ac_func innocuous_$ac_func
21356 /* System header to define __stub macros and hopefully few prototypes,
21357 which can conflict with char $ac_func (); below.
21358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21359 <limits.h> exists even on freestanding compilers. */
21362 # include <limits.h>
21364 # include <assert.h>
21369 /* Override any GCC internal prototype to avoid an error.
21370 Use char because int might match the return type of a GCC
21371 builtin and then its argument prototype would still apply. */
21376 /* The GNU C library defines this for functions which it implements
21377 to always fail with ENOSYS. Some functions are actually named
21378 something starting with __ and the normal name is an alias. */
21379 #if defined __stub_$ac_func || defined __stub___$ac_func
21386 return $ac_func ();
21391 rm -f conftest.$ac_objext conftest$ac_exeext
21392 if { (ac_try="$ac_link"
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_link") 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_exeext &&
21408 $as_test_x conftest$ac_exeext; then
21409 eval "$as_ac_var=yes"
21411 echo "$as_me: failed program was
:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 eval "$as_ac_var=no
"
21417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21418 conftest$ac_exeext conftest.$ac_ext
21420 ac_res=`eval echo '${'$as_ac_var'}'`
21421 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21422 echo "${ECHO_T}$ac_res" >&6; }
21423 if test `eval echo '${'$as_ac_var'}'` = yes; then
21424 cat >>confdefs.h <<_ACEOF
21425 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21431 if test $ac_cv_func_gettimeofday = yes; then
21432 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21433 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21434 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21435 echo $ECHO_N "(cached
) $ECHO_C" >&6
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21444 #ifdef TIME_WITH_SYS_TIME
21445 #include <sys/time.h>
21448 #ifdef HAVE_SYS_TIME_H
21449 #include <sys/time.h>
21457 struct timeval time;
21458 gettimeofday (&time, 0);
21463 rm -f conftest.$ac_objext
21464 if { (ac_try="$ac_compile"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_compile") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21476 (exit $ac_status); } && {
21477 test -z "$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21479 } && test -s conftest.$ac_objext; then
21480 emacs_cv_gettimeofday_two_arguments=yes
21482 echo "$as_me: failed program was
:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 emacs_cv_gettimeofday_two_arguments=no
21488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21490 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21491 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21492 if test $emacs_cv_gettimeofday_two_arguments = no; then
21494 cat >>confdefs.h <<\_ACEOF
21495 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21503 { echo "$as_me:$LINENO: checking
for socket
" >&5
21504 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21505 if test "${ac_cv_func_socket+set}" = set; then
21506 echo $ECHO_N "(cached
) $ECHO_C" >&6
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21516 #define socket innocuous_socket
21518 /* System header to define __stub macros and hopefully few prototypes,
21519 which can conflict with char socket (); below.
21520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21521 <limits.h> exists even on freestanding compilers. */
21524 # include <limits.h>
21526 # include <assert.h>
21531 /* Override any GCC internal prototype to avoid an error.
21532 Use char because int might match the return type of a GCC
21533 builtin and then its argument prototype would still apply. */
21538 /* The GNU C library defines this for functions which it implements
21539 to always fail with ENOSYS. Some functions are actually named
21540 something starting with __ and the normal name is an alias. */
21541 #if defined __stub_socket || defined __stub___socket
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_link") 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest$ac_exeext &&
21570 $as_test_x conftest$ac_exeext; then
21571 ac_cv_func_socket=yes
21573 echo "$as_me: failed program was
:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21576 ac_cv_func_socket=no
21579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21580 conftest$ac_exeext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21583 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21584 if test $ac_cv_func_socket = yes; then
21590 if test $ok_so_far = yes; then
21591 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21592 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21593 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21594 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21595 echo $ECHO_N "(cached
) $ECHO_C" >&6
21597 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21598 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21600 # Is the header compilable?
21601 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21602 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21603 cat >conftest.$ac_ext <<_ACEOF
21606 cat confdefs.h >>conftest.$ac_ext
21607 cat >>conftest.$ac_ext <<_ACEOF
21608 /* end confdefs.h. */
21609 $ac_includes_default
21610 #include <netinet/in.h>
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616 *) ac_try_echo=$ac_try;;
21618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21619 (eval "$ac_compile") 2>conftest.er1
21621 grep -v '^ *+' conftest.er1 >conftest.err
21623 cat conftest.err >&5
21624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21625 (exit $ac_status); } && {
21626 test -z "$ac_c_werror_flag" ||
21627 test ! -s conftest.err
21628 } && test -s conftest.$ac_objext; then
21629 ac_header_compiler=yes
21631 echo "$as_me: failed program was
:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21634 ac_header_compiler=no
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21639 echo "${ECHO_T}$ac_header_compiler" >&6; }
21641 # Is the header present?
21642 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21643 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21644 cat >conftest.$ac_ext <<_ACEOF
21647 cat confdefs.h >>conftest.$ac_ext
21648 cat >>conftest.$ac_ext <<_ACEOF
21649 /* end confdefs.h. */
21650 #include <netinet/in.h>
21652 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21653 case "(($ac_try" in
21654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21655 *) ac_try_echo=$ac_try;;
21657 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21658 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21660 grep -v '^ *+' conftest.er1 >conftest.err
21662 cat conftest.err >&5
21663 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21664 (exit $ac_status); } >/dev/null && {
21665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21666 test ! -s conftest.err
21668 ac_header_preproc=yes
21670 echo "$as_me: failed program was
:" >&5
21671 sed 's/^/| /' conftest.$ac_ext >&5
21673 ac_header_preproc=no
21676 rm -f conftest.err conftest.$ac_ext
21677 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21678 echo "${ECHO_T}$ac_header_preproc" >&6; }
21680 # So? What about this header?
21681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21683 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21684 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21685 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21686 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21687 ac_header_preproc=yes
21690 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21691 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21692 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21693 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21694 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21695 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21696 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21697 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21698 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21699 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21701 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21705 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21706 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21707 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21708 echo $ECHO_N "(cached
) $ECHO_C" >&6
21710 ac_cv_header_netinet_in_h=$ac_header_preproc
21712 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21713 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21716 if test $ac_cv_header_netinet_in_h = yes; then
21724 if test $ok_so_far = yes; then
21725 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21726 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21727 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21728 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21729 echo $ECHO_N "(cached
) $ECHO_C" >&6
21731 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21732 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21734 # Is the header compilable?
21735 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21736 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21737 cat >conftest.$ac_ext <<_ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 #include <arpa/inet.h>
21746 rm -f conftest.$ac_objext
21747 if { (ac_try="$ac_compile"
21748 case "(($ac_try" in
21749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21750 *) ac_try_echo=$ac_try;;
21752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21753 (eval "$ac_compile") 2>conftest.er1
21755 grep -v '^ *+' conftest.er1 >conftest.err
21757 cat conftest.err >&5
21758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21759 (exit $ac_status); } && {
21760 test -z "$ac_c_werror_flag" ||
21761 test ! -s conftest.err
21762 } && test -s conftest.$ac_objext; then
21763 ac_header_compiler=yes
21765 echo "$as_me: failed program was
:" >&5
21766 sed 's/^/| /' conftest.$ac_ext >&5
21768 ac_header_compiler=no
21771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21772 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21773 echo "${ECHO_T}$ac_header_compiler" >&6; }
21775 # Is the header present?
21776 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21777 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <arpa/inet.h>
21786 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21798 (exit $ac_status); } >/dev/null && {
21799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21802 ac_header_preproc=yes
21804 echo "$as_me: failed program was
:" >&5
21805 sed 's/^/| /' conftest.$ac_ext >&5
21807 ac_header_preproc=no
21810 rm -f conftest.err conftest.$ac_ext
21811 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21812 echo "${ECHO_T}$ac_header_preproc" >&6; }
21814 # So? What about this header?
21815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21817 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21818 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21819 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21820 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21821 ac_header_preproc=yes
21824 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21825 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21826 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21827 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21828 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21829 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21830 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21831 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21833 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21834 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21835 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21839 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21840 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21841 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21842 echo $ECHO_N "(cached
) $ECHO_C" >&6
21844 ac_cv_header_arpa_inet_h=$ac_header_preproc
21846 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21847 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21850 if test $ac_cv_header_arpa_inet_h = yes; then
21858 if test $ok_so_far = yes; then
21860 cat >>confdefs.h <<\_ACEOF
21861 #define HAVE_INET_SOCKETS 1
21867 for ac_header in sys/ioctl.h
21869 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21871 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21872 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21873 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21874 echo $ECHO_N "(cached
) $ECHO_C" >&6
21876 ac_res=`eval echo '${'$as_ac_Header'}'`
21877 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21878 echo "${ECHO_T}$ac_res" >&6; }
21880 # Is the header compilable?
21881 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21882 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 $ac_includes_default
21890 #include <$ac_header>
21892 rm -f conftest.$ac_objext
21893 if { (ac_try="$ac_compile"
21894 case "(($ac_try" in
21895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21896 *) ac_try_echo=$ac_try;;
21898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21899 (eval "$ac_compile") 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21905 (exit $ac_status); } && {
21906 test -z "$ac_c_werror_flag" ||
21907 test ! -s conftest.err
21908 } && test -s conftest.$ac_objext; then
21909 ac_header_compiler=yes
21911 echo "$as_me: failed program was
:" >&5
21912 sed 's/^/| /' conftest.$ac_ext >&5
21914 ac_header_compiler=no
21917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21918 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21919 echo "${ECHO_T}$ac_header_compiler" >&6; }
21921 # Is the header present?
21922 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21923 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21924 cat >conftest.$ac_ext <<_ACEOF
21927 cat confdefs.h >>conftest.$ac_ext
21928 cat >>conftest.$ac_ext <<_ACEOF
21929 /* end confdefs.h. */
21930 #include <$ac_header>
21932 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21944 (exit $ac_status); } >/dev/null && {
21945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21948 ac_header_preproc=yes
21950 echo "$as_me: failed program was
:" >&5
21951 sed 's/^/| /' conftest.$ac_ext >&5
21953 ac_header_preproc=no
21956 rm -f conftest.err conftest.$ac_ext
21957 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21958 echo "${ECHO_T}$ac_header_preproc" >&6; }
21960 # So? What about this header?
21961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21963 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21964 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21965 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21967 ac_header_preproc=yes
21970 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21971 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21972 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21973 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21974 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21975 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21976 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21977 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21978 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21980 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21981 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21985 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21986 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21988 echo $ECHO_N "(cached
) $ECHO_C" >&6
21990 eval "$as_ac_Header=\
$ac_header_preproc"
21992 ac_res=`eval echo '${'$as_ac_Header'}'`
21993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21994 echo "${ECHO_T}$ac_res" >&6; }
21997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22007 if test -f /usr/lpp/X11/bin/smt.exp; then
22009 cat >>confdefs.h <<\_ACEOF
22010 #define HAVE_AIX_SMT_EXP 1
22015 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22016 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22017 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22018 { echo "$as_me:$LINENO: result
: yes" >&5
22019 echo "${ECHO_T}yes" >&6; }
22021 cat >>confdefs.h <<\_ACEOF
22022 #define HAVE_DEV_PTMX 1
22026 { echo "$as_me:$LINENO: result
: no
" >&5
22027 echo "${ECHO_T}no
" >&6; }
22030 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22031 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22032 if test "${ac_cv_type_pid_t+set}" = set; then
22033 echo $ECHO_N "(cached
) $ECHO_C" >&6
22035 cat >conftest.$ac_ext <<_ACEOF
22038 cat confdefs.h >>conftest.$ac_ext
22039 cat >>conftest.$ac_ext <<_ACEOF
22040 /* end confdefs.h. */
22041 $ac_includes_default
22042 typedef pid_t ac__type_new_;
22046 if ((ac__type_new_ *) 0)
22048 if (sizeof (ac__type_new_))
22054 rm -f conftest.$ac_objext
22055 if { (ac_try="$ac_compile"
22056 case "(($ac_try" in
22057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22058 *) ac_try_echo=$ac_try;;
22060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22061 (eval "$ac_compile") 2>conftest.er1
22063 grep -v '^ *+' conftest.er1 >conftest.err
22065 cat conftest.err >&5
22066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22067 (exit $ac_status); } && {
22068 test -z "$ac_c_werror_flag" ||
22069 test ! -s conftest.err
22070 } && test -s conftest.$ac_objext; then
22071 ac_cv_type_pid_t=yes
22073 echo "$as_me: failed program was
:" >&5
22074 sed 's/^/| /' conftest.$ac_ext >&5
22076 ac_cv_type_pid_t=no
22079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22081 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22082 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22083 if test $ac_cv_type_pid_t = yes; then
22087 cat >>confdefs.h <<_ACEOF
22094 for ac_header in vfork.h
22096 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22098 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22099 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22101 echo $ECHO_N "(cached
) $ECHO_C" >&6
22103 ac_res=`eval echo '${'$as_ac_Header'}'`
22104 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22105 echo "${ECHO_T}$ac_res" >&6; }
22107 # Is the header compilable?
22108 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22109 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 $ac_includes_default
22117 #include <$ac_header>
22119 rm -f conftest.$ac_objext
22120 if { (ac_try="$ac_compile"
22121 case "(($ac_try" in
22122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22123 *) ac_try_echo=$ac_try;;
22125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22126 (eval "$ac_compile") 2>conftest.er1
22128 grep -v '^ *+' conftest.er1 >conftest.err
22130 cat conftest.err >&5
22131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22132 (exit $ac_status); } && {
22133 test -z "$ac_c_werror_flag" ||
22134 test ! -s conftest.err
22135 } && test -s conftest.$ac_objext; then
22136 ac_header_compiler=yes
22138 echo "$as_me: failed program was
:" >&5
22139 sed 's/^/| /' conftest.$ac_ext >&5
22141 ac_header_compiler=no
22144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22145 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22146 echo "${ECHO_T}$ac_header_compiler" >&6; }
22148 # Is the header present?
22149 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22150 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22151 cat >conftest.$ac_ext <<_ACEOF
22154 cat confdefs.h >>conftest.$ac_ext
22155 cat >>conftest.$ac_ext <<_ACEOF
22156 /* end confdefs.h. */
22157 #include <$ac_header>
22159 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22160 case "(($ac_try" in
22161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22162 *) ac_try_echo=$ac_try;;
22164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22165 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22167 grep -v '^ *+' conftest.er1 >conftest.err
22169 cat conftest.err >&5
22170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22171 (exit $ac_status); } >/dev/null && {
22172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22173 test ! -s conftest.err
22175 ac_header_preproc=yes
22177 echo "$as_me: failed program was
:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22180 ac_header_preproc=no
22183 rm -f conftest.err conftest.$ac_ext
22184 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22185 echo "${ECHO_T}$ac_header_preproc" >&6; }
22187 # So? What about this header?
22188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22191 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22192 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22194 ac_header_preproc=yes
22197 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22198 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22199 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22200 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22201 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22202 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22203 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22204 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22207 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22208 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22212 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22213 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22215 echo $ECHO_N "(cached
) $ECHO_C" >&6
22217 eval "$as_ac_Header=\
$ac_header_preproc"
22219 ac_res=`eval echo '${'$as_ac_Header'}'`
22220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22221 echo "${ECHO_T}$ac_res" >&6; }
22224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22225 cat >>confdefs.h <<_ACEOF
22226 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22235 for ac_func in fork vfork
22237 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22238 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22239 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22240 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22241 echo $ECHO_N "(cached
) $ECHO_C" >&6
22243 cat >conftest.$ac_ext <<_ACEOF
22246 cat confdefs.h >>conftest.$ac_ext
22247 cat >>conftest.$ac_ext <<_ACEOF
22248 /* end confdefs.h. */
22249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22251 #define $ac_func innocuous_$ac_func
22253 /* System header to define __stub macros and hopefully few prototypes,
22254 which can conflict with char $ac_func (); below.
22255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22256 <limits.h> exists even on freestanding compilers. */
22259 # include <limits.h>
22261 # include <assert.h>
22266 /* Override any GCC internal prototype to avoid an error.
22267 Use char because int might match the return type of a GCC
22268 builtin and then its argument prototype would still apply. */
22273 /* The GNU C library defines this for functions which it implements
22274 to always fail with ENOSYS. Some functions are actually named
22275 something starting with __ and the normal name is an alias. */
22276 #if defined __stub_$ac_func || defined __stub___$ac_func
22283 return $ac_func ();
22288 rm -f conftest.$ac_objext conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>conftest.er1
22297 grep -v '^ *+' conftest.er1 >conftest.err
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22301 (exit $ac_status); } && {
22302 test -z "$ac_c_werror_flag" ||
22303 test ! -s conftest.err
22304 } && test -s conftest$ac_exeext &&
22305 $as_test_x conftest$ac_exeext; then
22306 eval "$as_ac_var=yes"
22308 echo "$as_me: failed program was
:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22311 eval "$as_ac_var=no
"
22314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22315 conftest$ac_exeext conftest.$ac_ext
22317 ac_res=`eval echo '${'$as_ac_var'}'`
22318 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22319 echo "${ECHO_T}$ac_res" >&6; }
22320 if test `eval echo '${'$as_ac_var'}'` = yes; then
22321 cat >>confdefs.h <<_ACEOF
22322 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22328 if test "x
$ac_cv_func_fork" = xyes; then
22329 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22330 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22331 if test "${ac_cv_func_fork_works+set}" = set; then
22332 echo $ECHO_N "(cached
) $ECHO_C" >&6
22334 if test "$cross_compiling" = yes; then
22335 ac_cv_func_fork_works=cross
22337 cat >conftest.$ac_ext <<_ACEOF
22340 cat confdefs.h >>conftest.$ac_ext
22341 cat >>conftest.$ac_ext <<_ACEOF
22342 /* end confdefs.h. */
22343 $ac_includes_default
22348 /* By Ruediger Kuhlmann. */
22349 return fork () < 0;
22355 rm -f conftest$ac_exeext
22356 if { (ac_try="$ac_link"
22357 case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22361 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_link") 2>&5
22364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22366 { (case "(($ac_try" in
22367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368 *) ac_try_echo=$ac_try;;
22370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22371 (eval "$ac_try") 2>&5
22373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_func_fork_works=yes
22377 echo "$as_me: program exited with status
$ac_status" >&5
22378 echo "$as_me: failed program was
:" >&5
22379 sed 's/^/| /' conftest.$ac_ext >&5
22381 ( exit $ac_status )
22382 ac_cv_func_fork_works=no
22384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22389 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22390 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22393 ac_cv_func_fork_works=$ac_cv_func_fork
22395 if test "x
$ac_cv_func_fork_works" = xcross; then
22397 *-*-amigaos* | *-*-msdosdjgpp*)
22398 # Override, as these systems have only a dummy fork() stub
22399 ac_cv_func_fork_works=no
22402 ac_cv_func_fork_works=yes
22405 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22406 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22408 ac_cv_func_vfork_works=$ac_cv_func_vfork
22409 if test "x
$ac_cv_func_vfork" = xyes; then
22410 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22411 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22412 if test "${ac_cv_func_vfork_works+set}" = set; then
22413 echo $ECHO_N "(cached
) $ECHO_C" >&6
22415 if test "$cross_compiling" = yes; then
22416 ac_cv_func_vfork_works=cross
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 /* Thanks to Paul Eggert for this test. */
22425 $ac_includes_default
22426 #include <sys/wait.h>
22427 #ifdef HAVE_VFORK_H
22428 # include <vfork.h>
22430 /* On some sparc systems, changes by the child to local and incoming
22431 argument registers are propagated back to the parent. The compiler
22432 is told about this with #include <vfork.h>, but some compilers
22433 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22434 static variable whose address is put into a register that is
22435 clobbered by the vfork. */
22438 sparc_address_test (int arg)
22440 sparc_address_test (arg) int arg;
22443 static pid_t child;
22461 pid_t parent = getpid ();
22464 sparc_address_test (0);
22469 /* Here is another test for sparc vfork register problems. This
22470 test uses lots of local variables, at least as many local
22471 variables as main has allocated so far including compiler
22472 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22473 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22474 reuse the register of parent for one of the local variables,
22475 since it will think that parent can't possibly be used any more
22476 in this routine. Assigning to the local variable will thus
22477 munge parent in the parent process. */
22479 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22480 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22481 /* Convince the compiler that p..p7 are live; otherwise, it might
22482 use the same hardware register for all 8 local variables. */
22483 if (p != p1 || p != p2 || p != p3 || p != p4
22484 || p != p5 || p != p6 || p != p7)
22487 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22488 from child file descriptors. If the child closes a descriptor
22489 before it execs or exits, this munges the parent's descriptor
22490 as well. Test for this by closing stdout in the child. */
22491 _exit(close(fileno(stdout)) != 0);
22496 while (wait(&status) != child)
22499 /* Was there some problem with vforking? */
22502 /* Did the child fail? (This shouldn't happen.) */
22505 /* Did the vfork/compiler bug occur? */
22506 || parent != getpid()
22508 /* Did the file descriptor bug occur? */
22509 || fstat(fileno(stdout), &st) != 0
22514 rm -f conftest$ac_exeext
22515 if { (ac_try="$ac_link"
22516 case "(($ac_try" in
22517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22518 *) ac_try_echo=$ac_try;;
22520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22521 (eval "$ac_link") 2>&5
22523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22524 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22525 { (case "(($ac_try" in
22526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22527 *) ac_try_echo=$ac_try;;
22529 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22530 (eval "$ac_try") 2>&5
22532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22533 (exit $ac_status); }; }; then
22534 ac_cv_func_vfork_works=yes
22536 echo "$as_me: program exited with status
$ac_status" >&5
22537 echo "$as_me: failed program was
:" >&5
22538 sed 's/^/| /' conftest.$ac_ext >&5
22540 ( exit $ac_status )
22541 ac_cv_func_vfork_works=no
22543 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22548 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22549 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22552 if test "x
$ac_cv_func_fork_works" = xcross; then
22553 ac_cv_func_vfork_works=$ac_cv_func_vfork
22554 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22555 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22558 if test "x
$ac_cv_func_vfork_works" = xyes; then
22560 cat >>confdefs.h <<\_ACEOF
22561 #define HAVE_WORKING_VFORK 1
22566 cat >>confdefs.h <<\_ACEOF
22571 if test "x
$ac_cv_func_fork_works" = xyes; then
22573 cat >>confdefs.h <<\_ACEOF
22574 #define HAVE_WORKING_FORK 1
22580 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22581 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22582 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22583 echo $ECHO_N "(cached
) $ECHO_C" >&6
22585 cat >conftest.$ac_ext <<_ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <langinfo.h>
22595 char* cs = nl_langinfo(CODESET);
22600 rm -f conftest.$ac_objext conftest$ac_exeext
22601 if { (ac_try="$ac_link"
22602 case "(($ac_try" in
22603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22604 *) ac_try_echo=$ac_try;;
22606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22607 (eval "$ac_link") 2>conftest.er1
22609 grep -v '^ *+' conftest.er1 >conftest.err
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22613 (exit $ac_status); } && {
22614 test -z "$ac_c_werror_flag" ||
22615 test ! -s conftest.err
22616 } && test -s conftest$ac_exeext &&
22617 $as_test_x conftest$ac_exeext; then
22618 emacs_cv_langinfo_codeset=yes
22620 echo "$as_me: failed program was
:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22623 emacs_cv_langinfo_codeset=no
22626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22627 conftest$ac_exeext conftest.$ac_ext
22630 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22631 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22632 if test $emacs_cv_langinfo_codeset = yes; then
22634 cat >>confdefs.h <<\_ACEOF
22635 #define HAVE_LANGINFO_CODESET 1
22640 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22641 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22642 if test "${ac_cv_type_size_t+set}" = set; then
22643 echo $ECHO_N "(cached
) $ECHO_C" >&6
22645 cat >conftest.$ac_ext <<_ACEOF
22648 cat confdefs.h >>conftest.$ac_ext
22649 cat >>conftest.$ac_ext <<_ACEOF
22650 /* end confdefs.h. */
22651 $ac_includes_default
22652 typedef size_t ac__type_new_;
22656 if ((ac__type_new_ *) 0)
22658 if (sizeof (ac__type_new_))
22664 rm -f conftest.$ac_objext
22665 if { (ac_try="$ac_compile"
22666 case "(($ac_try" in
22667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22668 *) ac_try_echo=$ac_try;;
22670 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22671 (eval "$ac_compile") 2>conftest.er1
22673 grep -v '^ *+' conftest.er1 >conftest.err
22675 cat conftest.err >&5
22676 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22677 (exit $ac_status); } && {
22678 test -z "$ac_c_werror_flag" ||
22679 test ! -s conftest.err
22680 } && test -s conftest.$ac_objext; then
22681 ac_cv_type_size_t=yes
22683 echo "$as_me: failed program was
:" >&5
22684 sed 's/^/| /' conftest.$ac_ext >&5
22686 ac_cv_type_size_t=no
22689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22692 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22693 if test $ac_cv_type_size_t = yes; then
22695 cat >>confdefs.h <<_ACEOF
22696 #define HAVE_SIZE_T 1
22703 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22704 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22705 if test "${ac_cv_type_mbstate_t+set}" = set; then
22706 echo $ECHO_N "(cached
) $ECHO_C" >&6
22708 cat >conftest.$ac_ext <<_ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 $ac_includes_default
22715 # include <wchar.h>
22719 mbstate_t x; return sizeof x;
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_compile") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest.$ac_objext; then
22741 ac_cv_type_mbstate_t=yes
22743 echo "$as_me: failed program was
:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 ac_cv_type_mbstate_t=no
22749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22752 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22753 if test $ac_cv_type_mbstate_t = yes; then
22755 cat >>confdefs.h <<\_ACEOF
22756 #define HAVE_MBSTATE_T 1
22761 cat >>confdefs.h <<\_ACEOF
22762 #define mbstate_t int
22767 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22768 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22769 if test "${emacs_cv_c_restrict+set}" = set; then
22770 echo $ECHO_N "(cached
) $ECHO_C" >&6
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 void fred (int *restrict x);
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22794 (eval "$ac_compile") 2>conftest.er1
22796 grep -v '^ *+' conftest.er1 >conftest.err
22798 cat conftest.err >&5
22799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22800 (exit $ac_status); } && {
22801 test -z "$ac_c_werror_flag" ||
22802 test ! -s conftest.err
22803 } && test -s conftest.$ac_objext; then
22804 emacs_cv_c_restrict=yes
22806 echo "$as_me: failed program was
:" >&5
22807 sed 's/^/| /' conftest.$ac_ext >&5
22809 cat >conftest.$ac_ext <<_ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h. */
22815 void fred (int *__restrict x);
22824 rm -f conftest.$ac_objext
22825 if { (ac_try="$ac_compile"
22826 case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22830 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22831 (eval "$ac_compile") 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22837 (exit $ac_status); } && {
22838 test -z "$ac_c_werror_flag" ||
22839 test ! -s conftest.err
22840 } && test -s conftest.$ac_objext; then
22841 emacs_cv_c_restrict=__restrict
22843 echo "$as_me: failed program was
:" >&5
22844 sed 's/^/| /' conftest.$ac_ext >&5
22846 emacs_cv_c_restrict=no
22849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22854 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22855 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22856 case "$emacs_cv_c_restrict" in
22857 yes) emacs_restrict=restrict;;
22858 no) emacs_restrict="";;
22859 *) emacs_restrict="$emacs_cv_c_restrict";;
22861 if test "$emacs_restrict" != __restrict; then
22863 cat >>confdefs.h <<_ACEOF
22864 #define __restrict $emacs_restrict
22869 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22870 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22871 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22872 echo $ECHO_N "(cached
) $ECHO_C" >&6
22874 cat >conftest.$ac_ext <<_ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h. */
22880 void fred (int x[__restrict]);
22889 rm -f conftest.$ac_objext
22890 if { (ac_try="$ac_compile"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22896 (eval "$ac_compile") 2>conftest.er1
22898 grep -v '^ *+' conftest.er1 >conftest.err
22900 cat conftest.err >&5
22901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22902 (exit $ac_status); } && {
22903 test -z "$ac_c_werror_flag" ||
22904 test ! -s conftest.err
22905 } && test -s conftest.$ac_objext; then
22906 emacs_cv_c_restrict_arr=yes
22908 echo "$as_me: failed program was
:" >&5
22909 sed 's/^/| /' conftest.$ac_ext >&5
22911 emacs_cv_c_restrict_arr=no
22914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22916 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22917 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22918 if test "$emacs_cv_c_restrict_arr" = yes; then
22920 cat >>confdefs.h <<\_ACEOF
22921 #define __restrict_arr __restrict
22928 # Set up the CFLAGS for real compilation, so we can substitute it.
22929 CFLAGS="$REAL_CFLAGS"
22930 CPPFLAGS="$REAL_CPPFLAGS"
22932 #### Find out which version of Emacs this is.
22933 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22934 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22935 if test x"${version}" = x; then
22936 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22937 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22938 { (exit 1); exit 1; }; }
22941 ### Specify what sort of things we'll be editing into Makefile and config.h.
22942 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22978 cat >>confdefs.h <<_ACEOF
22979 #define EMACS_CONFIGURATION "${canonical}"
22983 cat >>confdefs.h <<_ACEOF
22984 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22988 cat >>confdefs.h <<_ACEOF
22989 #define config_machfile "${machfile}"
22993 cat >>confdefs.h <<_ACEOF
22994 #define config_opsysfile "${opsysfile}"
22998 cat >>confdefs.h <<_ACEOF
22999 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23003 cat >>confdefs.h <<_ACEOF
23004 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23008 cat >>confdefs.h <<_ACEOF
23009 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23013 cat >>confdefs.h <<_ACEOF
23014 #define UNEXEC_SRC ${UNEXEC_SRC}
23018 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23020 cat >>confdefs.h <<\_ACEOF
23021 #define HAVE_X_WINDOWS 1
23025 if test "${USE_X_TOOLKIT}" != "none
" ; then
23027 cat >>confdefs.h <<\_ACEOF
23028 #define USE_X_TOOLKIT 1
23032 if test "${HAVE_X11}" = "yes" ; then
23034 cat >>confdefs.h <<\_ACEOF
23039 if test "${HAVE_XFREE386}" = "yes" ; then
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_XFREE386 1
23046 if test "${HAVE_MENUS}" = "yes" ; then
23048 cat >>confdefs.h <<\_ACEOF
23049 #define HAVE_MENUS 1
23053 if test "${GNU_MALLOC}" = "yes" ; then
23055 cat >>confdefs.h <<\_ACEOF
23056 #define GNU_MALLOC 1
23060 if test "${REL_ALLOC}" = "yes" ; then
23062 cat >>confdefs.h <<\_ACEOF
23063 #define REL_ALLOC 1
23072 #### Report on what we decided to do.
23073 #### Report GTK as a toolkit, even if it doesn't use Xt.
23074 #### It makes printing result more understandable as using GTK sets
23075 #### toolkit_scroll_bars to yes by default.
23076 if test "${HAVE_GTK}" = "yes"; then
23081 Configured
for \
`${canonical}'.
23083 Where should the build process find the source code? ${srcdir}
23084 What operating system and machine description files should Emacs use?
23085 \`${opsysfile}' and \`${machfile}'
23086 What compiler should emacs be built with?
${CC} ${CFLAGS}
23087 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23088 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23089 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23090 What window system should Emacs use?
${window_system}
23091 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23093 if test -n "${x_includes}"; then
23094 echo " Where
do we
find X Windows header files?
${x_includes}"
23096 echo " Where
do we
find X Windows header files? Standard
dirs"
23098 if test -n "${x_libraries}"; then
23099 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23101 echo " Where
do we
find X Windows libraries? Standard
dirs"
23104 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23105 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23106 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23107 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23108 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23109 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23110 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23113 if test $USE_XASSERTS = yes; then
23114 echo " Compiling with asserts turned on.
"
23115 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23119 if test "$USE_X_TOOLKIT" = GTK; then
23120 case "$canonical" in
23122 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23123 will probably get a crash on startup. If this happens
, please use another
23124 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23131 # Remove any trailing slashes in these variables.
23132 test "${prefix}" != NONE &&
23133 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23134 test "${exec_prefix}" != NONE &&
23135 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23137 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23138 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23139 ## from Makefile.c can correctly provide the arg `-traditional' to the
23142 cat >conftest.$ac_ext <<_ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23150 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23151 $EGREP "yes..
yes" >/dev/null 2>&1; then
23152 CPP_NEED_TRADITIONAL=no
23154 CPP_NEED_TRADITIONAL=yes
23159 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
"
23161 ac_config_commands="$ac_config_commands default
"
23163 cat >confcache <<\_ACEOF
23164 # This file is a shell script that caches the results of configure
23165 # tests run on this system so they can be shared between configure
23166 # scripts and configure runs, see configure's option --config-cache.
23167 # It is not useful on other systems. If it contains results you don't
23168 # want to keep, you may remove or edit it.
23170 # config.status only pays attention to the cache file if you give it
23171 # the --recheck option to rerun configure.
23173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23175 # following values.
23179 # The following way of writing the cache mishandles newlines in values,
23180 # but we know of no workaround that is simple, portable, and efficient.
23181 # So, we kill variables containing newlines.
23182 # Ultrix sh set writes to stderr and can't be redirected directly,
23183 # and sets the high bit in the cache file unless we assign to the vars.
23185 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23186 eval ac_val=\$$ac_var
23190 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23191 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23194 _ | IFS | as_nl) ;; #(
23195 *) $as_unset $ac_var ;;
23201 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23202 *${as_nl}ac_space=\ *)
23203 # `set' does not quote correctly, so add quotes (double-quote
23204 # substitution turns \\\\ into \\, and sed turns \\ into \).
23207 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23210 # `set' quotes correctly as required by POSIX, so do not add quotes.
23211 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23220 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23222 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23225 if test -w "$cache_file"; then
23226 test "x
$cache_file" != "x
/dev
/null
" &&
23227 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23228 echo "$as_me: updating cache
$cache_file" >&6;}
23229 cat confcache >$cache_file
23231 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23232 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23237 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23238 # Let make expand exec_prefix.
23239 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23241 DEFS=-DHAVE_CONFIG_H
23245 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23246 # 1. Remove the extension, and $U if already installed.
23247 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23248 ac_i=`echo "$ac_i" | sed "$ac_script"`
23249 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23250 # will be set to the directory where LIBOBJS objects are built.
23251 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23252 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23254 LIBOBJS=$ac_libobjs
23256 LTLIBOBJS=$ac_ltlibobjs
23260 : ${CONFIG_STATUS=./config.status}
23261 ac_clean_files_save=$ac_clean_files
23262 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23263 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23264 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23265 cat >$CONFIG_STATUS <<_ACEOF
23267 # Generated by $as_me.
23268 # Run this file to recreate the current configuration.
23269 # Compiler output produced by configure, useful for debugging
23270 # configure, is in config.log if it exists.
23273 ac_cs_recheck=false
23275 SHELL=\${CONFIG_SHELL-$SHELL}
23278 cat >>$CONFIG_STATUS <<\_ACEOF
23279 ## --------------------- ##
23280 ## M4sh Initialization. ##
23281 ## --------------------- ##
23283 # Be more Bourne compatible
23284 DUALCASE=1; export DUALCASE # for MKS sh
23285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23288 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23289 # is contrary to our usage. Disable this feature.
23290 alias -g '${1+"$@"}'='"$@
"'
23291 setopt NO_GLOB_SUBST
23293 case `(set -o) 2>/dev/null` in
23294 *posix*) set -o posix ;;
23303 # Avoid depending upon Character Ranges.
23304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23307 as_cr_digits='0123456789'
23308 as_cr_alnum=$as_cr_Letters$as_cr_digits
23310 # The user is always right.
23311 if test "${PATH_SEPARATOR+set}" != set; then
23312 echo "#! /bin/sh" >conf$$.sh
23313 echo "exit 0" >>conf$$.sh
23315 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23323 # Support unset when possible.
23324 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23332 # We need space, tab and new line, in precisely that order. Quoting is
23333 # there to prevent editors from complaining about space-tab.
23334 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23335 # splitting by setting IFS to empty value.)
23340 # Find who we are. Look in the path if we contain no directory separator.
23342 *[\\/]* ) as_myself
=$0 ;;
23343 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23344 for as_dir
in $PATH
23347 test -z "$as_dir" && as_dir
=.
23348 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23354 # We did not find ourselves, most probably we were run as `sh COMMAND'
23355 # in which case we are not to be found in the path.
23356 if test "x$as_myself" = x
; then
23359 if test ! -f "$as_myself"; then
23360 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23361 { (exit 1); exit 1; }
23364 # Work around bugs in pre-3.0 UWIN ksh.
23365 for as_var
in ENV MAIL MAILPATH
23366 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23374 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23375 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23376 LC_TELEPHONE LC_TIME
23378 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23379 eval $as_var=C
; export $as_var
23381 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23385 # Required to use basename.
23386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23394 as_basename
=basename
23400 # Name of the executable.
23401 as_me
=`$as_basename -- "$0" ||
23402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23403 X"$0" : 'X\(//\)$' \| \
23404 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23406 sed '/^.*\/\([^/][^/]*\)\/*$/{
23425 as_lineno_1
=$LINENO
23426 as_lineno_2
=$LINENO
23427 test "x$as_lineno_1" != "x$as_lineno_2" &&
23428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23431 # uniformly replaced by the line number. The first 'sed' inserts a
23432 # line-number line after each line using $LINENO; the second 'sed'
23433 # does the real work. The second script uses 'N' to pair each
23434 # line-number line with the line containing $LINENO, and appends
23435 # trailing '-' during substitution so that $LINENO is not a special
23436 # case at line end.
23437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23438 # scripts with optimization help from Paolo Bonzini. Blame Lee
23439 # E. McMahon (1931-1989) for sed's syntax. :-)
23451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23454 ' >$as_me.lineno
&&
23455 chmod +x
"$as_me.lineno" ||
23456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23457 { (exit 1); exit 1; }; }
23459 # Don't try to exec as it changes $[0], causing all sort of problems
23460 # (the dirname of $[0] is not the place where we might find the
23461 # original and so on. Autoconf is especially sensitive to this).
23462 .
"./$as_me.lineno"
23463 # Exit status is that of the last command.
23468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23474 ECHO_C
= ECHO_N
= ECHO_T
=
23475 case `echo -n x` in
23477 case `echo 'x\c'` in
23478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23492 rm -f conf$$ conf$$.exe conf$$.
file
23493 if test -d conf$$.dir
; then
23494 rm -f conf$$.dir
/conf$$.
file
23500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23502 # ... but there are two gotchas:
23503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23505 # In both cases, we have to default to `cp -p'.
23506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23514 rmdir conf$$.dir
2>/dev
/null
23516 if mkdir
-p .
2>/dev
/null
; then
23519 test -d .
/-p && rmdir .
/-p
23523 if test -x / >/dev
/null
2>&1; then
23524 as_test_x
='test -x'
23526 if ls -dL / >/dev
/null
2>&1; then
23533 if test -d "$1"; then
23539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23540 ???[sx]*):;;*)false;;esac;fi
23544 as_executable_p
=$as_test_x
23546 # Sed expression to map a string onto a valid CPP name.
23547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23549 # Sed expression to map a string onto a valid variable name.
23550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23555 # Save the log message, to keep $[0] and so on meaningful, and to
23556 # report actual input values of CONFIG_FILES etc. instead of their
23557 # values after options handling.
23559 This file was extended by $as_me, which was
23560 generated by GNU Autoconf 2.61. Invocation command line was
23562 CONFIG_FILES = $CONFIG_FILES
23563 CONFIG_HEADERS = $CONFIG_HEADERS
23564 CONFIG_LINKS = $CONFIG_LINKS
23565 CONFIG_COMMANDS = $CONFIG_COMMANDS
23568 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23573 cat >>$CONFIG_STATUS <<_ACEOF
23574 # Files that config.status was made for.
23575 config_files="$ac_config_files"
23576 config_headers="$ac_config_headers"
23577 config_commands="$ac_config_commands"
23581 cat >>$CONFIG_STATUS <<\_ACEOF
23583 \`$as_me' instantiates files from templates according to the
23584 current configuration.
23586 Usage: $0 [OPTIONS] [FILE]...
23588 -h, --help print this help, then exit
23589 -V, --version print version number and configuration settings, then exit
23590 -q, --quiet do not print progress messages
23591 -d, --debug don't remove temporary files
23592 --recheck update $as_me by reconfiguring in the same conditions
23593 --file=FILE[:TEMPLATE]
23594 instantiate the configuration file FILE
23595 --header=FILE[:TEMPLATE]
23596 instantiate the configuration header FILE
23598 Configuration files:
23601 Configuration headers:
23604 Configuration commands:
23607 Report bugs to <bug-autoconf@gnu.org>."
23610 cat >>$CONFIG_STATUS <<_ACEOF
23613 configured by $0, generated by GNU Autoconf 2.61,
23614 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23616 Copyright (C) 2006 Free Software Foundation, Inc.
23617 This config.status script is free software; the Free Software Foundation
23618 gives unlimited permission to copy, distribute and modify it."
23625 cat >>$CONFIG_STATUS <<\_ACEOF
23626 # If no file are specified by the user, then we need to provide default
23627 # value. By we need to know if files were specified by the user.
23633 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23634 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23645 # Handling of the options.
23646 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23648 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23649 echo "$ac_cs_version"; exit ;;
23650 --debug |
--debu |
--deb |
--de |
--d |
-d )
23652 --file |
--fil |
--fi |
--f )
23654 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23655 ac_need_defaults
=false
;;
23656 --header |
--heade |
--head |
--hea )
23658 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23659 ac_need_defaults
=false
;;
23661 # Conflict between --help and --header
23662 { echo "$as_me: error: ambiguous option: $1
23663 Try \`$0 --help' for more information." >&2
23664 { (exit 1); exit 1; }; };;
23665 --help |
--hel |
-h )
23666 echo "$ac_cs_usage"; exit ;;
23667 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23668 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23671 # This is an error.
23672 -*) { echo "$as_me: error: unrecognized option: $1
23673 Try \`$0 --help' for more information." >&2
23674 { (exit 1); exit 1; }; } ;;
23676 *) ac_config_targets
="$ac_config_targets $1"
23677 ac_need_defaults
=false
;;
23683 ac_configure_extra_args
=
23685 if $ac_cs_silent; then
23687 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23691 cat >>$CONFIG_STATUS <<_ACEOF
23692 if \$ac_cs_recheck; then
23693 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23694 CONFIG_SHELL=$SHELL
23695 export CONFIG_SHELL
23696 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23700 cat >>$CONFIG_STATUS <<\_ACEOF
23704 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23705 ## Running $as_me. ##
23711 cat >>$CONFIG_STATUS <<_ACEOF
23715 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23719 cat >>$CONFIG_STATUS <<\_ACEOF
23721 # Handling of arguments.
23722 for ac_config_target
in $ac_config_targets
23724 case $ac_config_target in
23725 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23726 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23727 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23728 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23729 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23730 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23731 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23732 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23733 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23734 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23735 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23736 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23740 { (exit 1); exit 1; }; };;
23745 # If the user did not use the arguments to specify the items to instantiate,
23746 # then the envvar interface is used. Set only those that are not.
23747 # We use the long form for the default assignment because of an extremely
23748 # bizarre bug on SunOS 4.1.3.
23749 if $ac_need_defaults; then
23750 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23751 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23752 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23755 # Have a temporary directory for convenience. Make it in the build tree
23756 # simply because there is no reason against having it here, and in addition,
23757 # creating and moving files from /tmp can sometimes cause problems.
23758 # Hook for its removal unless debugging.
23759 # Note that there is a small window in which the directory will not be cleaned:
23760 # after its creation but before its name has been assigned to `$tmp'.
23764 trap 'exit_status=$?
23765 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23767 trap '{ (exit 1); exit 1; }' 1 2 13 15
23769 # Create a (secure) tmp directory for tmp files.
23772 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23773 test -n "$tmp" && test -d "$tmp"
23776 tmp
=.
/conf$$
-$RANDOM
23777 (umask 077 && mkdir
"$tmp")
23780 echo "$me: cannot create a temporary directory in ." >&2
23781 { (exit 1); exit 1; }
23785 # Set up the sed scripts for CONFIG_FILES section.
23788 # No need to generate the scripts if there are no CONFIG_FILES.
23789 # This happens for instance when ./config.status config.h
23790 if test -n "$CONFIG_FILES"; then
23797 for ac_last_try
in false false false false false
:; do
23798 cat >conf$
$subs.
sed <<_ACEOF
23799 SHELL!$SHELL$ac_delim
23800 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23801 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23802 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23803 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23804 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23805 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23806 exec_prefix!$exec_prefix$ac_delim
23807 prefix!$prefix$ac_delim
23808 program_transform_name!$program_transform_name$ac_delim
23809 bindir!$bindir$ac_delim
23810 sbindir!$sbindir$ac_delim
23811 libexecdir!$libexecdir$ac_delim
23812 datarootdir!$datarootdir$ac_delim
23813 datadir!$datadir$ac_delim
23814 sysconfdir!$sysconfdir$ac_delim
23815 sharedstatedir!$sharedstatedir$ac_delim
23816 localstatedir!$localstatedir$ac_delim
23817 includedir!$includedir$ac_delim
23818 oldincludedir!$oldincludedir$ac_delim
23819 docdir!$docdir$ac_delim
23820 infodir!$infodir$ac_delim
23821 htmldir!$htmldir$ac_delim
23822 dvidir!$dvidir$ac_delim
23823 pdfdir!$pdfdir$ac_delim
23824 psdir!$psdir$ac_delim
23825 libdir!$libdir$ac_delim
23826 localedir!$localedir$ac_delim
23827 mandir!$mandir$ac_delim
23828 DEFS!$DEFS$ac_delim
23829 ECHO_C!$ECHO_C$ac_delim
23830 ECHO_N!$ECHO_N$ac_delim
23831 ECHO_T!$ECHO_T$ac_delim
23832 LIBS!$LIBS$ac_delim
23833 build_alias!$build_alias$ac_delim
23834 host_alias!$host_alias$ac_delim
23835 target_alias!$target_alias$ac_delim
23836 MAINT!$MAINT$ac_delim
23837 build!$build$ac_delim
23838 build_cpu!$build_cpu$ac_delim
23839 build_vendor!$build_vendor$ac_delim
23840 build_os!$build_os$ac_delim
23841 host!$host$ac_delim
23842 host_cpu!$host_cpu$ac_delim
23843 host_vendor!$host_vendor$ac_delim
23844 host_os!$host_os$ac_delim
23846 CFLAGS!$CFLAGS$ac_delim
23847 LDFLAGS!$LDFLAGS$ac_delim
23848 CPPFLAGS!$CPPFLAGS$ac_delim
23849 ac_ct_CC!$ac_ct_CC$ac_delim
23850 EXEEXT!$EXEEXT$ac_delim
23851 OBJEXT!$OBJEXT$ac_delim
23853 GREP!$GREP$ac_delim
23854 EGREP!$EGREP$ac_delim
23855 LN_S!$LN_S$ac_delim
23856 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23857 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23858 INSTALL_DATA!$INSTALL_DATA$ac_delim
23859 RANLIB!$RANLIB$ac_delim
23860 INSTALL_INFO!$INSTALL_INFO$ac_delim
23861 GZIP_PROG!$GZIP_PROG$ac_delim
23862 LIBSOUND!$LIBSOUND$ac_delim
23863 PKG_CONFIG!$PKG_CONFIG$ac_delim
23864 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23865 ALSA_LIBS!$ALSA_LIBS$ac_delim
23866 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23867 SET_MAKE!$SET_MAKE$ac_delim
23868 XMKMF!$XMKMF$ac_delim
23869 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23870 GTK_LIBS!$GTK_LIBS$ac_delim
23871 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23872 XFT_LIBS!$XFT_LIBS$ac_delim
23873 ALLOCA!$ALLOCA$ac_delim
23874 liblockfile!$liblockfile$ac_delim
23875 LIBOBJS!$LIBOBJS$ac_delim
23876 NEED_SETGID!$NEED_SETGID$ac_delim
23877 KMEM_GROUP!$KMEM_GROUP$ac_delim
23878 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23879 GETOPT_H!$GETOPT_H$ac_delim
23880 GETOPTOBJS!$GETOPTOBJS$ac_delim
23881 version!$version$ac_delim
23882 configuration!$configuration$ac_delim
23883 canonical!$canonical$ac_delim
23884 srcdir!$srcdir$ac_delim
23885 lispdir!$lispdir$ac_delim
23886 locallisppath!$locallisppath$ac_delim
23887 lisppath!$lisppath$ac_delim
23888 x_default_search_path!$x_default_search_path$ac_delim
23889 etcdir!$etcdir$ac_delim
23890 archlibdir!$archlibdir$ac_delim
23891 bitmapdir!$bitmapdir$ac_delim
23892 gamedir!$gamedir$ac_delim
23893 gameuser!$gameuser$ac_delim
23894 c_switch_system!$c_switch_system$ac_delim
23895 c_switch_machine!$c_switch_machine$ac_delim
23898 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23900 elif $ac_last_try; then
23901 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23902 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23903 { (exit 1); exit 1; }; }
23905 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23909 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23910 if test -n "$ac_eof"; then
23911 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23912 ac_eof
=`expr $ac_eof + 1`
23915 cat >>$CONFIG_STATUS <<_ACEOF
23916 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23920 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23921 s/^/s,@/; s/!/@,|#_!!_#|/
23924 s/'"$ac_delim"'$/,g/; t
23926 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23927 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23928 rm -f conf$
$subs.
sed
23929 cat >>$CONFIG_STATUS <<_ACEOF
23935 for ac_last_try
in false false false false false
:; do
23936 cat >conf$
$subs.
sed <<_ACEOF
23937 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23938 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23939 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23940 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23941 machfile!$machfile$ac_delim
23942 opsysfile!$opsysfile$ac_delim
23943 carbon_appdir!$carbon_appdir$ac_delim
23944 LTLIBOBJS!$LTLIBOBJS$ac_delim
23947 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23949 elif $ac_last_try; then
23950 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23951 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23952 { (exit 1); exit 1; }; }
23954 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23958 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23959 if test -n "$ac_eof"; then
23960 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23961 ac_eof
=`expr $ac_eof + 1`
23964 cat >>$CONFIG_STATUS <<_ACEOF
23965 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23966 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23969 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23970 s/^/s,@/; s/!/@,|#_!!_#|/
23973 s/'"$ac_delim"'$/,g/; t
23975 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23976 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23977 rm -f conf$
$subs.
sed
23978 cat >>$CONFIG_STATUS <<_ACEOF
23985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23987 # trailing colons and then remove the whole line if VPATH becomes empty
23988 # (actually we leave an empty line to preserve line numbers).
23989 if test "x$srcdir" = x.
; then
23990 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23991 s/:*\$(srcdir):*/:/
23992 s/:*\${srcdir}:*/:/
23994 s/^\([^=]*=[ ]*\):*/\1/
24000 cat >>$CONFIG_STATUS <<\_ACEOF
24001 fi # test -n "$CONFIG_FILES"
24004 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24007 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24009 case $ac_mode$ac_tag in
24011 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24012 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24013 { (exit 1); exit 1; }; };;
24014 :[FH
]-) ac_tag
=-:-;;
24015 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24032 -) ac_f
="$tmp/stdin";;
24033 *) # Look for the file first in the build tree, then in the source tree
24034 # (if the path is not absolute). The absolute path cannot be DOS-style,
24035 # because $ac_f cannot contain `:'.
24039 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24041 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24042 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24043 { (exit 1); exit 1; }; };;
24045 ac_file_inputs
="$ac_file_inputs $ac_f"
24048 # Let's still pretend it is `configure' which instantiates (i.e., don't
24049 # use $as_me), people would be surprised to read:
24050 # /* config.h. Generated by config.status. */
24051 configure_input
="Generated from "`IFS=:
24052 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24053 if test x
"$ac_file" != x-
; then
24054 configure_input
="$ac_file. $configure_input"
24055 { echo "$as_me:$LINENO: creating $ac_file" >&5
24056 echo "$as_me: creating $ac_file" >&6;}
24060 *:-:* |
*:-) cat >"$tmp/stdin";;
24065 ac_dir
=`$as_dirname -- "$ac_file" ||
24066 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24067 X"$ac_file" : 'X\(//\)[^/]' \| \
24068 X"$ac_file" : 'X\(//\)$' \| \
24069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24075 /^X\(\/\/\)[^/].*/{
24090 -*) as_dir
=.
/$as_dir;;
24092 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24096 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24097 *) as_qdir
=$as_dir;;
24099 as_dirs
="'$as_qdir' $as_dirs"
24100 as_dir
=`$as_dirname -- "$as_dir" ||
24101 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24102 X"$as_dir" : 'X\(//\)[^/]' \| \
24103 X"$as_dir" : 'X\(//\)$' \| \
24104 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24110 /^X\(\/\/\)[^/].*/{
24123 test -d "$as_dir" && break
24125 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24126 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24127 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24128 { (exit 1); exit 1; }; }; }
24132 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24134 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24135 # A ".." for each directory in $ac_dir_suffix.
24136 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24137 case $ac_top_builddir_sub in
24138 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24139 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24142 ac_abs_top_builddir
=$ac_pwd
24143 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24144 # for backward compatibility:
24145 ac_top_builddir
=$ac_top_build_prefix
24148 .
) # We are building in place.
24150 ac_top_srcdir
=$ac_top_builddir_sub
24151 ac_abs_top_srcdir
=$ac_pwd ;;
24152 [\\/]* | ?
:[\\/]* ) # Absolute name.
24153 ac_srcdir
=$srcdir$ac_dir_suffix;
24154 ac_top_srcdir
=$srcdir
24155 ac_abs_top_srcdir
=$srcdir ;;
24156 *) # Relative name.
24157 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24158 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24159 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24161 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24171 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24172 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24176 cat >>$CONFIG_STATUS <<\_ACEOF
24177 # If the template does not know about datarootdir, expand it.
24178 # FIXME: This hack should be removed a few years after 2.60.
24179 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24181 case `sed -n '/datarootdir/ {
24190 ' $ac_file_inputs` in
24191 *datarootdir
*) ac_datarootdir_seen
=yes;;
24192 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24193 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24194 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24196 cat >>$CONFIG_STATUS <<_ACEOF
24197 ac_datarootdir_hack='
24198 s&@datadir@&$datadir&g
24199 s&@docdir@&$docdir&g
24200 s&@infodir@&$infodir&g
24201 s&@localedir@&$localedir&g
24202 s&@mandir@&$mandir&g
24203 s&\\\${datarootdir}&$datarootdir&g' ;;
24207 # Neutralize VPATH when `$srcdir' = `.'.
24208 # Shell code in configure.ac might set extrasub.
24209 # FIXME: do we really want to maintain this feature?
24210 cat >>$CONFIG_STATUS <<_ACEOF
24214 cat >>$CONFIG_STATUS <<\_ACEOF
24216 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24217 s
&@configure_input@
&$configure_input&;t t
24218 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24219 s
&@srcdir@
&$ac_srcdir&;t t
24220 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24221 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24222 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24223 s
&@builddir@
&$ac_builddir&;t t
24224 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24225 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24226 s
&@INSTALL@
&$ac_INSTALL&;t t
24227 $ac_datarootdir_hack
24228 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24230 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24231 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24232 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24233 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24234 which seems to be undefined. Please make sure it is defined." >&5
24235 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24236 which seems to be undefined. Please make sure it is defined." >&2;}
24240 -) cat "$tmp/out"; rm -f "$tmp/out";;
24241 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24250 # Transform confdefs.h into a sed script `conftest.defines', that
24251 # substitutes the proper values into config.h.in to produce config.h.
24252 rm -f conftest.defines conftest.
tail
24253 # First, append a space to every undef/define line, to ease matching.
24254 echo 's/$/ /' >conftest.defines
24255 # Then, protect against being on the right side of a sed subst, or in
24256 # an unquoted here document, in config.status. If some macros were
24257 # called several times there might be several #defines for the same
24258 # symbol, which is useless. But do not sort them, since the last
24259 # AC_DEFINE must be honored.
24260 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24261 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24262 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24263 # PARAMS is the parameter list in the macro definition--in most cases, it's
24264 # just an empty string.
24265 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24266 ac_dB
='\\)[ (].*,\\1define\\2'
24274 s/^[ ]*#[ ]*define[ ][ ]*//
24279 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24280 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24281 ' >>conftest.defines
24283 # Remove the space that was appended to ease matching.
24284 # Then replace #undef with comments. This is necessary, for
24285 # example, in the case of _POSIX_SOURCE, which is predefined and required
24286 # on some systems where configure will not decide to define it.
24287 # (The regexp can be short, since the line contains either #define or #undef.)
24289 s,^[ #]*u.*,/* & */,' >>conftest.defines
24291 # Break up conftest.defines:
24292 ac_max_sed_lines
=50
24294 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24295 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24296 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24298 ac_in
='$ac_file_inputs'
24299 ac_out
='"$tmp/out1"'
24300 ac_nxt
='"$tmp/out2"'
24304 # Write a here document:
24305 cat >>$CONFIG_STATUS <<_ACEOF
24306 # First, check the format of the line:
24307 cat >"\$tmp/defines.sed" <<\\CEOF
24308 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24309 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24313 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24315 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24316 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24317 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24318 grep . conftest.
tail >/dev
/null ||
break
24319 rm -f conftest.defines
24320 mv conftest.
tail conftest.defines
24322 rm -f conftest.defines conftest.
tail
24324 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24325 cat >>$CONFIG_STATUS <<\_ACEOF
24326 if test x
"$ac_file" != x-
; then
24327 echo "/* $configure_input */" >"$tmp/config.h"
24328 cat "$ac_result" >>"$tmp/config.h"
24329 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24330 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24331 echo "$as_me: $ac_file is unchanged" >&6;}
24334 mv "$tmp/config.h" $ac_file
24337 echo "/* $configure_input */"
24343 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24344 echo "$as_me: executing $ac_file commands" >&6;}
24349 case $ac_file$ac_mode in
24352 ### Make the necessary directories, if they don't exist.
24353 for dir
in etc lisp
; do
24354 test -d ${dir} || mkdir
${dir}
24357 # Build src/Makefile from ${srcdir}/src/Makefile.c
24358 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24359 # This must be done after src/config.h is built, since we rely on that file.
24361 # Now get this: Some word that is part of the ${srcdir} directory name
24362 # or the ${configuration} value might, just might, happen to be an
24363 # identifier like `sun4' or `i386' or something, and be predefined by
24364 # the C preprocessor to some helpful value like 1, or maybe the empty
24365 # string. Needless to say consequent macro substitutions are less
24366 # than conducive to the makefile finding the correct directory.
24367 undefs
="`echo $top_srcdir $configuration $canonical |
24368 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24369 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24372 echo creating src
/epaths.h
24373 ${MAKE-make} epaths-force
24375 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24376 # `..' to `. .' unless invoked with -traditional
24378 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24379 CPPFLAGS
="$CPPFLAGS -traditional"
24382 echo creating lib-src
/Makefile
24384 rm -f junk.c junk1.c junk2.c
24385 sed -e '/start of cpp stuff/q' \
24386 < Makefile.c
> junk1.c
24387 sed -e '1,/start of cpp stuff/d'\
24388 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24389 < Makefile.c
> junk.c
24390 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24391 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24392 cat junk1.c junk2.c
> Makefile.new
24393 rm -f junk.c junk1.c junk2.c
24394 chmod 444 Makefile.new
24395 mv -f Makefile.new Makefile
24398 echo creating src
/Makefile
24400 rm -f junk.c junk1.c junk2.c
24401 sed -e '/start of cpp stuff/q' \
24402 < Makefile.c
> junk1.c
24403 sed -e '1,/start of cpp stuff/d'\
24404 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24405 < Makefile.c
> junk.c
24406 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24407 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24408 cat junk1.c junk2.c
> Makefile.new
24409 rm -f junk.c junk1.c junk2.c
24410 chmod 444 Makefile.new
24411 mv -f Makefile.new Makefile
24414 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24415 echo creating src
/.gdbinit
24416 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24419 # This is how we know whether to re-run configure in certain cases.
24420 touch src
/config.stamp
24428 { (exit 0); exit 0; }
24430 chmod +x
$CONFIG_STATUS
24431 ac_clean_files
=$ac_clean_files_save
24434 # configure is writing to config.log, and then calls config.status.
24435 # config.status does its own redirection, appending to config.log.
24436 # Unfortunately, on DOS this fails, as config.log is still kept open
24437 # by configure, so config.status won't be able to write to it; its
24438 # output is simply discarded. So we exec the FD to /dev/null,
24439 # effectively closing config.log, so it can be properly (re)opened and
24440 # appended to by config.status. When coming back to configure, we
24441 # need to make the FD available again.
24442 if test "$no_create" != yes; then
24444 ac_config_status_args
=
24445 test "$silent" = yes &&
24446 ac_config_status_args
="$ac_config_status_args --quiet"
24448 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24450 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24451 # would make configure fail if this is the last instruction.
24452 $ac_cs_success ||
{ (exit 1); exit 1; }