2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
574 PACKAGE_TARNAME
='emacs'
575 PACKAGE_VERSION
='23.0.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --disable-font-backend don
't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP
mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version
5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server
host
1352 --without-sound don
't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don
't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1371 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1373 --without-dbus don't compile with D-Bus support
1374 --without-makeinfo don
't require makeinfo for building manuals
1376 --with-pkg-config-prog=PATH
1377 Path to pkg-config for finding GTK and librsvg
1378 --with-x use the X Window System
1380 Some influential environment variables:
1381 CC C compiler command
1382 CFLAGS C compiler flags
1383 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1384 nonstandard directory <lib dir>
1385 LIBS libraries to pass to the linker, e.g. -l<library>
1386 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1387 you have headers in a nonstandard directory <include dir>
1389 XMKMF Path to xmkmf, Makefile generator for X Window System
1391 Use these variables to override the choices made by `configure' or to
help
1392 it to
find libraries and programs with nonstandard names
/locations.
1398 if test "$ac_init_help" = "recursive"; then
1399 # If there are subdirs, report their specific --help.
1400 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1401 test -d "$ac_dir" ||
continue
1405 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1407 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1408 # A ".." for each directory in $ac_dir_suffix.
1409 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1410 case $ac_top_builddir_sub in
1411 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1412 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1415 ac_abs_top_builddir
=$ac_pwd
1416 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1417 # for backward compatibility:
1418 ac_top_builddir
=$ac_top_build_prefix
1421 .
) # We are building in place.
1423 ac_top_srcdir
=$ac_top_builddir_sub
1424 ac_abs_top_srcdir
=$ac_pwd ;;
1425 [\\/]* | ?
:[\\/]* ) # Absolute name.
1426 ac_srcdir
=$srcdir$ac_dir_suffix;
1427 ac_top_srcdir
=$srcdir
1428 ac_abs_top_srcdir
=$srcdir ;;
1430 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1431 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1432 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1434 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1436 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1437 # Check for guested configure.
1438 if test -f "$ac_srcdir/configure.gnu"; then
1440 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1441 elif test -f "$ac_srcdir/configure"; then
1443 $SHELL "$ac_srcdir/configure" --help=recursive
1445 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1451 test -n "$ac_init_help" && exit $ac_status
1452 if $ac_init_version; then
1454 emacs configure
23.0.60
1455 generated by GNU Autoconf
2.61
1457 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1458 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1459 This configure
script is free software
; the Free Software Foundation
1460 gives unlimited permission to copy
, distribute and modify it.
1464 cat >config.log
<<_ACEOF
1465 This file contains any messages produced by compilers while
1466 running configure, to aid debugging if configure makes a mistake.
1468 It was created by emacs $as_me 23.0.60, which was
1469 generated by GNU Autoconf 2.61. Invocation command line was
1481 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1482 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1483 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1484 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1485 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1487 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1488 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1490 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1491 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1492 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1493 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1494 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1495 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1496 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1504 test -z "$as_dir" && as_dir
=.
1505 echo "PATH: $as_dir"
1521 # Keep a trace of the command line.
1522 # Strip out --no-create and --no-recursion so they do not pile up.
1523 # Strip out --silent because we don't want to record it for future runs.
1524 # Also quote any args containing shell meta-characters.
1525 # Make two passes to allow for proper duplicate-argument suppression.
1529 ac_must_keep_next
=false
1535 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1536 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1537 |
-silent |
--silent |
--silen |
--sile |
--sil)
1540 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1545 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1546 if test $ac_must_keep_next = true
; then
1547 ac_must_keep_next
=false
# Got value, back to normal.
1550 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1551 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1552 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1553 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1554 case "$ac_configure_args0 " in
1555 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 -* ) ac_must_keep_next
=true
;;
1561 ac_configure_args
="$ac_configure_args '$ac_arg'"
1566 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1567 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1569 # When interrupted or exit'd, cleanup temporary files, and complete
1570 # config.log. We remove comments because anyway the quotes in there
1571 # would cause problems or look ugly.
1572 # WARNING: Use '\'' to represent an apostrophe within the trap.
1573 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1574 trap 'exit_status=$?
1575 # Save into config.log some information that might help in debugging.
1580 ## ---------------- ##
1581 ## Cache variables. ##
1582 ## ---------------- ##
1585 # The following way of writing the cache mishandles newlines in values,
1587 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1588 eval ac_val=\$$ac_var
1592 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1593 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 _ | IFS | as_nl) ;; #(
1597 *) $as_unset $ac_var ;;
1602 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1603 *${as_nl}ac_space=\ *)
1605 "s/'\''/'\''\\\\'\'''\''/g;
1606 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1617 ## ----------------- ##
1618 ## Output variables. ##
1619 ## ----------------- ##
1622 for ac_var in $ac_subst_vars
1624 eval ac_val=\$$ac_var
1626 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 echo "$ac_var='\''$ac_val'\''"
1632 if test -n "$ac_subst_files"; then
1634 ## ------------------- ##
1635 ## File substitutions. ##
1636 ## ------------------- ##
1639 for ac_var
in $ac_subst_files
1641 eval ac_val
=\$
$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1650 if test -s confdefs.h; then
1660 test "$ac_signal" != 0 &&
1661 echo "$as_me: caught signal $ac_signal"
1662 echo "$as_me: exit $exit_status"
1664 rm -f core *.core core.conftest.* &&
1665 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 for ac_signal
in 1 2 13 15; do
1669 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1673 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1674 rm -f -r conftest
* confdefs.h
1676 # Predefined preprocessor variables.
1678 cat >>confdefs.h
<<_ACEOF
1679 #define PACKAGE_NAME "$PACKAGE_NAME"
1683 cat >>confdefs.h
<<_ACEOF
1684 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1688 cat >>confdefs.h
<<_ACEOF
1689 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1693 cat >>confdefs.h
<<_ACEOF
1694 #define PACKAGE_STRING "$PACKAGE_STRING"
1698 cat >>confdefs.h
<<_ACEOF
1699 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1703 # Let the site file select an alternate cache file if it wants to.
1704 # Prefer explicitly selected file to automatically selected ones.
1705 if test -n "$CONFIG_SITE"; then
1706 set x
"$CONFIG_SITE"
1707 elif test "x$prefix" != xNONE
; then
1708 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1710 set x
"$ac_default_prefix/share/config.site" \
1711 "$ac_default_prefix/etc/config.site"
1716 if test -r "$ac_site_file"; then
1717 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1718 echo "$as_me: loading site script $ac_site_file" >&6;}
1719 sed 's/^/| /' "$ac_site_file" >&5
1724 if test -r "$cache_file"; then
1725 # Some versions of bash will fail to source /dev/null (special
1726 # files actually), so we avoid doing that.
1727 if test -f "$cache_file"; then
1728 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1729 echo "$as_me: loading cache $cache_file" >&6;}
1731 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1732 *) .
"./$cache_file";;
1736 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1737 echo "$as_me: creating cache $cache_file" >&6;}
1741 ac_header_list
="$ac_header_list sys/time.h"
1742 ac_header_list
="$ac_header_list unistd.h"
1743 ac_func_list
="$ac_func_list alarm"
1744 # Check that the precious variables saved in the cache have kept the same
1746 ac_cache_corrupted
=false
1747 for ac_var
in $ac_precious_vars; do
1748 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1749 eval ac_new_set
=\
$ac_env_${ac_var}_set
1750 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1751 eval ac_new_val
=\
$ac_env_${ac_var}_value
1752 case $ac_old_set,$ac_new_set in
1754 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1755 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1756 ac_cache_corrupted
=: ;;
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1759 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1760 ac_cache_corrupted
=: ;;
1763 if test "x$ac_old_val" != "x$ac_new_val"; then
1764 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1765 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1766 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1767 echo "$as_me: former value: $ac_old_val" >&2;}
1768 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1769 echo "$as_me: current value: $ac_new_val" >&2;}
1770 ac_cache_corrupted
=:
1773 # Pass precious variables to config.status.
1774 if test "$ac_new_set" = set; then
1776 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1777 *) ac_arg
=$ac_var=$ac_new_val ;;
1779 case " $ac_configure_args " in
1780 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1781 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1785 if $ac_cache_corrupted; then
1786 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1787 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1788 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1818 ac_cpp
='$CPP $CPPFLAGS'
1819 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1820 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1821 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1824 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1828 test "$program_prefix" != NONE
&&
1829 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1830 # Use a double $ so make ignores it.
1831 test "$program_suffix" != NONE
&&
1832 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1833 # Double any \ or $. echo might interpret backslashes.
1834 # By default was `s,x,x', remove it if useless.
1835 cat <<\_ACEOF
>conftest.
sed
1836 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1838 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1842 lispdir
='${datadir}/emacs/${version}/lisp'
1843 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1844 '${datadir}/emacs/site-lisp'
1845 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1846 etcdir
='${datadir}/emacs/${version}/etc'
1847 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1848 docdir
='${datadir}/emacs/${version}/etc'
1849 gamedir
='${localstatedir}/games/emacs'
1856 # Check whether --with-pop was given.
1857 if test "${with_pop+set}" = set; then
1863 if test "$with_pop" = yes; then
1864 cat >>confdefs.h
<<\_ACEOF
1865 #define MAIL_USE_POP 1
1872 # Check whether --with-kerberos was given.
1873 if test "${with_kerberos+set}" = set; then
1874 withval
=$with_kerberos;
1879 if test "$with_kerberos" = yes; then
1880 cat >>confdefs.h
<<\_ACEOF
1888 # Check whether --with-kerberos5 was given.
1889 if test "${with_kerberos5+set}" = set; then
1890 withval
=$with_kerberos5;
1895 if test "${with_kerberos5}" = yes; then
1896 if test "${with_kerberos}" != yes; then
1898 cat >>confdefs.h
<<\_ACEOF
1904 cat >>confdefs.h
<<\_ACEOF
1911 # Check whether --with-hesiod was given.
1912 if test "${with_hesiod+set}" = set; then
1913 withval
=$with_hesiod;
1918 if test "$with_hesiod" = yes; then
1920 cat >>confdefs.h
<<\_ACEOF
1927 # Check whether --with-sound was given.
1928 if test "${with_sound+set}" = set; then
1929 withval
=$with_sound;
1936 # Check whether --with-sync-input was given.
1937 if test "${with_sync_input+set}" = set; then
1938 withval
=$with_sync_input;
1943 if test "$with_sync_input" = yes; then
1945 cat >>confdefs.h
<<\_ACEOF
1946 #define SYNC_INPUT 1
1952 # Check whether --with-x-toolkit was given.
1953 if test "${with_x_toolkit+set}" = set; then
1954 withval
=$with_x_toolkit; case "${withval}" in
1955 y | ye |
yes ) val
=gtk
;;
1957 l | lu | luc | luci | lucid
) val
=lucid
;;
1958 a |
at | ath | athe | athen | athena
) val
=athena
;;
1959 m | mo | mot | moti | motif
) val
=motif
;;
1960 g | gt | gtk
) val
=gtk
;;
1962 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1963 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1964 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1965 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1966 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1967 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1968 { (exit 1); exit 1; }; }
1977 # Check whether --with-xpm was given.
1978 if test "${with_xpm+set}" = set; then
1985 # Check whether --with-jpeg was given.
1986 if test "${with_jpeg+set}" = set; then
1993 # Check whether --with-tiff was given.
1994 if test "${with_tiff+set}" = set; then
2001 # Check whether --with-gif was given.
2002 if test "${with_gif+set}" = set; then
2009 # Check whether --with-png was given.
2010 if test "${with_png+set}" = set; then
2017 # Check whether --with-rsvg was given.
2018 if test "${with_rsvg+set}" = set; then
2026 # Check whether --with-freetype was given.
2027 if test "${with_freetype+set}" = set; then
2028 withval
=$with_freetype;
2034 # Check whether --with-xft was given.
2035 if test "${with_xft+set}" = set; then
2042 # Check whether --with-libotf was given.
2043 if test "${with_libotf+set}" = set; then
2044 withval
=$with_libotf;
2050 # Check whether --with-m17n-flt was given.
2051 if test "${with_m17n_flt+set}" = set; then
2052 withval
=$with_m17n_flt;
2059 # Check whether --with-toolkit-scroll-bars was given.
2060 if test "${with_toolkit_scroll_bars+set}" = set; then
2061 withval
=$with_toolkit_scroll_bars;
2063 with_toolkit_scroll_bars
=yes
2067 # Check whether --with-xaw3d was given.
2068 if test "${with_xaw3d+set}" = set; then
2069 withval
=$with_xaw3d;
2075 # Check whether --with-xim was given.
2076 if test "${with_xim+set}" = set; then
2083 # Check whether --with-carbon was given.
2084 if test "${with_carbon+set}" = set; then
2085 withval
=$with_carbon;
2092 # Check whether --with-gpm was given.
2093 if test "${with_gpm+set}" = set; then
2100 # Check whether --with-dbus was given.
2101 if test "${with_dbus+set}" = set; then
2108 ## For the times when you want to build Emacs but don't have
2109 ## a suitable makeinfo, and can live without the manuals.
2111 # Check whether --with-makeinfo was given.
2112 if test "${with_makeinfo+set}" = set; then
2113 withval
=$with_makeinfo;
2120 # Check whether --with-gtk was given.
2121 if test "${with_gtk+set}" = set; then
2122 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2123 specify a toolkit." >&5
2124 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&2;}
2126 { (exit 1); exit 1; }; }
2131 # Check whether --with-gcc was given.
2132 if test "${with_gcc+set}" = set; then
2133 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2134 variable to specify a compiler." >&5
2135 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&2;}
2137 { (exit 1); exit 1; }; }
2142 # Check whether --with-pkg-config-prog was given.
2143 if test "${with_pkg_config_prog+set}" = set; then
2144 withval
=$with_pkg_config_prog;
2147 if test "X${with_pkg_config_prog}" != X
; then
2148 if test "${with_pkg_config_prog}" != yes; then
2149 PKG_CONFIG
="${with_pkg_config_prog}"
2153 # Check whether --enable-carbon-app was given.
2154 if test "${enable_carbon_app+set}" = set; then
2155 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2159 ## Enabled by default.
2160 # Check whether --enable-font-backend was given.
2161 if test "${enable_font_backend+set}" = set; then
2162 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2164 USE_FONT_BACKEND
=yes
2168 # Check whether --enable-asserts was given.
2169 if test "${enable_asserts+set}" = set; then
2170 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2176 # Check whether --enable-maintainer-mode was given.
2177 if test "${enable_maintainer_mode+set}" = set; then
2178 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2180 USE_MAINTAINER_MODE
=no
2183 if test $USE_MAINTAINER_MODE = yes; then
2190 # Check whether --enable-locallisppath was given.
2191 if test "${enable_locallisppath+set}" = set; then
2192 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2194 elif test "${enableval}" != "yes"; then
2195 locallisppath
=${enableval}
2200 #### Make srcdir absolute, if it isn't already. It's important to
2201 #### avoid running the path through pwd unnecessarily, since pwd can
2202 #### give you automounter prefixes, which can go away. We do all this
2203 #### so Emacs can find its files when run uninstalled.
2204 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2209 ## We may be able to use the $PWD environment variable to make this
2210 ## absolute. But sometimes PWD is inaccurate.
2211 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2212 ## but that tested only for a well-formed and valid PWD,
2213 ## it did not object when PWD was well-formed and valid but just wrong.
2214 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2218 srcdir
="`(cd ${srcdir}; pwd)`"
2221 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2224 #### Check if the source directory already has a configured system in it.
2225 if test `pwd` != `(cd ${srcdir} && pwd)` \
2226 && test -f "${srcdir}/src/config.h" ; then
2227 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2228 as a build directory right now; it has been configured in its own
2229 right. To configure in another directory as well, you MUST
2230 use GNU make. If you do not have GNU make, then you must
2231 now do \`make distclean' in ${srcdir},
2232 and then run $0 again." >&5
2233 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2234 as a build directory right now; it has been configured in its own
2235 right. To configure in another directory as well, you MUST
2236 use GNU make. If you do not have GNU make, then you must
2237 now do \`make distclean' in ${srcdir},
2238 and then run $0 again." >&2;}
2241 #### Given the configuration name, set machfile and opsysfile to the
2242 #### names of the m/*.h and s/*.h files we should use.
2244 ### Canonicalize the configuration name.
2247 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2248 if test -f "$ac_dir/install-sh"; then
2250 ac_install_sh
="$ac_aux_dir/install-sh -c"
2252 elif test -f "$ac_dir/install.sh"; then
2254 ac_install_sh
="$ac_aux_dir/install.sh -c"
2256 elif test -f "$ac_dir/shtool"; then
2258 ac_install_sh
="$ac_aux_dir/shtool install -c"
2262 if test -z "$ac_aux_dir"; then
2263 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2265 { (exit 1); exit 1; }; }
2268 # These three variables are undocumented and unsupported,
2269 # and are intended to be withdrawn in a future Autoconf release.
2270 # They can cause serious problems if a builder's source tree is in a directory
2271 # whose full name contains unusual characters.
2272 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2273 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2274 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2277 # Make sure we can run config.sub.
2278 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2279 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2281 { (exit 1); exit 1; }; }
2283 { echo "$as_me:$LINENO: checking build system type" >&5
2284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2285 if test "${ac_cv_build+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 ac_build_alias
=$build_alias
2289 test "x$ac_build_alias" = x
&&
2290 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2291 test "x$ac_build_alias" = x
&&
2292 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2294 { (exit 1); exit 1; }; }
2295 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2302 echo "${ECHO_T}$ac_cv_build" >&6; }
2303 case $ac_cv_build in
2305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2306 echo "$as_me: error: invalid value of canonical build" >&2;}
2307 { (exit 1); exit 1; }; };;
2310 ac_save_IFS
=$IFS; IFS
='-'
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2320 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2323 { echo "$as_me:$LINENO: checking host system type" >&5
2324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2325 if test "${ac_cv_host+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test "x$host_alias" = x
; then
2329 ac_cv_host
=$ac_cv_build
2331 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2332 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2334 { (exit 1); exit 1; }; }
2338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2339 echo "${ECHO_T}$ac_cv_host" >&6; }
2342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2343 echo "$as_me: error: invalid value of canonical host" >&2;}
2344 { (exit 1); exit 1; }; };;
2347 ac_save_IFS
=$IFS; IFS
='-'
2353 # Remember, the first character of IFS is used to create $*,
2354 # except with old shells:
2357 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361 configuration
=${host_alias-${build_alias-$host}}
2365 ### If you add support for a new configuration, add code to this
2366 ### switch statement to recognize your configuration name and select
2367 ### the appropriate operating system and machine description files.
2369 ### You would hope that you could choose an m/*.h file pretty much
2370 ### based on the machine portion of the configuration name, and an s-
2371 ### file based on the operating system portion. However, it turns out
2372 ### that each m/*.h file is pretty manufacturer-specific - for
2373 ### example hp9000s300.h is a 68000 machine;
2374 ### mips.h, pmax.h are all MIPS
2375 ### machines. So we basically have to have a special case for each
2376 ### configuration name.
2378 ### As far as handling version numbers on operating systems is
2379 ### concerned, make sure things will fail in a fixable way. If
2380 ### /etc/MACHINES doesn't say anything about version numbers, be
2381 ### prepared to handle anything reasonably. If version numbers
2382 ### matter, be sure /etc/MACHINES says something about it.
2384 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2385 ### "System V Release 4"; he writes, "The old convention encouraged
2386 ### confusion between `system' and `release' levels'."
2388 machine
='' opsys
='' unported
=no
2389 case "${canonical}" in
2394 case "${canonical}" in
2395 alpha
*-*-freebsd*) machine
=alpha
;;
2396 arm
*-*-freebsd*) machine
=arm
;;
2397 ia64-
*-freebsd*) machine
=ia64
;;
2398 sparc64-
*-freebsd*) machine
=sparc
;;
2399 powerpc-
*-freebsd*) machine
=macppc
;;
2400 i
[3456]86-*-freebsd*) machine
=intel386
;;
2401 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2405 ## FreeBSD kernel + glibc based userland
2408 case "${canonical}" in
2409 alpha
*-*-kfreebsd*) machine
=alpha
;;
2410 ia64-
*-kfreebsd*) machine
=ia64
;;
2411 sparc64-
*-kfreebsd*) machine
=sparc
;;
2412 powerpc-
*-kfreebsd*) machine
=macppc
;;
2413 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2414 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2421 if test -f /usr
/lib
/crti.o
; then
2423 cat >>confdefs.h
<<\_ACEOF
2429 case "${canonical}" in
2430 alpha
*-*-netbsd*) machine
=alpha
;;
2431 i
[3456]86-*-netbsd*) machine
=intel386
;;
2433 # This is somewhat bogus.
2434 machine
=hp9000s300
;;
2435 mips-
*-netbsd*) machine
=pmax
;;
2436 mipsel-
*-netbsd*) machine
=pmax
;;
2437 mipseb-
*-netbsd*) machine
=pmax
;;
2438 powerpc-
*-netbsd*) machine
=macppc
;;
2439 sparc
*-*-netbsd*) machine
=sparc
;;
2440 vax-
*-netbsd*) machine
=vax
;;
2441 arm-
*-netbsd*) machine
=arm
;;
2442 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2443 hppa-
*-netbsd*) machine
=hp800
;;
2450 case "${canonical}" in
2451 alpha
*-*-openbsd*) machine
=alpha
;;
2452 arm-
*-openbsd*) machine
=arm
;;
2453 hppa-
*-openbsd*) machine
=hp9000s300
;;
2454 i386-
*-openbsd*) machine
=intel386
;;
2455 m68k-
*-openbsd*) machine
=hp9000s300
;;
2456 powerpc-
*-openbsd*) machine
=macppc
;;
2457 sparc
*-*-openbsd*) machine
=sparc
;;
2458 vax-
*-openbsd*) machine
=vax
;;
2459 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2466 case "${canonical}" in
2467 i
[3456]86-*-lynxos*) machine
=intel386
;;
2468 powerpc-
*-lynxos*) machine
=powerpc
;;
2475 case "${canonical}" in
2476 i
[345]86-*-bsdi*) machine
=intel386
;;
2477 sparc-
*-bsdi*) machine
=sparc
;;
2478 powerpc-
*-bsdi*) machine
=macppc
;;
2480 case "${canonical}" in
2481 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2482 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2483 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2484 *-*-bsdi3* ) opsys
=bsdos3
;;
2485 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2489 alpha
*-*-linux-gnu* )
2490 machine
=alpha opsys
=gnu-linux
2494 machine
=arm opsys
=gnu-linux
2497 ## Apple Darwin / Mac OS X
2499 case "${canonical}" in
2500 i
[3456]86-* ) machine
=intel386
;;
2501 powerpc-
* ) machine
=powermac
;;
2505 # Define CPP as follows to make autoconf work correctly.
2506 CPP
="${CC-cc} -E -no-cpp-precomp"
2507 # Use fink packages if available.
2508 if test -d /sw
/include
&& test -d /sw
/lib
; then
2509 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2510 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2511 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2516 i
[3456]86-cubix-sysv* )
2517 machine
=intel386 opsys
=usg5-3
2520 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2521 machine
=pmax opsys
=bsd4-2
2523 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2524 machine
=pmax opsys
=bsd4-3
2527 machine
=pmax opsys
=ultrix4-3
2529 ## HP 9000 series 200 or 300
2531 machine
=hp9000s300 opsys
=bsd4-3
2533 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2535 case "`uname -r`" in
2536 ## Someone's system reports A.B8.05 for this.
2537 ## I wonder what other possibilities there are.
2538 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2539 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2540 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2541 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2542 *) machine
=hp9000s300 opsys
=hpux
;;
2546 ## HP 9000 series 700 and 800, running HP/UX
2548 machine
=hp800 opsys
=hpux
2551 machine
=hp800 opsys
=hpux8
2553 hppa
*-hp-hpux9shr* )
2554 machine
=hp800 opsys
=hpux9shr
2557 machine
=hp800 opsys
=hpux9
2559 hppa
*-hp-hpux10.2
* )
2560 machine
=hp800 opsys
=hpux10-20
2563 machine
=hp800 opsys
=hpux10
2565 hppa
*-hp-hpux1[1-9]* )
2566 machine
=hp800 opsys
=hpux11
2567 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2570 hppa
*-*-linux-gnu* )
2571 machine
=hp800 opsys
=gnu-linux
2574 ## HP 9000 series 700 and 800, running HP/UX
2576 ## Cross-compilation? Nah!
2577 case "`uname -r`" in
2578 ## Someone's system reports A.B8.05 for this.
2579 ## I wonder what other possibilities there are.
2580 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2581 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2582 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2583 *) machine
=hp800 opsys
=hpux10
;;
2587 machine
=hp800 opsys
=nextstep
2592 machine
=ibm370aix opsys
=usg5-3
2595 machine
=ibms390 opsys
=gnu-linux
2597 s390x-
*-linux-gnu* )
2598 machine
=ibms390x opsys
=gnu-linux
2600 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2601 machine
=ibmrs6000 opsys
=aix3-1
2603 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2604 machine
=ibmrs6000 opsys
=aix3-2-5
2606 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2607 machine
=ibmrs6000 opsys
=aix4-1
2609 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2610 machine
=ibmrs6000 opsys
=aix4-2
2612 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2613 machine
=ibmrs6000 opsys
=aix4-2
2615 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2616 machine
=ibmrs6000 opsys
=aix4-2
2618 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2619 machine
=ibmrs6000 opsys
=aix4-2
2621 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2622 machine
=ibmrs6000 opsys
=aix4
2624 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2625 machine
=ibmrs6000 opsys
=aix4-1
2627 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2628 machine
=ibmrs6000 opsys
=aix3-2
2632 i
[3456]86-prime-sysv* )
2633 machine
=i386 opsys
=usg5-3
2636 ## ncr machine running svr4.3.
2637 i
[3456]86-ncr-sysv4.3
)
2638 machine
=ncr386 opsys
=usg5-4-3
2641 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2642 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2643 i
[3456]86-ncr-sysv* )
2644 machine
=ncr386 opsys
=usg5-4-2
2647 ## Macintosh PowerPC
2648 powerpc
*-*-linux-gnu* )
2649 machine
=macppc opsys
=gnu-linux
2652 ## Workstations sold by MIPS
2653 ## This is not necessarily all workstations using the MIPS processor -
2654 ## Irises are produced by SGI, and DECstations by DEC.
2657 machine
=mips opsys
=bsd4-3
2660 machine
=mips opsys
=usg5-2-2
2664 m68
*-next-* | m68k-
*-nextstep* )
2665 machine
=m68k opsys
=nextstep
2670 machine
=ews4800 opsys
=ux4800
2674 mips-siemens-sysv
* | mips-sni-sysv
*)
2675 machine
=mips-siemens opsys
=usg5-4
2676 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2677 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2680 ## Silicon Graphics machines
2683 machine
=iris4d opsys
=irix6-5
2684 # Without defining _LANGUAGE_C, things get masked out in the headers
2685 # so that, for instance, grepping for `free' in stdlib.h fails and
2686 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2687 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2688 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2692 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2693 machine
=sparc opsys
=gnu-linux
2696 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2697 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2698 | rs6000-
*-solaris2*)
2699 case "${canonical}" in
2700 i
[3456]86-*-* ) machine
=intel386
;;
2701 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2702 powerpcle
* ) machine
=powerpcle
;;
2703 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2704 sparc
* ) machine
=sparc
;;
2707 case "${canonical}" in
2708 *-sunos5.3
* |
*-solaris2.3
* )
2710 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2712 *-sunos5.4
* |
*-solaris2.4
* )
2714 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2717 *-sunos5.5
* |
*-solaris2.5
* )
2719 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2722 *-sunos5.6
* |
*-solaris2.6
* )
2724 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2727 *-sunos5* |
*-solaris* )
2729 emacs_check_sunpro_c
=yes
2730 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2734 ## Watch out for a compiler that we know will not work.
2735 case "${canonical}" in
2736 *-solaris* |
*-sunos5* )
2737 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2738 ## /usr/ucb/cc doesn't work;
2739 ## we should find some other compiler that does work.
2747 machine
=sparc opsys
=nextstep
2750 ## Tandem Integrity S2
2752 machine
=tandem-s2 opsys
=usg5-3
2758 case "${canonical}" in
2759 *-bsd4.1
* ) opsys
=bsd4-1
;;
2760 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2761 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2762 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2763 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2764 *-vms* ) opsys
=vms
;;
2771 machine
=ia64 opsys
=gnu-linux
2774 ## Intel 386 machines where we don't care about the manufacturer
2777 case "${canonical}" in
2778 *-cygwin ) opsys
=cygwin
;;
2779 *-darwin* ) opsys
=darwin
2780 CPP
="${CC-cc} -E -no-cpp-precomp"
2782 *-linux-gnu* ) opsys
=gnu-linux
;;
2783 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2784 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2785 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2786 *-386bsd* ) opsys
=386bsd
;;
2787 *-nextstep* ) opsys
=nextstep
;;
2788 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2792 ## m68k Linux-based GNU system
2794 machine
=m68k opsys
=gnu-linux
2797 ## Mips Linux-based GNU system
2798 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2799 machine
=mips opsys
=gnu-linux
2803 sparc-fujitsu-sysv4
* )
2804 machine
=sparc opsys
=uxpds
2805 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2809 ## AMD x86-64 Linux-based GNU system
2810 x86_64-
*-linux-gnu* )
2811 machine
=amdx86-64 opsys
=gnu-linux
2814 ## Tensilica Xtensa Linux-based GNU system
2815 xtensa
*-*-linux-gnu* )
2816 machine
=xtensa opsys
=gnu-linux
2824 ### If the code above didn't choose an operating system, just choose
2825 ### an operating system based on the configuration name. You really
2826 ### only want to use this when you have no idea what the right
2827 ### operating system is; if you know what operating systems a machine
2828 ### runs, it's cleaner to make it explicit in the case statement
2830 if test x
"${opsys}" = x
; then
2831 case "${canonical}" in
2832 *-gnu* ) opsys
=gnu
;;
2833 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2834 *-bsd4.2
) opsys
=bsd4-2
;;
2835 *-bsd4.3
) opsys
=bsd4-3
;;
2836 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2837 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2838 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2839 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2840 *-sysv4.2uw
* ) opsys
=unixware
;;
2841 *-sysv5uw* ) opsys
=unixware
;;
2842 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2843 *-sysv4.1
* |
*-sysvr4.1
* )
2844 NON_GNU_CPP
=/usr
/lib
/cpp
2846 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2847 if [ x
$NON_GNU_CPP = x
]; then
2848 if [ -f /usr
/ccs
/lib
/cpp
]; then
2849 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2851 NON_GNU_CPP
=/lib
/cpp
2855 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2862 ### Tests for sytems that we beleive are obsolete and should be desupported.
2864 case "${machine}" in
2865 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2866 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2867 echo "and it is planned to be desupported in the next version of Emacs"
2868 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2869 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2870 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2876 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
2877 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2878 echo "and it is planned to be desupported in the next version of Emacs"
2879 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2880 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2881 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2888 if test $unported = yes; then
2889 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2890 Check \`etc/MACHINES' for recognized configuration names." >&5
2891 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2893 { (exit 1); exit 1; }; }
2896 machfile
="m/${machine}.h"
2897 opsysfile
="s/${opsys}.h"
2900 #### Choose a compiler.
2901 test -n "$CC" && cc_specified
=yes
2903 # Save the value of CFLAGS that the user specified.
2904 SPECIFIED_CFLAGS
="$CFLAGS"
2907 ac_cpp
='$CPP $CPPFLAGS'
2908 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2909 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2910 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2911 if test -n "$ac_tool_prefix"; then
2912 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2913 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2916 if test "${ac_cv_prog_CC+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 if test -n "$CC"; then
2920 ac_cv_prog_CC
="$CC" # Let the user override the test.
2922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir
=.
2927 for ac_exec_ext
in '' $ac_executable_extensions; do
2928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2940 if test -n "$CC"; then
2941 { echo "$as_me:$LINENO: result: $CC" >&5
2942 echo "${ECHO_T}$CC" >&6; }
2944 { echo "$as_me:$LINENO: result: no" >&5
2945 echo "${ECHO_T}no" >&6; }
2950 if test -z "$ac_cv_prog_CC"; then
2952 # Extract the first word of "gcc", so it can be a program name with args.
2953 set dummy gcc
; ac_word
=$2
2954 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2956 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2957 echo $ECHO_N "(cached) $ECHO_C" >&6
2959 if test -n "$ac_ct_CC"; then
2960 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2966 test -z "$as_dir" && as_dir
=.
2967 for ac_exec_ext
in '' $ac_executable_extensions; do
2968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969 ac_cv_prog_ac_ct_CC
="gcc"
2970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2979 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6; }
2984 { echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6; }
2988 if test "x$ac_ct_CC" = x
; then
2991 case $cross_compiling:$ac_tool_warned in
2993 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2994 whose name does not start with the host triplet. If you think this
2995 configuration is useful to you, please write to autoconf@gnu.org." >&5
2996 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2999 ac_tool_warned
=yes ;;
3007 if test -z "$CC"; then
3008 if test -n "$ac_tool_prefix"; then
3009 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3010 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC
="$CC" # Let the user override the test.
3019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir
=.
3024 for ac_exec_ext
in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3037 if test -n "$CC"; then
3038 { echo "$as_me:$LINENO: result: $CC" >&5
3039 echo "${ECHO_T}$CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3048 if test -z "$CC"; then
3049 # Extract the first word of "cc", so it can be a program name with args.
3050 set dummy cc
; ac_word
=$2
3051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3053 if test "${ac_cv_prog_CC+set}" = set; then
3054 echo $ECHO_N "(cached) $ECHO_C" >&6
3056 if test -n "$CC"; then
3057 ac_cv_prog_CC
="$CC" # Let the user override the test.
3060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir
=.
3065 for ac_exec_ext
in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3068 ac_prog_rejected
=yes
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 if test $ac_prog_rejected = yes; then
3080 # We found a bogon in the path, so make sure we never use it.
3081 set dummy
$ac_cv_prog_CC
3083 if test $# != 0; then
3084 # We chose a different compiler from the bogus one.
3085 # However, it has the same basename, so the bogon will be chosen
3086 # first if we set CC to just the basename; use the full file name.
3088 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3104 if test -z "$CC"; then
3105 if test -n "$ac_tool_prefix"; then
3106 for ac_prog
in cl.exe
3108 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CC+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 if test -n "$CC"; then
3116 ac_cv_prog_CC
="$CC" # Let the user override the test.
3118 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3122 test -z "$as_dir" && as_dir
=.
3123 for ac_exec_ext
in '' $ac_executable_extensions; do
3124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3125 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test -n "$CC"; then
3137 { echo "$as_me:$LINENO: result: $CC" >&5
3138 echo "${ECHO_T}$CC" >&6; }
3140 { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3145 test -n "$CC" && break
3148 if test -z "$CC"; then
3150 for ac_prog
in cl.exe
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy
$ac_prog; ac_word
=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 if test -n "$ac_ct_CC"; then
3160 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3166 test -z "$as_dir" && as_dir
=.
3167 for ac_exec_ext
in '' $ac_executable_extensions; do
3168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3169 ac_cv_prog_ac_ct_CC
="$ac_prog"
3170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3180 if test -n "$ac_ct_CC"; then
3181 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3182 echo "${ECHO_T}$ac_ct_CC" >&6; }
3184 { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3189 test -n "$ac_ct_CC" && break
3192 if test "x$ac_ct_CC" = x
; then
3195 case $cross_compiling:$ac_tool_warned in
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet. If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet. If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3203 ac_tool_warned
=yes ;;
3212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3213 See \`config.log' for more details." >&5
3214 echo "$as_me: error: no acceptable C compiler found in \$PATH
3215 See \`config.log' for more details." >&2;}
3216 { (exit 1); exit 1; }; }
3218 # Provide some information about the compiler.
3219 echo "$as_me:$LINENO: checking for C compiler version" >&5
3220 ac_compiler
=`set X $ac_compile; echo $2`
3221 { (ac_try
="$ac_compiler --version >&5"
3223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compiler --version >&5") 2>&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }
3231 { (ac_try="$ac_compiler -v >&5"
3233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3234 *) ac_try_echo
=$ac_try;;
3236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3237 (eval "$ac_compiler -v >&5") 2>&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }
3241 { (ac_try
="$ac_compiler -V >&5"
3243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_compiler -V >&5") 2>&5
3249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3250 (exit $ac_status); }
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3267 ac_clean_files_save=$ac_clean_files
3268 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3269 # Try to create an executable without -o first, disregard a.out.
3270 # It will help us diagnose broken compilers, and finding out an intuition
3272 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3273 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3274 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3276 # List of possible output files, starting from the most likely.
3277 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3278 # only as a last resort. b.out is created by i960 compilers.
3279 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3281 # The IRIX 6 linker writes into existing files which may not be
3282 # executable, retaining their permissions. Remove them first so a
3283 # subsequent execution test works.
3285 for ac_file in $ac_files
3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3294 if { (ac_try="$ac_link_default"
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3300 (eval "$ac_link_default") 2>&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; then
3304 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3305 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3306 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3307 # so that the user can short-circuit this test for compilers unknown to
3309 for ac_file
in $ac_files ''
3311 test -f "$ac_file" ||
continue
3313 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3316 # We found the default executable, but exeext='' is most
3320 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3322 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3324 # We set ac_cv_exeext here because the later test for it is not
3325 # safe: cross compilers may not add the suffix if given an `-o'
3326 # argument, so we may need to know it at that point already.
3327 # Even if this section looks crufty: it has the advantage of
3334 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3340 { echo "$as_me:$LINENO: result: $ac_file" >&5
3341 echo "${ECHO_T}$ac_file" >&6; }
3342 if test -z "$ac_file"; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.
$ac_ext >&5
3346 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3347 See \`config.log' for more details." >&5
3348 echo "$as_me: error: C compiler cannot create executables
3349 See \`config.log' for more details." >&2;}
3350 { (exit 77); exit 77; }; }
3353 ac_exeext
=$ac_cv_exeext
3355 # Check that the compiler produces executables we can run. If not, either
3356 # the compiler is broken, or we cross compile.
3357 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3358 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3359 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3360 # If not cross compiling, check that we can run a simple program.
3361 if test "$cross_compiling" != yes; then
3362 if { ac_try
='./$ac_file'
3363 { (case "(($ac_try" in
3364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_try") 2>&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3374 if test "$cross_compiling" = maybe; then
3377 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3378 If you meant to cross compile, use \`--host'.
3379 See \`config.log' for more details.
" >&5
3380 echo "$as_me: error
: cannot run C compiled programs.
3381 If you meant to cross compile
, use \
`--host'.
3382 See \`config.log
' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3387 { echo "$as_me:$LINENO: result: yes" >&5
3388 echo "${ECHO_T}yes" >&6; }
3390 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3391 ac_clean_files=$ac_clean_files_save
3392 # Check that the compiler produces executables we can run. If not, either
3393 # the compiler is broken, or we cross compile.
3394 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3395 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3396 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3397 echo "${ECHO_T}$cross_compiling" >&6; }
3399 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3400 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3401 if { (ac_try="$ac_link"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_link") 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; then
3411 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3412 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3413 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3415 for ac_file
in conftest.exe conftest conftest.
*; do
3416 test -f "$ac_file" ||
continue
3418 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3419 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3425 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3426 See \`config.log' for more details." >&5
3427 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3428 See \`config.log' for more details." >&2;}
3429 { (exit 1); exit 1; }; }
3432 rm -f conftest
$ac_cv_exeext
3433 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3434 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3436 rm -f conftest.
$ac_ext
3437 EXEEXT
=$ac_cv_exeext
3439 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3440 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3441 if test "${ac_cv_objext+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 cat >conftest.
$ac_ext <<_ACEOF
3447 cat confdefs.h
>>conftest.
$ac_ext
3448 cat >>conftest.
$ac_ext <<_ACEOF
3449 /* end confdefs.h. */
3459 rm -f conftest.o conftest.obj
3460 if { (ac_try
="$ac_compile"
3462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_compile") 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; then
3470 for ac_file in conftest.o conftest.obj conftest.*; do
3471 test -f "$ac_file" || continue;
3473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3482 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3483 See \`config.log
' for more details." >&5
3484 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3485 See \`config.log' for more details.
" >&2;}
3486 { (exit 1); exit 1; }; }
3489 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3491 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3492 echo "${ECHO_T}$ac_cv_objext" >&6; }
3493 OBJEXT=$ac_cv_objext
3495 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3496 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3497 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3498 echo $ECHO_N "(cached
) $ECHO_C" >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3531 (exit $ac_status); } && {
3532 test -z "$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3534 } && test -s conftest.$ac_objext; then
3537 echo "$as_me: failed program was
:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3544 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3547 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3548 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3549 GCC=`test $ac_compiler_gnu = yes && echo yes`
3550 ac_test_CFLAGS=${CFLAGS+set}
3551 ac_save_CFLAGS=$CFLAGS
3552 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3553 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3554 if test "${ac_cv_prog_cc_g+set}" = set; then
3555 echo $ECHO_N "(cached
) $ECHO_C" >&6
3557 ac_save_c_werror_flag=$ac_c_werror_flag
3558 ac_c_werror_flag=yes
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_c_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3595 echo "$as_me: failed program was
:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3614 rm -f conftest.$ac_objext
3615 if { (ac_try="$ac_compile"
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3621 (eval "$ac_compile") 2>conftest.er1
3623 grep -v '^ *+' conftest.er1 >conftest.err
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3627 (exit $ac_status); } && {
3628 test -z "$ac_c_werror_flag" ||
3629 test ! -s conftest.err
3630 } && test -s conftest.$ac_objext; then
3633 echo "$as_me: failed program was
:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3636 ac_c_werror_flag=$ac_save_c_werror_flag
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3662 grep -v '^ *+' conftest.er1 >conftest.err
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3666 (exit $ac_status); } && {
3667 test -z "$ac_c_werror_flag" ||
3668 test ! -s conftest.err
3669 } && test -s conftest.$ac_objext; then
3672 echo "$as_me: failed program was
:" >&5
3673 sed 's/^/| /' conftest.$ac_ext >&5
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685 ac_c_werror_flag=$ac_save_c_werror_flag
3687 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3688 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3689 if test "$ac_test_CFLAGS" = set; then
3690 CFLAGS=$ac_save_CFLAGS
3691 elif test $ac_cv_prog_cc_g = yes; then
3692 if test "$GCC" = yes; then
3698 if test "$GCC" = yes; then
3704 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3705 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3706 if test "${ac_cv_prog_cc_c89+set}" = set; then
3707 echo $ECHO_N "(cached
) $ECHO_C" >&6
3709 ac_cv_prog_cc_c89=no
3711 cat >conftest.$ac_ext <<_ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h. */
3719 #include <sys/types.h>
3720 #include <sys/stat.h>
3721 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3722 struct buf { int x; };
3723 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724 static char *e (p, i)
3730 static char *f (char * (*g) (char **, int), char **p, ...)
3735 s = g (p, va_arg (v,int));
3740 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3741 function prototypes and stuff, but not '\xHH' hex character constants.
3742 These don't provoke an error unfortunately, instead are silently treated
3743 as 'x'. The following induces an error, until -std is added to get
3744 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3745 array size at least. It's necessary to write '\x00'==0 to get something
3746 that's true only with -std. */
3747 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3749 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750 inside strings and character constants. */
3752 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3754 int test (int i, double x);
3755 struct s1 {int (*f) (int a);};
3756 struct s2 {int (*f) (double a);};
3757 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3763 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3768 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3771 CC="$ac_save_CC $ac_arg"
3772 rm -f conftest.$ac_objext
3773 if { (ac_try="$ac_compile"
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3779 (eval "$ac_compile") 2>conftest.er1
3781 grep -v '^ *+' conftest.er1 >conftest.err
3783 cat conftest.err >&5
3784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
3789 ac_cv_prog_cc_c89=$ac_arg
3791 echo "$as_me: failed program was
:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3797 rm -f core conftest.err conftest.$ac_objext
3798 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3800 rm -f conftest.$ac_ext
3805 case "x
$ac_cv_prog_cc_c89" in
3807 { echo "$as_me:$LINENO: result
: none needed
" >&5
3808 echo "${ECHO_T}none needed
" >&6; } ;;
3810 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3811 echo "${ECHO_T}unsupported
" >&6; } ;;
3813 CC="$CC $ac_cv_prog_cc_c89"
3814 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3815 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3820 ac_cpp='$CPP $CPPFLAGS'
3821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3831 ## If not using gcc, and on Solaris, and no CPP specified, see if
3832 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3833 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3834 test x"$CPP" = x; then
3835 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3836 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3838 if test "${emacs_cv_sunpro_c+set}" = set; then
3839 echo $ECHO_N "(cached
) $ECHO_C" >&6
3841 cat >conftest.$ac_ext <<_ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3859 rm -f conftest.$ac_objext conftest$ac_exeext
3860 if { (ac_try="$ac_link"
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_link") 2>conftest.er1
3868 grep -v '^ *+' conftest.er1 >conftest.err
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest$ac_exeext &&
3876 $as_test_x conftest$ac_exeext; then
3877 emacs_cv_sunpro_c=yes
3879 echo "$as_me: failed program was
:" >&5
3880 sed 's/^/| /' conftest.$ac_ext >&5
3882 emacs_cv_sunpro_c=no
3885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3886 conftest$ac_exeext conftest.$ac_ext
3889 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3890 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3892 if test x"$emacs_cv_sunpro_c" = xyes; then
3893 NON_GNU_CPP="$CC -E -Xs"
3897 #### Some systems specify a CPP to use unless we are using GCC.
3898 #### Now that we know whether we are using GCC, we can decide whether
3899 #### to use that one.
3900 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3905 #### Some systems specify a CC to use unless we are using GCC.
3906 #### Now that we know whether we are using GCC, we can decide whether
3907 #### to use that one.
3908 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3909 test x$cc_specified != xyes
3914 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3916 CC="$CC $GCC_TEST_OPTIONS"
3919 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3921 CC="$CC $NON_GCC_TEST_OPTIONS"
3925 cat >>confdefs.h <<\_ACEOF
3926 #define _GNU_SOURCE 1
3931 ac_cpp='$CPP $CPPFLAGS'
3932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3936 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3937 # On Suns, sometimes $CPP names a directory.
3938 if test -n "$CPP" && test -d "$CPP"; then
3941 if test -z "$CPP"; then
3942 if test "${ac_cv_prog_CPP+set}" = set; then
3943 echo $ECHO_N "(cached
) $ECHO_C" >&6
3945 # Double quotes because CPP needs to be expanded
3946 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3949 for ac_c_preproc_warn_flag in '' yes
3951 # Use a header file that comes with gcc, so configuring glibc
3952 # with a fresh cross-compiler works.
3953 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3954 # <limits.h> exists even on freestanding compilers.
3955 # On the NeXT, cc -E runs the code through the compiler's parser,
3956 # not just through cpp. "Syntax error
" is here to catch this case.
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3964 # include <limits.h>
3966 # include <assert.h>
3970 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3973 *) ac_try_echo=$ac_try;;
3975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3976 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3978 grep -v '^ *+' conftest.er1 >conftest.err
3980 cat conftest.err >&5
3981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3982 (exit $ac_status); } >/dev/null && {
3983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3984 test ! -s conftest.err
3988 echo "$as_me: failed program was
:" >&5
3989 sed 's/^/| /' conftest.$ac_ext >&5
3991 # Broken: fails on valid input.
3995 rm -f conftest.err conftest.$ac_ext
3997 # OK, works on sane cases. Now check whether nonexistent headers
3998 # can be detected and how.
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4005 #include <ac_nonexistent.h>
4007 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4019 (exit $ac_status); } >/dev/null && {
4020 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4021 test ! -s conftest.err
4023 # Broken: success on invalid input.
4026 echo "$as_me: failed program was
:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4029 # Passes both tests.
4034 rm -f conftest.err conftest.$ac_ext
4037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4038 rm -f conftest.err conftest.$ac_ext
4039 if $ac_preproc_ok; then
4051 { echo "$as_me:$LINENO: result
: $CPP" >&5
4052 echo "${ECHO_T}$CPP" >&6; }
4054 for ac_c_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error
" is here to catch this case.
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4069 # include <limits.h>
4071 # include <assert.h>
4075 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4083 grep -v '^ *+' conftest.er1 >conftest.err
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4087 (exit $ac_status); } >/dev/null && {
4088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4089 test ! -s conftest.err
4093 echo "$as_me: failed program was
:" >&5
4094 sed 's/^/| /' conftest.$ac_ext >&5
4096 # Broken: fails on valid input.
4100 rm -f conftest.err conftest.$ac_ext
4102 # OK, works on sane cases. Now check whether nonexistent headers
4103 # can be detected and how.
4104 cat >conftest.$ac_ext <<_ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110 #include <ac_nonexistent.h>
4112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4128 # Broken: success on invalid input.
4131 echo "$as_me: failed program was
:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4134 # Passes both tests.
4139 rm -f conftest.err conftest.$ac_ext
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then
4147 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4148 See \
`config.log' for more details." >&5
4149 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4150 See \`config.log
' for more details." >&2;}
4151 { (exit 1); exit 1; }; }
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4157 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4162 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4163 if test "${ac_cv_path_GREP+set}" = set; then
4164 echo $ECHO_N "(cached) $ECHO_C" >&6
4166 # Extract the first word of "grep ggrep" to use in msg output
4167 if test -z "$GREP"; then
4168 set dummy grep ggrep; ac_prog_name=$2
4169 if test "${ac_cv_path_GREP+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 ac_path_GREP_found=false
4173 # Loop through the user's path and
test for each of PROGNAME-LIST
4174 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4175 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4178 test -z "$as_dir" && as_dir
=.
4179 for ac_prog
in grep ggrep
; do
4180 for ac_exec_ext
in '' $ac_executable_extensions; do
4181 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4182 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4183 # Check for GNU ac_path_GREP and select it if it is found.
4184 # Check for GNU $ac_path_GREP
4185 case `"$ac_path_GREP" --version 2>&1` in
4187 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4190 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4193 cat "conftest.in" "conftest.in" >"conftest.tmp"
4194 mv "conftest.tmp" "conftest.in"
4195 cp "conftest.in" "conftest.nl"
4196 echo 'GREP' >> "conftest.nl"
4197 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4198 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4199 ac_count
=`expr $ac_count + 1`
4200 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4201 # Best one so far, save it but keep looking for a better one
4202 ac_cv_path_GREP
="$ac_path_GREP"
4203 ac_path_GREP_max
=$ac_count
4205 # 10*(2^10) chars as input seems more than enough
4206 test $ac_count -gt 10 && break
4208 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4212 $ac_path_GREP_found && break 3
4222 GREP
="$ac_cv_path_GREP"
4223 if test -z "$GREP"; then
4224 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4225 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4226 { (exit 1); exit 1; }; }
4230 ac_cv_path_GREP
=$GREP
4235 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4236 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4237 GREP
="$ac_cv_path_GREP"
4240 { echo "$as_me:$LINENO: checking for egrep" >&5
4241 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4242 if test "${ac_cv_path_EGREP+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4246 then ac_cv_path_EGREP
="$GREP -E"
4248 # Extract the first word of "egrep" to use in msg output
4249 if test -z "$EGREP"; then
4250 set dummy
egrep; ac_prog_name
=$2
4251 if test "${ac_cv_path_EGREP+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4254 ac_path_EGREP_found
=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4257 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4260 test -z "$as_dir" && as_dir
=.
4261 for ac_prog
in egrep; do
4262 for ac_exec_ext
in '' $ac_executable_extensions; do
4263 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4269 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4272 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4280 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4281 ac_count
=`expr $ac_count + 1`
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP
="$ac_path_EGREP"
4285 ac_path_EGREP_max
=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4294 $ac_path_EGREP_found && break 3
4304 EGREP
="$ac_cv_path_EGREP"
4305 if test -z "$EGREP"; then
4306 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4307 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4308 { (exit 1); exit 1; }; }
4312 ac_cv_path_EGREP
=$EGREP
4318 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4319 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4320 EGREP
="$ac_cv_path_EGREP"
4324 { echo "$as_me:$LINENO: checking for AIX" >&5
4325 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4326 cat >conftest.
$ac_ext <<_ACEOF
4329 cat confdefs.h
>>conftest.
$ac_ext
4330 cat >>conftest.
$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "yes" >/dev
/null
2>&1; then
4339 { echo "$as_me:$LINENO: result: yes" >&5
4340 echo "${ECHO_T}yes" >&6; }
4341 cat >>confdefs.h
<<\_ACEOF
4342 #define _ALL_SOURCE 1
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4352 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4353 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4354 if test "${ac_cv_header_stdc+set}" = set; then
4355 echo $ECHO_N "(cached) $ECHO_C" >&6
4357 cat >conftest.
$ac_ext <<_ACEOF
4360 cat confdefs.h
>>conftest.
$ac_ext
4361 cat >>conftest.
$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4376 rm -f conftest.
$ac_objext
4377 if { (ac_try
="$ac_compile"
4379 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4383 (eval "$ac_compile") 2>conftest.er1
4385 grep -v '^ *+' conftest.er1 >conftest.err
4387 cat conftest.err >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } && {
4390 test -z "$ac_c_werror_flag" ||
4391 test ! -s conftest.err
4392 } && test -s conftest.$ac_objext; then
4393 ac_cv_header_stdc=yes
4395 echo "$as_me: failed program was:" >&5
4396 sed 's/^/| /' conftest.$ac_ext >&5
4398 ac_cv_header_stdc=no
4401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4403 if test $ac_cv_header_stdc = yes; then
4404 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4405 cat >conftest.$ac_ext <<_ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4415 $EGREP "memchr" >/dev/null 2>&1; then
4418 ac_cv_header_stdc=no
4424 if test $ac_cv_header_stdc = yes; then
4425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4436 $EGREP "free" >/dev/null 2>&1; then
4439 ac_cv_header_stdc=no
4445 if test $ac_cv_header_stdc = yes; then
4446 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4447 if test "$cross_compiling" = yes; then
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4458 #if ((' ' & 0x0FF) == 0x020)
4459 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4460 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4462 # define ISLOWER(c) \
4463 (('a' <= (c) && (c) <= 'i') \
4464 || ('j' <= (c) && (c) <= 'r') \
4465 || ('s' <= (c) && (c) <= 'z'))
4466 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4469 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474 for (i = 0; i < 256; i++)
4475 if (XOR (islower (i), ISLOWER (i))
4476 || toupper (i) != TOUPPER (i))
4481 rm -f conftest$ac_exeext
4482 if { (ac_try="$ac_link"
4484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4485 *) ac_try_echo
=$ac_try;;
4487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4488 (eval "$ac_link") 2>&5
4490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4491 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4492 { (case "(($ac_try" in
4493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4497 (eval "$ac_try") 2>&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); }; }; then
4503 echo "$as_me: program exited with status $ac_status" >&5
4504 echo "$as_me: failed program was:" >&5
4505 sed 's/^/| /' conftest.$ac_ext >&5
4508 ac_cv_header_stdc=no
4510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4516 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4517 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4518 if test $ac_cv_header_stdc = yes; then
4520 cat >>confdefs.h <<\_ACEOF
4521 #define STDC_HEADERS 1
4526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4537 inttypes.h stdint.h unistd.h
4539 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 cat >conftest.$ac_ext <<_ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4551 $ac_includes_default
4553 #include <$ac_header>
4555 rm -f conftest.$ac_objext
4556 if { (ac_try="$ac_compile"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4562 (eval "$ac_compile") 2>conftest.er1
4564 grep -v '^ *+' conftest.er1
>conftest.err
4566 cat conftest.err
>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && {
4569 test -z "$ac_c_werror_flag" ||
4570 test ! -s conftest.err
4571 } && test -s conftest.
$ac_objext; then
4572 eval "$as_ac_Header=yes"
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.
$ac_ext >&5
4577 eval "$as_ac_Header=no"
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 ac_res
=`eval echo '${'$as_ac_Header'}'`
4583 { echo "$as_me:$LINENO: result: $ac_res" >&5
4584 echo "${ECHO_T}$ac_res" >&6; }
4585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4586 cat >>confdefs.h
<<_ACEOF
4587 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4595 if test "${ac_cv_header_minix_config_h+set}" = set; then
4596 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4597 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4598 if test "${ac_cv_header_minix_config_h+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4602 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4604 # Is the header compilable?
4605 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4606 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4607 cat >conftest.
$ac_ext <<_ACEOF
4610 cat confdefs.h
>>conftest.
$ac_ext
4611 cat >>conftest.
$ac_ext <<_ACEOF
4612 /* end confdefs.h. */
4613 $ac_includes_default
4614 #include <minix/config.h>
4616 rm -f conftest.
$ac_objext
4617 if { (ac_try
="$ac_compile"
4619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4620 *) ac_try_echo=$ac_try;;
4622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4623 (eval "$ac_compile") 2>conftest.er1
4625 grep -v '^ *+' conftest.er1 >conftest.err
4627 cat conftest.err >&5
4628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629 (exit $ac_status); } && {
4630 test -z "$ac_c_werror_flag" ||
4631 test ! -s conftest.err
4632 } && test -s conftest.$ac_objext; then
4633 ac_header_compiler=yes
4635 echo "$as_me: failed program was:" >&5
4636 sed 's/^/| /' conftest.$ac_ext >&5
4638 ac_header_compiler=no
4641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4643 echo "${ECHO_T}$ac_header_compiler" >&6; }
4645 # Is the header present?
4646 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4647 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4648 cat >conftest.$ac_ext <<_ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #include <minix/config.h>
4656 if { (ac_try="$ac_cpp conftest.$ac_ext"
4658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4659 *) ac_try_echo
=$ac_try;;
4661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4664 grep -v '^ *+' conftest.er1
>conftest.err
4666 cat conftest.err
>&5
4667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668 (exit $ac_status); } >/dev
/null
&& {
4669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4670 test ! -s conftest.err
4672 ac_header_preproc
=yes
4674 echo "$as_me: failed program was:" >&5
4675 sed 's/^/| /' conftest.
$ac_ext >&5
4677 ac_header_preproc
=no
4680 rm -f conftest.err conftest.
$ac_ext
4681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4682 echo "${ECHO_T}$ac_header_preproc" >&6; }
4684 # So? What about this header?
4685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4687 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4688 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4689 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4690 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4691 ac_header_preproc
=yes
4694 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4695 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4696 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4697 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4698 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4699 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4700 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4701 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4702 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4703 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4704 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4705 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4709 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4710 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4711 if test "${ac_cv_header_minix_config_h+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_cv_header_minix_config_h
=$ac_header_preproc
4716 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4717 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4720 if test $ac_cv_header_minix_config_h = yes; then
4727 if test "$MINIX" = yes; then
4729 cat >>confdefs.h
<<\_ACEOF
4730 #define _POSIX_SOURCE 1
4734 cat >>confdefs.h
<<\_ACEOF
4735 #define _POSIX_1_SOURCE 2
4739 cat >>confdefs.h
<<\_ACEOF
4755 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4756 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4757 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 cat >conftest.
$ac_ext <<_ACEOF
4763 cat confdefs.h
>>conftest.
$ac_ext
4764 cat >>conftest.
$ac_ext <<_ACEOF
4765 /* end confdefs.h. */
4767 # define __EXTENSIONS__ 1
4768 $ac_includes_default
4777 rm -f conftest.
$ac_objext
4778 if { (ac_try
="$ac_compile"
4780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4784 (eval "$ac_compile") 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } && {
4791 test -z "$ac_c_werror_flag" ||
4792 test ! -s conftest.err
4793 } && test -s conftest.$ac_objext; then
4794 ac_cv_safe_to_define___extensions__=yes
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_cv_safe_to_define___extensions__=no
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4804 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4805 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4806 test $ac_cv_safe_to_define___extensions__ = yes &&
4807 cat >>confdefs.h <<\_ACEOF
4808 #define __EXTENSIONS__ 1
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_PTHREAD_SEMANTICS 1
4815 cat >>confdefs.h <<\_ACEOF
4816 #define _TANDEM_SOURCE 1
4821 ### Use -Wno-pointer-sign if the compiler supports it
4822 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4823 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4824 SAVE_CFLAGS="$CFLAGS"
4825 CFLAGS="$CFLAGS -Wno-pointer-sign"
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4841 rm -f conftest.$ac_objext
4842 if { (ac_try="$ac_compile"
4844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4845 *) ac_try_echo
=$ac_try;;
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_compile") 2>conftest.er1
4850 grep -v '^ *+' conftest.er1
>conftest.err
4852 cat conftest.err
>&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } && {
4855 test -z "$ac_c_werror_flag" ||
4856 test ! -s conftest.err
4857 } && test -s conftest.
$ac_objext; then
4860 echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.
$ac_ext >&5
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test $has_option = yes; then
4868 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4870 { echo "$as_me:$LINENO: result: $has_option" >&5
4871 echo "${ECHO_T}$has_option" >&6; }
4872 CFLAGS
="$SAVE_CFLAGS"
4876 #### Some other nice autoconf tests.
4878 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4879 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4881 if test "$LN_S" = "ln -s"; then
4882 { echo "$as_me:$LINENO: result: yes" >&5
4883 echo "${ECHO_T}yes" >&6; }
4885 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4886 echo "${ECHO_T}no, using $LN_S" >&6; }
4890 ac_cpp
='$CPP $CPPFLAGS'
4891 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4892 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4893 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4894 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4895 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4896 # On Suns, sometimes $CPP names a directory.
4897 if test -n "$CPP" && test -d "$CPP"; then
4900 if test -z "$CPP"; then
4901 if test "${ac_cv_prog_CPP+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 # Double quotes because CPP needs to be expanded
4905 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4908 for ac_c_preproc_warn_flag
in '' yes
4910 # Use a header file that comes with gcc, so configuring glibc
4911 # with a fresh cross-compiler works.
4912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4913 # <limits.h> exists even on freestanding compilers.
4914 # On the NeXT, cc -E runs the code through the compiler's parser,
4915 # not just through cpp. "Syntax error" is here to catch this case.
4916 cat >conftest.
$ac_ext <<_ACEOF
4919 cat confdefs.h
>>conftest.
$ac_ext
4920 cat >>conftest.
$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4923 # include <limits.h>
4925 # include <assert.h>
4929 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4937 grep -v '^ *+' conftest.er1 >conftest.err
4939 cat conftest.err >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } >/dev/null && {
4942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4947 echo "$as_me: failed program was:" >&5
4948 sed 's/^/| /' conftest.$ac_ext >&5
4950 # Broken: fails on valid input.
4954 rm -f conftest.err conftest.$ac_ext
4956 # OK, works on sane cases. Now check whether nonexistent headers
4957 # can be detected and how.
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if { (ac_try="$ac_cpp conftest.$ac_ext"
4968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4969 *) ac_try_echo
=$ac_try;;
4971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4974 grep -v '^ *+' conftest.er1
>conftest.err
4976 cat conftest.err
>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } >/dev
/null
&& {
4979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4980 test ! -s conftest.err
4982 # Broken: success on invalid input.
4985 echo "$as_me: failed program was:" >&5
4986 sed 's/^/| /' conftest.
$ac_ext >&5
4988 # Passes both tests.
4993 rm -f conftest.err conftest.
$ac_ext
4996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4997 rm -f conftest.err conftest.
$ac_ext
4998 if $ac_preproc_ok; then
5010 { echo "$as_me:$LINENO: result: $CPP" >&5
5011 echo "${ECHO_T}$CPP" >&6; }
5013 for ac_c_preproc_warn_flag
in '' yes
5015 # Use a header file that comes with gcc, so configuring glibc
5016 # with a fresh cross-compiler works.
5017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5018 # <limits.h> exists even on freestanding compilers.
5019 # On the NeXT, cc -E runs the code through the compiler's parser,
5020 # not just through cpp. "Syntax error" is here to catch this case.
5021 cat >conftest.
$ac_ext <<_ACEOF
5024 cat confdefs.h
>>conftest.
$ac_ext
5025 cat >>conftest.
$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5028 # include <limits.h>
5030 # include <assert.h>
5034 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5042 grep -v '^ *+' conftest.er1 >conftest.err
5044 cat conftest.err >&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } >/dev/null && {
5047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5048 test ! -s conftest.err
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 # Broken: fails on valid input.
5059 rm -f conftest.err conftest.$ac_ext
5061 # OK, works on sane cases. Now check whether nonexistent headers
5062 # can be detected and how.
5063 cat >conftest.$ac_ext <<_ACEOF
5066 cat confdefs.h >>conftest.$ac_ext
5067 cat >>conftest.$ac_ext <<_ACEOF
5068 /* end confdefs.h. */
5069 #include <ac_nonexistent.h>
5071 if { (ac_try="$ac_cpp conftest.$ac_ext"
5073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5074 *) ac_try_echo
=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1
>conftest.err
5081 cat conftest.err
>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } >/dev
/null
&& {
5084 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5087 # Broken: success on invalid input.
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.
$ac_ext >&5
5093 # Passes both tests.
5098 rm -f conftest.err conftest.
$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.err conftest.
$ac_ext
5103 if $ac_preproc_ok; then
5106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5107 See \`config.log' for more details." >&5
5108 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5109 See \`config.log' for more details." >&2;}
5110 { (exit 1); exit 1; }; }
5114 ac_cpp
='$CPP $CPPFLAGS'
5115 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5116 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5117 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5119 # Find a good install program. We prefer a C program (faster),
5120 # so one script is as good as another. But avoid the broken or
5121 # incompatible versions:
5122 # SysV /etc/install, /usr/sbin/install
5123 # SunOS /usr/etc/install
5124 # IRIX /sbin/install
5126 # AmigaOS /C/install, which installs bootblocks on floppy discs
5127 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5128 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5129 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5130 # OS/2's system install, which has a completely different semantic
5131 # ./install, which can be erroneously created by make from ./install.sh.
5132 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5133 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5134 if test -z "$INSTALL"; then
5135 if test "${ac_cv_path_install+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5142 test -z "$as_dir" && as_dir
=.
5143 # Account for people who put trailing slashes in PATH elements.
5145 .
/ | .
// |
/cC
/* | \
5146 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5147 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5150 # OSF1 and SCO ODT 3.0 have their own names for install.
5151 # Don't use installbsd from OSF since it installs stuff as root
5153 for ac_prog
in ginstall scoinst
install; do
5154 for ac_exec_ext
in '' $ac_executable_extensions; do
5155 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5156 if test $ac_prog = install &&
5157 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5158 # AIX install. It has an incompatible calling convention.
5160 elif test $ac_prog = install &&
5161 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5162 # program-specific install script used by HP pwplus--don't use.
5165 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5178 if test "${ac_cv_path_install+set}" = set; then
5179 INSTALL
=$ac_cv_path_install
5181 # As a last resort, use the slow shell script. Don't cache a
5182 # value for INSTALL within a source directory, because that will
5183 # break other packages using the cache if that directory is
5184 # removed, or if the value is a relative name.
5185 INSTALL
=$ac_install_sh
5188 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5189 echo "${ECHO_T}$INSTALL" >&6; }
5191 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5192 # It thinks the first close brace ends the variable substitution.
5193 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5195 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5197 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5199 if test "x$RANLIB" = x
; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5202 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5205 if test "${ac_cv_prog_RANLIB+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -n "$RANLIB"; then
5209 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5215 test -z "$as_dir" && as_dir
=.
5216 for ac_exec_ext
in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 RANLIB
=$ac_cv_prog_RANLIB
5229 if test -n "$RANLIB"; then
5230 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5231 echo "${ECHO_T}$RANLIB" >&6; }
5233 { echo "$as_me:$LINENO: result: no" >&5
5234 echo "${ECHO_T}no" >&6; }
5239 if test -z "$ac_cv_prog_RANLIB"; then
5240 ac_ct_RANLIB
=$RANLIB
5241 # Extract the first word of "ranlib", so it can be a program name with args.
5242 set dummy ranlib
; ac_word
=$2
5243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5245 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5246 echo $ECHO_N "(cached) $ECHO_C" >&6
5248 if test -n "$ac_ct_RANLIB"; then
5249 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5255 test -z "$as_dir" && as_dir
=.
5256 for ac_exec_ext
in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5268 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5269 if test -n "$ac_ct_RANLIB"; then
5270 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5271 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5273 { echo "$as_me:$LINENO: result: no" >&5
5274 echo "${ECHO_T}no" >&6; }
5277 if test "x$ac_ct_RANLIB" = x
; then
5280 case $cross_compiling:$ac_tool_warned in
5282 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5283 whose name does not start with the host triplet. If you think this
5284 configuration is useful to you, please write to autoconf@gnu.org." >&5
5285 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5286 whose name does not start with the host triplet. If you think this
5287 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5288 ac_tool_warned
=yes ;;
5290 RANLIB
=$ac_ct_RANLIB
5293 RANLIB
="$ac_cv_prog_RANLIB"
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info
; ac_word
=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 case $INSTALL_INFO in
5306 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5328 if test -n "$INSTALL_INFO"; then
5329 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5330 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5332 { echo "$as_me:$LINENO: result: no" >&5
5333 echo "${ECHO_T}no" >&6; }
5337 # Extract the first word of "install-info", so it can be a program name with args.
5338 set dummy install-info
; ac_word
=$2
5339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5341 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5342 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 case $INSTALL_INFO in
5346 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5350 for as_dir
in /usr
/sbin
5353 test -z "$as_dir" && as_dir
=.
5354 for ac_exec_ext
in '' $ac_executable_extensions; do
5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5356 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5368 if test -n "$INSTALL_INFO"; then
5369 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5370 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5372 { echo "$as_me:$LINENO: result: no" >&5
5373 echo "${ECHO_T}no" >&6; }
5377 # Extract the first word of "install-info", so it can be a program name with args.
5378 set dummy install-info
; ac_word
=$2
5379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5381 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5382 echo $ECHO_N "(cached) $ECHO_C" >&6
5384 case $INSTALL_INFO in
5386 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5408 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5409 if test -n "$INSTALL_INFO"; then
5410 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5411 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5413 { echo "$as_me:$LINENO: result: no" >&5
5414 echo "${ECHO_T}no" >&6; }
5418 # Extract the first word of "gzip", so it can be a program name with args.
5419 set dummy
gzip; ac_word
=$2
5420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5434 test -z "$as_dir" && as_dir
=.
5435 for ac_exec_ext
in '' $ac_executable_extensions; do
5436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5437 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5449 if test -n "$GZIP_PROG"; then
5450 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5451 echo "${ECHO_T}$GZIP_PROG" >&6; }
5453 { echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6; }
5460 ## Need makeinfo >= 4.6 (?) to build the manuals.
5461 # Extract the first word of "makeinfo", so it can be a program name with args.
5462 set dummy makeinfo
; ac_word
=$2
5463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5465 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5473 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5477 test -z "$as_dir" && as_dir
=.
5478 for ac_exec_ext
in '' $ac_executable_extensions; do
5479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5480 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5492 MAKEINFO
=$ac_cv_path_MAKEINFO
5493 if test -n "$MAKEINFO"; then
5494 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5495 echo "${ECHO_T}$MAKEINFO" >&6; }
5497 { echo "$as_me:$LINENO: result: no" >&5
5498 echo "${ECHO_T}no" >&6; }
5502 if test "$MAKEINFO" != "no" && \
5503 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5507 if test "$MAKEINFO" = "no" && test "x${with_makeinfo}" != "xno"; then
5509 if test -e $srcdir/info
/emacs
; then
5512 gotinfo
="does NOT seem"
5515 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6.
5516 You will not be able to build the Emacs manuals.
5517 In Emacs releases, they are prebuilt, so this might not be a problem.
5518 Your source tree $gotinfo to have manuals in the \`info' directory.
5519 Either install a suitable version of makeinfo, or re-run configure
5520 with the \`--without-makeinfo' option. " >&5
5521 echo "$as_me: error: You do not seem to have makeinfo >= 4.6.
5522 You will not be able to build the Emacs manuals.
5523 In Emacs releases, they are prebuilt, so this might not be a problem.
5524 Your source tree $gotinfo to have manuals in the \`info' directory.
5525 Either install a suitable version of makeinfo, or re-run configure
5526 with the \`--without-makeinfo' option. " >&2;}
5527 { (exit 1); exit 1; }; }
5532 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5534 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5537 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5539 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5543 late_LDFLAGS
=$LDFLAGS
5544 if test "$GCC" = yes; then
5545 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5547 LDFLAGS
="$LDFLAGS -znocombreloc"
5550 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5551 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5552 cat >conftest.
$ac_ext <<_ACEOF
5555 rm -f conftest.
$ac_objext conftest
$ac_exeext
5556 if { (ac_try
="$ac_link"
5558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_link") 2>conftest.er1
5564 grep -v '^ *+' conftest.er1 >conftest.err
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } && {
5569 test -z "$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 } && test -s conftest$ac_exeext &&
5572 $as_test_x conftest$ac_exeext; then
5573 { echo "$as_me:$LINENO: result: yes" >&5
5574 echo "${ECHO_T}yes" >&6; }
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5579 LDFLAGS=$late_LDFLAGS
5580 { echo "$as_me:$LINENO: result: no" >&5
5581 echo "${ECHO_T}no" >&6; }
5584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5585 conftest$ac_exeext conftest.$ac_ext
5587 #### Extract some information from the operating system and machine files.
5589 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5590 - which libraries the lib-src programs will want, and
5591 - whether the GNU malloc routines are usable..." >&5
5592 echo "$as_me: checking the machine- and system-dependent files to find out
5593 - which libraries the lib-src programs will want, and
5594 - whether the GNU malloc routines are usable..." >&6;}
5596 ### First figure out CFLAGS (which we use for running the compiler here)
5597 ### and REAL_CFLAGS (which we use for real compilation).
5598 ### The two are the same except on a few systems, where they are made
5599 ### different to work around various lossages. For example,
5600 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5601 ### as implying static linking.
5603 ### If the CFLAGS env var is specified, we use that value
5604 ### instead of the default.
5606 ### It's not important that this name contain the PID; you can't run
5607 ### two configures in the same directory and have anything work
5609 tempcname="conftest.c"
5612 #include "'${srcdir}'/src/'${opsysfile}'"
5613 #include "'${srcdir}'/src/'${machfile}'"
5614 #ifndef LIBS_MACHINE
5615 #define LIBS_MACHINE
5620 #ifndef C_SWITCH_SYSTEM
5621 #define C_SWITCH_SYSTEM
5623 #ifndef C_SWITCH_MACHINE
5624 #define C_SWITCH_MACHINE
5626 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5627 configure___ c_switch_system=C_SWITCH_SYSTEM
5628 configure___ c_switch_machine=C_SWITCH_MACHINE
5631 #define LIB_X11_LIB -lX11
5634 #ifndef LIBX11_SYSTEM
5635 #define LIBX11_SYSTEM
5637 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5640 configure___ unexec=UNEXEC
5642 configure___ unexec=unexec.o
5645 #ifdef SYSTEM_MALLOC
5646 configure___ system_malloc=yes
5648 configure___ system_malloc=no
5651 #ifdef USE_MMAP_FOR_BUFFERS
5652 configure___ use_mmap_for_buffers=yes
5654 configure___ use_mmap_for_buffers=no
5657 #ifndef C_DEBUG_SWITCH
5658 #define C_DEBUG_SWITCH -g
5661 #ifndef C_OPTIMIZE_SWITCH
5663 #define C_OPTIMIZE_SWITCH -O2
5665 #define C_OPTIMIZE_SWITCH -O
5669 #ifndef C_WARNINGS_SWITCH
5670 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5673 #ifndef LD_SWITCH_MACHINE
5674 #define LD_SWITCH_MACHINE
5677 #ifndef LD_SWITCH_SYSTEM
5678 #define LD_SWITCH_SYSTEM
5681 #ifndef LD_SWITCH_X_SITE_AUX
5682 #define LD_SWITCH_X_SITE_AUX
5685 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5686 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5688 #ifdef THIS_IS_CONFIGURE
5690 /* Get the CFLAGS for tests in configure. */
5692 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5694 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5697 #else /* not THIS_IS_CONFIGURE */
5699 /* Get the CFLAGS for real compilation. */
5701 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5703 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5706 #endif /* not THIS_IS_CONFIGURE */
5709 # The value of CPP is a quoted variable reference, so we need to do this
5710 # to get its actual value...
5711 CPP=`eval "echo $CPP"`
5712 eval `${CPP} -Isrc ${tempcname} \
5713 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5714 if test "x$SPECIFIED_CFLAGS" = x; then
5715 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5716 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5718 REAL_CFLAGS="$CFLAGS"
5722 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5724 ### Make sure subsequent tests use flags consistent with the build flags.
5726 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5727 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5729 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5734 # Check whether --enable-largefile was given.
5735 if test "${enable_largefile+set}" = set; then
5736 enableval=$enable_largefile;
5739 if test "$enable_largefile" != no; then
5741 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5742 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5743 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5746 ac_cv_sys_largefile_CC=no
5747 if test "$GCC" != yes; then
5750 # IRIX 6.2 and later do not support large files by default,
5751 # so use the C compiler's -n32 option if that helps.
5752 cat >conftest.$ac_ext <<_ACEOF
5755 cat confdefs.h >>conftest.$ac_ext
5756 cat >>conftest.$ac_ext <<_ACEOF
5757 /* end confdefs.h. */
5758 #include <sys/types.h>
5759 /* Check that off_t can represent 2**63 - 1 correctly.
5760 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5761 since some C++ compilers masquerading as C compilers
5762 incorrectly reject 9223372036854775807. */
5763 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5764 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5765 && LARGE_OFF_T % 2147483647 == 1)
5775 rm -f conftest.$ac_objext
5776 if { (ac_try="$ac_compile"
5778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5779 *) ac_try_echo
=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1
>conftest.err
5786 cat conftest.err
>&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.
$ac_objext; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.
$ac_ext >&5
5800 rm -f core conftest.err conftest.
$ac_objext
5802 rm -f conftest.
$ac_objext
5803 if { (ac_try
="$ac_compile"
5805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.$ac_objext; then
5819 ac_cv_sys_largefile_CC=' -n32'; break
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5827 rm -f core conftest.err conftest.$ac_objext
5831 rm -f conftest.$ac_ext
5834 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5835 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5836 if test "$ac_cv_sys_largefile_CC" != no; then
5837 CC=$CC$ac_cv_sys_largefile_CC
5840 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5841 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5842 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5846 cat >conftest.$ac_ext <<_ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <sys/types.h>
5853 /* Check that off_t can represent 2**63 - 1 correctly.
5854 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5855 since some C++ compilers masquerading as C compilers
5856 incorrectly reject 9223372036854775807. */
5857 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5858 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5859 && LARGE_OFF_T % 2147483647 == 1)
5869 rm -f conftest.$ac_objext
5870 if { (ac_try="$ac_compile"
5872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5873 *) ac_try_echo
=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_compile") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1
>conftest.err
5880 cat conftest.err
>&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest.
$ac_objext; then
5886 ac_cv_sys_file_offset_bits
=no
; break
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.
$ac_ext >&5
5894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5895 cat >conftest.
$ac_ext <<_ACEOF
5898 cat confdefs.h
>>conftest.
$ac_ext
5899 cat >>conftest.
$ac_ext <<_ACEOF
5900 /* end confdefs.h. */
5901 #define _FILE_OFFSET_BITS 64
5902 #include <sys/types.h>
5903 /* Check that off_t can represent 2**63 - 1 correctly.
5904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5905 since some C++ compilers masquerading as C compilers
5906 incorrectly reject 9223372036854775807. */
5907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5909 && LARGE_OFF_T % 2147483647 == 1)
5919 rm -f conftest.
$ac_objext
5920 if { (ac_try
="$ac_compile"
5922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_compile") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } && {
5933 test -z "$ac_c_werror_flag" ||
5934 test ! -s conftest.err
5935 } && test -s conftest.$ac_objext; then
5936 ac_cv_sys_file_offset_bits=64; break
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 ac_cv_sys_file_offset_bits=unknown
5949 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5950 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5951 case $ac_cv_sys_file_offset_bits in #(
5954 cat >>confdefs.h <<_ACEOF
5955 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5960 if test $ac_cv_sys_file_offset_bits = unknown; then
5961 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5962 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5963 if test "${ac_cv_sys_large_files+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 cat >conftest.$ac_ext <<_ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 #include <sys/types.h>
5974 /* Check that off_t can represent 2**63 - 1 correctly.
5975 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5976 since some C++ compilers masquerading as C compilers
5977 incorrectly reject 9223372036854775807. */
5978 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5979 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5980 && LARGE_OFF_T % 2147483647 == 1)
5990 rm -f conftest.$ac_objext
5991 if { (ac_try="$ac_compile"
5993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5994 *) ac_try_echo
=$ac_try;;
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_compile") 2>conftest.er1
5999 grep -v '^ *+' conftest.er1
>conftest.err
6001 cat conftest.err
>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest.
$ac_objext; then
6007 ac_cv_sys_large_files
=no
; break
6009 echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.
$ac_ext >&5
6015 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6016 cat >conftest.
$ac_ext <<_ACEOF
6019 cat confdefs.h
>>conftest.
$ac_ext
6020 cat >>conftest.
$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6022 #define _LARGE_FILES 1
6023 #include <sys/types.h>
6024 /* Check that off_t can represent 2**63 - 1 correctly.
6025 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6026 since some C++ compilers masquerading as C compilers
6027 incorrectly reject 9223372036854775807. */
6028 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6029 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6030 && LARGE_OFF_T % 2147483647 == 1)
6040 rm -f conftest.
$ac_objext
6041 if { (ac_try
="$ac_compile"
6043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6049 grep -v '^ *+' conftest.er1 >conftest.err
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_sys_large_files=1; break
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066 ac_cv_sys_large_files=unknown
6070 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6071 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6072 case $ac_cv_sys_large_files in #(
6075 cat >>confdefs.h <<_ACEOF
6076 #define _LARGE_FILES $ac_cv_sys_large_files
6086 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6087 ### be located in either /usr/lib64 or /usr/lib.
6088 case "${canonical}" in
6089 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6090 if test -d /usr/lib64; then
6092 cat >>confdefs.h <<\_ACEOF
6093 #define HAVE_LIB64_DIR 1
6102 if test "${with_sound}" != "no"; then
6103 # Sound support for GNU/Linux and the free BSDs.
6107 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6109 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 ac_res=`eval echo '${'$as_ac_Header'}'`
6117 { echo "$as_me:$LINENO: result: $ac_res" >&5
6118 echo "${ECHO_T}$ac_res" >&6; }
6120 # Is the header compilable?
6121 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6122 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6123 cat >conftest.$ac_ext <<_ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6130 #include <$ac_header>
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6136 *) ac_try_echo
=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1
>conftest.err
6143 cat conftest.err
>&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.
$ac_objext; then
6149 ac_header_compiler
=yes
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.
$ac_ext >&5
6154 ac_header_compiler
=no
6157 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6159 echo "${ECHO_T}$ac_header_compiler" >&6; }
6161 # Is the header present?
6162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6164 cat >conftest.
$ac_ext <<_ACEOF
6167 cat confdefs.h
>>conftest.
$ac_ext
6168 cat >>conftest.
$ac_ext <<_ACEOF
6169 /* end confdefs.h. */
6170 #include <$ac_header>
6172 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } >/dev/null && {
6185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6188 ac_header_preproc=yes
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_header_preproc=no
6196 rm -f conftest.err conftest.$ac_ext
6197 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6198 echo "${ECHO_T}$ac_header_preproc" >&6; }
6200 # So? What about this header?
6201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6204 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6207 ac_header_preproc=yes
6210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6211 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6213 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6215 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6217 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6221 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 eval "$as_ac_Header=\$ac_header_preproc"
6232 ac_res=`eval echo '${'$as_ac_Header'}'`
6233 { echo "$as_me:$LINENO: result: $ac_res" >&5
6234 echo "${ECHO_T}$ac_res" >&6; }
6237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6238 cat >>confdefs.h <<_ACEOF
6239 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6246 # Emulation library used on NetBSD.
6247 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6248 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6249 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6250 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 ac_check_lib_save_LIBS=$LIBS
6253 LIBS="-lossaudio $LIBS"
6254 cat >conftest.$ac_ext <<_ACEOF
6257 cat confdefs.h >>conftest.$ac_ext
6258 cat >>conftest.$ac_ext <<_ACEOF
6259 /* end confdefs.h. */
6261 /* Override any GCC internal prototype to avoid an error.
6262 Use char because int might match the return type of a GCC
6263 builtin and then its argument prototype would still apply. */
6271 return _oss_ioctl ();
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (ac_try="$ac_link"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_link") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest
$ac_exeext &&
6293 $as_test_x conftest
$ac_exeext; then
6294 ac_cv_lib_ossaudio__oss_ioctl
=yes
6296 echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.
$ac_ext >&5
6299 ac_cv_lib_ossaudio__oss_ioctl
=no
6302 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6303 conftest
$ac_exeext conftest.
$ac_ext
6304 LIBS
=$ac_check_lib_save_LIBS
6306 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6307 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6308 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6317 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6321 # Extract the first word of "pkg-config", so it can be a program name with args.
6322 set dummy pkg-config
; ac_word
=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir
=.
6338 for ac_exec_ext
in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6352 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6353 if test -n "$PKG_CONFIG"; then
6354 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6355 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6363 if test "$PKG_CONFIG" = "no" ; then
6366 PKG_CONFIG_MIN_VERSION
=0.9.0
6367 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6368 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6369 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6371 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6372 { echo "$as_me:$LINENO: result: yes" >&5
6373 echo "${ECHO_T}yes" >&6; }
6376 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6377 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6378 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6379 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6380 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6382 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6383 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6384 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6386 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6388 { echo "$as_me:$LINENO: result: no" >&5
6389 echo "${ECHO_T}no" >&6; }
6392 ## If we have a custom action on failure, don't print errors, but
6393 ## do set a variable so people can do so.
6394 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6401 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6402 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6406 if test $succeeded = yes; then
6412 if test $HAVE_ALSA = yes; then
6413 SAVE_CFLAGS
="$CFLAGS"
6414 SAVE_LDFLAGS
="$LDFLAGS"
6415 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6416 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6417 cat >conftest.
$ac_ext <<_ACEOF
6420 cat confdefs.h
>>conftest.
$ac_ext
6421 cat >>conftest.
$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6423 #include <asoundlib.h>
6427 snd_lib_error_set_handler (0);
6432 rm -f conftest.
$ac_objext
6433 if { (ac_try
="$ac_compile"
6435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6441 grep -v '^ *+' conftest.er1 >conftest.err
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 emacs_alsa_normal=yes
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 emacs_alsa_normal=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 if test "$emacs_alsa_normal" != yes; then
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 #include <alsa/asoundlib.h>
6469 snd_lib_error_set_handler (0);
6474 rm -f conftest.$ac_objext
6475 if { (ac_try="$ac_compile"
6477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6478 *) ac_try_echo
=$ac_try;;
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_compile") 2>conftest.er1
6483 grep -v '^ *+' conftest.er1
>conftest.err
6485 cat conftest.err
>&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } && {
6488 test -z "$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 } && test -s conftest.
$ac_objext; then
6491 emacs_alsa_subdir
=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.
$ac_ext >&5
6496 emacs_alsa_subdir
=no
6499 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6500 if test "$emacs_alsa_subdir" != yes; then
6501 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6502 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6503 { (exit 1); exit 1; }; }
6505 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6508 CFLAGS
="$SAVE_CFLAGS"
6509 LDFLAGS
="$SAVE_LDFLAGS"
6510 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6511 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6513 cat >>confdefs.h
<<\_ACEOF
6546 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6547 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6548 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6549 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6552 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6554 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6556 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6557 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 ac_res
=`eval echo '${'$as_ac_Header'}'`
6560 { echo "$as_me:$LINENO: result: $ac_res" >&5
6561 echo "${ECHO_T}$ac_res" >&6; }
6563 # Is the header compilable?
6564 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6566 cat >conftest.
$ac_ext <<_ACEOF
6569 cat confdefs.h
>>conftest.
$ac_ext
6570 cat >>conftest.
$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6573 #include <$ac_header>
6575 rm -f conftest.
$ac_objext
6576 if { (ac_try
="$ac_compile"
6578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_header_compiler=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_header_compiler=no
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6602 echo "${ECHO_T}$ac_header_compiler" >&6; }
6604 # Is the header present?
6605 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6606 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6607 cat >conftest.$ac_ext <<_ACEOF
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <$ac_header>
6615 if { (ac_try="$ac_cpp conftest.$ac_ext"
6617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6618 *) ac_try_echo
=$ac_try;;
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6623 grep -v '^ *+' conftest.er1
>conftest.err
6625 cat conftest.err
>&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } >/dev
/null
&& {
6628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6631 ac_header_preproc
=yes
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.
$ac_ext >&5
6636 ac_header_preproc
=no
6639 rm -f conftest.err conftest.
$ac_ext
6640 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6; }
6643 # So? What about this header?
6644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6650 ac_header_preproc
=yes
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6654 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6656 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6658 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6660 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6664 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6670 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6671 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 eval "$as_ac_Header=\$ac_header_preproc"
6675 ac_res
=`eval echo '${'$as_ac_Header'}'`
6676 { echo "$as_me:$LINENO: result: $ac_res" >&5
6677 echo "${ECHO_T}$ac_res" >&6; }
6680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6681 cat >>confdefs.h
<<_ACEOF
6682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6691 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6692 cat >conftest.
$ac_ext <<_ACEOF
6695 cat confdefs.h
>>conftest.
$ac_ext
6696 cat >>conftest.
$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/personality.h>
6702 personality (PER_LINUX32)
6707 rm -f conftest.
$ac_objext
6708 if { (ac_try
="$ac_compile"
6710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_compile") 2>conftest.er1
6716 grep -v '^ *+' conftest.er1 >conftest.err
6718 cat conftest.err >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); } && {
6721 test -z "$ac_c_werror_flag" ||
6722 test ! -s conftest.err
6723 } && test -s conftest.$ac_objext; then
6724 emacs_cv_personality_linux32=yes
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 emacs_cv_personality_linux32=no
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6734 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6736 if test $emacs_cv_personality_linux32 = yes; then
6738 cat >>confdefs.h <<\_ACEOF
6739 #define HAVE_PERSONALITY_LINUX32 1
6745 for ac_header in term.h
6747 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.$ac_ext <<_ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 #include <$ac_header>
6761 if { (ac_try="$ac_cpp conftest.$ac_ext"
6763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6764 *) ac_try_echo
=$ac_try;;
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6769 grep -v '^ *+' conftest.er1
>conftest.err
6771 cat conftest.err
>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev
/null
&& {
6774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6777 eval "$as_ac_Header=yes"
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.
$ac_ext >&5
6782 eval "$as_ac_Header=no"
6785 rm -f conftest.err conftest.
$ac_ext
6787 ac_res
=`eval echo '${'$as_ac_Header'}'`
6788 { echo "$as_me:$LINENO: result: $ac_res" >&5
6789 echo "${ECHO_T}$ac_res" >&6; }
6790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6791 cat >>confdefs.h
<<_ACEOF
6792 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6799 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6800 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6801 if test "${ac_cv_header_stdc+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 cat >conftest.
$ac_ext <<_ACEOF
6807 cat confdefs.h
>>conftest.
$ac_ext
6808 cat >>conftest.
$ac_ext <<_ACEOF
6809 /* end confdefs.h. */
6823 rm -f conftest.
$ac_objext
6824 if { (ac_try
="$ac_compile"
6826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6827 *) ac_try_echo=$ac_try;;
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830 (eval "$ac_compile") 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } && {
6837 test -z "$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 } && test -s conftest.$ac_objext; then
6840 ac_cv_header_stdc=yes
6842 echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6845 ac_cv_header_stdc=no
6848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 if test $ac_cv_header_stdc = yes; then
6851 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then
6865 ac_cv_header_stdc=no
6871 if test $ac_cv_header_stdc = yes; then
6872 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873 cat >conftest.$ac_ext <<_ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6883 $EGREP "free" >/dev/null 2>&1; then
6886 ac_cv_header_stdc=no
6892 if test $ac_cv_header_stdc = yes; then
6893 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6894 if test "$cross_compiling" = yes; then
6897 cat >conftest.$ac_ext <<_ACEOF
6900 cat confdefs.h >>conftest.$ac_ext
6901 cat >>conftest.$ac_ext <<_ACEOF
6902 /* end confdefs.h. */
6905 #if ((' ' & 0x0FF) == 0x020)
6906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6909 # define ISLOWER(c) \
6910 (('a' <= (c) && (c) <= 'i') \
6911 || ('j' <= (c) && (c) <= 'r') \
6912 || ('s' <= (c) && (c) <= 'z'))
6913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6921 for (i = 0; i < 256; i++)
6922 if (XOR (islower (i), ISLOWER (i))
6923 || toupper (i) != TOUPPER (i))
6928 rm -f conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6932 *) ac_try_echo
=$ac_try;;
6934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6939 { (case "(($ac_try" in
6940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_try") 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); }; }; then
6950 echo "$as_me: program exited with status $ac_status" >&5
6951 echo "$as_me: failed program was:" >&5
6952 sed 's/^/| /' conftest.$ac_ext >&5
6955 ac_cv_header_stdc=no
6957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6963 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6964 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6965 if test $ac_cv_header_stdc = yes; then
6967 cat >>confdefs.h <<\_ACEOF
6968 #define STDC_HEADERS 1
6973 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6974 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6975 if test "${ac_cv_header_time+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 #include <sys/types.h>
6985 #include <sys/time.h>
6991 if ((struct tm *) 0)
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
7000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7001 *) ac_try_echo
=$ac_try;;
7003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_compile") 2>conftest.er1
7006 grep -v '^ *+' conftest.er1
>conftest.err
7008 cat conftest.err
>&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } && {
7011 test -z "$ac_c_werror_flag" ||
7012 test ! -s conftest.err
7013 } && test -s conftest.
$ac_objext; then
7014 ac_cv_header_time
=yes
7016 echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.
$ac_ext >&5
7019 ac_cv_header_time
=no
7022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7024 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7025 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7026 if test $ac_cv_header_time = yes; then
7028 cat >>confdefs.h
<<\_ACEOF
7029 #define TIME_WITH_SYS_TIME 1
7034 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7035 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7036 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7039 cat >conftest.
$ac_ext <<_ACEOF
7042 cat confdefs.h
>>conftest.
$ac_ext
7043 cat >>conftest.
$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 $ac_includes_default
7057 rm -f conftest.
$ac_objext
7058 if { (ac_try
="$ac_compile"
7060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_have_decl_sys_siglist=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_have_decl_sys_siglist=no
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7085 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7086 if test $ac_cv_have_decl_sys_siglist = yes; then
7088 cat >>confdefs.h <<_ACEOF
7089 #define HAVE_DECL_SYS_SIGLIST 1
7094 cat >>confdefs.h <<_ACEOF
7095 #define HAVE_DECL_SYS_SIGLIST 0
7102 if test $ac_cv_have_decl_sys_siglist != yes; then
7103 # For Tru64, at least:
7104 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7105 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7106 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 $ac_includes_default
7119 #ifndef __sys_siglist
7120 (void) __sys_siglist;
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7131 *) ac_try_echo
=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.
$ac_objext; then
7144 ac_cv_have_decl___sys_siglist
=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.
$ac_ext >&5
7149 ac_cv_have_decl___sys_siglist
=no
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7155 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7156 if test $ac_cv_have_decl___sys_siglist = yes; then
7158 cat >>confdefs.h
<<_ACEOF
7159 #define HAVE_DECL___SYS_SIGLIST 1
7164 cat >>confdefs.h
<<_ACEOF
7165 #define HAVE_DECL___SYS_SIGLIST 0
7172 if test $ac_cv_have_decl___sys_siglist = yes; then
7174 cat >>confdefs.h
<<\_ACEOF
7175 #define sys_siglist __sys_siglist
7180 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7181 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7182 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 cat >conftest.
$ac_ext <<_ACEOF
7188 cat confdefs.h
>>conftest.
$ac_ext
7189 cat >>conftest.
$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 #include <sys/types.h>
7192 #include <sys/wait.h>
7194 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7197 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7205 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7210 rm -f conftest.
$ac_objext
7211 if { (ac_try
="$ac_compile"
7213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7214 *) ac_try_echo=$ac_try;;
7216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7217 (eval "$ac_compile") 2>conftest.er1
7219 grep -v '^ *+' conftest.er1 >conftest.err
7221 cat conftest.err >&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && {
7224 test -z "$ac_c_werror_flag" ||
7225 test ! -s conftest.err
7226 } && test -s conftest.$ac_objext; then
7227 ac_cv_header_sys_wait_h=yes
7229 echo "$as_me: failed program was:" >&5
7230 sed 's/^/| /' conftest.$ac_ext >&5
7232 ac_cv_header_sys_wait_h=no
7235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7238 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7239 if test $ac_cv_header_sys_wait_h = yes; then
7241 cat >>confdefs.h <<\_ACEOF
7242 #define HAVE_SYS_WAIT_H 1
7248 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7249 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7250 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7251 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 #ifdef TIME_WITH_SYS_TIME
7260 #include <sys/time.h>
7263 #ifdef HAVE_SYS_TIME_H
7264 #include <sys/time.h>
7275 static struct utimbuf x; x.actime = x.modtime;
7280 rm -f conftest.$ac_objext
7281 if { (ac_try="$ac_compile"
7283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7284 *) ac_try_echo
=$ac_try;;
7286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7287 (eval "$ac_compile") 2>conftest.er1
7289 grep -v '^ *+' conftest.er1
>conftest.err
7291 cat conftest.err
>&5
7292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293 (exit $ac_status); } && {
7294 test -z "$ac_c_werror_flag" ||
7295 test ! -s conftest.err
7296 } && test -s conftest.
$ac_objext; then
7297 emacs_cv_struct_utimbuf
=yes
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.
$ac_ext >&5
7302 emacs_cv_struct_utimbuf
=no
7305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7307 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7308 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7309 if test $emacs_cv_struct_utimbuf = yes; then
7311 cat >>confdefs.h
<<\_ACEOF
7312 #define HAVE_STRUCT_UTIMBUF 1
7317 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7318 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7319 if test "${ac_cv_type_signal+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7322 cat >conftest.
$ac_ext <<_ACEOF
7325 cat confdefs.h
>>conftest.
$ac_ext
7326 cat >>conftest.
$ac_ext <<_ACEOF
7327 /* end confdefs.h. */
7328 #include <sys/types.h>
7334 return *(signal (0, 0)) (0) == 1;
7339 rm -f conftest.
$ac_objext
7340 if { (ac_try
="$ac_compile"
7342 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
7356 ac_cv_type_signal=int
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 ac_cv_type_signal=void
7364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7367 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7369 cat >>confdefs.h <<_ACEOF
7370 #define RETSIGTYPE $ac_cv_type_signal
7375 { echo "$as_me:$LINENO: checking for speed_t" >&5
7376 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7377 if test "${emacs_cv_speed_t+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <termios.h>
7395 rm -f conftest.$ac_objext
7396 if { (ac_try="$ac_compile"
7398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7399 *) ac_try_echo
=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1
>conftest.err
7406 cat conftest.err
>&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.
$ac_objext; then
7412 emacs_cv_speed_t
=yes
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.
$ac_ext >&5
7420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7422 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7423 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7424 if test $emacs_cv_speed_t = yes; then
7426 cat >>confdefs.h
<<\_ACEOF
7427 #define HAVE_SPEED_T 1
7432 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7433 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_timeval+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.
$ac_ext <<_ACEOF
7440 cat confdefs.h
>>conftest.
$ac_ext
7441 cat >>conftest.
$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #ifdef TIME_WITH_SYS_TIME
7444 #include <sys/time.h>
7447 #ifdef HAVE_SYS_TIME_H
7448 #include <sys/time.h>
7456 static struct timeval x; x.tv_sec = x.tv_usec;
7461 rm -f conftest.
$ac_objext
7462 if { (ac_try
="$ac_compile"
7464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7465 *) ac_try_echo=$ac_try;;
7467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7468 (eval "$ac_compile") 2>conftest.er1
7470 grep -v '^ *+' conftest.er1 >conftest.err
7472 cat conftest.err >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); } && {
7475 test -z "$ac_c_werror_flag" ||
7476 test ! -s conftest.err
7477 } && test -s conftest.$ac_objext; then
7478 emacs_cv_struct_timeval=yes
7480 echo "$as_me: failed program was:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7483 emacs_cv_struct_timeval=no
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7488 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7489 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7490 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7491 if test $emacs_cv_struct_timeval = yes; then
7493 cat >>confdefs.h <<\_ACEOF
7494 #define HAVE_TIMEVAL 1
7499 { echo "$as_me:$LINENO: checking for struct exception" >&5
7500 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7501 if test "${emacs_cv_struct_exception+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.$ac_ext <<_ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7514 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7519 rm -f conftest.$ac_objext
7520 if { (ac_try="$ac_compile"
7522 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7523 *) ac_try_echo
=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1
>conftest.err
7530 cat conftest.err
>&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.
$ac_objext; then
7536 emacs_cv_struct_exception
=yes
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.
$ac_ext >&5
7541 emacs_cv_struct_exception
=no
7544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7546 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7547 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7548 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7549 if test $emacs_cv_struct_exception != yes; then
7551 cat >>confdefs.h
<<\_ACEOF
7552 #define NO_MATHERR 1
7558 for ac_header
in sys
/socket.h
7560 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7561 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7564 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7565 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_res
=`eval echo '${'$as_ac_Header'}'`
7568 { echo "$as_me:$LINENO: result: $ac_res" >&5
7569 echo "${ECHO_T}$ac_res" >&6; }
7571 # Is the header compilable?
7572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7574 cat >conftest.
$ac_ext <<_ACEOF
7577 cat confdefs.h
>>conftest.
$ac_ext
7578 cat >>conftest.
$ac_ext <<_ACEOF
7579 /* end confdefs.h. */
7580 $ac_includes_default
7581 #include <$ac_header>
7583 rm -f conftest.
$ac_objext
7584 if { (ac_try
="$ac_compile"
7586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1 >conftest.err
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.$ac_objext; then
7600 ac_header_compiler=yes
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7605 ac_header_compiler=no
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7610 echo "${ECHO_T}$ac_header_compiler" >&6; }
7612 # Is the header present?
7613 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7614 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 #include <$ac_header>
7623 if { (ac_try="$ac_cpp conftest.$ac_ext"
7625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7626 *) ac_try_echo
=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7631 grep -v '^ *+' conftest.er1
>conftest.err
7633 cat conftest.err
>&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } >/dev
/null
&& {
7636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7639 ac_header_preproc
=yes
7641 echo "$as_me: failed program was:" >&5
7642 sed 's/^/| /' conftest.
$ac_ext >&5
7644 ac_header_preproc
=no
7647 rm -f conftest.err conftest.
$ac_ext
7648 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7649 echo "${ECHO_T}$ac_header_preproc" >&6; }
7651 # So? What about this header?
7652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7655 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7658 ac_header_preproc
=yes
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7662 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7664 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7666 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7668 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7672 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7678 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 eval "$as_ac_Header=\$ac_header_preproc"
7683 ac_res
=`eval echo '${'$as_ac_Header'}'`
7684 { echo "$as_me:$LINENO: result: $ac_res" >&5
7685 echo "${ECHO_T}$ac_res" >&6; }
7688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7689 cat >>confdefs.h
<<_ACEOF
7690 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 for ac_header
in net
/if.h
7700 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7703 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 cat >conftest.
$ac_ext <<_ACEOF
7709 cat confdefs.h
>>conftest.
$ac_ext
7710 cat >>conftest.
$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7712 $ac_includes_default
7713 #if HAVE_SYS_SOCKET_H
7714 #include <sys/socket.h>
7717 #include <$ac_header>
7719 rm -f conftest.
$ac_objext
7720 if { (ac_try
="$ac_compile"
7722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726 (eval "$ac_compile") 2>conftest.er1
7728 grep -v '^ *+' conftest.er1 >conftest.err
7730 cat conftest.err >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); } && {
7733 test -z "$ac_c_werror_flag" ||
7734 test ! -s conftest.err
7735 } && test -s conftest.$ac_objext; then
7736 eval "$as_ac_Header=yes"
7738 echo "$as_me: failed program was:" >&5
7739 sed 's/^/| /' conftest.$ac_ext >&5
7741 eval "$as_ac_Header=no"
7744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7746 ac_res=`eval echo '${'$as_ac_Header'}'`
7747 { echo "$as_me:$LINENO: result: $ac_res" >&5
7748 echo "${ECHO_T}$ac_res" >&6; }
7749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7759 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7760 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7761 if test "${ac_cv_struct_tm+set}" = set; then
7762 echo $ECHO_N "(cached) $ECHO_C" >&6
7764 cat >conftest.$ac_ext <<_ACEOF
7767 cat confdefs.h >>conftest.$ac_ext
7768 cat >>conftest.$ac_ext <<_ACEOF
7769 /* end confdefs.h. */
7770 #include <sys/types.h>
7777 int *p = &tm.tm_sec;
7783 rm -f conftest.$ac_objext
7784 if { (ac_try="$ac_compile"
7786 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7787 *) ac_try_echo
=$ac_try;;
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_compile") 2>conftest.er1
7792 grep -v '^ *+' conftest.er1
>conftest.err
7794 cat conftest.err
>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest.
$ac_objext; then
7800 ac_cv_struct_tm
=time.h
7802 echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.
$ac_ext >&5
7805 ac_cv_struct_tm
=sys
/time.h
7808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7810 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7811 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7812 if test $ac_cv_struct_tm = sys
/time.h
; then
7814 cat >>confdefs.h
<<\_ACEOF
7815 #define TM_IN_SYS_TIME 1
7820 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7821 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7822 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7825 cat >conftest.
$ac_ext <<_ACEOF
7828 cat confdefs.h
>>conftest.
$ac_ext
7829 cat >>conftest.
$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 #include <sys/types.h>
7832 #include <$ac_cv_struct_tm>
7838 static struct tm ac_aggr;
7839 if (ac_aggr.tm_zone)
7845 rm -f conftest.
$ac_objext
7846 if { (ac_try
="$ac_compile"
7848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_member_struct_tm_tm_zone=yes
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 #include <sys/types.h>
7874 #include <$ac_cv_struct_tm>
7880 static struct tm ac_aggr;
7881 if (sizeof ac_aggr.tm_zone)
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7891 *) ac_try_echo
=$ac_try;;
7893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7894 (eval "$ac_compile") 2>conftest.er1
7896 grep -v '^ *+' conftest.er1
>conftest.err
7898 cat conftest.err
>&5
7899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7900 (exit $ac_status); } && {
7901 test -z "$ac_c_werror_flag" ||
7902 test ! -s conftest.err
7903 } && test -s conftest.
$ac_objext; then
7904 ac_cv_member_struct_tm_tm_zone
=yes
7906 echo "$as_me: failed program was:" >&5
7907 sed 's/^/| /' conftest.
$ac_ext >&5
7909 ac_cv_member_struct_tm_tm_zone
=no
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7915 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7917 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7921 cat >>confdefs.h
<<_ACEOF
7922 #define HAVE_STRUCT_TM_TM_ZONE 1
7928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7930 cat >>confdefs.h
<<\_ACEOF
7931 #define HAVE_TM_ZONE 1
7935 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7936 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7937 if test "${ac_cv_have_decl_tzname+set}" = set; then
7938 echo $ECHO_N "(cached) $ECHO_C" >&6
7940 cat >conftest.
$ac_ext <<_ACEOF
7943 cat confdefs.h
>>conftest.
$ac_ext
7944 cat >>conftest.
$ac_ext <<_ACEOF
7945 /* end confdefs.h. */
7959 rm -f conftest.
$ac_objext
7960 if { (ac_try
="$ac_compile"
7962 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
7968 grep -v '^ *+' conftest.er1 >conftest.err
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
7976 ac_cv_have_decl_tzname=yes
7978 echo "$as_me: failed program was:" >&5
7979 sed 's/^/| /' conftest.$ac_ext >&5
7981 ac_cv_have_decl_tzname=no
7984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7988 if test $ac_cv_have_decl_tzname = yes; then
7990 cat >>confdefs.h <<_ACEOF
7991 #define HAVE_DECL_TZNAME 1
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_DECL_TZNAME 0
8004 { echo "$as_me:$LINENO: checking for tzname" >&5
8005 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8006 if test "${ac_cv_var_tzname+set}" = set; then
8007 echo $ECHO_N "(cached) $ECHO_C" >&6
8009 cat >conftest.$ac_ext <<_ACEOF
8012 cat confdefs.h >>conftest.$ac_ext
8013 cat >>conftest.$ac_ext <<_ACEOF
8014 /* end confdefs.h. */
8016 #if !HAVE_DECL_TZNAME
8017 extern char *tzname[];
8023 return tzname[0][0];
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (ac_try="$ac_link"
8031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8032 *) ac_try_echo
=$ac_try;;
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035 (eval "$ac_link") 2>conftest.er1
8037 grep -v '^ *+' conftest.er1
>conftest.err
8039 cat conftest.err
>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } && {
8042 test -z "$ac_c_werror_flag" ||
8043 test ! -s conftest.err
8044 } && test -s conftest
$ac_exeext &&
8045 $as_test_x conftest
$ac_exeext; then
8046 ac_cv_var_tzname
=yes
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.
$ac_ext >&5
8054 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8055 conftest
$ac_exeext conftest.
$ac_ext
8057 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8058 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8059 if test $ac_cv_var_tzname = yes; then
8061 cat >>confdefs.h
<<\_ACEOF
8062 #define HAVE_TZNAME 1
8068 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8069 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8070 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8071 echo $ECHO_N "(cached) $ECHO_C" >&6
8073 cat >conftest.
$ac_ext <<_ACEOF
8076 cat confdefs.h
>>conftest.
$ac_ext
8077 cat >>conftest.
$ac_ext <<_ACEOF
8078 /* end confdefs.h. */
8084 static struct tm ac_aggr;
8085 if (ac_aggr.tm_gmtoff)
8091 rm -f conftest.
$ac_objext
8092 if { (ac_try
="$ac_compile"
8094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8095 *) ac_try_echo=$ac_try;;
8097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8098 (eval "$ac_compile") 2>conftest.er1
8100 grep -v '^ *+' conftest.er1 >conftest.err
8102 cat conftest.err >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); } && {
8105 test -z "$ac_c_werror_flag" ||
8106 test ! -s conftest.err
8107 } && test -s conftest.$ac_objext; then
8108 ac_cv_member_struct_tm_tm_gmtoff=yes
8110 echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8124 static struct tm ac_aggr;
8125 if (sizeof ac_aggr.tm_gmtoff)
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8135 *) ac_try_echo
=$ac_try;;
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8140 grep -v '^ *+' conftest.er1
>conftest.err
8142 cat conftest.err
>&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } && {
8145 test -z "$ac_c_werror_flag" ||
8146 test ! -s conftest.err
8147 } && test -s conftest.
$ac_objext; then
8148 ac_cv_member_struct_tm_tm_gmtoff
=yes
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.
$ac_ext >&5
8153 ac_cv_member_struct_tm_tm_gmtoff
=no
8156 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8161 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8162 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8163 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8165 cat >>confdefs.h
<<\_ACEOF
8166 #define HAVE_TM_GMTOFF 1
8171 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8172 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8173 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8176 cat >conftest.
$ac_ext <<_ACEOF
8179 cat confdefs.h
>>conftest.
$ac_ext
8180 cat >>conftest.
$ac_ext <<_ACEOF
8181 /* end confdefs.h. */
8182 $ac_includes_default
8183 #if HAVE_SYS_SOCKET_H
8184 #include <sys/socket.h>
8193 static struct ifreq ac_aggr;
8194 if (ac_aggr.ifr_flags)
8200 rm -f conftest.
$ac_objext
8201 if { (ac_try
="$ac_compile"
8203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_compile") 2>conftest.er1
8209 grep -v '^ *+' conftest.er1 >conftest.err
8211 cat conftest.err >&5
8212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8213 (exit $ac_status); } && {
8214 test -z "$ac_c_werror_flag" ||
8215 test ! -s conftest.err
8216 } && test -s conftest.$ac_objext; then
8217 ac_cv_member_struct_ifreq_ifr_flags=yes
8219 echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8222 cat >conftest.$ac_ext <<_ACEOF
8225 cat confdefs.h >>conftest.$ac_ext
8226 cat >>conftest.$ac_ext <<_ACEOF
8227 /* end confdefs.h. */
8228 $ac_includes_default
8229 #if HAVE_SYS_SOCKET_H
8230 #include <sys/socket.h>
8239 static struct ifreq ac_aggr;
8240 if (sizeof ac_aggr.ifr_flags)
8246 rm -f conftest.$ac_objext
8247 if { (ac_try="$ac_compile"
8249 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8250 *) ac_try_echo
=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1
>conftest.err
8257 cat conftest.err
>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.
$ac_objext; then
8263 ac_cv_member_struct_ifreq_ifr_flags
=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.
$ac_ext >&5
8268 ac_cv_member_struct_ifreq_ifr_flags
=no
8271 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8277 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8278 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8280 cat >>confdefs.h
<<_ACEOF
8281 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8286 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8287 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8288 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8289 echo $ECHO_N "(cached) $ECHO_C" >&6
8291 cat >conftest.
$ac_ext <<_ACEOF
8294 cat confdefs.h
>>conftest.
$ac_ext
8295 cat >>conftest.
$ac_ext <<_ACEOF
8296 /* end confdefs.h. */
8297 $ac_includes_default
8298 #if HAVE_SYS_SOCKET_H
8299 #include <sys/socket.h>
8308 static struct ifreq ac_aggr;
8309 if (ac_aggr.ifr_hwaddr)
8315 rm -f conftest.
$ac_objext
8316 if { (ac_try
="$ac_compile"
8318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8337 cat >conftest.$ac_ext <<_ACEOF
8340 cat confdefs.h >>conftest.$ac_ext
8341 cat >>conftest.$ac_ext <<_ACEOF
8342 /* end confdefs.h. */
8343 $ac_includes_default
8344 #if HAVE_SYS_SOCKET_H
8345 #include <sys/socket.h>
8354 static struct ifreq ac_aggr;
8355 if (sizeof ac_aggr.ifr_hwaddr)
8361 rm -f conftest.$ac_objext
8362 if { (ac_try="$ac_compile"
8364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8365 *) ac_try_echo
=$ac_try;;
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_compile") 2>conftest.er1
8370 grep -v '^ *+' conftest.er1
>conftest.err
8372 cat conftest.err
>&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); } && {
8375 test -z "$ac_c_werror_flag" ||
8376 test ! -s conftest.err
8377 } && test -s conftest.
$ac_objext; then
8378 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.
$ac_ext >&5
8383 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8391 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8392 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8393 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8395 cat >>confdefs.h
<<_ACEOF
8396 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8401 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8402 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8403 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8404 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 cat >conftest.
$ac_ext <<_ACEOF
8409 cat confdefs.h
>>conftest.
$ac_ext
8410 cat >>conftest.
$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 $ac_includes_default
8413 #if HAVE_SYS_SOCKET_H
8414 #include <sys/socket.h>
8423 static struct ifreq ac_aggr;
8424 if (ac_aggr.ifr_netmask)
8430 rm -f conftest.
$ac_objext
8431 if { (ac_try
="$ac_compile"
8433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437 (eval "$ac_compile") 2>conftest.er1
8439 grep -v '^ *+' conftest.er1 >conftest.err
8441 cat conftest.err >&5
8442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443 (exit $ac_status); } && {
8444 test -z "$ac_c_werror_flag" ||
8445 test ! -s conftest.err
8446 } && test -s conftest.$ac_objext; then
8447 ac_cv_member_struct_ifreq_ifr_netmask=yes
8449 echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8452 cat >conftest.$ac_ext <<_ACEOF
8455 cat confdefs.h >>conftest.$ac_ext
8456 cat >>conftest.$ac_ext <<_ACEOF
8457 /* end confdefs.h. */
8458 $ac_includes_default
8459 #if HAVE_SYS_SOCKET_H
8460 #include <sys/socket.h>
8469 static struct ifreq ac_aggr;
8470 if (sizeof ac_aggr.ifr_netmask)
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8480 *) ac_try_echo
=$ac_try;;
8482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8483 (eval "$ac_compile") 2>conftest.er1
8485 grep -v '^ *+' conftest.er1
>conftest.err
8487 cat conftest.err
>&5
8488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && {
8490 test -z "$ac_c_werror_flag" ||
8491 test ! -s conftest.err
8492 } && test -s conftest.
$ac_objext; then
8493 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8495 echo "$as_me: failed program was:" >&5
8496 sed 's/^/| /' conftest.
$ac_ext >&5
8498 ac_cv_member_struct_ifreq_ifr_netmask
=no
8501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8504 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8506 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8507 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8508 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8510 cat >>confdefs.h
<<_ACEOF
8511 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8516 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8517 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8518 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 cat >conftest.
$ac_ext <<_ACEOF
8524 cat confdefs.h
>>conftest.
$ac_ext
8525 cat >>conftest.
$ac_ext <<_ACEOF
8526 /* end confdefs.h. */
8527 $ac_includes_default
8528 #if HAVE_SYS_SOCKET_H
8529 #include <sys/socket.h>
8538 static struct ifreq ac_aggr;
8539 if (ac_aggr.ifr_broadaddr)
8545 rm -f conftest.
$ac_objext
8546 if { (ac_try
="$ac_compile"
8548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8549 *) ac_try_echo=$ac_try;;
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552 (eval "$ac_compile") 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } && {
8559 test -z "$ac_c_werror_flag" ||
8560 test ! -s conftest.err
8561 } && test -s conftest.$ac_objext; then
8562 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8564 echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8567 cat >conftest.$ac_ext <<_ACEOF
8570 cat confdefs.h >>conftest.$ac_ext
8571 cat >>conftest.$ac_ext <<_ACEOF
8572 /* end confdefs.h. */
8573 $ac_includes_default
8574 #if HAVE_SYS_SOCKET_H
8575 #include <sys/socket.h>
8584 static struct ifreq ac_aggr;
8585 if (sizeof ac_aggr.ifr_broadaddr)
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8595 *) ac_try_echo
=$ac_try;;
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8600 grep -v '^ *+' conftest.er1
>conftest.err
8602 cat conftest.err
>&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.
$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.
$ac_ext >&5
8613 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8619 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8621 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8622 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8623 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8625 cat >>confdefs.h
<<_ACEOF
8626 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8631 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8632 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8633 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 cat >conftest.
$ac_ext <<_ACEOF
8639 cat confdefs.h
>>conftest.
$ac_ext
8640 cat >>conftest.
$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8642 $ac_includes_default
8643 #if HAVE_SYS_SOCKET_H
8644 #include <sys/socket.h>
8653 static struct ifreq ac_aggr;
8654 if (ac_aggr.ifr_addr)
8660 rm -f conftest.
$ac_objext
8661 if { (ac_try
="$ac_compile"
8663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } && {
8674 test -z "$ac_c_werror_flag" ||
8675 test ! -s conftest.err
8676 } && test -s conftest.$ac_objext; then
8677 ac_cv_member_struct_ifreq_ifr_addr=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8688 $ac_includes_default
8689 #if HAVE_SYS_SOCKET_H
8690 #include <sys/socket.h>
8699 static struct ifreq ac_aggr;
8700 if (sizeof ac_aggr.ifr_addr)
8706 rm -f conftest.$ac_objext
8707 if { (ac_try="$ac_compile"
8709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8710 *) ac_try_echo
=$ac_try;;
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_compile") 2>conftest.er1
8715 grep -v '^ *+' conftest.er1
>conftest.err
8717 cat conftest.err
>&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); } && {
8720 test -z "$ac_c_werror_flag" ||
8721 test ! -s conftest.err
8722 } && test -s conftest.
$ac_objext; then
8723 ac_cv_member_struct_ifreq_ifr_addr
=yes
8725 echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.
$ac_ext >&5
8728 ac_cv_member_struct_ifreq_ifr_addr
=no
8731 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8734 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8736 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8737 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8738 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8740 cat >>confdefs.h
<<_ACEOF
8741 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8749 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8750 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8751 if test "$ac_cv_prog_cc_c89" != no
; then
8752 { echo "$as_me:$LINENO: result: yes" >&5
8753 echo "${ECHO_T}yes" >&6; }
8755 cat >>confdefs.h
<<\_ACEOF
8756 #define PROTOTYPES 1
8760 cat >>confdefs.h
<<\_ACEOF
8761 #define __PROTOTYPES 1
8765 { echo "$as_me:$LINENO: result: no" >&5
8766 echo "${ECHO_T}no" >&6; }
8769 { echo "$as_me:$LINENO: checking for working volatile" >&5
8770 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8771 if test "${ac_cv_c_volatile+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8786 int * volatile y = (int *) 0;
8792 rm -f conftest.
$ac_objext
8793 if { (ac_try
="$ac_compile"
8795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8799 (eval "$ac_compile") 2>conftest.er1
8801 grep -v '^ *+' conftest.er1 >conftest.err
8803 cat conftest.err >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); } && {
8806 test -z "$ac_c_werror_flag" ||
8807 test ! -s conftest.err
8808 } && test -s conftest.$ac_objext; then
8809 ac_cv_c_volatile=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8820 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8821 if test $ac_cv_c_volatile = no; then
8823 cat >>confdefs.h <<\_ACEOF
8829 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8830 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8831 if test "${ac_cv_c_const+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8844 /* FIXME: Include the comments suggested by Paul. */
8846 /* Ultrix mips cc rejects this. */
8847 typedef int charset[2];
8849 /* SunOS 4.1.1 cc rejects this. */
8850 char const *const *pcpcc;
8852 /* NEC SVR4.0.2 mips cc rejects this. */
8853 struct point {int x, y;};
8854 static struct point const zero = {0,0};
8855 /* AIX XL C 1.02.0.0 rejects this.
8856 It does not let you subtract one const X* pointer from another in
8857 an arm of an if-expression whose if-part is not a constant
8859 const char *g = "string";
8860 pcpcc = &g + (g ? g-g : 0);
8861 /* HPUX 7.0 cc rejects these. */
8863 ppc = (char**) pcpcc;
8864 pcpcc = (char const *const *) ppc;
8865 { /* SCO 3.2v4 cc rejects this. */
8867 char const *s = 0 ? (char *) 0 : (char const *) 0;
8872 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8874 const int *foo = &x[0];
8877 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8878 typedef const int *iptr;
8882 { /* AIX XL C 1.02.0.0 rejects this saying
8883 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8884 struct s { int j; const int *ap[3]; };
8885 struct s *b; b->j = 5;
8887 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8891 return !cs[0] && !zero.x;
8898 rm -f conftest.$ac_objext
8899 if { (ac_try="$ac_compile"
8901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8902 *) ac_try_echo
=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8907 grep -v '^ *+' conftest.er1
>conftest.err
8909 cat conftest.err
>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.
$ac_objext; then
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.
$ac_ext >&5
8923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8925 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8926 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8927 if test $ac_cv_c_const = no
; then
8929 cat >>confdefs.h
<<\_ACEOF
8935 { echo "$as_me:$LINENO: checking for void * support" >&5
8936 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8937 if test "${emacs_cv_void_star+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 cat >conftest.
$ac_ext <<_ACEOF
8943 cat confdefs.h
>>conftest.
$ac_ext
8944 cat >>conftest.
$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8955 rm -f conftest.
$ac_objext
8956 if { (ac_try
="$ac_compile"
8958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8959 *) ac_try_echo=$ac_try;;
8961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8962 (eval "$ac_compile") 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } && {
8969 test -z "$ac_c_werror_flag" ||
8970 test ! -s conftest.err
8971 } && test -s conftest.$ac_objext; then
8972 emacs_cv_void_star=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 emacs_cv_void_star=no
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8982 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8983 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8984 if test $emacs_cv_void_star = yes; then
8985 cat >>confdefs.h <<\_ACEOF
8986 #define POINTER_TYPE void
8990 cat >>confdefs.h <<\_ACEOF
8991 #define POINTER_TYPE char
9000 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9001 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9002 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9003 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 cat >conftest.make <<\_ACEOF
9009 @echo '@@@%%%=$(MAKE)=@@@%%%'
9011 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9012 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9014 eval ac_cv_prog_make_${ac_make}_set=yes;;
9016 eval ac_cv_prog_make_${ac_make}_set=no;;
9020 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9021 { echo "$as_me:$LINENO: result: yes" >&5
9022 echo "${ECHO_T}yes" >&6; }
9025 { echo "$as_me:$LINENO: result: no" >&5
9026 echo "${ECHO_T}no" >&6; }
9027 SET_MAKE="MAKE=${MAKE-make}"
9031 { echo "$as_me:$LINENO: checking for long file names" >&5
9032 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9033 if test "${ac_cv_sys_long_file_names+set}" = set; then
9034 echo $ECHO_N "(cached) $ECHO_C" >&6
9036 ac_cv_sys_long_file_names=yes
9037 # Test for long file names in all the places we know might matter:
9038 # . the current directory, where building will happen
9039 # $prefix/lib where we will be installing things
9040 # $exec_prefix/lib likewise
9041 # $TMPDIR if set, where it might want to write temporary files
9042 # /tmp where it might want to write temporary files
9045 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9046 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9047 # in the usual case where exec_prefix is '${prefix}'.
9049 . | /* | ?:[\\/]*) ;; #(
9052 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9053 ac_xdir=$ac_dir/cf$$
9054 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9055 ac_tf1=$ac_xdir/conftest9012345
9056 ac_tf2=$ac_xdir/conftest9012346
9057 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9058 ac_cv_sys_long_file_names=no
9059 rm -f -r "$ac_xdir" 2>/dev/null
9060 test $ac_cv_sys_long_file_names = no && break
9063 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9064 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9065 if test $ac_cv_sys_long_file_names = yes; then
9067 cat >>confdefs.h <<\_ACEOF
9068 #define HAVE_LONG_FILE_NAMES 1
9074 #### Choose a window system.
9076 { echo "$as_me:$LINENO: checking for X" >&5
9077 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9080 # Check whether --with-x was given.
9081 if test "${with_x+set}" = set; then
9085 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9086 if test "x$with_x" = xno; then
9087 # The user explicitly disabled X.
9090 case $x_includes,$x_libraries in #(
9091 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9092 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9093 { (exit 1); exit 1; }; };; #(
9094 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 # One or both of the vars are not set, and there is no cached value.
9098 ac_x_includes=no ac_x_libraries=no
9099 rm -f -r conftest.dir
9100 if mkdir conftest.dir; then
9102 cat >Imakefile <<'_ACEOF'
9104 @echo incroot='${INCROOT}'
9106 @echo usrlibdir='${USRLIBDIR}'
9108 @echo libdir='${LIBDIR}'
9110 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9111 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9112 for ac_var in incroot usrlibdir libdir; do
9113 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9115 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9116 for ac_extension in a so sl; do
9117 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9118 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9119 ac_im_usrlibdir=$ac_im_libdir; break
9122 # Screen out bogus values from the imake configuration. They are
9123 # bogus both because they are the default anyway, and because
9124 # using them would break gcc on systems where it needs fixed includes.
9125 case $ac_im_incroot in
9126 /usr/include) ac_x_includes= ;;
9127 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9129 case $ac_im_usrlibdir in
9131 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9135 rm -f -r conftest.dir
9138 # Standard set of common directories for X headers.
9139 # Check X11 before X11Rn because it is often a symlink to the current release.
9151 /usr/local/X11/include
9152 /usr/local/X11R6/include
9153 /usr/local/X11R5/include
9154 /usr/local/X11R4/include
9156 /usr/local/include/X11
9157 /usr/local/include/X11R6
9158 /usr/local/include/X11R5
9159 /usr/local/include/X11R4
9163 /usr/XFree86/include/X11
9167 /usr/unsupported/include
9169 /usr/local/x11r5/include
9170 /usr/lpp/Xamples/include
9172 /usr/openwin/include
9173 /usr/openwin/share/include'
9175 if test "$ac_x_includes" = no; then
9176 # Guess where to find include files, by looking for Xlib.h.
9177 # First, try using that file with no special directory specified.
9178 cat >conftest.$ac_ext <<_ACEOF
9181 cat confdefs.h >>conftest.$ac_ext
9182 cat >>conftest.$ac_ext <<_ACEOF
9183 /* end confdefs.h. */
9184 #include <X11/Xlib.h>
9186 if { (ac_try="$ac_cpp conftest.$ac_ext"
9188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9189 *) ac_try_echo
=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1
>conftest.err
9196 cat conftest.err
>&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } >/dev
/null
&& {
9199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9202 # We can compile using X headers with no special include directory.
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.
$ac_ext >&5
9208 for ac_dir
in $ac_x_header_dirs; do
9209 if test -r "$ac_dir/X11/Xlib.h"; then
9210 ac_x_includes
=$ac_dir
9216 rm -f conftest.err conftest.
$ac_ext
9217 fi # $ac_x_includes = no
9219 if test "$ac_x_libraries" = no
; then
9220 # Check for the libraries.
9221 # See if we find them without any special options.
9222 # Don't add to $LIBS permanently.
9225 cat >conftest.
$ac_ext <<_ACEOF
9228 cat confdefs.h
>>conftest.
$ac_ext
9229 cat >>conftest.
$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <X11/Xlib.h>
9240 rm -f conftest.
$ac_objext conftest
$ac_exeext
9241 if { (ac_try
="$ac_link"
9243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9244 *) ac_try_echo=$ac_try;;
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247 (eval "$ac_link") 2>conftest.er1
9249 grep -v '^ *+' conftest.er1 >conftest.err
9251 cat conftest.err >&5
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest$ac_exeext &&
9257 $as_test_x conftest$ac_exeext; then
9259 # We can link X programs with no special library path.
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9266 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9268 # Don't even attempt the hair of trying to link an X program!
9269 for ac_extension in a so sl; do
9270 if test -r "$ac_dir/libX11.$ac_extension"; then
9271 ac_x_libraries=$ac_dir
9278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9279 conftest$ac_exeext conftest.$ac_ext
9280 fi # $ac_x_libraries = no
9282 case $ac_x_includes,$ac_x_libraries in #(
9284 # Didn't find X, or a directory has "'" in its name.
9285 ac_cv_have_x="have_x=no";; #(
9287 # Record where we found X for the cache.
9288 ac_cv_have_x="have_x=yes\
9289 ac_x_includes='$ac_x_includes'\
9290 ac_x_libraries='$ac_x_libraries'"
9296 eval "$ac_cv_have_x"
9299 if test "$have_x" != yes; then
9300 { echo "$as_me:$LINENO: result: $have_x" >&5
9301 echo "${ECHO_T}$have_x" >&6; }
9304 # If each of the values was on the command line, it overrides each guess.
9305 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9306 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9307 # Update the cache value to reflect the command line values.
9308 ac_cv_have_x="have_x=yes\
9309 ac_x_includes='$x_includes'\
9310 ac_x_libraries='$x_libraries'"
9311 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9312 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9315 if test "$no_x" = yes; then
9321 ## Workaround for bug in autoconf <= 2.62.
9322 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9323 ## No need to do anything special for these standard directories.
9324 ## This is an experiment, take it out if it causes problems.
9325 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9327 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9331 if test "${x_libraries}" != NONE; then
9332 if test -n "${x_libraries}"; then
9333 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9334 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9336 x_default_search_path=""
9337 x_search_path=${x_libraries}
9338 if test -z "${x_search_path}"; then
9339 x_search_path=/usr/lib
9341 for x_library in `echo ${x_search_path}: | \
9342 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9344 ${x_library}/X11/%L/%T/%N%C%S:\
9345 ${x_library}/X11/%l/%T/%N%C%S:\
9346 ${x_library}/X11/%T/%N%C%S:\
9347 ${x_library}/X11/%L/%T/%N%S:\
9348 ${x_library}/X11/%l/%T/%N%S:\
9349 ${x_library}/X11/%T/%N%S"
9350 if test x"${x_default_search_path}" = x; then
9351 x_default_search_path=${x_search_path}
9353 x_default_search_path="${x_search_path}:${x_default_search_path}"
9357 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9358 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9361 if test x"${x_includes}" = x; then
9362 bitmapdir=/usr/include/X11/bitmaps
9364 # accumulate include directories that have X11 bitmap subdirectories
9366 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9367 if test -d "${bmd}/X11/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9370 if test -d "${bmd}/bitmaps"; then
9371 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9374 if test ${bmd_acc} != "dummyval"; then
9375 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9380 if test "${with_carbon}" != no; then
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9383 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9388 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9390 # Is the header compilable?
9391 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9392 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 $ac_includes_default
9400 #include <Carbon/Carbon.h>
9402 rm -f conftest.$ac_objext
9403 if { (ac_try="$ac_compile"
9405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9406 *) ac_try_echo
=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_compile") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1
>conftest.err
9413 cat conftest.err
>&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } && {
9416 test -z "$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9418 } && test -s conftest.
$ac_objext; then
9419 ac_header_compiler
=yes
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.
$ac_ext >&5
9424 ac_header_compiler
=no
9427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9429 echo "${ECHO_T}$ac_header_compiler" >&6; }
9431 # Is the header present?
9432 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9433 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 #include <Carbon/Carbon.h>
9442 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9445 *) ac_try_echo=$ac_try;;
9447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null && {
9455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9456 test ! -s conftest.err
9458 ac_header_preproc=yes
9460 echo "$as_me: failed program was:" >&5
9461 sed 's/^/| /' conftest.$ac_ext >&5
9463 ac_header_preproc=no
9466 rm -f conftest.err conftest.$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9468 echo "${ECHO_T}$ac_header_preproc" >&6; }
9470 # So? What about this header?
9471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9473 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9474 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9475 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9476 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9477 ac_header_preproc=yes
9480 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9481 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9482 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9483 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9485 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9486 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9487 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9488 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9489 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9490 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9491 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9495 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9496 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9497 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9502 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9503 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9506 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9512 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9513 if test "${with_carbon+set}" != set \
9514 && test "${carbon_appdir_x+set}" != set; then
9515 for var in with_x with_x_toolkit with_xim \
9516 with_xpm with_jpeg with_tiff with_gif with_png; do
9517 if eval test \"\${$var+set}\" = set; then
9524 if test "${HAVE_CARBON}" = yes; then
9528 case "${window_system}" in
9532 case "${with_x_toolkit}" in
9533 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9534 motif ) USE_X_TOOLKIT=MOTIF ;;
9536 USE_X_TOOLKIT=none ;;
9537 no ) USE_X_TOOLKIT=none ;;
9538 * ) USE_X_TOOLKIT=maybe ;;
9548 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9549 # Extract the first word of "X", so it can be a program name with args.
9550 set dummy X; ac_word=$2
9551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9553 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9554 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 if test -n "$HAVE_XSERVER"; then
9557 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 test -z "$as_dir" && as_dir=.
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9566 ac_cv_prog_HAVE_XSERVER="true"
9567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9574 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9577 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9578 if test -n "$HAVE_XSERVER"; then
9579 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9580 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9582 { echo "$as_me:$LINENO: result: no" >&5
9583 echo "${ECHO_T}no" >&6; }
9587 if test "$HAVE_XSERVER" = true ||
9588 test -n "$DISPLAY" ||
9589 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9590 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9591 were found. You should install the relevant development files for X
9592 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9593 sure you have development files for image handling, i.e.
9594 tiff, gif, jpeg, png and xpm.
9595 If you are sure you want Emacs compiled without X window support, pass
9598 echo "$as_me: error: You seem to be running X, but no X development libraries
9599 were found. You should install the relevant development files for X
9600 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9601 sure you have development files for image handling, i.e.
9602 tiff, gif, jpeg, png and xpm.
9603 If you are sure you want Emacs compiled without X window support, pass
9605 to configure." >&2;}
9606 { (exit 1); exit 1; }; }
9610 ### If we're using X11, we should use the X menu package.
9613 yes ) HAVE_MENUS=yes ;;
9616 ### Compute the unexec source name from the object name.
9617 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9619 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9620 # Assume not, until told otherwise.
9623 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9624 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9625 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9636 #define malloc_get_state innocuous_malloc_get_state
9638 /* System header to define __stub macros and hopefully few prototypes,
9639 which can conflict with char malloc_get_state (); below.
9640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9641 <limits.h> exists even on freestanding compilers. */
9644 # include <limits.h>
9646 # include <assert.h>
9649 #undef malloc_get_state
9651 /* Override any GCC internal prototype to avoid an error.
9652 Use char because int might match the return type of a GCC
9653 builtin and then its argument prototype would still apply. */
9657 char malloc_get_state ();
9658 /* The GNU C library defines this for functions which it implements
9659 to always fail with ENOSYS. Some functions are actually named
9660 something starting with __ and the normal name is an alias. */
9661 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9668 return malloc_get_state ();
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9677 *) ac_try_echo
=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1
>conftest.err
9684 cat conftest.err
>&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest
$ac_exeext &&
9690 $as_test_x conftest
$ac_exeext; then
9691 ac_cv_func_malloc_get_state
=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.
$ac_ext >&5
9696 ac_cv_func_malloc_get_state
=no
9699 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9700 conftest
$ac_exeext conftest.
$ac_ext
9702 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9703 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9704 if test $ac_cv_func_malloc_get_state = yes; then
9710 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9711 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9712 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9713 echo $ECHO_N "(cached) $ECHO_C" >&6
9715 cat >conftest.
$ac_ext <<_ACEOF
9718 cat confdefs.h
>>conftest.
$ac_ext
9719 cat >>conftest.
$ac_ext <<_ACEOF
9720 /* end confdefs.h. */
9721 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9723 #define malloc_set_state innocuous_malloc_set_state
9725 /* System header to define __stub macros and hopefully few prototypes,
9726 which can conflict with char malloc_set_state (); below.
9727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9728 <limits.h> exists even on freestanding compilers. */
9731 # include <limits.h>
9733 # include <assert.h>
9736 #undef malloc_set_state
9738 /* Override any GCC internal prototype to avoid an error.
9739 Use char because int might match the return type of a GCC
9740 builtin and then its argument prototype would still apply. */
9744 char malloc_set_state ();
9745 /* The GNU C library defines this for functions which it implements
9746 to always fail with ENOSYS. Some functions are actually named
9747 something starting with __ and the normal name is an alias. */
9748 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9755 return malloc_set_state ();
9760 rm -f conftest.
$ac_objext conftest
$ac_exeext
9761 if { (ac_try
="$ac_link"
9763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9764 *) ac_try_echo=$ac_try;;
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767 (eval "$ac_link") 2>conftest.er1
9769 grep -v '^ *+' conftest.er1 >conftest.err
9771 cat conftest.err >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext &&
9777 $as_test_x conftest$ac_exeext; then
9778 ac_cv_func_malloc_set_state=yes
9780 echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9783 ac_cv_func_malloc_set_state=no
9786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787 conftest$ac_exeext conftest.$ac_ext
9789 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9790 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9791 if test $ac_cv_func_malloc_set_state = yes; then
9797 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9798 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9799 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 cat >conftest.$ac_ext <<_ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h. */
9808 extern void (* __after_morecore_hook)();
9812 __after_morecore_hook = 0
9817 rm -f conftest.$ac_objext conftest$ac_exeext
9818 if { (ac_try="$ac_link"
9820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9821 *) ac_try_echo
=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_link") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1
>conftest.err
9828 cat conftest.err
>&5
9829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } && {
9831 test -z "$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9833 } && test -s conftest
$ac_exeext &&
9834 $as_test_x conftest
$ac_exeext; then
9835 emacs_cv_var___after_morecore_hook
=yes
9837 echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.
$ac_ext >&5
9840 emacs_cv_var___after_morecore_hook
=no
9843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9844 conftest
$ac_exeext conftest.
$ac_ext
9846 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9847 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9848 if test $emacs_cv_var___after_morecore_hook = no
; then
9851 if test "${system_malloc}" = "yes"; then
9854 (The GNU allocators don't work with this system configuration.)"
9856 if test "$doug_lea_malloc" = "yes" ; then
9857 if test "$GNU_MALLOC" = yes ; then
9859 (Using Doug Lea's new malloc from the GNU C Library.)"
9862 cat >>confdefs.h
<<\_ACEOF
9863 #define DOUG_LEA_MALLOC 1
9868 if test x
"${REL_ALLOC}" = x
; then
9869 REL_ALLOC
=${GNU_MALLOC}
9875 for ac_header
in stdlib.h unistd.h
9877 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9878 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9881 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 ac_res
=`eval echo '${'$as_ac_Header'}'`
9885 { echo "$as_me:$LINENO: result: $ac_res" >&5
9886 echo "${ECHO_T}$ac_res" >&6; }
9888 # Is the header compilable?
9889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 $ac_includes_default
9898 #include <$ac_header>
9900 rm -f conftest.
$ac_objext
9901 if { (ac_try
="$ac_compile"
9903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_compile") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1 >conftest.err
9911 cat conftest.err >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } && {
9914 test -z "$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9916 } && test -s conftest.$ac_objext; then
9917 ac_header_compiler=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 ac_header_compiler=no
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9927 echo "${ECHO_T}$ac_header_compiler" >&6; }
9929 # Is the header present?
9930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <$ac_header>
9940 if { (ac_try="$ac_cpp conftest.$ac_ext"
9942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9943 *) ac_try_echo
=$ac_try;;
9945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9948 grep -v '^ *+' conftest.er1
>conftest.err
9950 cat conftest.err
>&5
9951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952 (exit $ac_status); } >/dev
/null
&& {
9953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9954 test ! -s conftest.err
9956 ac_header_preproc
=yes
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.
$ac_ext >&5
9961 ac_header_preproc
=no
9964 rm -f conftest.err conftest.
$ac_ext
9965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9966 echo "${ECHO_T}$ac_header_preproc" >&6; }
9968 # So? What about this header?
9969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9975 ac_header_preproc
=yes
9978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 eval "$as_ac_Header=\$ac_header_preproc"
10000 ac_res
=`eval echo '${'$as_ac_Header'}'`
10001 { echo "$as_me:$LINENO: result: $ac_res" >&5
10002 echo "${ECHO_T}$ac_res" >&6; }
10005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10006 cat >>confdefs.h
<<_ACEOF
10007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10015 for ac_func
in getpagesize
10017 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10020 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10021 echo $ECHO_N "(cached) $ECHO_C" >&6
10023 cat >conftest.
$ac_ext <<_ACEOF
10026 cat confdefs.h
>>conftest.
$ac_ext
10027 cat >>conftest.
$ac_ext <<_ACEOF
10028 /* end confdefs.h. */
10029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10031 #define $ac_func innocuous_$ac_func
10033 /* System header to define __stub macros and hopefully few prototypes,
10034 which can conflict with char $ac_func (); below.
10035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10036 <limits.h> exists even on freestanding compilers. */
10039 # include <limits.h>
10041 # include <assert.h>
10046 /* Override any GCC internal prototype to avoid an error.
10047 Use char because int might match the return type of a GCC
10048 builtin and then its argument prototype would still apply. */
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined __stub_$ac_func || defined __stub___$ac_func
10063 return $ac_func ();
10068 rm -f conftest.
$ac_objext conftest
$ac_exeext
10069 if { (ac_try
="$ac_link"
10070 case "(($ac_try" in
10071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10072 *) ac_try_echo=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>conftest.er1
10077 grep -v '^ *+' conftest.er1 >conftest.err
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } && {
10082 test -z "$ac_c_werror_flag" ||
10083 test ! -s conftest.err
10084 } && test -s conftest$ac_exeext &&
10085 $as_test_x conftest$ac_exeext; then
10086 eval "$as_ac_var=yes"
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 eval "$as_ac_var=no"
10094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10095 conftest$ac_exeext conftest.$ac_ext
10097 ac_res=`eval echo '${'$as_ac_var'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10100 if test `eval echo '${'$as_ac_var'}'` = yes; then
10101 cat >>confdefs.h <<_ACEOF
10102 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10108 { echo "$as_me:$LINENO: checking for working mmap" >&5
10109 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10110 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 if test "$cross_compiling" = yes; then
10114 ac_cv_func_mmap_fixed_mapped=no
10116 cat >conftest.$ac_ext <<_ACEOF
10119 cat confdefs.h >>conftest.$ac_ext
10120 cat >>conftest.$ac_ext <<_ACEOF
10121 /* end confdefs.h. */
10122 $ac_includes_default
10123 /* malloc might have been renamed as rpl_malloc. */
10126 /* Thanks to Mike Haertel and Jim Avera for this test.
10127 Here is a matrix of mmap possibilities:
10128 mmap private not fixed
10129 mmap private fixed at somewhere currently unmapped
10130 mmap private fixed at somewhere already mapped
10131 mmap shared not fixed
10132 mmap shared fixed at somewhere currently unmapped
10133 mmap shared fixed at somewhere already mapped
10134 For private mappings, we should verify that changes cannot be read()
10135 back from the file, nor mmap's back from the file at a different
10136 address. (There have been systems where private was not correctly
10137 implemented like the infamous i386 svr4.0, and systems where the
10138 VM page cache was not coherent with the file system buffer cache
10139 like early versions of FreeBSD and possibly contemporary NetBSD.)
10140 For shared mappings, we should conversely verify that changes get
10141 propagated back to all the places they're supposed to be.
10143 Grep wants private fixed already mapped.
10144 The main things grep needs to know about mmap are:
10145 * does it exist and is it safe to write into the mmap'd area
10146 * how to use it (BSD variants) */
10149 #include <sys/mman.h>
10151 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10155 /* This mess was copied from the GNU getpagesize.h. */
10156 #ifndef HAVE_GETPAGESIZE
10157 /* Assume that all systems that can run configure have sys/param.h. */
10158 # ifndef HAVE_SYS_PARAM_H
10159 # define HAVE_SYS_PARAM_H 1
10162 # ifdef _SC_PAGESIZE
10163 # define getpagesize() sysconf(_SC_PAGESIZE)
10164 # else /* no _SC_PAGESIZE */
10165 # ifdef HAVE_SYS_PARAM_H
10166 # include <sys/param.h>
10167 # ifdef EXEC_PAGESIZE
10168 # define getpagesize() EXEC_PAGESIZE
10169 # else /* no EXEC_PAGESIZE */
10171 # define getpagesize() NBPG * CLSIZE
10174 # endif /* no CLSIZE */
10175 # else /* no NBPG */
10177 # define getpagesize() NBPC
10178 # else /* no NBPC */
10180 # define getpagesize() PAGESIZE
10181 # endif /* PAGESIZE */
10182 # endif /* no NBPC */
10183 # endif /* no NBPG */
10184 # endif /* no EXEC_PAGESIZE */
10185 # else /* no HAVE_SYS_PARAM_H */
10186 # define getpagesize() 8192 /* punt totally */
10187 # endif /* no HAVE_SYS_PARAM_H */
10188 # endif /* no _SC_PAGESIZE */
10190 #endif /* no HAVE_GETPAGESIZE */
10195 char *data, *data2, *data3;
10199 pagesize = getpagesize ();
10201 /* First, make a file with some known garbage in it. */
10202 data = (char *) malloc (pagesize);
10205 for (i = 0; i < pagesize; ++i)
10206 *(data + i) = rand ();
10208 fd = creat ("conftest.mmap", 0600);
10211 if (write (fd, data, pagesize) != pagesize)
10215 /* Next, try to mmap the file at a fixed address which already has
10216 something else allocated at it. If we can, also make sure that
10217 we see the same garbage. */
10218 fd = open ("conftest.mmap", O_RDWR);
10221 data2 = (char *) malloc (2 * pagesize);
10224 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10225 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10226 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10228 for (i = 0; i < pagesize; ++i)
10229 if (*(data + i) != *(data2 + i))
10232 /* Finally, make sure that changes to the mapped area do not
10233 percolate back to the file as seen by read(). (This is a bug on
10234 some variants of i386 svr4.0.) */
10235 for (i = 0; i < pagesize; ++i)
10236 *(data2 + i) = *(data2 + i) + 1;
10237 data3 = (char *) malloc (pagesize);
10240 if (read (fd, data3, pagesize) != pagesize)
10242 for (i = 0; i < pagesize; ++i)
10243 if (*(data + i) != *(data3 + i))
10249 rm -f conftest$ac_exeext
10250 if { (ac_try="$ac_link"
10251 case "(($ac_try" in
10252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10253 *) ac_try_echo
=$ac_try;;
10255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10256 (eval "$ac_link") 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10260 { (case "(($ac_try" in
10261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_try") 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; }; then
10269 ac_cv_func_mmap_fixed_mapped=yes
10271 echo "$as_me: program exited with status $ac_status" >&5
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10275 ( exit $ac_status )
10276 ac_cv_func_mmap_fixed_mapped=no
10278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10284 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10285 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10287 cat >>confdefs.h <<\_ACEOF
10288 #define HAVE_MMAP 1
10292 rm -f conftest.mmap
10294 if test $use_mmap_for_buffers = yes; then
10298 LIBS="$libsrc_libs $LIBS"
10301 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10302 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 ac_check_lib_save_LIBS=$LIBS
10307 LIBS="-ldnet $LIBS"
10308 cat >conftest.$ac_ext <<_ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10325 return dnet_ntoa ();
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10334 *) ac_try_echo
=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1
>conftest.err
10341 cat conftest.err
>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest
$ac_exeext &&
10347 $as_test_x conftest
$ac_exeext; then
10348 ac_cv_lib_dnet_dnet_ntoa
=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.
$ac_ext >&5
10353 ac_cv_lib_dnet_dnet_ntoa
=no
10356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10357 conftest
$ac_exeext conftest.
$ac_ext
10358 LIBS
=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10361 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10362 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10363 cat >>confdefs.h
<<_ACEOF
10364 #define HAVE_LIBDNET 1
10367 LIBS
="-ldnet $LIBS"
10372 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10373 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_check_lib_save_LIBS
=$LIBS
10378 LIBS
="-lXbsd $LIBS"
10379 cat >conftest.
$ac_ext <<_ACEOF
10382 cat confdefs.h
>>conftest.
$ac_ext
10383 cat >>conftest.
$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10395 rm -f conftest.
$ac_objext conftest
$ac_exeext
10396 if { (ac_try
="$ac_link"
10397 case "(($ac_try" in
10398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_Xbsd_main=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_lib_Xbsd_main=no
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10427 if test $ac_cv_lib_Xbsd_main = yes; then
10428 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10433 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10434 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10435 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10436 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 ac_check_lib_save_LIBS=$LIBS
10439 LIBS="-lpthreads $LIBS"
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10447 /* Override any GCC internal prototype to avoid an error.
10448 Use char because int might match the return type of a GCC
10449 builtin and then its argument prototype would still apply. */
10457 return cma_open ();
10462 rm -f conftest.$ac_objext conftest$ac_exeext
10463 if { (ac_try="$ac_link"
10464 case "(($ac_try" in
10465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10466 *) ac_try_echo
=$ac_try;;
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_link") 2>conftest.er1
10471 grep -v '^ *+' conftest.er1
>conftest.err
10473 cat conftest.err
>&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } && {
10476 test -z "$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 } && test -s conftest
$ac_exeext &&
10479 $as_test_x conftest
$ac_exeext; then
10480 ac_cv_lib_pthreads_cma_open
=yes
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.
$ac_ext >&5
10485 ac_cv_lib_pthreads_cma_open
=no
10488 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10489 conftest
$ac_exeext conftest.
$ac_ext
10490 LIBS
=$ac_check_lib_save_LIBS
10492 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10493 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10494 if test $ac_cv_lib_pthreads_cma_open = yes; then
10495 cat >>confdefs.h
<<_ACEOF
10496 #define HAVE_LIBPTHREADS 1
10499 LIBS
="-lpthreads $LIBS"
10507 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10508 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10509 if test "${gdb_cv_bigtoc+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10515 *) gdb_cv_bigtoc
=-bbigtoc ;;
10518 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10519 cat >conftest.
$ac_ext <<_ACEOF
10522 cat confdefs.h
>>conftest.
$ac_ext
10523 cat >>conftest.
$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10534 rm -f conftest.
$ac_objext conftest
$ac_exeext
10535 if { (ac_try
="$ac_link"
10536 case "(($ac_try" in
10537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10543 grep -v '^ *+' conftest.er1 >conftest.err
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10564 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10565 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10569 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10570 # used for the tests that follow. We set them back to REAL_CFLAGS and
10571 # REAL_CPPFLAGS later on.
10573 REAL_CPPFLAGS="$CPPFLAGS"
10575 if test "${HAVE_X11}" = "yes"; then
10576 DEFS="$C_SWITCH_X_SITE $DEFS"
10577 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10579 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10580 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10582 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10583 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10584 # but it's more convenient here to set LD_RUN_PATH
10585 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10586 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10587 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10591 if test "${opsys}" = "gnu-linux"; then
10592 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10593 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10594 cat >conftest.$ac_ext <<_ACEOF
10597 cat confdefs.h >>conftest.$ac_ext
10598 cat >>conftest.$ac_ext <<_ACEOF
10599 /* end confdefs.h. */
10604 XOpenDisplay ("foo");
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest
$ac_exeext &&
10626 $as_test_x conftest
$ac_exeext; then
10627 xlinux_first_failure
=no
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 xlinux_first_failure
=yes
10635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10636 conftest
$ac_exeext conftest.
$ac_ext
10637 if test "${xlinux_first_failure}" = "yes"; then
10638 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10639 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10640 OLD_CPPFLAGS
="$CPPFLAGS"
10642 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10643 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10644 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10645 LIBS
="$LIBS -b i486-linuxaout"
10646 cat >conftest.
$ac_ext <<_ACEOF
10649 cat confdefs.h
>>conftest.
$ac_ext
10650 cat >>conftest.
$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10656 XOpenDisplay ("foo");
10661 rm -f conftest.
$ac_objext conftest
$ac_exeext
10662 if { (ac_try
="$ac_link"
10663 case "(($ac_try" in
10664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10665 *) ac_try_echo=$ac_try;;
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668 (eval "$ac_link") 2>conftest.er1
10670 grep -v '^ *+' conftest.er1 >conftest.err
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } && {
10675 test -z "$ac_c_werror_flag" ||
10676 test ! -s conftest.err
10677 } && test -s conftest$ac_exeext &&
10678 $as_test_x conftest$ac_exeext; then
10679 xlinux_second_failure=no
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 xlinux_second_failure=yes
10687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10688 conftest$ac_exeext conftest.$ac_ext
10689 if test "${xlinux_second_failure}" = "yes"; then
10690 # If we get the same failure with -b, there is no use adding -b.
10691 # So take it out. This plays safe.
10692 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10693 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10694 CPPFLAGS="$OLD_CPPFLAGS"
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10699 { echo "$as_me:$LINENO: result: yes" >&5
10700 echo "${ECHO_T}yes" >&6; }
10703 { echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6; }
10708 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10709 # header files included from there.
10710 { echo "$as_me:$LINENO: checking for Xkb" >&5
10711 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10712 cat >conftest.$ac_ext <<_ACEOF
10715 cat confdefs.h >>conftest.$ac_ext
10716 cat >>conftest.$ac_ext <<_ACEOF
10717 /* end confdefs.h. */
10718 #include <X11/Xlib.h>
10719 #include <X11/XKBlib.h>
10723 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10728 rm -f conftest.$ac_objext conftest$ac_exeext
10729 if { (ac_try="$ac_link"
10730 case "(($ac_try" in
10731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10732 *) ac_try_echo
=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1
>conftest.err
10739 cat conftest.err
>&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest
$ac_exeext &&
10745 $as_test_x conftest
$ac_exeext; then
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.
$ac_ext >&5
10754 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10755 conftest
$ac_exeext conftest.
$ac_ext
10756 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10757 echo "${ECHO_T}$emacs_xkb" >&6; }
10758 if test $emacs_xkb = yes; then
10760 cat >>confdefs.h
<<\_ACEOF
10761 #define HAVE_XKBGETKEYBOARD 1
10770 for ac_func
in XrmSetDatabase XScreenResourceString \
10771 XScreenNumberOfScreen XSetWMProtocols
10773 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10774 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10776 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 cat >conftest.
$ac_ext <<_ACEOF
10782 cat confdefs.h
>>conftest.
$ac_ext
10783 cat >>conftest.
$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10787 #define $ac_func innocuous_$ac_func
10789 /* System header to define __stub macros and hopefully few prototypes,
10790 which can conflict with char $ac_func (); below.
10791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10792 <limits.h> exists even on freestanding compilers. */
10795 # include <limits.h>
10797 # include <assert.h>
10802 /* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10809 /* The GNU C library defines this for functions which it implements
10810 to always fail with ENOSYS. Some functions are actually named
10811 something starting with __ and the normal name is an alias. */
10812 #if defined __stub_$ac_func || defined __stub___$ac_func
10819 return $ac_func ();
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 eval "$as_ac_var=yes"
10844 echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.$ac_ext >&5
10847 eval "$as_ac_var=no"
10850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10851 conftest$ac_exeext conftest.$ac_ext
10853 ac_res=`eval echo '${'$as_ac_var'}'`
10854 { echo "$as_me:$LINENO: result: $ac_res" >&5
10855 echo "${ECHO_T}$ac_res" >&6; }
10856 if test `eval echo '${'$as_ac_var'}'` = yes; then
10857 cat >>confdefs.h <<_ACEOF
10858 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10868 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_6+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.$ac_ext <<_ACEOF
10875 cat confdefs.h >>conftest.$ac_ext
10876 cat >>conftest.$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10882 #if XlibSpecificationRelease < 6
10890 rm -f conftest.$ac_objext conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10894 *) ac_try_echo
=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest
$ac_exeext &&
10907 $as_test_x conftest
$ac_exeext; then
10908 emacs_cv_x11_version_6
=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.
$ac_ext >&5
10913 emacs_cv_x11_version_6
=no
10916 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10917 conftest
$ac_exeext conftest.
$ac_ext
10920 if test $emacs_cv_x11_version_6 = yes; then
10921 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10922 echo "${ECHO_T}6 or newer" >&6; }
10924 cat >>confdefs.h
<<\_ACEOF
10925 #define HAVE_X11R6 1
10929 { echo "$as_me:$LINENO: result: before 6" >&5
10930 echo "${ECHO_T}before 6" >&6; }
10935 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10937 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10938 if test "${with_rsvg}" != "no"; then
10939 RSVG_REQUIRED
=2.0.0
10940 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10945 # Extract the first word of "pkg-config", so it can be a program name with args.
10946 set dummy pkg-config
; ac_word
=$2
10947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10950 echo $ECHO_N "(cached) $ECHO_C" >&6
10952 case $PKG_CONFIG in
10954 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10958 for as_dir
in $PATH
10961 test -z "$as_dir" && as_dir
=.
10962 for ac_exec_ext
in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10976 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10977 if test -n "$PKG_CONFIG"; then
10978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10987 if test "$PKG_CONFIG" = "no" ; then
10990 PKG_CONFIG_MIN_VERSION
=0.9.0
10991 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10992 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10993 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10995 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10996 { echo "$as_me:$LINENO: result: yes" >&5
10997 echo "${ECHO_T}yes" >&6; }
11000 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11001 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11002 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11003 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11004 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11006 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11007 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11008 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11009 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11010 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11012 { echo "$as_me:$LINENO: result: no" >&5
11013 echo "${ECHO_T}no" >&6; }
11016 ## If we have a custom action on failure, don't print errors, but
11017 ## do set a variable so people can do so.
11018 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11025 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11026 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11030 if test $succeeded = yes; then
11039 if test ".${RSVG_CFLAGS}" != "."; then
11042 cat >>confdefs.h
<<\_ACEOF
11043 #define HAVE_RSVG 1
11046 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11047 LIBS
="$RSVG_LIBS $LIBS"
11054 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11057 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11062 # Extract the first word of "pkg-config", so it can be a program name with args.
11063 set dummy pkg-config
; ac_word
=$2
11064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11066 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 case $PKG_CONFIG in
11071 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11074 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11075 for as_dir
in $PATH
11078 test -z "$as_dir" && as_dir
=.
11079 for ac_exec_ext
in '' $ac_executable_extensions; do
11080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11081 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11089 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11093 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11094 if test -n "$PKG_CONFIG"; then
11095 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11096 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11098 { echo "$as_me:$LINENO: result: no" >&5
11099 echo "${ECHO_T}no" >&6; }
11104 if test "$PKG_CONFIG" = "no" ; then
11107 PKG_CONFIG_MIN_VERSION
=0.9.0
11108 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11109 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11110 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11112 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11113 { echo "$as_me:$LINENO: result: yes" >&5
11114 echo "${ECHO_T}yes" >&6; }
11117 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11118 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11119 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11120 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11121 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11123 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11124 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11125 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11126 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11127 echo "${ECHO_T}$GTK_LIBS" >&6; }
11129 { echo "$as_me:$LINENO: result: no" >&5
11130 echo "${ECHO_T}no" >&6; }
11133 ## If we have a custom action on failure, don't print errors, but
11134 ## do set a variable so people can do so.
11135 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11142 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11143 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11147 if test $succeeded = yes; then
11153 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11154 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11155 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11156 { (exit 1); exit 1; }; }
11161 if test x
"$pkg_check_gtk" = xyes
; then
11165 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11166 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11167 LIBS
="$GTK_LIBS $LIBS"
11170 for ac_func
in gtk_main
11172 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11175 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11176 echo $ECHO_N "(cached) $ECHO_C" >&6
11178 cat >conftest.
$ac_ext <<_ACEOF
11181 cat confdefs.h
>>conftest.
$ac_ext
11182 cat >>conftest.
$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11186 #define $ac_func innocuous_$ac_func
11188 /* System header to define __stub macros and hopefully few prototypes,
11189 which can conflict with char $ac_func (); below.
11190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11191 <limits.h> exists even on freestanding compilers. */
11194 # include <limits.h>
11196 # include <assert.h>
11201 /* Override any GCC internal prototype to avoid an error.
11202 Use char because int might match the return type of a GCC
11203 builtin and then its argument prototype would still apply. */
11208 /* The GNU C library defines this for functions which it implements
11209 to always fail with ENOSYS. Some functions are actually named
11210 something starting with __ and the normal name is an alias. */
11211 #if defined __stub_$ac_func || defined __stub___$ac_func
11218 return $ac_func ();
11223 rm -f conftest.
$ac_objext conftest
$ac_exeext
11224 if { (ac_try
="$ac_link"
11225 case "(($ac_try" in
11226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11227 *) ac_try_echo=$ac_try;;
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230 (eval "$ac_link") 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } && {
11237 test -z "$ac_c_werror_flag" ||
11238 test ! -s conftest.err
11239 } && test -s conftest$ac_exeext &&
11240 $as_test_x conftest$ac_exeext; then
11241 eval "$as_ac_var=yes"
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 eval "$as_ac_var=no"
11249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11250 conftest$ac_exeext conftest.$ac_ext
11252 ac_res=`eval echo '${'$as_ac_var'}'`
11253 { echo "$as_me:$LINENO: result: $ac_res" >&5
11254 echo "${ECHO_T}$ac_res" >&6; }
11255 if test `eval echo '${'$as_ac_var'}'` = yes; then
11256 cat >>confdefs.h <<_ACEOF
11257 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11263 if test "${GTK_COMPILES}" != "yes"; then
11264 if test "$USE_X_TOOLKIT" != "maybe"; then
11265 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11266 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11267 { (exit 1); exit 1; }; };
11272 cat >>confdefs.h <<\_ACEOF
11277 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11280 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11281 closing open displays. This is no problem if you just use
11282 one display, but if you use more than one and close one of them
11283 Emacs may crash." >&5
11284 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11285 closing open displays. This is no problem if you just use
11286 one display, but if you use more than one and close one of them
11287 Emacs may crash." >&2;}
11295 if test "${HAVE_GTK}" = "yes"; then
11297 if test "$with_toolkit_scroll_bars" != no; then
11298 with_toolkit_scroll_bars=yes
11301 HAVE_GTK_MULTIDISPLAY=no
11303 for ac_func in gdk_display_open
11305 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11306 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11307 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11308 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11309 echo $ECHO_N "(cached) $ECHO_C" >&6
11311 cat >conftest.$ac_ext <<_ACEOF
11314 cat confdefs.h >>conftest.$ac_ext
11315 cat >>conftest.$ac_ext <<_ACEOF
11316 /* end confdefs.h. */
11317 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11319 #define $ac_func innocuous_$ac_func
11321 /* System header to define __stub macros and hopefully few prototypes,
11322 which can conflict with char $ac_func (); below.
11323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11324 <limits.h> exists even on freestanding compilers. */
11327 # include <limits.h>
11329 # include <assert.h>
11334 /* Override any GCC internal prototype to avoid an error.
11335 Use char because int might match the return type of a GCC
11336 builtin and then its argument prototype would still apply. */
11341 /* The GNU C library defines this for functions which it implements
11342 to always fail with ENOSYS. Some functions are actually named
11343 something starting with __ and the normal name is an alias. */
11344 #if defined __stub_$ac_func || defined __stub___$ac_func
11351 return $ac_func ();
11356 rm -f conftest.$ac_objext conftest$ac_exeext
11357 if { (ac_try="$ac_link"
11358 case "(($ac_try" in
11359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11360 *) ac_try_echo
=$ac_try;;
11362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_link") 2>conftest.er1
11365 grep -v '^ *+' conftest.er1
>conftest.err
11367 cat conftest.err
>&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_c_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest
$ac_exeext &&
11373 $as_test_x conftest
$ac_exeext; then
11374 eval "$as_ac_var=yes"
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.
$ac_ext >&5
11379 eval "$as_ac_var=no"
11382 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11383 conftest
$ac_exeext conftest.
$ac_ext
11385 ac_res
=`eval echo '${'$as_ac_var'}'`
11386 { echo "$as_me:$LINENO: result: $ac_res" >&5
11387 echo "${ECHO_T}$ac_res" >&6; }
11388 if test `eval echo '${'$as_ac_var'}'` = yes; then
11389 cat >>confdefs.h
<<_ACEOF
11390 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 HAVE_GTK_MULTIDISPLAY
=yes
11396 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11398 cat >>confdefs.h
<<\_ACEOF
11399 #define HAVE_GTK_MULTIDISPLAY 1
11404 HAVE_GTK_FILE_SELECTION
=no
11406 for ac_func
in gtk_file_selection_new
11408 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11411 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 cat >conftest.
$ac_ext <<_ACEOF
11417 cat confdefs.h
>>conftest.
$ac_ext
11418 cat >>conftest.
$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11422 #define $ac_func innocuous_$ac_func
11424 /* System header to define __stub macros and hopefully few prototypes,
11425 which can conflict with char $ac_func (); below.
11426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11427 <limits.h> exists even on freestanding compilers. */
11430 # include <limits.h>
11432 # include <assert.h>
11437 /* Override any GCC internal prototype to avoid an error.
11438 Use char because int might match the return type of a GCC
11439 builtin and then its argument prototype would still apply. */
11444 /* The GNU C library defines this for functions which it implements
11445 to always fail with ENOSYS. Some functions are actually named
11446 something starting with __ and the normal name is an alias. */
11447 #if defined __stub_$ac_func || defined __stub___$ac_func
11454 return $ac_func ();
11459 rm -f conftest.
$ac_objext conftest
$ac_exeext
11460 if { (ac_try
="$ac_link"
11461 case "(($ac_try" in
11462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11463 *) ac_try_echo=$ac_try;;
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466 (eval "$ac_link") 2>conftest.er1
11468 grep -v '^ *+' conftest.er1 >conftest.err
11470 cat conftest.err >&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } && {
11473 test -z "$ac_c_werror_flag" ||
11474 test ! -s conftest.err
11475 } && test -s conftest$ac_exeext &&
11476 $as_test_x conftest$ac_exeext; then
11477 eval "$as_ac_var=yes"
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11482 eval "$as_ac_var=no"
11485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11486 conftest$ac_exeext conftest.$ac_ext
11488 ac_res=`eval echo '${'$as_ac_var'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11491 if test `eval echo '${'$as_ac_var'}'` = yes; then
11492 cat >>confdefs.h <<_ACEOF
11493 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11495 HAVE_GTK_FILE_SELECTION=yes
11500 HAVE_GTK_FILE_CHOOSER=no
11502 for ac_func in gtk_file_chooser_dialog_new
11504 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11505 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11507 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
11510 cat >conftest.$ac_ext <<_ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h. */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11518 #define $ac_func innocuous_$ac_func
11520 /* System header to define __stub macros and hopefully few prototypes,
11521 which can conflict with char $ac_func (); below.
11522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523 <limits.h> exists even on freestanding compilers. */
11526 # include <limits.h>
11528 # include <assert.h>
11533 /* Override any GCC internal prototype to avoid an error.
11534 Use char because int might match the return type of a GCC
11535 builtin and then its argument prototype would still apply. */
11540 /* The GNU C library defines this for functions which it implements
11541 to always fail with ENOSYS. Some functions are actually named
11542 something starting with __ and the normal name is an alias. */
11543 #if defined __stub_$ac_func || defined __stub___$ac_func
11550 return $ac_func ();
11555 rm -f conftest.$ac_objext conftest$ac_exeext
11556 if { (ac_try="$ac_link"
11557 case "(($ac_try" in
11558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11559 *) ac_try_echo
=$ac_try;;
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562 (eval "$ac_link") 2>conftest.er1
11564 grep -v '^ *+' conftest.er1
>conftest.err
11566 cat conftest.err
>&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } && {
11569 test -z "$ac_c_werror_flag" ||
11570 test ! -s conftest.err
11571 } && test -s conftest
$ac_exeext &&
11572 $as_test_x conftest
$ac_exeext; then
11573 eval "$as_ac_var=yes"
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.
$ac_ext >&5
11578 eval "$as_ac_var=no"
11581 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11582 conftest
$ac_exeext conftest.
$ac_ext
11584 ac_res
=`eval echo '${'$as_ac_var'}'`
11585 { echo "$as_me:$LINENO: result: $ac_res" >&5
11586 echo "${ECHO_T}$ac_res" >&6; }
11587 if test `eval echo '${'$as_ac_var'}'` = yes; then
11588 cat >>confdefs.h
<<_ACEOF
11589 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11591 HAVE_GTK_FILE_CHOOSER
=yes
11596 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11597 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11599 cat >>confdefs.h
<<\_ACEOF
11600 #define HAVE_GTK_FILE_BOTH 1
11605 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11606 HAVE_GTK_AND_PTHREAD
=no
11608 for ac_header
in pthread.h
11610 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_res
=`eval echo '${'$as_ac_Header'}'`
11618 { echo "$as_me:$LINENO: result: $ac_res" >&5
11619 echo "${ECHO_T}$ac_res" >&6; }
11621 # Is the header compilable?
11622 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11624 cat >conftest.
$ac_ext <<_ACEOF
11627 cat confdefs.h
>>conftest.
$ac_ext
11628 cat >>conftest.
$ac_ext <<_ACEOF
11629 /* end confdefs.h. */
11630 $ac_includes_default
11631 #include <$ac_header>
11633 rm -f conftest.
$ac_objext
11634 if { (ac_try
="$ac_compile"
11635 case "(($ac_try" in
11636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11637 *) ac_try_echo=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_compile") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1 >conftest.err
11644 cat conftest.err >&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } && {
11647 test -z "$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11649 } && test -s conftest.$ac_objext; then
11650 ac_header_compiler=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_header_compiler=no
11658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11660 echo "${ECHO_T}$ac_header_compiler" >&6; }
11662 # Is the header present?
11663 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11664 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <$ac_header>
11673 if { (ac_try="$ac_cpp conftest.$ac_ext"
11674 case "(($ac_try" in
11675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11676 *) ac_try_echo
=$ac_try;;
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11681 grep -v '^ *+' conftest.er1
>conftest.err
11683 cat conftest.err
>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } >/dev
/null
&& {
11686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11687 test ! -s conftest.err
11689 ac_header_preproc
=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.
$ac_ext >&5
11694 ac_header_preproc
=no
11697 rm -f conftest.err conftest.
$ac_ext
11698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11699 echo "${ECHO_T}$ac_header_preproc" >&6; }
11701 # So? What about this header?
11702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11704 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11705 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11707 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11708 ac_header_preproc
=yes
11711 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11712 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11713 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11714 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11715 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11716 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11717 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11718 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11720 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11721 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11722 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11728 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 eval "$as_ac_Header=\$ac_header_preproc"
11733 ac_res
=`eval echo '${'$as_ac_Header'}'`
11734 { echo "$as_me:$LINENO: result: $ac_res" >&5
11735 echo "${ECHO_T}$ac_res" >&6; }
11738 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11739 cat >>confdefs.h
<<_ACEOF
11740 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11747 if test "$ac_cv_header_pthread_h"; then
11748 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11749 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11750 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11753 ac_check_lib_save_LIBS
=$LIBS
11754 LIBS
="-lpthread $LIBS"
11755 cat >conftest.
$ac_ext <<_ACEOF
11758 cat confdefs.h
>>conftest.
$ac_ext
11759 cat >>conftest.
$ac_ext <<_ACEOF
11760 /* end confdefs.h. */
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11768 char pthread_self ();
11772 return pthread_self ();
11777 rm -f conftest.
$ac_objext conftest
$ac_exeext
11778 if { (ac_try
="$ac_link"
11779 case "(($ac_try" in
11780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1 >conftest.err
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest$ac_exeext &&
11794 $as_test_x conftest$ac_exeext; then
11795 ac_cv_lib_pthread_pthread_self=yes
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.$ac_ext >&5
11800 ac_cv_lib_pthread_pthread_self=no
11803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11804 conftest$ac_exeext conftest.$ac_ext
11805 LIBS=$ac_check_lib_save_LIBS
11807 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11808 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11809 if test $ac_cv_lib_pthread_pthread_self = yes; then
11810 HAVE_GTK_AND_PTHREAD=yes
11814 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11815 case "${canonical}" in
11817 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11820 cat >>confdefs.h <<\_ACEOF
11821 #define HAVE_GTK_AND_PTHREAD 1
11829 if test "${with_dbus}" = "yes"; then
11833 # Extract the first word of "pkg-config", so it can be a program name with args.
11834 set dummy pkg-config; ac_word=$2
11835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11837 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11838 echo $ECHO_N "(cached) $ECHO_C" >&6
11840 case $PKG_CONFIG in
11842 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11846 for as_dir in $PATH
11849 test -z "$as_dir" && as_dir=.
11850 for ac_exec_ext in '' $ac_executable_extensions; do
11851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11852 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11860 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11864 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11865 if test -n "$PKG_CONFIG"; then
11866 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11867 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11869 { echo "$as_me:$LINENO: result: no" >&5
11870 echo "${ECHO_T}no" >&6; }
11875 if test "$PKG_CONFIG" = "no" ; then
11878 PKG_CONFIG_MIN_VERSION=0.9.0
11879 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11880 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11881 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11883 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11884 { echo "$as_me:$LINENO: result: yes" >&5
11885 echo "${ECHO_T}yes" >&6; }
11888 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11889 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11890 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11891 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11892 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11894 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11895 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11896 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11897 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11898 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11900 { echo "$as_me:$LINENO: result: no" >&5
11901 echo "${ECHO_T}no" >&6; }
11904 ## If we have a custom action on failure, don't print errors, but
11905 ## do set a variable so people can do so.
11906 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11918 if test $succeeded = yes; then
11924 if test "$HAVE_DBUS" = yes; then
11926 cat >>confdefs.h <<\_ACEOF
11927 #define HAVE_DBUS 1
11934 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11935 if test "$with_xaw3d" != no; then
11936 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11937 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11938 if test "${emacs_cv_xaw3d+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 cat >conftest.$ac_ext <<_ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11948 #include <X11/Intrinsic.h>
11949 #include <X11/Xaw3d/Simple.h>
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (ac_try="$ac_link"
11960 case "(($ac_try" in
11961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11962 *) ac_try_echo
=$ac_try;;
11964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11965 (eval "$ac_link") 2>conftest.er1
11967 grep -v '^ *+' conftest.er1
>conftest.err
11969 cat conftest.err
>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); } && {
11972 test -z "$ac_c_werror_flag" ||
11973 test ! -s conftest.err
11974 } && test -s conftest
$ac_exeext &&
11975 $as_test_x conftest
$ac_exeext; then
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.
$ac_ext >&5
11984 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11985 conftest
$ac_exeext conftest.
$ac_ext
11991 if test $emacs_cv_xaw3d = yes; then
11992 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11993 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11994 USE_X_TOOLKIT
=LUCID
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define HAVE_XAW3D 1
12002 { echo "$as_me:$LINENO: result: no" >&5
12003 echo "${ECHO_T}no" >&6; }
12004 { echo "$as_me:$LINENO: checking for libXaw" >&5
12005 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12006 if test "${emacs_cv_xaw+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 #include <X11/Intrinsic.h>
12017 #include <X11/Xaw/Simple.h>
12026 rm -f conftest.
$ac_objext conftest
$ac_exeext
12027 if { (ac_try
="$ac_link"
12028 case "(($ac_try" in
12029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12030 *) ac_try_echo=$ac_try;;
12032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12033 (eval "$ac_link") 2>conftest.er1
12035 grep -v '^ *+' conftest.er1 >conftest.err
12037 cat conftest.err >&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); } && {
12040 test -z "$ac_c_werror_flag" ||
12041 test ! -s conftest.err
12042 } && test -s conftest$ac_exeext &&
12043 $as_test_x conftest$ac_exeext; then
12046 echo "$as_me: failed program was:" >&5
12047 sed 's/^/| /' conftest.$ac_ext >&5
12052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12053 conftest$ac_exeext conftest.$ac_ext
12056 if test $emacs_cv_xaw = yes; then
12057 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12058 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12059 USE_X_TOOLKIT=LUCID
12060 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12061 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12062 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12063 { (exit 1); exit 1; }; }
12065 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12066 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12072 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12074 if test "${USE_X_TOOLKIT}" != "none"; then
12075 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12076 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12077 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 cat >conftest.$ac_ext <<_ACEOF
12083 cat confdefs.h >>conftest.$ac_ext
12084 cat >>conftest.$ac_ext <<_ACEOF
12085 /* end confdefs.h. */
12086 #include <X11/Intrinsic.h>
12090 #if XtSpecificationRelease < 6
12098 rm -f conftest.$ac_objext conftest$ac_exeext
12099 if { (ac_try="$ac_link"
12100 case "(($ac_try" in
12101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12102 *) ac_try_echo
=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_link") 2>conftest.er1
12107 grep -v '^ *+' conftest.er1
>conftest.err
12109 cat conftest.err
>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); } && {
12112 test -z "$ac_c_werror_flag" ||
12113 test ! -s conftest.err
12114 } && test -s conftest
$ac_exeext &&
12115 $as_test_x conftest
$ac_exeext; then
12116 emacs_cv_x11_toolkit_version_6
=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.
$ac_ext >&5
12121 emacs_cv_x11_toolkit_version_6
=no
12124 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12125 conftest
$ac_exeext conftest.
$ac_ext
12128 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12129 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12130 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12131 echo "${ECHO_T}6 or newer" >&6; }
12133 cat >>confdefs.h
<<\_ACEOF
12134 #define HAVE_X11XTR6 1
12138 { echo "$as_me:$LINENO: result: before 6" >&5
12139 echo "${ECHO_T}before 6" >&6; }
12143 if test x
$HAVE_X11XTR6 = xyes
; then
12144 LIBS
="-lXt -lSM -lICE $LIBS"
12149 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12150 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12151 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 ac_check_lib_save_LIBS
=$LIBS
12156 cat >conftest.
$ac_ext <<_ACEOF
12159 cat confdefs.h
>>conftest.
$ac_ext
12160 cat >>conftest.
$ac_ext <<_ACEOF
12161 /* end confdefs.h. */
12163 /* Override any GCC internal prototype to avoid an error.
12164 Use char because int might match the return type of a GCC
12165 builtin and then its argument prototype would still apply. */
12169 char XmuConvertStandardSelection ();
12173 return XmuConvertStandardSelection ();
12178 rm -f conftest.
$ac_objext conftest
$ac_exeext
12179 if { (ac_try
="$ac_link"
12180 case "(($ac_try" in
12181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12196 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12201 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12206 LIBS=$ac_check_lib_save_LIBS
12208 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12209 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12210 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_LIBXMU 1
12219 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12222 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12223 if test "${HAVE_X11}" = "yes"; then
12224 if test "${USE_X_TOOLKIT}" != "none"; then
12226 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12227 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12228 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ac_check_lib_save_LIBS=$LIBS
12232 LIBS="-lXext $LIBS"
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12246 char XShapeQueryExtension ();
12250 return XShapeQueryExtension ();
12255 rm -f conftest.$ac_objext conftest$ac_exeext
12256 if { (ac_try="$ac_link"
12257 case "(($ac_try" in
12258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12259 *) ac_try_echo
=$ac_try;;
12261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12262 (eval "$ac_link") 2>conftest.er1
12264 grep -v '^ *+' conftest.er1
>conftest.err
12266 cat conftest.err
>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } && {
12269 test -z "$ac_c_werror_flag" ||
12270 test ! -s conftest.err
12271 } && test -s conftest
$ac_exeext &&
12272 $as_test_x conftest
$ac_exeext; then
12273 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12275 echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.
$ac_ext >&5
12278 ac_cv_lib_Xext_XShapeQueryExtension
=no
12281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12282 conftest
$ac_exeext conftest.
$ac_ext
12283 LIBS
=$ac_check_lib_save_LIBS
12285 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12286 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12287 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12288 cat >>confdefs.h
<<_ACEOF
12289 #define HAVE_LIBXEXT 1
12292 LIBS
="-lXext $LIBS"
12299 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12300 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12301 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12302 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 cat >conftest.
$ac_ext <<_ACEOF
12308 cat confdefs.h
>>conftest.
$ac_ext
12309 cat >>conftest.
$ac_ext <<_ACEOF
12310 /* end confdefs.h. */
12315 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12318 Motif version prior to 2.1.
12324 rm -f conftest.
$ac_objext
12325 if { (ac_try
="$ac_compile"
12326 case "(($ac_try" in
12327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_compile") 2>conftest.er1
12333 grep -v '^ *+' conftest.er1 >conftest.err
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest.$ac_objext; then
12341 emacs_cv_motif_version_2_1=yes
12343 echo "$as_me: failed program was:" >&5
12344 sed 's/^/| /' conftest.$ac_ext >&5
12346 emacs_cv_motif_version_2_1=no
12349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12352 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12353 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12354 if test $emacs_cv_motif_version_2_1 = yes; then
12357 cat >>confdefs.h <<\_ACEOF
12358 #define HAVE_MOTIF_2_1 1
12361 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12362 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12363 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 ac_check_lib_save_LIBS=$LIBS
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12381 char XpCreateContext ();
12385 return XpCreateContext ();
12390 rm -f conftest.$ac_objext conftest$ac_exeext
12391 if { (ac_try="$ac_link"
12392 case "(($ac_try" in
12393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12394 *) ac_try_echo
=$ac_try;;
12396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12397 (eval "$ac_link") 2>conftest.er1
12399 grep -v '^ *+' conftest.er1
>conftest.err
12401 cat conftest.err
>&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } && {
12404 test -z "$ac_c_werror_flag" ||
12405 test ! -s conftest.err
12406 } && test -s conftest
$ac_exeext &&
12407 $as_test_x conftest
$ac_exeext; then
12408 ac_cv_lib_Xp_XpCreateContext
=yes
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.
$ac_ext >&5
12413 ac_cv_lib_Xp_XpCreateContext
=no
12416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12417 conftest
$ac_exeext conftest.
$ac_ext
12418 LIBS
=$ac_check_lib_save_LIBS
12420 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12421 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12422 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12426 if test ${HAVE_LIBXP} = yes; then
12428 cat >>confdefs.h
<<\_ACEOF
12429 #define HAVE_LIBXP 1
12434 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12435 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12436 if test "${emacs_cv_lesstif+set}" = set; then
12437 echo $ECHO_N "(cached) $ECHO_C" >&6
12439 # We put this in CFLAGS temporarily to precede other -I options
12440 # that might be in CFLAGS temporarily.
12441 # We put this in CPPFLAGS where it precedes the other -I options.
12442 OLD_CPPFLAGS
=$CPPFLAGS
12444 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12445 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12446 cat >conftest.
$ac_ext <<_ACEOF
12449 cat confdefs.h
>>conftest.
$ac_ext
12450 cat >>conftest.
$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12461 rm -f conftest.
$ac_objext
12462 if { (ac_try
="$ac_compile"
12463 case "(($ac_try" in
12464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_compile") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1 >conftest.err
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } && {
12475 test -z "$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 } && test -s conftest.$ac_objext; then
12478 emacs_cv_lesstif=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 emacs_cv_lesstif=no
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12489 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12490 if test $emacs_cv_lesstif = yes; then
12491 # Make sure this -I option remains in CPPFLAGS after it is set
12492 # back to REAL_CPPFLAGS.
12493 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12494 # have those other -I options anyway. Ultimately, having this
12495 # directory ultimately in CPPFLAGS will be enough.
12496 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12497 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12500 CPPFLAGS=$OLD_CPPFLAGS
12507 USE_TOOLKIT_SCROLL_BARS=no
12508 if test "${with_toolkit_scroll_bars}" != "no"; then
12509 if test "${USE_X_TOOLKIT}" != "none"; then
12510 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12511 cat >>confdefs.h <<\_ACEOF
12512 #define USE_TOOLKIT_SCROLL_BARS 1
12516 USE_TOOLKIT_SCROLL_BARS=yes
12517 elif test "${HAVE_XAW3D}" = "yes"; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define USE_TOOLKIT_SCROLL_BARS 1
12522 USE_TOOLKIT_SCROLL_BARS=yes
12524 elif test "${HAVE_GTK}" = "yes"; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define USE_TOOLKIT_SCROLL_BARS 1
12529 USE_TOOLKIT_SCROLL_BARS=yes
12530 elif test "${HAVE_CARBON}" = "yes"; then
12531 cat >>confdefs.h <<\_ACEOF
12532 #define USE_TOOLKIT_SCROLL_BARS 1
12535 USE_TOOLKIT_SCROLL_BARS=yes
12539 cat >conftest.$ac_ext <<_ACEOF
12542 cat confdefs.h >>conftest.$ac_ext
12543 cat >>conftest.$ac_ext <<_ACEOF
12544 /* end confdefs.h. */
12546 #include <X11/Xlib.h>
12547 #include <X11/Xresource.h>
12556 rm -f conftest.$ac_objext
12557 if { (ac_try="$ac_compile"
12558 case "(($ac_try" in
12559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12560 *) ac_try_echo
=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_compile") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1
>conftest.err
12567 cat conftest.err
>&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest.
$ac_objext; then
12575 cat >>confdefs.h
<<\_ACEOF
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12586 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12589 if test "${with_xim}" != "no"; then
12591 cat >>confdefs.h
<<\_ACEOF
12598 if test "${HAVE_XIM}" != "no"; then
12599 late_CFLAGS
=$CFLAGS
12600 if test "$GCC" = yes; then
12601 CFLAGS
="$CFLAGS --pedantic-errors"
12603 cat >conftest.
$ac_ext <<_ACEOF
12606 cat confdefs.h
>>conftest.
$ac_ext
12607 cat >>conftest.
$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12610 #include <X11/Xlib.h>
12611 #include <X11/Xresource.h>
12620 XPointer *client_data;
12622 /* If we're not using GCC, it's probably not XFree86, and this is
12623 probably right, but we can't use something like --pedantic-errors. */
12624 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12625 char*, XIMProc, XPointer*);
12627 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12633 rm -f conftest.
$ac_objext
12634 if { (ac_try
="$ac_compile"
12635 case "(($ac_try" in
12636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12637 *) ac_try_echo=$ac_try;;
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640 (eval "$ac_compile") 2>conftest.er1
12642 grep -v '^ *+' conftest.er1 >conftest.err
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } && {
12647 test -z "$ac_c_werror_flag" ||
12648 test ! -s conftest.err
12649 } && test -s conftest.$ac_objext; then
12650 emacs_cv_arg6_star=yes
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12660 if test "$emacs_cv_arg6_star" = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12666 cat >>confdefs.h <<\_ACEOF
12667 #define XRegisterIMInstantiateCallback_arg6 XPointer
12671 CFLAGS=$late_CFLAGS
12674 ### Start of font-backend section.
12675 if test "${HAVE_X11}" != "yes"; then
12676 USE_FONT_BACKEND=no
12679 if test "${USE_FONT_BACKEND}" = "yes"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define USE_FONT_BACKEND 1
12686 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12688 if test "x${with_freetype}" = "xno"; then
12691 if test "x${with_xft}" != "xno"; then
12696 # Extract the first word of "pkg-config", so it can be a program name with args.
12697 set dummy pkg-config
; ac_word
=$2
12698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12700 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12701 echo $ECHO_N "(cached) $ECHO_C" >&6
12703 case $PKG_CONFIG in
12705 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12708 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12709 for as_dir
in $PATH
12712 test -z "$as_dir" && as_dir
=.
12713 for ac_exec_ext
in '' $ac_executable_extensions; do
12714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12715 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12723 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12727 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12728 if test -n "$PKG_CONFIG"; then
12729 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12730 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12732 { echo "$as_me:$LINENO: result: no" >&5
12733 echo "${ECHO_T}no" >&6; }
12738 if test "$PKG_CONFIG" = "no" ; then
12741 PKG_CONFIG_MIN_VERSION
=0.9.0
12742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12743 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12744 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12746 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12747 { echo "$as_me:$LINENO: result: yes" >&5
12748 echo "${ECHO_T}yes" >&6; }
12751 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12752 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12753 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12754 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12755 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12757 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12758 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12759 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12760 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12761 echo "${ECHO_T}$XFT_LIBS" >&6; }
12763 { echo "$as_me:$LINENO: result: no" >&5
12764 echo "${ECHO_T}no" >&6; }
12767 ## If we have a custom action on failure, don't print errors, but
12768 ## do set a variable so people can do so.
12769 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12776 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12777 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12781 if test $succeeded = yes; then
12787 if test "$HAVE_XFT" != no
; then
12788 OLD_CPPFLAGS
="$CPPFLAGS"
12789 OLD_CFLAGS
="$CFLAGS"
12791 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12792 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12793 LIBS
="$XFT_LIBS $LIBS"
12794 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12795 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12796 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12797 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12800 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12801 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12803 # Is the header compilable?
12804 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12805 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12806 cat >conftest.
$ac_ext <<_ACEOF
12809 cat confdefs.h
>>conftest.
$ac_ext
12810 cat >>conftest.
$ac_ext <<_ACEOF
12811 /* end confdefs.h. */
12812 $ac_includes_default
12813 #include <X11/Xft/Xft.h>
12815 rm -f conftest.
$ac_objext
12816 if { (ac_try
="$ac_compile"
12817 case "(($ac_try" in
12818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_compile") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1 >conftest.err
12826 cat conftest.err >&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } && {
12829 test -z "$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12831 } && test -s conftest.$ac_objext; then
12832 ac_header_compiler=yes
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12837 ac_header_compiler=no
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12842 echo "${ECHO_T}$ac_header_compiler" >&6; }
12844 # Is the header present?
12845 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12846 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 #include <X11/Xft/Xft.h>
12855 if { (ac_try="$ac_cpp conftest.$ac_ext"
12856 case "(($ac_try" in
12857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12858 *) ac_try_echo
=$ac_try;;
12860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12863 grep -v '^ *+' conftest.er1
>conftest.err
12865 cat conftest.err
>&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12867 (exit $ac_status); } >/dev
/null
&& {
12868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12871 ac_header_preproc
=yes
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.
$ac_ext >&5
12876 ac_header_preproc
=no
12879 rm -f conftest.err conftest.
$ac_ext
12880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12881 echo "${ECHO_T}$ac_header_preproc" >&6; }
12883 # So? What about this header?
12884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12886 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12887 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12888 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12889 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12890 ac_header_preproc
=yes
12893 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12894 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12895 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12896 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12897 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12898 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12900 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12902 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12904 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12908 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12909 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12910 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12913 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12915 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12916 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12919 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12920 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12921 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12922 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12923 echo $ECHO_N "(cached) $ECHO_C" >&6
12925 ac_check_lib_save_LIBS
=$LIBS
12926 LIBS
="-lXft $XFT_LIBS $LIBS"
12927 cat >conftest.
$ac_ext <<_ACEOF
12930 cat confdefs.h
>>conftest.
$ac_ext
12931 cat >>conftest.
$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12934 /* Override any GCC internal prototype to avoid an error.
12935 Use char because int might match the return type of a GCC
12936 builtin and then its argument prototype would still apply. */
12940 char XftFontOpen ();
12944 return XftFontOpen ();
12949 rm -f conftest.
$ac_objext conftest
$ac_exeext
12950 if { (ac_try
="$ac_link"
12951 case "(($ac_try" in
12952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12953 *) ac_try_echo=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } && {
12963 test -z "$ac_c_werror_flag" ||
12964 test ! -s conftest.err
12965 } && test -s conftest$ac_exeext &&
12966 $as_test_x conftest$ac_exeext; then
12967 ac_cv_lib_Xft_XftFontOpen=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_cv_lib_Xft_XftFontOpen=no
12975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12976 conftest$ac_exeext conftest.$ac_ext
12977 LIBS=$ac_check_lib_save_LIBS
12979 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12980 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12981 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12989 if test "${HAVE_XFT}" = "yes"; then
12991 cat >>confdefs.h <<\_ACEOF
12996 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12998 CPPFLAGS="$OLD_CPPFLAGS"
12999 CFLAGS="$OLD_CFLAGS"
13001 fi # "${HAVE_XFT}" = "yes"
13002 fi # "$HAVE_XFT" != no
13003 fi # "x${with_xft}" != "xno"
13005 if test "$HAVE_XFT" != "yes"; then
13011 ### Use -lfreetype if available, unless `--with-freetype=no
'.
13012 if test "${HAVE_XFT}" = "yes"; then
13014 elif test "x${with_freetype}" != "xno"; then
13019 # Extract the first word of "pkg-config", so it can be a program name with args.
13020 set dummy pkg-config; ac_word=$2
13021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13023 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13026 case $PKG_CONFIG in
13028 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13032 for as_dir in $PATH
13035 test -z "$as_dir" && as_dir=.
13036 for ac_exec_ext in '' $ac_executable_extensions; do
13037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13038 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13051 if test -n "$PKG_CONFIG"; then
13052 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13053 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13055 { echo "$as_me:$LINENO: result: no" >&5
13056 echo "${ECHO_T}no" >&6; }
13061 if test "$PKG_CONFIG" = "no" ; then
13064 PKG_CONFIG_MIN_VERSION=0.9.0
13065 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13066 { echo "$as_me:$LINENO: checking for freetype2" >&5
13067 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13069 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13070 { echo "$as_me:$LINENO: result: yes" >&5
13071 echo "${ECHO_T}yes" >&6; }
13074 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13075 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13076 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13077 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13078 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13080 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13081 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13082 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13083 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13084 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13086 { echo "$as_me:$LINENO: result: no" >&5
13087 echo "${ECHO_T}no" >&6; }
13090 ## If we have a custom action on failure, don't print errors
, but
13091 ## do set a variable so people can do so.
13092 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13099 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13100 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13104 if test $succeeded = yes; then
13110 if test "${HAVE_FREETYPE}" = "yes"; then
13114 # Extract the first word of "pkg-config", so it can be a program name with args.
13115 set dummy pkg-config
; ac_word
=$2
13116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13118 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 case $PKG_CONFIG in
13123 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13127 for as_dir
in $PATH
13130 test -z "$as_dir" && as_dir
=.
13131 for ac_exec_ext
in '' $ac_executable_extensions; do
13132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13133 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13141 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13145 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13146 if test -n "$PKG_CONFIG"; then
13147 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13148 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13150 { echo "$as_me:$LINENO: result: no" >&5
13151 echo "${ECHO_T}no" >&6; }
13156 if test "$PKG_CONFIG" = "no" ; then
13159 PKG_CONFIG_MIN_VERSION
=0.9.0
13160 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13161 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13162 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13164 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13165 { echo "$as_me:$LINENO: result: yes" >&5
13166 echo "${ECHO_T}yes" >&6; }
13169 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13170 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13171 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13172 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13173 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13175 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13176 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13177 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13178 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13179 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13181 { echo "$as_me:$LINENO: result: no" >&5
13182 echo "${ECHO_T}no" >&6; }
13183 FONTCONFIG_CFLAGS
=""
13185 ## If we have a custom action on failure, don't print errors, but
13186 ## do set a variable so people can do so.
13187 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13194 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13195 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13199 if test $succeeded = yes; then
13205 if test "${HAVE_FC}" = "no"; then
13212 if test "${HAVE_FREETYPE}" = "yes"; then
13214 cat >>confdefs.h
<<\_ACEOF
13215 #define HAVE_FREETYPE 1
13218 if test "${with_libotf}" != "no"; then
13222 # Extract the first word of "pkg-config", so it can be a program name with args.
13223 set dummy pkg-config
; ac_word
=$2
13224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13226 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 case $PKG_CONFIG in
13231 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13235 for as_dir
in $PATH
13238 test -z "$as_dir" && as_dir
=.
13239 for ac_exec_ext
in '' $ac_executable_extensions; do
13240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13241 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13249 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13253 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13254 if test -n "$PKG_CONFIG"; then
13255 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13256 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13258 { echo "$as_me:$LINENO: result: no" >&5
13259 echo "${ECHO_T}no" >&6; }
13264 if test "$PKG_CONFIG" = "no" ; then
13267 PKG_CONFIG_MIN_VERSION
=0.9.0
13268 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13269 { echo "$as_me:$LINENO: checking for libotf" >&5
13270 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13272 if $PKG_CONFIG --exists "libotf" 2>&5; then
13273 { echo "$as_me:$LINENO: result: yes" >&5
13274 echo "${ECHO_T}yes" >&6; }
13277 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13278 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13279 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13280 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13281 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13283 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13284 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13285 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13286 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13287 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13289 { echo "$as_me:$LINENO: result: no" >&5
13290 echo "${ECHO_T}no" >&6; }
13293 ## If we have a custom action on failure, don't print errors, but
13294 ## do set a variable so people can do so.
13295 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13302 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13303 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13307 if test $succeeded = yes; then
13313 if test "$HAVE_LIBOTF" = "yes"; then
13315 cat >>confdefs.h
<<\_ACEOF
13316 #define HAVE_LIBOTF 1
13324 if test "${with_m17n_flt}" != "no"; then
13328 # Extract the first word of "pkg-config", so it can be a program name with args.
13329 set dummy pkg-config
; ac_word
=$2
13330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13333 echo $ECHO_N "(cached) $ECHO_C" >&6
13335 case $PKG_CONFIG in
13337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13341 for as_dir
in $PATH
13344 test -z "$as_dir" && as_dir
=.
13345 for ac_exec_ext
in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13360 if test -n "$PKG_CONFIG"; then
13361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13364 { echo "$as_me:$LINENO: result: no" >&5
13365 echo "${ECHO_T}no" >&6; }
13370 if test "$PKG_CONFIG" = "no" ; then
13373 PKG_CONFIG_MIN_VERSION
=0.9.0
13374 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13375 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13376 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13378 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13383 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13384 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13385 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13386 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13387 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13389 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13390 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13391 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13392 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13393 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13395 { echo "$as_me:$LINENO: result: no" >&5
13396 echo "${ECHO_T}no" >&6; }
13399 ## If we have a custom action on failure, don't print errors, but
13400 ## do set a variable so people can do so.
13401 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13408 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13409 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13413 if test $succeeded = yes; then
13419 if test "$HAVE_M17N_FLT" = "yes"; then
13421 cat >>confdefs.h
<<\_ACEOF
13422 #define HAVE_M17N_FLT 1
13437 fi # "${USE_FONT_BACKEND}" = "yes"
13438 ### End of font-backend section.
13440 ### Use -lXpm if available, unless `--with-xpm=no'.
13442 if test "${HAVE_X11}" = "yes"; then
13443 if test "${with_xpm}" != "no"; then
13444 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13445 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13446 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13447 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13448 echo $ECHO_N "(cached) $ECHO_C" >&6
13450 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13451 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13453 # Is the header compilable?
13454 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13455 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13456 cat >conftest.
$ac_ext <<_ACEOF
13459 cat confdefs.h
>>conftest.
$ac_ext
13460 cat >>conftest.
$ac_ext <<_ACEOF
13461 /* end confdefs.h. */
13462 $ac_includes_default
13463 #include <X11/xpm.h>
13465 rm -f conftest.
$ac_objext
13466 if { (ac_try
="$ac_compile"
13467 case "(($ac_try" in
13468 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_compile") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1 >conftest.err
13476 cat conftest.err >&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } && {
13479 test -z "$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13481 } && test -s conftest.$ac_objext; then
13482 ac_header_compiler=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.$ac_ext >&5
13487 ac_header_compiler=no
13490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13492 echo "${ECHO_T}$ac_header_compiler" >&6; }
13494 # Is the header present?
13495 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13496 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13497 cat >conftest.$ac_ext <<_ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 #include <X11/xpm.h>
13505 if { (ac_try="$ac_cpp conftest.$ac_ext"
13506 case "(($ac_try" in
13507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13508 *) ac_try_echo
=$ac_try;;
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513 grep -v '^ *+' conftest.er1
>conftest.err
13515 cat conftest.err
>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } >/dev
/null
&& {
13518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13519 test ! -s conftest.err
13521 ac_header_preproc
=yes
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.
$ac_ext >&5
13526 ac_header_preproc
=no
13529 rm -f conftest.err conftest.
$ac_ext
13530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13531 echo "${ECHO_T}$ac_header_preproc" >&6; }
13533 # So? What about this header?
13534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13537 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13538 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13539 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13540 ac_header_preproc
=yes
13543 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13544 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13545 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13546 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13547 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13548 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13549 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13550 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13551 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13552 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13553 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13554 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13558 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13559 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13560 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13561 echo $ECHO_N "(cached) $ECHO_C" >&6
13563 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13565 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13566 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13569 if test $ac_cv_header_X11_xpm_h = yes; then
13570 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13571 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13572 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13573 echo $ECHO_N "(cached) $ECHO_C" >&6
13575 ac_check_lib_save_LIBS
=$LIBS
13576 LIBS
="-lXpm -lX11 $LIBS"
13577 cat >conftest.
$ac_ext <<_ACEOF
13580 cat confdefs.h
>>conftest.
$ac_ext
13581 cat >>conftest.
$ac_ext <<_ACEOF
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13590 char XpmReadFileToPixmap ();
13594 return XpmReadFileToPixmap ();
13599 rm -f conftest.
$ac_objext conftest
$ac_exeext
13600 if { (ac_try
="$ac_link"
13601 case "(($ac_try" in
13602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13603 *) ac_try_echo=$ac_try;;
13605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13606 (eval "$ac_link") 2>conftest.er1
13608 grep -v '^ *+' conftest.er1 >conftest.err
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } && {
13613 test -z "$ac_c_werror_flag" ||
13614 test ! -s conftest.err
13615 } && test -s conftest$ac_exeext &&
13616 $as_test_x conftest$ac_exeext; then
13617 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.$ac_ext >&5
13622 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13626 conftest$ac_exeext conftest.$ac_ext
13627 LIBS=$ac_check_lib_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13630 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13631 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13638 if test "${HAVE_XPM}" = "yes"; then
13639 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13640 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 #include "X11/xpm.h"
13648 #ifndef XpmReturnAllocPixels
13649 no_return_alloc_pixels
13653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13654 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13662 if test "${HAVE_XPM}" = "yes"; then
13663 { echo "$as_me:$LINENO: result: yes" >&5
13664 echo "${ECHO_T}yes" >&6; }
13666 { echo "$as_me:$LINENO: result: no" >&5
13667 echo "${ECHO_T}no" >&6; }
13672 if test "${HAVE_XPM}" = "yes"; then
13674 cat >>confdefs.h <<\_ACEOF
13681 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13683 if test "${HAVE_X11}" = "yes"; then
13684 if test "${with_jpeg}" != "no"; then
13685 if test "${ac_cv_header_jerror_h+set}" = set; then
13686 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13687 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13688 if test "${ac_cv_header_jerror_h+set}" = set; then
13689 echo $ECHO_N "(cached) $ECHO_C" >&6
13691 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13692 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13694 # Is the header compilable?
13695 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13696 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13697 cat >conftest.$ac_ext <<_ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13704 #include <jerror.h>
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13715 grep -v '^
*+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13723 ac_header_compiler=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's
/^
/|
/' conftest.$ac_ext >&5
13728 ac_header_compiler=no
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13733 echo "${ECHO_T}$ac_header_compiler" >&6; }
13735 # Is the header present?
13736 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13737 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13738 cat >conftest.$ac_ext <<_ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h. */
13744 #include <jerror.h>
13746 if { (ac_try="$ac_cpp conftest.$ac_ext"
13747 case "(($ac_try" in
13748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749 *) ac_try_echo=$ac_try;;
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13754 grep -v '^
*+' conftest.er1 >conftest.err
13756 cat conftest.err >&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } >/dev/null && {
13759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13760 test ! -s conftest.err
13762 ac_header_preproc=yes
13764 echo "$as_me: failed program was:" >&5
13765 sed 's
/^
/|
/' conftest.$ac_ext >&5
13767 ac_header_preproc=no
13770 rm -f conftest.err conftest.$ac_ext
13771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13772 echo "${ECHO_T}$ac_header_preproc" >&6; }
13774 # So? What about this header?
13775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13777 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13778 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13780 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13781 ac_header_preproc=yes
13784 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13785 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13787 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13789 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13791 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13792 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13793 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13794 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13795 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13799 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13800 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13801 if test "${ac_cv_header_jerror_h+set}" = set; then
13802 echo $ECHO_N "(cached) $ECHO_C" >&6
13804 ac_cv_header_jerror_h=$ac_header_preproc
13806 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13807 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13810 if test $ac_cv_header_jerror_h = yes; then
13811 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13812 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13813 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13816 ac_check_lib_save_LIBS=$LIBS
13817 LIBS="-ljpeg $LIBS"
13818 cat >conftest.$ac_ext <<_ACEOF
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13831 char jpeg_destroy_compress ();
13835 return jpeg_destroy_compress ();
13840 rm -f conftest.$ac_objext conftest$ac_exeext
13841 if { (ac_try="$ac_link"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_link") 2>conftest.er1
13849 grep -v '^
*+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest$ac_exeext &&
13857 $as_test_x conftest$ac_exeext; then
13858 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13860 echo "$as_me: failed program was:" >&5
13861 sed 's
/^
/|
/' conftest.$ac_ext >&5
13863 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13870 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13871 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13872 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13882 if test "${HAVE_JPEG}" = "yes"; then
13883 cat >>confdefs.h <<\_ACEOF
13884 #define HAVE_JPEG 1
13887 cat >conftest.$ac_ext <<_ACEOF
13890 cat confdefs.h >>conftest.$ac_ext
13891 cat >>conftest.$ac_ext <<_ACEOF
13892 /* end confdefs.h. */
13893 #include <jpeglib.h>
13894 version=JPEG_LIB_VERSION
13897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13898 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13899 cat >>confdefs.h <<\_ACEOF
13900 #define HAVE_JPEG 1
13904 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13905 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13913 ### Use -lpng if available, unless `--with-png=no'.
13915 if test "${HAVE_X11}" = "yes"; then
13916 if test "${with_png}" != "no"; then
13917 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13918 # in /usr/include/libpng.
13921 for ac_header
in png.h libpng
/png.h
13923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13924 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 ac_res
=`eval echo '${'$as_ac_Header'}'`
13931 { echo "$as_me:$LINENO: result: $ac_res" >&5
13932 echo "${ECHO_T}$ac_res" >&6; }
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13937 cat >conftest.
$ac_ext <<_ACEOF
13940 cat confdefs.h
>>conftest.
$ac_ext
13941 cat >>conftest.
$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <$ac_header>
13946 rm -f conftest.
$ac_objext
13947 if { (ac_try
="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^ *+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <$ac_header>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13989 *) ac_try_echo
=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^ *+' conftest.er1
>conftest.err
13996 cat conftest.err
>&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev
/null
&& {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14002 ac_header_preproc
=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.
$ac_ext >&5
14007 ac_header_preproc
=no
14010 rm -f conftest.err conftest.
$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc
=yes
14024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14041 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 eval "$as_ac_Header=\$ac_header_preproc"
14046 ac_res
=`eval echo '${'$as_ac_Header'}'`
14047 { echo "$as_me:$LINENO: result: $ac_res" >&5
14048 echo "${ECHO_T}$ac_res" >&6; }
14051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14052 cat >>confdefs.h
<<_ACEOF
14053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14060 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14061 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14062 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14066 ac_check_lib_save_LIBS
=$LIBS
14067 LIBS
="-lpng -lz -lm $LIBS"
14068 cat >conftest.
$ac_ext <<_ACEOF
14071 cat confdefs.h
>>conftest.
$ac_ext
14072 cat >>conftest.
$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14075 /* Override any GCC internal prototype to avoid an error.
14076 Use char because int might match the return type of a GCC
14077 builtin and then its argument prototype would still apply. */
14081 char png_get_channels ();
14085 return png_get_channels ();
14090 rm -f conftest.
$ac_objext conftest
$ac_exeext
14091 if { (ac_try
="$ac_link"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_link") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest$ac_exeext &&
14107 $as_test_x conftest$ac_exeext; then
14108 ac_cv_lib_png_png_get_channels=yes
14110 echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14113 ac_cv_lib_png_png_get_channels=no
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117 conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14121 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14122 if test $ac_cv_lib_png_png_get_channels = yes; then
14129 if test "${HAVE_PNG}" = "yes"; then
14131 cat >>confdefs.h <<\_ACEOF
14138 ### Use -ltiff if available, unless `--with-tiff=no
'.
14140 if test "${HAVE_X11}" = "yes"; then
14141 if test "${with_tiff}" != "no"; then
14142 if test "${ac_cv_header_tiffio_h+set}" = set; then
14143 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14144 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14145 if test "${ac_cv_header_tiffio_h+set}" = set; then
14146 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14149 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14151 # Is the header compilable?
14152 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14153 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14154 cat >conftest.$ac_ext <<_ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160 $ac_includes_default
14161 #include <tiffio.h>
14163 rm -f conftest.$ac_objext
14164 if { (ac_try="$ac_compile"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_compile") 2>conftest.er1
14172 grep -v '^
*+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } && {
14177 test -z "$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14179 } && test -s conftest.$ac_objext; then
14180 ac_header_compiler=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's
/^
/|
/' conftest.$ac_ext >&5
14185 ac_header_compiler=no
14188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14190 echo "${ECHO_T}$ac_header_compiler" >&6; }
14192 # Is the header present?
14193 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14194 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 #include <tiffio.h>
14203 if { (ac_try="$ac_cpp conftest.$ac_ext"
14204 case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14211 grep -v '^
*+' conftest.er1 >conftest.err
14213 cat conftest.err >&5
14214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14215 (exit $ac_status); } >/dev/null && {
14216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14217 test ! -s conftest.err
14219 ac_header_preproc=yes
14221 echo "$as_me: failed program was:" >&5
14222 sed 's
/^
/|
/' conftest.$ac_ext >&5
14224 ac_header_preproc=no
14227 rm -f conftest.err conftest.$ac_ext
14228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14229 echo "${ECHO_T}$ac_header_preproc" >&6; }
14231 # So? What about this header?
14232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14234 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14235 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14236 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14237 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14238 ac_header_preproc=yes
14241 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14242 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14244 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14246 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14247 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14248 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14249 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14250 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14251 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14252 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14256 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14257 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14258 if test "${ac_cv_header_tiffio_h+set}" = set; then
14259 echo $ECHO_N "(cached) $ECHO_C" >&6
14261 ac_cv_header_tiffio_h=$ac_header_preproc
14263 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14264 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14267 if test $ac_cv_header_tiffio_h = yes; then
14269 # At least one tiff package requires the jpeg library.
14270 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14271 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14272 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14273 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14276 ac_check_lib_save_LIBS=$LIBS
14277 LIBS="-ltiff $tifflibs $LIBS"
14278 cat >conftest.$ac_ext <<_ACEOF
14281 cat confdefs.h >>conftest.$ac_ext
14282 cat >>conftest.$ac_ext <<_ACEOF
14283 /* end confdefs.h. */
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14291 char TIFFGetVersion ();
14295 return TIFFGetVersion ();
14300 rm -f conftest.$ac_objext conftest$ac_exeext
14301 if { (ac_try="$ac_link"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_link") 2>conftest.er1
14309 grep -v '^
*+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest$ac_exeext &&
14317 $as_test_x conftest$ac_exeext; then
14318 ac_cv_lib_tiff_TIFFGetVersion=yes
14320 echo "$as_me: failed program was:" >&5
14321 sed 's
/^
/|
/' conftest.$ac_ext >&5
14323 ac_cv_lib_tiff_TIFFGetVersion=no
14326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14327 conftest$ac_exeext conftest.$ac_ext
14328 LIBS=$ac_check_lib_save_LIBS
14330 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14331 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14332 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14341 if test "${HAVE_TIFF}" = "yes"; then
14343 cat >>confdefs.h <<\_ACEOF
14344 #define HAVE_TIFF 1
14350 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14352 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14353 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14354 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14355 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14356 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14357 echo $ECHO_N "(cached) $ECHO_C" >&6
14359 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14360 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14362 # Is the header compilable?
14363 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14364 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14365 cat >conftest.
$ac_ext <<_ACEOF
14368 cat confdefs.h
>>conftest.
$ac_ext
14369 cat >>conftest.
$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 $ac_includes_default
14372 #include <gif_lib.h>
14374 rm -f conftest.
$ac_objext
14375 if { (ac_try
="$ac_compile"
14376 case "(($ac_try" in
14377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_compile") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } && {
14388 test -z "$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14390 } && test -s conftest.$ac_objext; then
14391 ac_header_compiler=yes
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14396 ac_header_compiler=no
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14401 echo "${ECHO_T}$ac_header_compiler" >&6; }
14403 # Is the header present?
14404 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14405 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14406 cat >conftest.$ac_ext <<_ACEOF
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 #include <gif_lib.h>
14414 if { (ac_try="$ac_cpp conftest.$ac_ext"
14415 case "(($ac_try" in
14416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14417 *) ac_try_echo
=$ac_try;;
14419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14422 grep -v '^ *+' conftest.er1
>conftest.err
14424 cat conftest.err
>&5
14425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14426 (exit $ac_status); } >/dev
/null
&& {
14427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14428 test ! -s conftest.err
14430 ac_header_preproc
=yes
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.
$ac_ext >&5
14435 ac_header_preproc
=no
14438 rm -f conftest.err conftest.
$ac_ext
14439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14440 echo "${ECHO_T}$ac_header_preproc" >&6; }
14442 # So? What about this header?
14443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14445 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14446 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14448 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14449 ac_header_preproc
=yes
14452 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14453 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14454 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14455 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14456 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14457 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14458 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14459 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14460 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14461 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14462 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14463 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14467 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14468 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14469 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14470 echo $ECHO_N "(cached) $ECHO_C" >&6
14472 ac_cv_header_gif_lib_h
=$ac_header_preproc
14474 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14475 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14478 if test $ac_cv_header_gif_lib_h = yes; then
14479 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14480 # Earlier versions can crash Emacs.
14481 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14482 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14483 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14484 echo $ECHO_N "(cached) $ECHO_C" >&6
14486 ac_check_lib_save_LIBS
=$LIBS
14488 cat >conftest.
$ac_ext <<_ACEOF
14491 cat confdefs.h
>>conftest.
$ac_ext
14492 cat >>conftest.
$ac_ext <<_ACEOF
14493 /* end confdefs.h. */
14495 /* Override any GCC internal prototype to avoid an error.
14496 Use char because int might match the return type of a GCC
14497 builtin and then its argument prototype would still apply. */
14501 char EGifPutExtensionLast ();
14505 return EGifPutExtensionLast ();
14510 rm -f conftest.
$ac_objext conftest
$ac_exeext
14511 if { (ac_try
="$ac_link"
14512 case "(($ac_try" in
14513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest$ac_exeext &&
14527 $as_test_x conftest$ac_exeext; then
14528 ac_cv_lib_gif_EGifPutExtensionLast=yes
14530 echo "$as_me: failed program was:" >&5
14531 sed 's/^/| /' conftest.$ac_ext >&5
14533 ac_cv_lib_gif_EGifPutExtensionLast=no
14536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14537 conftest$ac_exeext conftest.$ac_ext
14538 LIBS=$ac_check_lib_save_LIBS
14540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14541 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14542 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14552 if test "$HAVE_GIF" = yes; then
14553 ac_gif_lib_name="-lgif"
14556 # If gif_lib.h but no libgif, try libungif.
14557 if test x"$try_libungif" = xyes; then
14558 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14559 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14560 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14561 echo $ECHO_N "(cached) $ECHO_C" >&6
14563 ac_check_lib_save_LIBS=$LIBS
14564 LIBS="-lungif $LIBS"
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14572 /* Override any GCC internal prototype to avoid an error.
14573 Use char because int might match the return type of a GCC
14574 builtin and then its argument prototype would still apply. */
14578 char EGifPutExtensionLast ();
14582 return EGifPutExtensionLast ();
14587 rm -f conftest.$ac_objext conftest$ac_exeext
14588 if { (ac_try="$ac_link"
14589 case "(($ac_try" in
14590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14591 *) ac_try_echo
=$ac_try;;
14593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14594 (eval "$ac_link") 2>conftest.er1
14596 grep -v '^ *+' conftest.er1
>conftest.err
14598 cat conftest.err
>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } && {
14601 test -z "$ac_c_werror_flag" ||
14602 test ! -s conftest.err
14603 } && test -s conftest
$ac_exeext &&
14604 $as_test_x conftest
$ac_exeext; then
14605 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14607 echo "$as_me: failed program was:" >&5
14608 sed 's/^/| /' conftest.
$ac_ext >&5
14610 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14613 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14614 conftest
$ac_exeext conftest.
$ac_ext
14615 LIBS
=$ac_check_lib_save_LIBS
14617 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14618 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14619 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14624 if test "$HAVE_GIF" = yes; then
14626 cat >>confdefs.h
<<\_ACEOF
14627 #define LIBGIF -lungif
14630 ac_gif_lib_name
="-lungif"
14634 if test "${HAVE_GIF}" = "yes"; then
14636 cat >>confdefs.h
<<\_ACEOF
14643 if test "${HAVE_X11}" = "yes"; then
14646 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14647 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14648 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14649 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14650 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14651 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14652 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14653 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14654 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14655 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14657 if test "X${MISSING}" != X
; then
14658 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14660 Maybe some development libraries/packages are missing?
14661 If you don't want to link with them give
14663 as options to configure" >&5
14664 echo "$as_me: error: The following required libraries were not found:
14666 Maybe some development libraries/packages are missing?
14667 If you don't want to link with them give
14669 as options to configure" >&2;}
14670 { (exit 1); exit 1; }; }
14674 ### Use -lgpm if available, unless `--with-gpm=no'.
14676 if test "${with_gpm}" != "no"; then
14677 if test "${ac_cv_header_gpm_h+set}" = set; then
14678 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14679 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14680 if test "${ac_cv_header_gpm_h+set}" = set; then
14681 echo $ECHO_N "(cached) $ECHO_C" >&6
14683 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14684 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14686 # Is the header compilable?
14687 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14688 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14689 cat >conftest.
$ac_ext <<_ACEOF
14692 cat confdefs.h
>>conftest.
$ac_ext
14693 cat >>conftest.
$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 $ac_includes_default
14698 rm -f conftest.
$ac_objext
14699 if { (ac_try
="$ac_compile"
14700 case "(($ac_try" in
14701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_compile") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest.$ac_objext; then
14715 ac_header_compiler=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.$ac_ext >&5
14720 ac_header_compiler=no
14723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14725 echo "${ECHO_T}$ac_header_compiler" >&6; }
14727 # Is the header present?
14728 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14729 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14730 cat >conftest.$ac_ext <<_ACEOF
14733 cat confdefs.h >>conftest.$ac_ext
14734 cat >>conftest.$ac_ext <<_ACEOF
14735 /* end confdefs.h. */
14738 if { (ac_try="$ac_cpp conftest.$ac_ext"
14739 case "(($ac_try" in
14740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14741 *) ac_try_echo
=$ac_try;;
14743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } >/dev
/null
&& {
14751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14752 test ! -s conftest.err
14754 ac_header_preproc
=yes
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.
$ac_ext >&5
14759 ac_header_preproc
=no
14762 rm -f conftest.err conftest.
$ac_ext
14763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14764 echo "${ECHO_T}$ac_header_preproc" >&6; }
14766 # So? What about this header?
14767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14769 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14770 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14772 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14773 ac_header_preproc
=yes
14776 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14777 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14778 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14779 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14780 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14781 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14782 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14783 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14784 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14785 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14786 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14787 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14791 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14792 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14793 if test "${ac_cv_header_gpm_h+set}" = set; then
14794 echo $ECHO_N "(cached) $ECHO_C" >&6
14796 ac_cv_header_gpm_h
=$ac_header_preproc
14798 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14799 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14802 if test $ac_cv_header_gpm_h = yes; then
14803 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14804 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14805 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 ac_check_lib_save_LIBS
=$LIBS
14810 cat >conftest.
$ac_ext <<_ACEOF
14813 cat confdefs.h
>>conftest.
$ac_ext
14814 cat >>conftest.
$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14817 /* Override any GCC internal prototype to avoid an error.
14818 Use char because int might match the return type of a GCC
14819 builtin and then its argument prototype would still apply. */
14827 return Gpm_Open ();
14832 rm -f conftest.
$ac_objext conftest
$ac_exeext
14833 if { (ac_try
="$ac_link"
14834 case "(($ac_try" in
14835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_link") 2>conftest.er1
14841 grep -v '^ *+' conftest.er1 >conftest.err
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } && {
14846 test -z "$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 } && test -s conftest$ac_exeext &&
14849 $as_test_x conftest$ac_exeext; then
14850 ac_cv_lib_gpm_Gpm_Open=yes
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 ac_cv_lib_gpm_Gpm_Open=no
14858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14863 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14864 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14873 if test "${HAVE_GPM}" = "yes"; then
14875 cat >>confdefs.h <<\_ACEOF
14881 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14888 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14890 # Is the header compilable?
14891 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14892 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14893 cat >conftest.$ac_ext <<_ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 $ac_includes_default
14900 #include <malloc/malloc.h>
14902 rm -f conftest.$ac_objext
14903 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14919 ac_header_compiler
=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.
$ac_ext >&5
14924 ac_header_compiler
=no
14927 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14929 echo "${ECHO_T}$ac_header_compiler" >&6; }
14931 # Is the header present?
14932 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14933 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14934 cat >conftest.
$ac_ext <<_ACEOF
14937 cat confdefs.h
>>conftest.
$ac_ext
14938 cat >>conftest.
$ac_ext <<_ACEOF
14939 /* end confdefs.h. */
14940 #include <malloc/malloc.h>
14942 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14943 case "(($ac_try" in
14944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14950 grep -v '^ *+' conftest.er1 >conftest.err
14952 cat conftest.err >&5
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); } >/dev/null && {
14955 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14956 test ! -s conftest.err
14958 ac_header_preproc=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_header_preproc=no
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14970 # So? What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14973 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14995 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14996 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14997 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15002 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15003 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15006 if test $ac_cv_header_malloc_malloc_h = yes; then
15008 cat >>confdefs.h <<\_ACEOF
15009 #define HAVE_MALLOC_MALLOC_H 1
15016 ### Use Mac OS X Carbon API to implement GUI.
15017 if test "${HAVE_CARBON}" = "yes"; then
15019 cat >>confdefs.h <<\_ACEOF
15020 #define HAVE_CARBON 1
15024 for ac_header in AvailabilityMacros.h
15026 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034 { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15037 # Is the header compilable?
15038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15040 cat >conftest.$ac_ext <<_ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h. */
15046 $ac_includes_default
15047 #include <$ac_header>
15049 rm -f conftest.$ac_objext
15050 if { (ac_try="$ac_compile"
15051 case "(($ac_try" in
15052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15053 *) ac_try_echo
=$ac_try;;
15055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_compile") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1
>conftest.err
15060 cat conftest.err
>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest.
$ac_objext; then
15066 ac_header_compiler
=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.
$ac_ext >&5
15071 ac_header_compiler
=no
15074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15076 echo "${ECHO_T}$ac_header_compiler" >&6; }
15078 # Is the header present?
15079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15081 cat >conftest.
$ac_ext <<_ACEOF
15084 cat confdefs.h
>>conftest.
$ac_ext
15085 cat >>conftest.
$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <$ac_header>
15089 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15090 case "(($ac_try" in
15091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 grep -v '^ *+' conftest.er1 >conftest.err
15099 cat conftest.err >&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } >/dev/null && {
15102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15103 test ! -s conftest.err
15105 ac_header_preproc=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_header_preproc=no
15113 rm -f conftest.err conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15115 echo "${ECHO_T}$ac_header_preproc" >&6; }
15117 # So? What about this header?
15118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15124 ac_header_preproc=yes
15127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 eval "$as_ac_Header=\$ac_header_preproc"
15149 ac_res=`eval echo '${'$as_ac_Header'}'`
15150 { echo "$as_me:$LINENO: result: $ac_res" >&5
15151 echo "${ECHO_T}$ac_res" >&6; }
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155 cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15163 ## Specify the install directory
15165 if test "${carbon_appdir_x}" != ""; then
15166 case ${carbon_appdir_x} in
15167 y | ye | yes) carbon_appdir=/Applications ;;
15168 * ) carbon_appdir=${carbon_appdir_x} ;;
15171 # We also have mouse menus.
15175 ### Use session management (-lSM -lICE) if available
15177 if test "${HAVE_X11}" = "yes"; then
15178 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15179 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15180 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15182 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15185 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15187 # Is the header compilable?
15188 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15189 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15190 cat >conftest.$ac_ext <<_ACEOF
15193 cat confdefs.h >>conftest.$ac_ext
15194 cat >>conftest.$ac_ext <<_ACEOF
15195 /* end confdefs.h. */
15196 $ac_includes_default
15197 #include <X11/SM/SMlib.h>
15199 rm -f conftest.$ac_objext
15200 if { (ac_try="$ac_compile"
15201 case "(($ac_try" in
15202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15203 *) ac_try_echo
=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_compile") 2>conftest.er1
15208 grep -v '^ *+' conftest.er1
>conftest.err
15210 cat conftest.err
>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest.
$ac_objext; then
15216 ac_header_compiler
=yes
15218 echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.
$ac_ext >&5
15221 ac_header_compiler
=no
15224 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15226 echo "${ECHO_T}$ac_header_compiler" >&6; }
15228 # Is the header present?
15229 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15230 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15231 cat >conftest.
$ac_ext <<_ACEOF
15234 cat confdefs.h
>>conftest.
$ac_ext
15235 cat >>conftest.
$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 #include <X11/SM/SMlib.h>
15239 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15240 case "(($ac_try" in
15241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15242 *) ac_try_echo=$ac_try;;
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15247 grep -v '^ *+' conftest.er1 >conftest.err
15249 cat conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); } >/dev/null && {
15252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15253 test ! -s conftest.err
15255 ac_header_preproc=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_header_preproc=no
15263 rm -f conftest.err conftest.$ac_ext
15264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15265 echo "${ECHO_T}$ac_header_preproc" >&6; }
15267 # So? What about this header?
15268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15270 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15271 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15272 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15273 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15274 ac_header_preproc=yes
15277 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15278 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15279 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15280 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15281 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15282 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15283 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15284 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15285 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15286 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15288 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15292 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15293 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15294 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15295 echo $ECHO_N "(cached) $ECHO_C" >&6
15297 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15299 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15300 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15303 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15304 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15305 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15306 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15307 echo $ECHO_N "(cached) $ECHO_C" >&6
15309 ac_check_lib_save_LIBS=$LIBS
15310 LIBS="-lSM -lICE $LIBS"
15311 cat >conftest.$ac_ext <<_ACEOF
15314 cat confdefs.h >>conftest.$ac_ext
15315 cat >>conftest.$ac_ext <<_ACEOF
15316 /* end confdefs.h. */
15318 /* Override any GCC internal prototype to avoid an error.
15319 Use char because int might match the return type of a GCC
15320 builtin and then its argument prototype would still apply. */
15324 char SmcOpenConnection ();
15328 return SmcOpenConnection ();
15333 rm -f conftest.$ac_objext conftest$ac_exeext
15334 if { (ac_try="$ac_link"
15335 case "(($ac_try" in
15336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15337 *) ac_try_echo
=$ac_try;;
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340 (eval "$ac_link") 2>conftest.er1
15342 grep -v '^ *+' conftest.er1
>conftest.err
15344 cat conftest.err
>&5
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); } && {
15347 test -z "$ac_c_werror_flag" ||
15348 test ! -s conftest.err
15349 } && test -s conftest
$ac_exeext &&
15350 $as_test_x conftest
$ac_exeext; then
15351 ac_cv_lib_SM_SmcOpenConnection
=yes
15353 echo "$as_me: failed program was:" >&5
15354 sed 's/^/| /' conftest.
$ac_ext >&5
15356 ac_cv_lib_SM_SmcOpenConnection
=no
15359 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15360 conftest
$ac_exeext conftest.
$ac_ext
15361 LIBS
=$ac_check_lib_save_LIBS
15363 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15364 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15365 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15373 if test "${HAVE_X_SM}" = "yes"; then
15375 cat >>confdefs.h
<<\_ACEOF
15376 #define HAVE_X_SM 1
15381 *) LIBS
="-lSM -lICE $LIBS" ;;
15386 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15387 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15388 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15389 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15390 echo $ECHO_N "(cached) $ECHO_C" >&6
15392 cat >conftest.
$ac_ext <<_ACEOF
15395 cat confdefs.h
>>conftest.
$ac_ext
15396 cat >>conftest.
$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15407 rm -f conftest.
$ac_objext conftest
$ac_exeext
15408 if { (ac_try
="$ac_link"
15409 case "(($ac_try" in
15410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15411 *) ac_try_echo=$ac_try;;
15413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15414 (eval "$ac_link") 2>conftest.er1
15416 grep -v '^ *+' conftest.er1 >conftest.err
15418 cat conftest.err >&5
15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420 (exit $ac_status); } && {
15421 test -z "$ac_c_werror_flag" ||
15422 test ! -s conftest.err
15423 } && test -s conftest$ac_exeext &&
15424 $as_test_x conftest$ac_exeext; then
15425 emacs_cv_netdb_declares_h_errno=yes
15427 echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 emacs_cv_netdb_declares_h_errno=no
15433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15434 conftest$ac_exeext conftest.$ac_ext
15436 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15437 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15438 if test $emacs_cv_netdb_declares_h_errno = yes; then
15440 cat >>confdefs.h <<\_ACEOF
15441 #define HAVE_H_ERRNO 1
15446 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15447 # for constant arguments. Useless!
15448 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15449 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15450 if test "${ac_cv_working_alloca_h+set}" = set; then
15451 echo $ECHO_N "(cached) $ECHO_C" >&6
15453 cat >conftest.$ac_ext <<_ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h. */
15459 #include <alloca.h>
15463 char *p = (char *) alloca (2 * sizeof (int));
15469 rm -f conftest.$ac_objext conftest$ac_exeext
15470 if { (ac_try="$ac_link"
15471 case "(($ac_try" in
15472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15473 *) ac_try_echo
=$ac_try;;
15475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15476 (eval "$ac_link") 2>conftest.er1
15478 grep -v '^ *+' conftest.er1
>conftest.err
15480 cat conftest.err
>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest
$ac_exeext &&
15486 $as_test_x conftest
$ac_exeext; then
15487 ac_cv_working_alloca_h
=yes
15489 echo "$as_me: failed program was:" >&5
15490 sed 's/^/| /' conftest.
$ac_ext >&5
15492 ac_cv_working_alloca_h
=no
15495 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15496 conftest
$ac_exeext conftest.
$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15499 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15500 if test $ac_cv_working_alloca_h = yes; then
15502 cat >>confdefs.h
<<\_ACEOF
15503 #define HAVE_ALLOCA_H 1
15508 { echo "$as_me:$LINENO: checking for alloca" >&5
15509 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15510 if test "${ac_cv_func_alloca_works+set}" = set; then
15511 echo $ECHO_N "(cached) $ECHO_C" >&6
15513 cat >conftest.
$ac_ext <<_ACEOF
15516 cat confdefs.h
>>conftest.
$ac_ext
15517 cat >>conftest.
$ac_ext <<_ACEOF
15518 /* end confdefs.h. */
15520 # define alloca __builtin_alloca
15523 # include <malloc.h>
15524 # define alloca _alloca
15526 # ifdef HAVE_ALLOCA_H
15527 # include <alloca.h>
15532 # ifndef alloca /* predefined by HP cc +Olibcalls */
15543 char *p = (char *) alloca (1);
15549 rm -f conftest.
$ac_objext conftest
$ac_exeext
15550 if { (ac_try
="$ac_link"
15551 case "(($ac_try" in
15552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_c_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15567 ac_cv_func_alloca_works=yes
15569 echo "$as_me: failed program was:" >&5
15570 sed 's/^/| /' conftest.$ac_ext >&5
15572 ac_cv_func_alloca_works=no
15575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15578 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15579 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15581 if test $ac_cv_func_alloca_works = yes; then
15583 cat >>confdefs.h <<\_ACEOF
15584 #define HAVE_ALLOCA 1
15588 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15589 # that cause trouble. Some versions do not even contain alloca or
15590 # contain a buggy version. If you still want to use their alloca,
15591 # use ar to extract alloca.o from them instead of compiling alloca.c.
15593 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15595 cat >>confdefs.h <<\_ACEOF
15600 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15601 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15602 if test "${ac_cv_os_cray+set}" = set; then
15603 echo $ECHO_N "(cached
) $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 #if defined CRAY && ! defined CRAY2
15618 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15619 $EGREP "webecray
" >/dev/null 2>&1; then
15627 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15628 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15629 if test $ac_cv_os_cray = yes; then
15630 for ac_func in _getb67 GETB67 getb67; do
15631 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15632 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15633 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15634 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15635 echo $ECHO_N "(cached
) $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15645 #define $ac_func innocuous_$ac_func
15647 /* System header to define __stub macros and hopefully few prototypes,
15648 which can conflict with char $ac_func (); below.
15649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15650 <limits.h> exists even on freestanding compilers. */
15653 # include <limits.h>
15655 # include <assert.h>
15660 /* Override any GCC internal prototype to avoid an error.
15661 Use char because int might match the return type of a GCC
15662 builtin and then its argument prototype would still apply. */
15667 /* The GNU C library defines this for functions which it implements
15668 to always fail with ENOSYS. Some functions are actually named
15669 something starting with __ and the normal name is an alias. */
15670 #if defined __stub_$ac_func || defined __stub___$ac_func
15677 return $ac_func ();
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_link") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest$ac_exeext &&
15699 $as_test_x conftest$ac_exeext; then
15700 eval "$as_ac_var=yes"
15702 echo "$as_me: failed program was
:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15705 eval "$as_ac_var=no
"
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709 conftest$ac_exeext conftest.$ac_ext
15711 ac_res=`eval echo '${'$as_ac_var'}'`
15712 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15713 echo "${ECHO_T}$ac_res" >&6; }
15714 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716 cat >>confdefs.h <<_ACEOF
15717 #define CRAY_STACKSEG_END $ac_func
15726 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15727 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15728 if test "${ac_cv_c_stack_direction+set}" = set; then
15729 echo $ECHO_N "(cached
) $ECHO_C" >&6
15731 if test "$cross_compiling" = yes; then
15732 ac_cv_c_stack_direction=0
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 $ac_includes_default
15742 find_stack_direction ()
15744 static char *addr = 0;
15749 return find_stack_direction ();
15752 return (&dummy > addr) ? 1 : -1;
15758 return find_stack_direction () < 0;
15761 rm -f conftest$ac_exeext
15762 if { (ac_try="$ac_link"
15763 case "(($ac_try" in
15764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15765 *) ac_try_echo=$ac_try;;
15767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15768 (eval "$ac_link") 2>&5
15770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15771 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15772 { (case "(($ac_try" in
15773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774 *) ac_try_echo=$ac_try;;
15776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15777 (eval "$ac_try") 2>&5
15779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15780 (exit $ac_status); }; }; then
15781 ac_cv_c_stack_direction=1
15783 echo "$as_me: program exited with status
$ac_status" >&5
15784 echo "$as_me: failed program was
:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ( exit $ac_status )
15788 ac_cv_c_stack_direction=-1
15790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15795 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15796 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15798 cat >>confdefs.h <<_ACEOF
15799 #define STACK_DIRECTION $ac_cv_c_stack_direction
15806 if test x"$ac_cv_func_alloca_works" != xyes; then
15807 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15808 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15809 { (exit 1); exit 1; }; }
15812 # fmod, logb, and frexp are found in -lm on most systems.
15813 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15815 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15816 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15817 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15818 echo $ECHO_N "(cached
) $ECHO_C" >&6
15820 ac_check_lib_save_LIBS=$LIBS
15822 cat >conftest.$ac_ext <<_ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h. */
15829 /* Override any GCC internal prototype to avoid an error.
15830 Use char because int might match the return type of a GCC
15831 builtin and then its argument prototype would still apply. */
15844 rm -f conftest.$ac_objext conftest$ac_exeext
15845 if { (ac_try="$ac_link"
15846 case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_link") 2>conftest.er1
15853 grep -v '^ *+' conftest.er1 >conftest.err
15855 cat conftest.err >&5
15856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15857 (exit $ac_status); } && {
15858 test -z "$ac_c_werror_flag" ||
15859 test ! -s conftest.err
15860 } && test -s conftest$ac_exeext &&
15861 $as_test_x conftest$ac_exeext; then
15862 ac_cv_lib_m_sqrt=yes
15864 echo "$as_me: failed program was
:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15867 ac_cv_lib_m_sqrt=no
15870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15871 conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15874 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15875 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15876 if test $ac_cv_lib_m_sqrt = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define HAVE_LIBM 1
15886 # Check for mail-locking functions in a "mail" library. Probably this should
15887 # have the same check as for liblockfile below.
15889 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15890 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15891 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15892 echo $ECHO_N "(cached
) $ECHO_C" >&6
15894 ac_check_lib_save_LIBS=$LIBS
15895 LIBS="-lmail $LIBS"
15896 cat >conftest.$ac_ext <<_ACEOF
15899 cat confdefs.h >>conftest.$ac_ext
15900 cat >>conftest.$ac_ext <<_ACEOF
15901 /* end confdefs.h. */
15903 /* Override any GCC internal prototype to avoid an error.
15904 Use char because int might match the return type of a GCC
15905 builtin and then its argument prototype would still apply. */
15913 return maillock ();
15918 rm -f conftest.$ac_objext conftest$ac_exeext
15919 if { (ac_try="$ac_link"
15920 case "(($ac_try" in
15921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15922 *) ac_try_echo=$ac_try;;
15924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15925 (eval "$ac_link") 2>conftest.er1
15927 grep -v '^ *+' conftest.er1 >conftest.err
15929 cat conftest.err >&5
15930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15931 (exit $ac_status); } && {
15932 test -z "$ac_c_werror_flag" ||
15933 test ! -s conftest.err
15934 } && test -s conftest$ac_exeext &&
15935 $as_test_x conftest$ac_exeext; then
15936 ac_cv_lib_mail_maillock=yes
15938 echo "$as_me: failed program was
:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15941 ac_cv_lib_mail_maillock=no
15944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15945 conftest$ac_exeext conftest.$ac_ext
15946 LIBS=$ac_check_lib_save_LIBS
15948 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15949 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15950 if test $ac_cv_lib_mail_maillock = yes; then
15951 cat >>confdefs.h <<_ACEOF
15952 #define HAVE_LIBMAIL 1
15955 LIBS="-lmail $LIBS"
15960 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15961 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15962 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15963 echo $ECHO_N "(cached
) $ECHO_C" >&6
15965 ac_check_lib_save_LIBS=$LIBS
15966 LIBS="-llockfile $LIBS"
15967 cat >conftest.$ac_ext <<_ACEOF
15970 cat confdefs.h >>conftest.$ac_ext
15971 cat >>conftest.$ac_ext <<_ACEOF
15972 /* end confdefs.h. */
15974 /* Override any GCC internal prototype to avoid an error.
15975 Use char because int might match the return type of a GCC
15976 builtin and then its argument prototype would still apply. */
15984 return maillock ();
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (ac_try="$ac_link"
15991 case "(($ac_try" in
15992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15993 *) ac_try_echo=$ac_try;;
15995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15996 (eval "$ac_link") 2>conftest.er1
15998 grep -v '^ *+' conftest.er1 >conftest.err
16000 cat conftest.err >&5
16001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest$ac_exeext &&
16006 $as_test_x conftest$ac_exeext; then
16007 ac_cv_lib_lockfile_maillock=yes
16009 echo "$as_me: failed program was
:" >&5
16010 sed 's/^/| /' conftest.$ac_ext >&5
16012 ac_cv_lib_lockfile_maillock=no
16015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16016 conftest$ac_exeext conftest.$ac_ext
16017 LIBS=$ac_check_lib_save_LIBS
16019 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16020 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16021 if test $ac_cv_lib_lockfile_maillock = yes; then
16022 cat >>confdefs.h <<_ACEOF
16023 #define HAVE_LIBLOCKFILE 1
16026 LIBS="-llockfile $LIBS"
16030 # If we have the shared liblockfile, assume we must use it for mail
16031 # locking (e.g. Debian). If we couldn't link against liblockfile
16032 # (no liblockfile.a installed), ensure that we don't need to.
16033 if test "$ac_cv_lib_lockfile_maillock" = no; then
16034 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16035 set dummy liblockfile.so; ac_word=$2
16036 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16037 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16038 if test "${ac_cv_prog_liblockfile+set}" = set; then
16039 echo $ECHO_N "(cached
) $ECHO_C" >&6
16041 if test -n "$liblockfile"; then
16042 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16045 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16046 for as_dir in $as_dummy
16049 test -z "$as_dir" && as_dir=.
16050 for ac_exec_ext in '' $ac_executable_extensions; do
16051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16052 ac_cv_prog_liblockfile="yes"
16053 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16060 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16063 liblockfile=$ac_cv_prog_liblockfile
16064 if test -n "$liblockfile"; then
16065 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16066 echo "${ECHO_T}$liblockfile" >&6; }
16068 { echo "$as_me:$LINENO: result
: no
" >&5
16069 echo "${ECHO_T}no
" >&6; }
16073 if test $ac_cv_prog_liblockfile = yes; then
16074 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16075 This probably means that movemail could lose mail.
16076 There may be a \`development' package to
install containing liblockfile.
" >&5
16077 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16078 This probably means that movemail could lose mail.
16079 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16080 { (exit 1); exit 1; }; }
16085 for ac_func in touchlock
16087 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16088 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16089 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16090 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached
) $ECHO_C" >&6
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16101 #define $ac_func innocuous_$ac_func
16103 /* System header to define __stub macros and hopefully few prototypes,
16104 which can conflict with char $ac_func (); below.
16105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16106 <limits.h> exists even on freestanding compilers. */
16109 # include <limits.h>
16111 # include <assert.h>
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16123 /* The GNU C library defines this for functions which it implements
16124 to always fail with ENOSYS. Some functions are actually named
16125 something starting with __ and the normal name is an alias. */
16126 #if defined __stub_$ac_func || defined __stub___$ac_func
16133 return $ac_func ();
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 eval "$as_ac_var=yes"
16158 echo "$as_me: failed program was
:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 eval "$as_ac_var=no
"
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16167 ac_res=`eval echo '${'$as_ac_var'}'`
16168 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16169 echo "${ECHO_T}$ac_res" >&6; }
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16179 for ac_header in maillock.h
16181 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16183 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16184 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16186 echo $ECHO_N "(cached
) $ECHO_C" >&6
16188 ac_res=`eval echo '${'$as_ac_Header'}'`
16189 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16190 echo "${ECHO_T}$ac_res" >&6; }
16192 # Is the header compilable?
16193 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16194 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 #include <$ac_header>
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16211 (eval "$ac_compile") 2>conftest.er1
16213 grep -v '^ *+' conftest.er1 >conftest.err
16215 cat conftest.err >&5
16216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16217 (exit $ac_status); } && {
16218 test -z "$ac_c_werror_flag" ||
16219 test ! -s conftest.err
16220 } && test -s conftest.$ac_objext; then
16221 ac_header_compiler=yes
16223 echo "$as_me: failed program was
:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_header_compiler=no
16229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16230 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16231 echo "${ECHO_T}$ac_header_compiler" >&6; }
16233 # Is the header present?
16234 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16235 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16236 cat >conftest.$ac_ext <<_ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242 #include <$ac_header>
16244 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16245 case "(($ac_try" in
16246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16247 *) ac_try_echo=$ac_try;;
16249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16252 grep -v '^ *+' conftest.er1 >conftest.err
16254 cat conftest.err >&5
16255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16256 (exit $ac_status); } >/dev/null && {
16257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16260 ac_header_preproc=yes
16262 echo "$as_me: failed program was
:" >&5
16263 sed 's/^/| /' conftest.$ac_ext >&5
16265 ac_header_preproc=no
16268 rm -f conftest.err conftest.$ac_ext
16269 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16270 echo "${ECHO_T}$ac_header_preproc" >&6; }
16272 # So? What about this header?
16273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16275 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16276 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16277 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16279 ac_header_preproc=yes
16282 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16283 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16284 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16285 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16286 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16287 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16288 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16289 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16290 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16292 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16293 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16297 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16298 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16299 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16300 echo $ECHO_N "(cached
) $ECHO_C" >&6
16302 eval "$as_ac_Header=\
$ac_header_preproc"
16304 ac_res=`eval echo '${'$as_ac_Header'}'`
16305 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16306 echo "${ECHO_T}$ac_res" >&6; }
16309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16310 cat >>confdefs.h <<_ACEOF
16311 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16387 for ac_func in gethostname getdomainname dup2 \
16388 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16389 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16390 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16391 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16392 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16393 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16394 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16395 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16397 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16398 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16399 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16400 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16401 echo $ECHO_N "(cached
) $ECHO_C" >&6
16403 cat >conftest.$ac_ext <<_ACEOF
16406 cat confdefs.h >>conftest.$ac_ext
16407 cat >>conftest.$ac_ext <<_ACEOF
16408 /* end confdefs.h. */
16409 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16410 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16411 #define $ac_func innocuous_$ac_func
16413 /* System header to define __stub macros and hopefully few prototypes,
16414 which can conflict with char $ac_func (); below.
16415 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16416 <limits.h> exists even on freestanding compilers. */
16419 # include <limits.h>
16421 # include <assert.h>
16426 /* Override any GCC internal prototype to avoid an error.
16427 Use char because int might match the return type of a GCC
16428 builtin and then its argument prototype would still apply. */
16433 /* The GNU C library defines this for functions which it implements
16434 to always fail with ENOSYS. Some functions are actually named
16435 something starting with __ and the normal name is an alias. */
16436 #if defined __stub_$ac_func || defined __stub___$ac_func
16443 return $ac_func ();
16448 rm -f conftest.$ac_objext conftest$ac_exeext
16449 if { (ac_try="$ac_link"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_link") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16461 (exit $ac_status); } && {
16462 test -z "$ac_c_werror_flag" ||
16463 test ! -s conftest.err
16464 } && test -s conftest$ac_exeext &&
16465 $as_test_x conftest$ac_exeext; then
16466 eval "$as_ac_var=yes"
16468 echo "$as_me: failed program was
:" >&5
16469 sed 's/^/| /' conftest.$ac_ext >&5
16471 eval "$as_ac_var=no
"
16474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16475 conftest$ac_exeext conftest.$ac_ext
16477 ac_res=`eval echo '${'$as_ac_var'}'`
16478 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16479 echo "${ECHO_T}$ac_res" >&6; }
16480 if test `eval echo '${'$as_ac_var'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16490 for ac_header in sys/un.h
16492 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16493 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16494 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16495 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16496 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached
) $ECHO_C" >&6
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16503 # Is the header compilable?
16504 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16505 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16506 cat >conftest.$ac_ext <<_ACEOF
16509 cat confdefs.h >>conftest.$ac_ext
16510 cat >>conftest.$ac_ext <<_ACEOF
16511 /* end confdefs.h. */
16512 $ac_includes_default
16513 #include <$ac_header>
16515 rm -f conftest.$ac_objext
16516 if { (ac_try="$ac_compile"
16517 case "(($ac_try" in
16518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16519 *) ac_try_echo=$ac_try;;
16521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_compile") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1 >conftest.err
16526 cat conftest.err >&5
16527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16528 (exit $ac_status); } && {
16529 test -z "$ac_c_werror_flag" ||
16530 test ! -s conftest.err
16531 } && test -s conftest.$ac_objext; then
16532 ac_header_compiler=yes
16534 echo "$as_me: failed program was
:" >&5
16535 sed 's/^/| /' conftest.$ac_ext >&5
16537 ac_header_compiler=no
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16542 echo "${ECHO_T}$ac_header_compiler" >&6; }
16544 # Is the header present?
16545 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16546 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h. */
16553 #include <$ac_header>
16555 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16556 case "(($ac_try" in
16557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16558 *) ac_try_echo=$ac_try;;
16560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16561 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16563 grep -v '^ *+' conftest.er1 >conftest.err
16565 cat conftest.err >&5
16566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16567 (exit $ac_status); } >/dev/null && {
16568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16569 test ! -s conftest.err
16571 ac_header_preproc=yes
16573 echo "$as_me: failed program was
:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_header_preproc=no
16579 rm -f conftest.err conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16581 echo "${ECHO_T}$ac_header_preproc" >&6; }
16583 # So? What about this header?
16584 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16586 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16587 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16588 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16589 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16590 ac_header_preproc=yes
16593 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16594 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16595 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16596 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16597 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16598 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16599 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16600 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16601 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16603 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16604 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16608 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16609 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16610 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached
) $ECHO_C" >&6
16613 eval "$as_ac_Header=\
$ac_header_preproc"
16615 ac_res=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16621 cat >>confdefs.h <<_ACEOF
16622 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16634 for ac_header in $ac_header_list
16636 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16638 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16639 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16641 echo $ECHO_N "(cached
) $ECHO_C" >&6
16643 ac_res=`eval echo '${'$as_ac_Header'}'`
16644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16645 echo "${ECHO_T}$ac_res" >&6; }
16647 # Is the header compilable?
16648 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16649 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16650 cat >conftest.$ac_ext <<_ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h. */
16656 $ac_includes_default
16657 #include <$ac_header>
16659 rm -f conftest.$ac_objext
16660 if { (ac_try="$ac_compile"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_compile") 2>conftest.er1
16668 grep -v '^ *+' conftest.er1 >conftest.err
16670 cat conftest.err >&5
16671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16672 (exit $ac_status); } && {
16673 test -z "$ac_c_werror_flag" ||
16674 test ! -s conftest.err
16675 } && test -s conftest.$ac_objext; then
16676 ac_header_compiler=yes
16678 echo "$as_me: failed program was
:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_header_compiler=no
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16686 echo "${ECHO_T}$ac_header_compiler" >&6; }
16688 # Is the header present?
16689 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16690 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16691 cat >conftest.$ac_ext <<_ACEOF
16694 cat confdefs.h >>conftest.$ac_ext
16695 cat >>conftest.$ac_ext <<_ACEOF
16696 /* end confdefs.h. */
16697 #include <$ac_header>
16699 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16700 case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16707 grep -v '^ *+' conftest.er1 >conftest.err
16709 cat conftest.err >&5
16710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16711 (exit $ac_status); } >/dev/null && {
16712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16713 test ! -s conftest.err
16715 ac_header_preproc=yes
16717 echo "$as_me: failed program was
:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16720 ac_header_preproc=no
16723 rm -f conftest.err conftest.$ac_ext
16724 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16725 echo "${ECHO_T}$ac_header_preproc" >&6; }
16727 # So? What about this header?
16728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16730 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16731 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16732 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16734 ac_header_preproc=yes
16737 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16738 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16739 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16740 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16741 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16742 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16743 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16744 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16745 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16747 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16748 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16752 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16753 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16754 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16755 echo $ECHO_N "(cached
) $ECHO_C" >&6
16757 eval "$as_ac_Header=\
$ac_header_preproc"
16759 ac_res=`eval echo '${'$as_ac_Header'}'`
16760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16761 echo "${ECHO_T}$ac_res" >&6; }
16764 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16765 cat >>confdefs.h <<_ACEOF
16766 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16781 for ac_func in $ac_func_list
16783 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16784 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16785 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16786 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16787 echo $ECHO_N "(cached
) $ECHO_C" >&6
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16797 #define $ac_func innocuous_$ac_func
16799 /* System header to define __stub macros and hopefully few prototypes,
16800 which can conflict with char $ac_func (); below.
16801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16802 <limits.h> exists even on freestanding compilers. */
16805 # include <limits.h>
16807 # include <assert.h>
16812 /* Override any GCC internal prototype to avoid an error.
16813 Use char because int might match the return type of a GCC
16814 builtin and then its argument prototype would still apply. */
16819 /* The GNU C library defines this for functions which it implements
16820 to always fail with ENOSYS. Some functions are actually named
16821 something starting with __ and the normal name is an alias. */
16822 #if defined __stub_$ac_func || defined __stub___$ac_func
16829 return $ac_func ();
16834 rm -f conftest.$ac_objext conftest$ac_exeext
16835 if { (ac_try="$ac_link"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_link") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16847 (exit $ac_status); } && {
16848 test -z "$ac_c_werror_flag" ||
16849 test ! -s conftest.err
16850 } && test -s conftest$ac_exeext &&
16851 $as_test_x conftest$ac_exeext; then
16852 eval "$as_ac_var=yes"
16854 echo "$as_me: failed program was
:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 eval "$as_ac_var=no
"
16860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16861 conftest$ac_exeext conftest.$ac_ext
16863 ac_res=`eval echo '${'$as_ac_var'}'`
16864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 if test `eval echo '${'$as_ac_var'}'` = yes; then
16867 cat >>confdefs.h <<_ACEOF
16868 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16890 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16891 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16892 if test "${ac_cv_func_working_mktime+set}" = set; then
16893 echo $ECHO_N "(cached
) $ECHO_C" >&6
16895 if test "$cross_compiling" = yes; then
16896 ac_cv_func_working_mktime=no
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Test program from Paul Eggert and Tony Leneis. */
16905 #ifdef TIME_WITH_SYS_TIME
16906 # include <sys/time.h>
16909 # ifdef HAVE_SYS_TIME_H
16910 # include <sys/time.h>
16916 #include <stdlib.h>
16918 #ifdef HAVE_UNISTD_H
16919 # include <unistd.h>
16923 # define alarm(X) /* empty */
16926 /* Work around redefinition to rpl_putenv by other config tests. */
16929 static time_t time_t_max;
16930 static time_t time_t_min;
16932 /* Values we'll use to set the TZ environment variable. */
16933 static char *tz_strings[] = {
16934 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16935 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16937 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16939 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16940 Based on a problem report from Andreas Jaeger. */
16942 spring_forward_gap ()
16944 /* glibc (up to about 1998-10-07) failed this test. */
16947 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16948 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16949 on systems that don't support the Olson extension, or don't have the
16950 full zoneinfo tables installed. */
16951 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16960 return mktime (&tm) != (time_t) -1;
16968 return ! (lt = localtime (&now)) || mktime (lt) == now;
16975 return (mktime_test1 (now)
16976 && mktime_test1 ((time_t) (time_t_max - now))
16977 && mktime_test1 ((time_t) (time_t_min + now)));
16983 /* Based on code from Ariel Faigon. */
16993 return tm.tm_mon == 2 && tm.tm_mday == 31;
17002 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17003 now = mktime (&tm);
17004 if (now != (time_t) -1)
17006 struct tm *lt = localtime (&now);
17008 && lt->tm_year == tm.tm_year
17009 && lt->tm_mon == tm.tm_mon
17010 && lt->tm_mday == tm.tm_mday
17011 && lt->tm_hour == tm.tm_hour
17012 && lt->tm_min == tm.tm_min
17013 && lt->tm_sec == tm.tm_sec
17014 && lt->tm_yday == tm.tm_yday
17015 && lt->tm_wday == tm.tm_wday
17016 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17017 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17026 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17027 ignoring leap seconds. */
17028 unsigned long int answer = 2527315200UL;
17032 tm.tm_year = 2050 - 1900;
17035 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17038 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17039 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17040 on systems that don't support the Olson extension, or don't have the
17041 full zoneinfo tables installed. */
17042 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17046 /* Check that the result is either a failure, or close enough
17047 to the correct answer that we can assume the discrepancy is
17048 due to leap seconds. */
17049 return (t == (time_t) -1
17050 || (0 < t && answer - 120 <= t && t <= answer + 120));
17059 /* This test makes some buggy mktime implementations loop.
17060 Give up after 60 seconds; a mktime slower than that
17061 isn't worth using anyway. */
17064 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17067 if ((time_t) -1 < 0)
17068 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17070 delta = time_t_max / 997; /* a suitable prime number */
17071 for (i = 0; i < N_STRINGS; i++)
17074 putenv (tz_strings[i]);
17076 for (t = 0; t <= time_t_max - delta; t += delta)
17077 if (! mktime_test (t))
17079 if (! (mktime_test ((time_t) 1)
17080 && mktime_test ((time_t) (60 * 60))
17081 && mktime_test ((time_t) (60 * 60 * 24))))
17084 for (j = 1; 0 < j; j *= 2)
17085 if (! bigtime_test (j))
17087 if (! bigtime_test (j - 1))
17090 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17093 rm -f conftest$ac_exeext
17094 if { (ac_try="$ac_link"
17095 case "(($ac_try" in
17096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17097 *) ac_try_echo=$ac_try;;
17099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17100 (eval "$ac_link") 2>&5
17102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17104 { (case "(($ac_try" in
17105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106 *) ac_try_echo=$ac_try;;
17108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17109 (eval "$ac_try") 2>&5
17111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17112 (exit $ac_status); }; }; then
17113 ac_cv_func_working_mktime=yes
17115 echo "$as_me: program exited with status
$ac_status" >&5
17116 echo "$as_me: failed program was
:" >&5
17117 sed 's/^/| /' conftest.$ac_ext >&5
17119 ( exit $ac_status )
17120 ac_cv_func_working_mktime=no
17122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17127 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17128 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17129 if test $ac_cv_func_working_mktime = no; then
17130 case " $LIBOBJS " in
17131 *" mktime.
$ac_objext "* ) ;;
17132 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17138 if test "$ac_cv_func_working_mktime" = no; then
17140 cat >>confdefs.h <<\_ACEOF
17141 #define BROKEN_MKTIME 1
17146 ac_have_func=no # yes means we've found a way to get the load average.
17148 # Make sure getloadavg.c is where it belongs, at configure-time.
17149 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17150 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17151 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17152 { (exit 1); exit 1; }; }
17156 # Check for getloadavg, but be sure not to touch the cache variable.
17157 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17158 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17159 if test "${ac_cv_func_getloadavg+set}" = set; then
17160 echo $ECHO_N "(cached
) $ECHO_C" >&6
17162 cat >conftest.$ac_ext <<_ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17170 #define getloadavg innocuous_getloadavg
17172 /* System header to define __stub macros and hopefully few prototypes,
17173 which can conflict with char getloadavg (); below.
17174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17175 <limits.h> exists even on freestanding compilers. */
17178 # include <limits.h>
17180 # include <assert.h>
17185 /* Override any GCC internal prototype to avoid an error.
17186 Use char because int might match the return type of a GCC
17187 builtin and then its argument prototype would still apply. */
17191 char getloadavg ();
17192 /* The GNU C library defines this for functions which it implements
17193 to always fail with ENOSYS. Some functions are actually named
17194 something starting with __ and the normal name is an alias. */
17195 #if defined __stub_getloadavg || defined __stub___getloadavg
17202 return getloadavg ();
17207 rm -f conftest.$ac_objext conftest$ac_exeext
17208 if { (ac_try="$ac_link"
17209 case "(($ac_try" in
17210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17211 *) ac_try_echo=$ac_try;;
17213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17214 (eval "$ac_link") 2>conftest.er1
17216 grep -v '^ *+' conftest.er1 >conftest.err
17218 cat conftest.err >&5
17219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17220 (exit $ac_status); } && {
17221 test -z "$ac_c_werror_flag" ||
17222 test ! -s conftest.err
17223 } && test -s conftest$ac_exeext &&
17224 $as_test_x conftest$ac_exeext; then
17225 ac_cv_func_getloadavg=yes
17227 echo "$as_me: failed program was
:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17230 ac_cv_func_getloadavg=no
17233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17234 conftest$ac_exeext conftest.$ac_ext
17236 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17237 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17238 if test $ac_cv_func_getloadavg = yes; then
17243 ) && ac_have_func=yes
17245 # On HPUX9, an unprivileged user can get load averages through this function.
17247 for ac_func in pstat_getdynamic
17249 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17250 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17251 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17252 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17253 echo $ECHO_N "(cached
) $ECHO_C" >&6
17255 cat >conftest.$ac_ext <<_ACEOF
17258 cat confdefs.h >>conftest.$ac_ext
17259 cat >>conftest.$ac_ext <<_ACEOF
17260 /* end confdefs.h. */
17261 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17263 #define $ac_func innocuous_$ac_func
17265 /* System header to define __stub macros and hopefully few prototypes,
17266 which can conflict with char $ac_func (); below.
17267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17268 <limits.h> exists even on freestanding compilers. */
17271 # include <limits.h>
17273 # include <assert.h>
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17285 /* The GNU C library defines this for functions which it implements
17286 to always fail with ENOSYS. Some functions are actually named
17287 something starting with __ and the normal name is an alias. */
17288 #if defined __stub_$ac_func || defined __stub___$ac_func
17295 return $ac_func ();
17300 rm -f conftest.$ac_objext conftest$ac_exeext
17301 if { (ac_try="$ac_link"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_link") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest$ac_exeext &&
17317 $as_test_x conftest$ac_exeext; then
17318 eval "$as_ac_var=yes"
17320 echo "$as_me: failed program was
:" >&5
17321 sed 's/^/| /' conftest.$ac_ext >&5
17323 eval "$as_ac_var=no
"
17326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17327 conftest$ac_exeext conftest.$ac_ext
17329 ac_res=`eval echo '${'$as_ac_var'}'`
17330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17331 echo "${ECHO_T}$ac_res" >&6; }
17332 if test `eval echo '${'$as_ac_var'}'` = yes; then
17333 cat >>confdefs.h <<_ACEOF
17334 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17341 # Solaris has libkstat which does not require root.
17343 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17344 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17345 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17346 echo $ECHO_N "(cached
) $ECHO_C" >&6
17348 ac_check_lib_save_LIBS=$LIBS
17349 LIBS="-lkstat $LIBS"
17350 cat >conftest.$ac_ext <<_ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h. */
17357 /* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17363 char kstat_open ();
17367 return kstat_open ();
17372 rm -f conftest.$ac_objext conftest$ac_exeext
17373 if { (ac_try="$ac_link"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_link") 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17385 (exit $ac_status); } && {
17386 test -z "$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17388 } && test -s conftest$ac_exeext &&
17389 $as_test_x conftest$ac_exeext; then
17390 ac_cv_lib_kstat_kstat_open=yes
17392 echo "$as_me: failed program was
:" >&5
17393 sed 's/^/| /' conftest.$ac_ext >&5
17395 ac_cv_lib_kstat_kstat_open=no
17398 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17399 conftest$ac_exeext conftest.$ac_ext
17400 LIBS=$ac_check_lib_save_LIBS
17402 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17403 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17404 if test $ac_cv_lib_kstat_kstat_open = yes; then
17405 cat >>confdefs.h <<_ACEOF
17406 #define HAVE_LIBKSTAT 1
17409 LIBS="-lkstat $LIBS"
17413 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17415 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17416 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17417 # to get the right answer into the cache.
17418 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17419 if test $ac_have_func = no; then
17420 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17421 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17422 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17423 echo $ECHO_N "(cached
) $ECHO_C" >&6
17425 ac_check_lib_save_LIBS=$LIBS
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17434 /* Override any GCC internal prototype to avoid an error.
17435 Use char because int might match the return type of a GCC
17436 builtin and then its argument prototype would still apply. */
17444 return elf_begin ();
17449 rm -f conftest.$ac_objext conftest$ac_exeext
17450 if { (ac_try="$ac_link"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_link") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest$ac_exeext &&
17466 $as_test_x conftest$ac_exeext; then
17467 ac_cv_lib_elf_elf_begin=yes
17469 echo "$as_me: failed program was
:" >&5
17470 sed 's/^/| /' conftest.$ac_ext >&5
17472 ac_cv_lib_elf_elf_begin=no
17475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17476 conftest$ac_exeext conftest.$ac_ext
17477 LIBS=$ac_check_lib_save_LIBS
17479 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17480 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17481 if test $ac_cv_lib_elf_elf_begin = yes; then
17486 if test $ac_have_func = no; then
17487 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17488 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17489 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17490 echo $ECHO_N "(cached
) $ECHO_C" >&6
17492 ac_check_lib_save_LIBS=$LIBS
17494 cat >conftest.$ac_ext <<_ACEOF
17497 cat confdefs.h >>conftest.$ac_ext
17498 cat >>conftest.$ac_ext <<_ACEOF
17499 /* end confdefs.h. */
17501 /* Override any GCC internal prototype to avoid an error.
17502 Use char because int might match the return type of a GCC
17503 builtin and then its argument prototype would still apply. */
17511 return kvm_open ();
17516 rm -f conftest.$ac_objext conftest$ac_exeext
17517 if { (ac_try="$ac_link"
17518 case "(($ac_try" in
17519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520 *) ac_try_echo=$ac_try;;
17522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17523 (eval "$ac_link") 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17529 (exit $ac_status); } && {
17530 test -z "$ac_c_werror_flag" ||
17531 test ! -s conftest.err
17532 } && test -s conftest$ac_exeext &&
17533 $as_test_x conftest$ac_exeext; then
17534 ac_cv_lib_kvm_kvm_open=yes
17536 echo "$as_me: failed program was
:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 ac_cv_lib_kvm_kvm_open=no
17542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17543 conftest$ac_exeext conftest.$ac_ext
17544 LIBS=$ac_check_lib_save_LIBS
17546 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17547 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17548 if test $ac_cv_lib_kvm_kvm_open = yes; then
17552 # Check for the 4.4BSD definition of getloadavg.
17553 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17554 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17555 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17556 echo $ECHO_N "(cached
) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lutil $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17567 /* Override any GCC internal prototype to avoid an error.
17568 Use char because int might match the return type of a GCC
17569 builtin and then its argument prototype would still apply. */
17573 char getloadavg ();
17577 return getloadavg ();
17582 rm -f conftest.$ac_objext conftest$ac_exeext
17583 if { (ac_try="$ac_link"
17584 case "(($ac_try" in
17585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17586 *) ac_try_echo=$ac_try;;
17588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17589 (eval "$ac_link") 2>conftest.er1
17591 grep -v '^ *+' conftest.er1 >conftest.err
17593 cat conftest.err >&5
17594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17595 (exit $ac_status); } && {
17596 test -z "$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 } && test -s conftest$ac_exeext &&
17599 $as_test_x conftest$ac_exeext; then
17600 ac_cv_lib_util_getloadavg=yes
17602 echo "$as_me: failed program was
:" >&5
17603 sed 's/^/| /' conftest.$ac_ext >&5
17605 ac_cv_lib_util_getloadavg=no
17608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17609 conftest$ac_exeext conftest.$ac_ext
17610 LIBS=$ac_check_lib_save_LIBS
17612 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17613 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17614 if test $ac_cv_lib_util_getloadavg = yes; then
17615 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17620 if test $ac_have_func = no; then
17621 # There is a commonly available library for RS/6000 AIX.
17622 # Since it is not a standard part of AIX, it might be installed locally.
17623 ac_getloadavg_LIBS=$LIBS
17624 LIBS="-L/usr
/local
/lib
$LIBS"
17625 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17626 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17627 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17628 echo $ECHO_N "(cached
) $ECHO_C" >&6
17630 ac_check_lib_save_LIBS=$LIBS
17631 LIBS="-lgetloadavg $LIBS"
17632 cat >conftest.$ac_ext <<_ACEOF
17635 cat confdefs.h >>conftest.$ac_ext
17636 cat >>conftest.$ac_ext <<_ACEOF
17637 /* end confdefs.h. */
17639 /* Override any GCC internal prototype to avoid an error.
17640 Use char because int might match the return type of a GCC
17641 builtin and then its argument prototype would still apply. */
17645 char getloadavg ();
17649 return getloadavg ();
17654 rm -f conftest.$ac_objext conftest$ac_exeext
17655 if { (ac_try="$ac_link"
17656 case "(($ac_try" in
17657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17658 *) ac_try_echo=$ac_try;;
17660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17661 (eval "$ac_link") 2>conftest.er1
17663 grep -v '^ *+' conftest.er1 >conftest.err
17665 cat conftest.err >&5
17666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17667 (exit $ac_status); } && {
17668 test -z "$ac_c_werror_flag" ||
17669 test ! -s conftest.err
17670 } && test -s conftest$ac_exeext &&
17671 $as_test_x conftest$ac_exeext; then
17672 ac_cv_lib_getloadavg_getloadavg=yes
17674 echo "$as_me: failed program was
:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_lib_getloadavg_getloadavg=no
17680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17681 conftest$ac_exeext conftest.$ac_ext
17682 LIBS=$ac_check_lib_save_LIBS
17684 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17685 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17686 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17687 LIBS="-lgetloadavg $LIBS"
17689 LIBS=$ac_getloadavg_LIBS
17694 # Make sure it is really in the library, if we think we found it,
17695 # otherwise set up the replacement function.
17697 for ac_func in getloadavg
17699 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17700 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17701 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17702 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17703 echo $ECHO_N "(cached
) $ECHO_C" >&6
17705 cat >conftest.$ac_ext <<_ACEOF
17708 cat confdefs.h >>conftest.$ac_ext
17709 cat >>conftest.$ac_ext <<_ACEOF
17710 /* end confdefs.h. */
17711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17713 #define $ac_func innocuous_$ac_func
17715 /* System header to define __stub macros and hopefully few prototypes,
17716 which can conflict with char $ac_func (); below.
17717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17718 <limits.h> exists even on freestanding compilers. */
17721 # include <limits.h>
17723 # include <assert.h>
17728 /* Override any GCC internal prototype to avoid an error.
17729 Use char because int might match the return type of a GCC
17730 builtin and then its argument prototype would still apply. */
17735 /* The GNU C library defines this for functions which it implements
17736 to always fail with ENOSYS. Some functions are actually named
17737 something starting with __ and the normal name is an alias. */
17738 #if defined __stub_$ac_func || defined __stub___$ac_func
17745 return $ac_func ();
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (ac_try="$ac_link"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_link") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17763 (exit $ac_status); } && {
17764 test -z "$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17766 } && test -s conftest$ac_exeext &&
17767 $as_test_x conftest$ac_exeext; then
17768 eval "$as_ac_var=yes"
17770 echo "$as_me: failed program was
:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 eval "$as_ac_var=no
"
17776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17777 conftest$ac_exeext conftest.$ac_ext
17779 ac_res=`eval echo '${'$as_ac_var'}'`
17780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17781 echo "${ECHO_T}$ac_res" >&6; }
17782 if test `eval echo '${'$as_ac_var'}'` = yes; then
17783 cat >>confdefs.h <<_ACEOF
17784 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17788 case " $LIBOBJS " in
17789 *" getloadavg.
$ac_objext "* ) ;;
17790 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17795 cat >>confdefs.h <<\_ACEOF
17796 #define C_GETLOADAVG 1
17799 # Figure out what our getloadavg.c needs.
17801 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17802 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17803 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17804 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17805 echo $ECHO_N "(cached
) $ECHO_C" >&6
17807 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17808 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17810 # Is the header compilable?
17811 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17812 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17813 cat >conftest.$ac_ext <<_ACEOF
17816 cat confdefs.h >>conftest.$ac_ext
17817 cat >>conftest.$ac_ext <<_ACEOF
17818 /* end confdefs.h. */
17819 $ac_includes_default
17820 #include <sys/dg_sys_info.h>
17822 rm -f conftest.$ac_objext
17823 if { (ac_try="$ac_compile"
17824 case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_compile") 2>conftest.er1
17831 grep -v '^ *+' conftest.er1 >conftest.err
17833 cat conftest.err >&5
17834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17835 (exit $ac_status); } && {
17836 test -z "$ac_c_werror_flag" ||
17837 test ! -s conftest.err
17838 } && test -s conftest.$ac_objext; then
17839 ac_header_compiler=yes
17841 echo "$as_me: failed program was
:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_header_compiler=no
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17849 echo "${ECHO_T}$ac_header_compiler" >&6; }
17851 # Is the header present?
17852 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17853 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 #include <sys/dg_sys_info.h>
17862 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17863 case "(($ac_try" in
17864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17865 *) ac_try_echo=$ac_try;;
17867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17868 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17870 grep -v '^ *+' conftest.er1 >conftest.err
17872 cat conftest.err >&5
17873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17874 (exit $ac_status); } >/dev/null && {
17875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17878 ac_header_preproc=yes
17880 echo "$as_me: failed program was
:" >&5
17881 sed 's/^/| /' conftest.$ac_ext >&5
17883 ac_header_preproc=no
17886 rm -f conftest.err conftest.$ac_ext
17887 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17888 echo "${ECHO_T}$ac_header_preproc" >&6; }
17890 # So? What about this header?
17891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17893 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17894 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17895 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17896 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17897 ac_header_preproc=yes
17900 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17901 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17902 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17903 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17904 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17905 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17906 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17907 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17908 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17909 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17910 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17911 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17915 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17916 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17917 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17918 echo $ECHO_N "(cached
) $ECHO_C" >&6
17920 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17922 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17923 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17926 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17929 cat >>confdefs.h <<\_ACEOF
17934 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17935 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17936 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17937 echo $ECHO_N "(cached
) $ECHO_C" >&6
17939 ac_check_lib_save_LIBS=$LIBS
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17948 /* Override any GCC internal prototype to avoid an error.
17949 Use char because int might match the return type of a GCC
17950 builtin and then its argument prototype would still apply. */
17954 char dg_sys_info ();
17958 return dg_sys_info ();
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_lib_dgc_dg_sys_info=yes
17983 echo "$as_me: failed program was
:" >&5
17984 sed 's/^/| /' conftest.$ac_ext >&5
17986 ac_cv_lib_dgc_dg_sys_info=no
17989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17990 conftest$ac_exeext conftest.$ac_ext
17991 LIBS=$ac_check_lib_save_LIBS
17993 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17994 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17995 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define HAVE_LIBDGC 1
18008 if test "${ac_cv_header_locale_h+set}" = set; then
18009 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18010 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18011 if test "${ac_cv_header_locale_h+set}" = set; then
18012 echo $ECHO_N "(cached
) $ECHO_C" >&6
18014 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18015 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18017 # Is the header compilable?
18018 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18019 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18020 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 $ac_includes_default
18027 #include <locale.h>
18029 rm -f conftest.$ac_objext
18030 if { (ac_try="$ac_compile"
18031 case "(($ac_try" in
18032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18033 *) ac_try_echo=$ac_try;;
18035 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18036 (eval "$ac_compile") 2>conftest.er1
18038 grep -v '^ *+' conftest.er1 >conftest.err
18040 cat conftest.err >&5
18041 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18042 (exit $ac_status); } && {
18043 test -z "$ac_c_werror_flag" ||
18044 test ! -s conftest.err
18045 } && test -s conftest.$ac_objext; then
18046 ac_header_compiler=yes
18048 echo "$as_me: failed program was
:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 ac_header_compiler=no
18054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18055 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18056 echo "${ECHO_T}$ac_header_compiler" >&6; }
18058 # Is the header present?
18059 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18060 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18061 cat >conftest.$ac_ext <<_ACEOF
18064 cat confdefs.h >>conftest.$ac_ext
18065 cat >>conftest.$ac_ext <<_ACEOF
18066 /* end confdefs.h. */
18067 #include <locale.h>
18069 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
18082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18083 test ! -s conftest.err
18085 ac_header_preproc=yes
18087 echo "$as_me: failed program was
:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_header_preproc=no
18093 rm -f conftest.err conftest.$ac_ext
18094 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18095 echo "${ECHO_T}$ac_header_preproc" >&6; }
18097 # So? What about this header?
18098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18100 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18101 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18102 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18103 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18104 ac_header_preproc=yes
18107 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18108 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18109 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18110 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18111 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18112 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18113 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18114 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18115 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18116 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18117 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18118 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18122 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18123 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18124 if test "${ac_cv_header_locale_h+set}" = set; then
18125 echo $ECHO_N "(cached
) $ECHO_C" >&6
18127 ac_cv_header_locale_h=$ac_header_preproc
18129 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18130 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18136 for ac_func in setlocale
18138 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18139 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18140 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18141 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18142 echo $ECHO_N "(cached
) $ECHO_C" >&6
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18152 #define $ac_func innocuous_$ac_func
18154 /* System header to define __stub macros and hopefully few prototypes,
18155 which can conflict with char $ac_func (); below.
18156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18157 <limits.h> exists even on freestanding compilers. */
18160 # include <limits.h>
18162 # include <assert.h>
18167 /* Override any GCC internal prototype to avoid an error.
18168 Use char because int might match the return type of a GCC
18169 builtin and then its argument prototype would still apply. */
18174 /* The GNU C library defines this for functions which it implements
18175 to always fail with ENOSYS. Some functions are actually named
18176 something starting with __ and the normal name is an alias. */
18177 #if defined __stub_$ac_func || defined __stub___$ac_func
18184 return $ac_func ();
18189 rm -f conftest.$ac_objext conftest$ac_exeext
18190 if { (ac_try="$ac_link"
18191 case "(($ac_try" in
18192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18193 *) ac_try_echo=$ac_try;;
18195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18196 (eval "$ac_link") 2>conftest.er1
18198 grep -v '^ *+' conftest.er1 >conftest.err
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18202 (exit $ac_status); } && {
18203 test -z "$ac_c_werror_flag" ||
18204 test ! -s conftest.err
18205 } && test -s conftest$ac_exeext &&
18206 $as_test_x conftest$ac_exeext; then
18207 eval "$as_ac_var=yes"
18209 echo "$as_me: failed program was
:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 eval "$as_ac_var=no
"
18215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18216 conftest$ac_exeext conftest.$ac_ext
18218 ac_res=`eval echo '${'$as_ac_var'}'`
18219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18221 if test `eval echo '${'$as_ac_var'}'` = yes; then
18222 cat >>confdefs.h <<_ACEOF
18223 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18230 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18231 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18232 # Irix 4.0.5F has the header but not the library.
18233 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18236 cat >>confdefs.h <<\_ACEOF
18242 if test $ac_have_func = no; then
18243 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18244 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18245 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18246 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18247 echo $ECHO_N "(cached
) $ECHO_C" >&6
18249 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18250 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18252 # Is the header compilable?
18253 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18254 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18255 cat >conftest.$ac_ext <<_ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261 $ac_includes_default
18262 #include <inq_stats/cpustats.h>
18264 rm -f conftest.$ac_objext
18265 if { (ac_try="$ac_compile"
18266 case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_compile") 2>conftest.er1
18273 grep -v '^ *+' conftest.er1 >conftest.err
18275 cat conftest.err >&5
18276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18277 (exit $ac_status); } && {
18278 test -z "$ac_c_werror_flag" ||
18279 test ! -s conftest.err
18280 } && test -s conftest.$ac_objext; then
18281 ac_header_compiler=yes
18283 echo "$as_me: failed program was
:" >&5
18284 sed 's/^/| /' conftest.$ac_ext >&5
18286 ac_header_compiler=no
18289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18290 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18291 echo "${ECHO_T}$ac_header_compiler" >&6; }
18293 # Is the header present?
18294 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18295 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 #include <inq_stats/cpustats.h>
18304 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18305 case "(($ac_try" in
18306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18307 *) ac_try_echo=$ac_try;;
18309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18310 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18312 grep -v '^ *+' conftest.er1 >conftest.err
18314 cat conftest.err >&5
18315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18316 (exit $ac_status); } >/dev/null && {
18317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18318 test ! -s conftest.err
18320 ac_header_preproc=yes
18322 echo "$as_me: failed program was
:" >&5
18323 sed 's/^/| /' conftest.$ac_ext >&5
18325 ac_header_preproc=no
18328 rm -f conftest.err conftest.$ac_ext
18329 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18330 echo "${ECHO_T}$ac_header_preproc" >&6; }
18332 # So? What about this header?
18333 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18335 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18336 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18337 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18338 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18339 ac_header_preproc=yes
18342 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18343 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18344 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18345 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18346 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18347 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18348 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18349 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18350 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18351 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18352 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18353 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18357 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18358 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18359 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18360 echo $ECHO_N "(cached
) $ECHO_C" >&6
18362 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18364 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18365 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18368 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18371 cat >>confdefs.h <<\_ACEOF
18376 cat >>confdefs.h <<\_ACEOF
18385 if test $ac_have_func = no; then
18386 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18387 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18388 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18389 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18390 echo $ECHO_N "(cached
) $ECHO_C" >&6
18392 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18393 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18395 # Is the header compilable?
18396 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18397 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18398 cat >conftest.$ac_ext <<_ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 $ac_includes_default
18405 #include <sys/cpustats.h>
18407 rm -f conftest.$ac_objext
18408 if { (ac_try="$ac_compile"
18409 case "(($ac_try" in
18410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18411 *) ac_try_echo=$ac_try;;
18413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18414 (eval "$ac_compile") 2>conftest.er1
18416 grep -v '^ *+' conftest.er1 >conftest.err
18418 cat conftest.err >&5
18419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest.$ac_objext; then
18424 ac_header_compiler=yes
18426 echo "$as_me: failed program was
:" >&5
18427 sed 's/^/| /' conftest.$ac_ext >&5
18429 ac_header_compiler=no
18432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18433 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18434 echo "${ECHO_T}$ac_header_compiler" >&6; }
18436 # Is the header present?
18437 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18438 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18439 cat >conftest.$ac_ext <<_ACEOF
18442 cat confdefs.h >>conftest.$ac_ext
18443 cat >>conftest.$ac_ext <<_ACEOF
18444 /* end confdefs.h. */
18445 #include <sys/cpustats.h>
18447 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18448 case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18455 grep -v '^ *+' conftest.er1 >conftest.err
18457 cat conftest.err >&5
18458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18459 (exit $ac_status); } >/dev/null && {
18460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18461 test ! -s conftest.err
18463 ac_header_preproc=yes
18465 echo "$as_me: failed program was
:" >&5
18466 sed 's/^/| /' conftest.$ac_ext >&5
18468 ac_header_preproc=no
18471 rm -f conftest.err conftest.$ac_ext
18472 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18473 echo "${ECHO_T}$ac_header_preproc" >&6; }
18475 # So? What about this header?
18476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18478 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18479 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18480 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18481 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18482 ac_header_preproc=yes
18485 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18486 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18487 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18488 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18489 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18490 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18491 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18492 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18493 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18494 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18495 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18496 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18500 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18501 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18502 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18503 echo $ECHO_N "(cached
) $ECHO_C" >&6
18505 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18507 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18508 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18511 if test $ac_cv_header_sys_cpustats_h = yes; then
18512 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18521 if test $ac_have_func = no; then
18523 for ac_header in mach/mach.h
18525 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18530 echo $ECHO_N "(cached
) $ECHO_C" >&6
18532 ac_res=`eval echo '${'$as_ac_Header'}'`
18533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18534 echo "${ECHO_T}$ac_res" >&6; }
18536 # Is the header compilable?
18537 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18538 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18539 cat >conftest.$ac_ext <<_ACEOF
18542 cat confdefs.h >>conftest.$ac_ext
18543 cat >>conftest.$ac_ext <<_ACEOF
18544 /* end confdefs.h. */
18545 $ac_includes_default
18546 #include <$ac_header>
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_header_compiler=yes
18567 echo "$as_me: failed program was
:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_header_compiler=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18574 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18575 echo "${ECHO_T}$ac_header_compiler" >&6; }
18577 # Is the header present?
18578 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18579 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18586 #include <$ac_header>
18588 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18589 case "(($ac_try" in
18590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591 *) ac_try_echo=$ac_try;;
18593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18594 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18596 grep -v '^ *+' conftest.er1 >conftest.err
18598 cat conftest.err >&5
18599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18600 (exit $ac_status); } >/dev/null && {
18601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18604 ac_header_preproc=yes
18606 echo "$as_me: failed program was
:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18609 ac_header_preproc=no
18612 rm -f conftest.err conftest.$ac_ext
18613 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18614 echo "${ECHO_T}$ac_header_preproc" >&6; }
18616 # So? What about this header?
18617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18619 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18620 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18621 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18623 ac_header_preproc=yes
18626 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18627 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18628 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18629 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18630 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18631 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18632 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18633 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18636 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18637 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18641 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18642 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18644 echo $ECHO_N "(cached
) $ECHO_C" >&6
18646 eval "$as_ac_Header=\
$ac_header_preproc"
18648 ac_res=`eval echo '${'$as_ac_Header'}'`
18649 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18650 echo "${ECHO_T}$ac_res" >&6; }
18653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18654 cat >>confdefs.h <<_ACEOF
18655 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18665 for ac_header in nlist.h
18667 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18669 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18670 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18672 echo $ECHO_N "(cached
) $ECHO_C" >&6
18674 ac_res=`eval echo '${'$as_ac_Header'}'`
18675 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18678 # Is the header compilable?
18679 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18680 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18681 cat >conftest.$ac_ext <<_ACEOF
18684 cat confdefs.h >>conftest.$ac_ext
18685 cat >>conftest.$ac_ext <<_ACEOF
18686 /* end confdefs.h. */
18687 $ac_includes_default
18688 #include <$ac_header>
18690 rm -f conftest.$ac_objext
18691 if { (ac_try="$ac_compile"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_compile") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest.$ac_objext; then
18707 ac_header_compiler=yes
18709 echo "$as_me: failed program was
:" >&5
18710 sed 's/^/| /' conftest.$ac_ext >&5
18712 ac_header_compiler=no
18715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18716 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18717 echo "${ECHO_T}$ac_header_compiler" >&6; }
18719 # Is the header present?
18720 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18721 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18722 cat >conftest.$ac_ext <<_ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h. */
18728 #include <$ac_header>
18730 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18731 case "(($ac_try" in
18732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18733 *) ac_try_echo=$ac_try;;
18735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18736 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18738 grep -v '^ *+' conftest.er1 >conftest.err
18740 cat conftest.err >&5
18741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18742 (exit $ac_status); } >/dev/null && {
18743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18744 test ! -s conftest.err
18746 ac_header_preproc=yes
18748 echo "$as_me: failed program was
:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18751 ac_header_preproc=no
18754 rm -f conftest.err conftest.$ac_ext
18755 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18756 echo "${ECHO_T}$ac_header_preproc" >&6; }
18758 # So? What about this header?
18759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18761 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18762 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18763 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18765 ac_header_preproc=yes
18768 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18769 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18770 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18771 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18772 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18773 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18774 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18775 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18776 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18778 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18779 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18783 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18784 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18785 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18786 echo $ECHO_N "(cached
) $ECHO_C" >&6
18788 eval "$as_ac_Header=\
$ac_header_preproc"
18790 ac_res=`eval echo '${'$as_ac_Header'}'`
18791 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18792 echo "${ECHO_T}$ac_res" >&6; }
18795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18796 cat >>confdefs.h <<_ACEOF
18797 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18799 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18800 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18801 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18802 echo $ECHO_N "(cached
) $ECHO_C" >&6
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18815 static struct nlist ac_aggr;
18816 if (ac_aggr.n_un.n_name)
18822 rm -f conftest.$ac_objext
18823 if { (ac_try="$ac_compile"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_compile") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest.$ac_objext; then
18839 ac_cv_member_struct_nlist_n_un_n_name=yes
18841 echo "$as_me: failed program was
:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18844 cat >conftest.$ac_ext <<_ACEOF
18847 cat confdefs.h >>conftest.$ac_ext
18848 cat >>conftest.$ac_ext <<_ACEOF
18849 /* end confdefs.h. */
18855 static struct nlist ac_aggr;
18856 if (sizeof ac_aggr.n_un.n_name)
18862 rm -f conftest.$ac_objext
18863 if { (ac_try="$ac_compile"
18864 case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_compile") 2>conftest.er1
18871 grep -v '^ *+' conftest.er1 >conftest.err
18873 cat conftest.err >&5
18874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18875 (exit $ac_status); } && {
18876 test -z "$ac_c_werror_flag" ||
18877 test ! -s conftest.err
18878 } && test -s conftest.$ac_objext; then
18879 ac_cv_member_struct_nlist_n_un_n_name=yes
18881 echo "$as_me: failed program was
:" >&5
18882 sed 's/^/| /' conftest.$ac_ext >&5
18884 ac_cv_member_struct_nlist_n_un_n_name=no
18887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18892 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18893 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18894 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18896 cat >>confdefs.h <<_ACEOF
18897 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18901 cat >>confdefs.h <<\_ACEOF
18902 #define NLIST_NAME_UNION 1
18916 # Some definitions of getloadavg require that the program be installed setgid.
18917 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18918 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18919 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18920 echo $ECHO_N "(cached
) $ECHO_C" >&6
18922 cat >conftest.$ac_ext <<_ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h. */
18928 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18929 #ifdef LDAV_PRIVILEGED
18930 Yowza Am I SETGID yet
18933 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18934 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18935 ac_cv_func_getloadavg_setgid=yes
18937 ac_cv_func_getloadavg_setgid=no
18942 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18943 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18944 if test $ac_cv_func_getloadavg_setgid = yes; then
18947 cat >>confdefs.h <<\_ACEOF
18948 #define GETLOADAVG_PRIVILEGED 1
18955 if test $ac_cv_func_getloadavg_setgid = yes; then
18956 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18957 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18958 if test "${ac_cv_group_kmem+set}" = set; then
18959 echo $ECHO_N "(cached
) $ECHO_C" >&6
18961 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18962 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18963 # If we got an error (system does not support symlinks), try without -L.
18964 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18965 ac_cv_group_kmem=`echo $ac_ls_output \
18966 | sed -ne 's/[ ][ ]*/ /g;
18967 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18971 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18972 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18973 KMEM_GROUP=$ac_cv_group_kmem
18975 if test "x
$ac_save_LIBS" = x; then
18976 GETLOADAVG_LIBS=$LIBS
18978 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18984 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18985 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18986 if test "${ac_cv_sys_largefile_source+set}" = set; then
18987 echo $ECHO_N "(cached
) $ECHO_C" >&6
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
19000 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19005 rm -f conftest.$ac_objext conftest$ac_exeext
19006 if { (ac_try="$ac_link"
19007 case "(($ac_try" in
19008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19009 *) ac_try_echo=$ac_try;;
19011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19012 (eval "$ac_link") 2>conftest.er1
19014 grep -v '^ *+' conftest.er1 >conftest.err
19016 cat conftest.err >&5
19017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19018 (exit $ac_status); } && {
19019 test -z "$ac_c_werror_flag" ||
19020 test ! -s conftest.err
19021 } && test -s conftest$ac_exeext &&
19022 $as_test_x conftest$ac_exeext; then
19023 ac_cv_sys_largefile_source=no; break
19025 echo "$as_me: failed program was
:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19032 conftest$ac_exeext conftest.$ac_ext
19033 cat >conftest.$ac_ext <<_ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h. */
19039 #define _LARGEFILE_SOURCE 1
19044 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19049 rm -f conftest.$ac_objext conftest$ac_exeext
19050 if { (ac_try="$ac_link"
19051 case "(($ac_try" in
19052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053 *) ac_try_echo=$ac_try;;
19055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19056 (eval "$ac_link") 2>conftest.er1
19058 grep -v '^ *+' conftest.er1 >conftest.err
19060 cat conftest.err >&5
19061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19062 (exit $ac_status); } && {
19063 test -z "$ac_c_werror_flag" ||
19064 test ! -s conftest.err
19065 } && test -s conftest$ac_exeext &&
19066 $as_test_x conftest$ac_exeext; then
19067 ac_cv_sys_largefile_source=1; break
19069 echo "$as_me: failed program was
:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19076 conftest$ac_exeext conftest.$ac_ext
19077 ac_cv_sys_largefile_source=unknown
19081 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19082 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19083 case $ac_cv_sys_largefile_source in #(
19086 cat >>confdefs.h <<_ACEOF
19087 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19093 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19094 # in glibc 2.1.3, but that breaks too many other things.
19095 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19096 if test $ac_cv_sys_largefile_source != unknown; then
19098 cat >>confdefs.h <<\_ACEOF
19099 #define HAVE_FSEEKO 1
19105 # Configure getopt.
19106 # getopt.m4 serial 10
19108 # The getopt module assume you want GNU getopt, with getopt_long etc,
19109 # rather than vanilla POSIX getopt. This means your your code should
19110 # always include <getopt.h> for the getopt prototypes.
19122 # Prerequisites of lib/getopt*.
19129 for ac_header in getopt.h
19131 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19133 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19134 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19136 echo $ECHO_N "(cached
) $ECHO_C" >&6
19138 ac_res=`eval echo '${'$as_ac_Header'}'`
19139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19140 echo "${ECHO_T}$ac_res" >&6; }
19142 # Is the header compilable?
19143 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19144 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 $ac_includes_default
19152 #include <$ac_header>
19154 rm -f conftest.$ac_objext
19155 if { (ac_try="$ac_compile"
19156 case "(($ac_try" in
19157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19158 *) ac_try_echo=$ac_try;;
19160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19161 (eval "$ac_compile") 2>conftest.er1
19163 grep -v '^ *+' conftest.er1 >conftest.err
19165 cat conftest.err >&5
19166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19167 (exit $ac_status); } && {
19168 test -z "$ac_c_werror_flag" ||
19169 test ! -s conftest.err
19170 } && test -s conftest.$ac_objext; then
19171 ac_header_compiler=yes
19173 echo "$as_me: failed program was
:" >&5
19174 sed 's/^/| /' conftest.$ac_ext >&5
19176 ac_header_compiler=no
19179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19180 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19181 echo "${ECHO_T}$ac_header_compiler" >&6; }
19183 # Is the header present?
19184 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19185 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <$ac_header>
19194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19202 grep -v '^ *+' conftest.er1 >conftest.err
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19206 (exit $ac_status); } >/dev/null && {
19207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19208 test ! -s conftest.err
19210 ac_header_preproc=yes
19212 echo "$as_me: failed program was
:" >&5
19213 sed 's/^/| /' conftest.$ac_ext >&5
19215 ac_header_preproc=no
19218 rm -f conftest.err conftest.$ac_ext
19219 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19220 echo "${ECHO_T}$ac_header_preproc" >&6; }
19222 # So? What about this header?
19223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19225 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19226 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19227 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19229 ac_header_preproc=yes
19232 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19233 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19234 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19235 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19236 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19237 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19238 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19239 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19240 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19242 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19243 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19247 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19248 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19250 echo $ECHO_N "(cached
) $ECHO_C" >&6
19252 eval "$as_ac_Header=\
$ac_header_preproc"
19254 ac_res=`eval echo '${'$as_ac_Header'}'`
19255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19256 echo "${ECHO_T}$ac_res" >&6; }
19259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19260 cat >>confdefs.h <<_ACEOF
19261 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19270 if test -z "$GETOPT_H"; then
19272 for ac_func in getopt_long_only
19274 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19275 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19276 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19277 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19278 echo $ECHO_N "(cached
) $ECHO_C" >&6
19280 cat >conftest.$ac_ext <<_ACEOF
19283 cat confdefs.h >>conftest.$ac_ext
19284 cat >>conftest.$ac_ext <<_ACEOF
19285 /* end confdefs.h. */
19286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19288 #define $ac_func innocuous_$ac_func
19290 /* System header to define __stub macros and hopefully few prototypes,
19291 which can conflict with char $ac_func (); below.
19292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19293 <limits.h> exists even on freestanding compilers. */
19296 # include <limits.h>
19298 # include <assert.h>
19303 /* Override any GCC internal prototype to avoid an error.
19304 Use char because int might match the return type of a GCC
19305 builtin and then its argument prototype would still apply. */
19310 /* The GNU C library defines this for functions which it implements
19311 to always fail with ENOSYS. Some functions are actually named
19312 something starting with __ and the normal name is an alias. */
19313 #if defined __stub_$ac_func || defined __stub___$ac_func
19320 return $ac_func ();
19325 rm -f conftest.$ac_objext conftest$ac_exeext
19326 if { (ac_try="$ac_link"
19327 case "(($ac_try" in
19328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19329 *) ac_try_echo=$ac_try;;
19331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19332 (eval "$ac_link") 2>conftest.er1
19334 grep -v '^ *+' conftest.er1 >conftest.err
19336 cat conftest.err >&5
19337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19338 (exit $ac_status); } && {
19339 test -z "$ac_c_werror_flag" ||
19340 test ! -s conftest.err
19341 } && test -s conftest$ac_exeext &&
19342 $as_test_x conftest$ac_exeext; then
19343 eval "$as_ac_var=yes"
19345 echo "$as_me: failed program was
:" >&5
19346 sed 's/^/| /' conftest.$ac_ext >&5
19348 eval "$as_ac_var=no
"
19351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19352 conftest$ac_exeext conftest.$ac_ext
19354 ac_res=`eval echo '${'$as_ac_var'}'`
19355 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19356 echo "${ECHO_T}$ac_res" >&6; }
19357 if test `eval echo '${'$as_ac_var'}'` = yes; then
19358 cat >>confdefs.h <<_ACEOF
19359 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19369 if test -z "$GETOPT_H"; then
19370 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19371 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19372 if test "${ac_cv_have_decl_optreset+set}" = set; then
19373 echo $ECHO_N "(cached
) $ECHO_C" >&6
19375 cat >conftest.$ac_ext <<_ACEOF
19378 cat confdefs.h >>conftest.$ac_ext
19379 cat >>conftest.$ac_ext <<_ACEOF
19380 /* end confdefs.h. */
19381 #include <getopt.h>
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398 *) ac_try_echo=$ac_try;;
19400 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19401 (eval "$ac_compile") 2>conftest.er1
19403 grep -v '^ *+' conftest.er1 >conftest.err
19405 cat conftest.err >&5
19406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19407 (exit $ac_status); } && {
19408 test -z "$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 } && test -s conftest.$ac_objext; then
19411 ac_cv_have_decl_optreset=yes
19413 echo "$as_me: failed program was
:" >&5
19414 sed 's/^/| /' conftest.$ac_ext >&5
19416 ac_cv_have_decl_optreset=no
19419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19421 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19422 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19423 if test $ac_cv_have_decl_optreset = yes; then
19429 if test -z "$GETOPT_H"; then
19430 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19431 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19432 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19433 echo $ECHO_N "(cached
) $ECHO_C" >&6
19435 if test "$cross_compiling" = yes; then
19436 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19437 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19438 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19439 echo $ECHO_N "(cached
) $ECHO_C" >&6
19441 cat >conftest.$ac_ext <<_ACEOF
19444 cat confdefs.h >>conftest.$ac_ext
19445 cat >>conftest.$ac_ext <<_ACEOF
19446 /* end confdefs.h. */
19447 #include <getopt.h>
19452 #ifndef getopt_clip
19453 (void) getopt_clip;
19460 rm -f conftest.$ac_objext
19461 if { (ac_try="$ac_compile"
19462 case "(($ac_try" in
19463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464 *) ac_try_echo=$ac_try;;
19466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19467 (eval "$ac_compile") 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19473 (exit $ac_status); } && {
19474 test -z "$ac_c_werror_flag" ||
19475 test ! -s conftest.err
19476 } && test -s conftest.$ac_objext; then
19477 ac_cv_have_decl_getopt_clip=yes
19479 echo "$as_me: failed program was
:" >&5
19480 sed 's/^/| /' conftest.$ac_ext >&5
19482 ac_cv_have_decl_getopt_clip=no
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19487 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19488 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19489 if test $ac_cv_have_decl_getopt_clip = yes; then
19490 gl_cv_func_gnu_getopt=no
19492 gl_cv_func_gnu_getopt=yes
19496 cat >conftest.$ac_ext <<_ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 #include <getopt.h>
19508 myargv[0] = "conftest
";
19511 return getopt (2, myargv, "+a
") != '?';
19517 rm -f conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>&5
19526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19528 { (case "(($ac_try" in
19529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19530 *) ac_try_echo=$ac_try;;
19532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19533 (eval "$ac_try") 2>&5
19535 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19536 (exit $ac_status); }; }; then
19537 gl_cv_func_gnu_getopt=yes
19539 echo "$as_me: program exited with status
$ac_status" >&5
19540 echo "$as_me: failed program was
:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 ( exit $ac_status )
19544 gl_cv_func_gnu_getopt=no
19546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19551 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19552 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19553 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19560 if test -n "$GETOPT_H"; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define __GETOPT_PREFIX rpl_
19572 GETOPTOBJS='getopt.o getopt1.o'
19579 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19580 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19581 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19582 echo $ECHO_N "(cached
) $ECHO_C" >&6
19584 # Use it with a single arg.
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19591 $ac_includes_default
19600 rm -f conftest.$ac_objext
19601 if { (ac_try="$ac_compile"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_compile") 2>conftest.er1
19609 grep -v '^ *+' conftest.er1 >conftest.err
19611 cat conftest.err >&5
19612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19613 (exit $ac_status); } && {
19614 test -z "$ac_c_werror_flag" ||
19615 test ! -s conftest.err
19616 } && test -s conftest.$ac_objext; then
19617 ac_cv_func_getpgrp_void=no
19619 echo "$as_me: failed program was
:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 ac_cv_func_getpgrp_void=yes
19625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19629 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19630 if test $ac_cv_func_getpgrp_void = yes; then
19632 cat >>confdefs.h <<\_ACEOF
19633 #define GETPGRP_VOID 1
19640 for ac_func in strftime
19642 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19643 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19644 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19645 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19646 echo $ECHO_N "(cached
) $ECHO_C" >&6
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19655 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19656 #define $ac_func innocuous_$ac_func
19658 /* System header to define __stub macros and hopefully few prototypes,
19659 which can conflict with char $ac_func (); below.
19660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19661 <limits.h> exists even on freestanding compilers. */
19664 # include <limits.h>
19666 # include <assert.h>
19671 /* Override any GCC internal prototype to avoid an error.
19672 Use char because int might match the return type of a GCC
19673 builtin and then its argument prototype would still apply. */
19678 /* The GNU C library defines this for functions which it implements
19679 to always fail with ENOSYS. Some functions are actually named
19680 something starting with __ and the normal name is an alias. */
19681 #if defined __stub_$ac_func || defined __stub___$ac_func
19688 return $ac_func ();
19693 rm -f conftest.$ac_objext conftest$ac_exeext
19694 if { (ac_try="$ac_link"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_link") 2>conftest.er1
19702 grep -v '^ *+' conftest.er1 >conftest.err
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19706 (exit $ac_status); } && {
19707 test -z "$ac_c_werror_flag" ||
19708 test ! -s conftest.err
19709 } && test -s conftest$ac_exeext &&
19710 $as_test_x conftest$ac_exeext; then
19711 eval "$as_ac_var=yes"
19713 echo "$as_me: failed program was
:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 eval "$as_ac_var=no
"
19719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19720 conftest$ac_exeext conftest.$ac_ext
19722 ac_res=`eval echo '${'$as_ac_var'}'`
19723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19724 echo "${ECHO_T}$ac_res" >&6; }
19725 if test `eval echo '${'$as_ac_var'}'` = yes; then
19726 cat >>confdefs.h <<_ACEOF
19727 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19731 # strftime is in -lintl on SCO UNIX.
19732 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19733 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19734 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19735 echo $ECHO_N "(cached
) $ECHO_C" >&6
19737 ac_check_lib_save_LIBS=$LIBS
19738 LIBS="-lintl $LIBS"
19739 cat >conftest.$ac_ext <<_ACEOF
19742 cat confdefs.h >>conftest.$ac_ext
19743 cat >>conftest.$ac_ext <<_ACEOF
19744 /* end confdefs.h. */
19746 /* Override any GCC internal prototype to avoid an error.
19747 Use char because int might match the return type of a GCC
19748 builtin and then its argument prototype would still apply. */
19756 return strftime ();
19761 rm -f conftest.$ac_objext conftest$ac_exeext
19762 if { (ac_try="$ac_link"
19763 case "(($ac_try" in
19764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19765 *) ac_try_echo=$ac_try;;
19767 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19768 (eval "$ac_link") 2>conftest.er1
19770 grep -v '^ *+' conftest.er1 >conftest.err
19772 cat conftest.err >&5
19773 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19774 (exit $ac_status); } && {
19775 test -z "$ac_c_werror_flag" ||
19776 test ! -s conftest.err
19777 } && test -s conftest$ac_exeext &&
19778 $as_test_x conftest$ac_exeext; then
19779 ac_cv_lib_intl_strftime=yes
19781 echo "$as_me: failed program was
:" >&5
19782 sed 's/^/| /' conftest.$ac_ext >&5
19784 ac_cv_lib_intl_strftime=no
19787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19788 conftest$ac_exeext conftest.$ac_ext
19789 LIBS=$ac_check_lib_save_LIBS
19791 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19792 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19793 if test $ac_cv_lib_intl_strftime = yes; then
19794 cat >>confdefs.h <<\_ACEOF
19795 #define HAVE_STRFTIME 1
19798 LIBS="-lintl $LIBS"
19807 for ac_func in grantpt
19809 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19810 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19811 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19812 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19813 echo $ECHO_N "(cached
) $ECHO_C" >&6
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19823 #define $ac_func innocuous_$ac_func
19825 /* System header to define __stub macros and hopefully few prototypes,
19826 which can conflict with char $ac_func (); below.
19827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828 <limits.h> exists even on freestanding compilers. */
19831 # include <limits.h>
19833 # include <assert.h>
19838 /* Override any GCC internal prototype to avoid an error.
19839 Use char because int might match the return type of a GCC
19840 builtin and then its argument prototype would still apply. */
19845 /* The GNU C library defines this for functions which it implements
19846 to always fail with ENOSYS. Some functions are actually named
19847 something starting with __ and the normal name is an alias. */
19848 #if defined __stub_$ac_func || defined __stub___$ac_func
19855 return $ac_func ();
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864 *) ac_try_echo=$ac_try;;
19866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19867 (eval "$ac_link") 2>conftest.er1
19869 grep -v '^ *+' conftest.er1 >conftest.err
19871 cat conftest.err >&5
19872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19873 (exit $ac_status); } && {
19874 test -z "$ac_c_werror_flag" ||
19875 test ! -s conftest.err
19876 } && test -s conftest$ac_exeext &&
19877 $as_test_x conftest$ac_exeext; then
19878 eval "$as_ac_var=yes"
19880 echo "$as_me: failed program was
:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 eval "$as_ac_var=no
"
19886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19887 conftest$ac_exeext conftest.$ac_ext
19889 ac_res=`eval echo '${'$as_ac_var'}'`
19890 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19891 echo "${ECHO_T}$ac_res" >&6; }
19892 if test `eval echo '${'$as_ac_var'}'` = yes; then
19893 cat >>confdefs.h <<_ACEOF
19894 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19901 # PTY-related GNU extensions.
19903 for ac_func in getpt
19905 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19906 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19907 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19908 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19909 echo $ECHO_N "(cached
) $ECHO_C" >&6
19911 cat >conftest.$ac_ext <<_ACEOF
19914 cat confdefs.h >>conftest.$ac_ext
19915 cat >>conftest.$ac_ext <<_ACEOF
19916 /* end confdefs.h. */
19917 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19919 #define $ac_func innocuous_$ac_func
19921 /* System header to define __stub macros and hopefully few prototypes,
19922 which can conflict with char $ac_func (); below.
19923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19924 <limits.h> exists even on freestanding compilers. */
19927 # include <limits.h>
19929 # include <assert.h>
19934 /* Override any GCC internal prototype to avoid an error.
19935 Use char because int might match the return type of a GCC
19936 builtin and then its argument prototype would still apply. */
19941 /* The GNU C library defines this for functions which it implements
19942 to always fail with ENOSYS. Some functions are actually named
19943 something starting with __ and the normal name is an alias. */
19944 #if defined __stub_$ac_func || defined __stub___$ac_func
19951 return $ac_func ();
19956 rm -f conftest.$ac_objext conftest$ac_exeext
19957 if { (ac_try="$ac_link"
19958 case "(($ac_try" in
19959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19960 *) ac_try_echo=$ac_try;;
19962 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19963 (eval "$ac_link") 2>conftest.er1
19965 grep -v '^ *+' conftest.er1 >conftest.err
19967 cat conftest.err >&5
19968 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19969 (exit $ac_status); } && {
19970 test -z "$ac_c_werror_flag" ||
19971 test ! -s conftest.err
19972 } && test -s conftest$ac_exeext &&
19973 $as_test_x conftest$ac_exeext; then
19974 eval "$as_ac_var=yes"
19976 echo "$as_me: failed program was
:" >&5
19977 sed 's/^/| /' conftest.$ac_ext >&5
19979 eval "$as_ac_var=no
"
19982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19983 conftest$ac_exeext conftest.$ac_ext
19985 ac_res=`eval echo '${'$as_ac_var'}'`
19986 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19987 echo "${ECHO_T}$ac_res" >&6; }
19988 if test `eval echo '${'$as_ac_var'}'` = yes; then
19989 cat >>confdefs.h <<_ACEOF
19990 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19997 # Check this now, so that we will NOT find the above functions in ncurses.
19998 # That is because we have not set up to link ncurses in lib-src.
19999 # It's better to believe a function is not available
20000 # than to expect to find it in ncurses.
20002 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20003 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20004 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20005 echo $ECHO_N "(cached
) $ECHO_C" >&6
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lncurses $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_ncurses_tparm=yes
20051 echo "$as_me: failed program was
:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_lib_ncurses_tparm=no
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20061 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20062 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20063 if test $ac_cv_lib_ncurses_tparm = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_LIBNCURSES 1
20068 LIBS="-lncurses $LIBS"
20073 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20076 cat >conftest.$ac_ext <<_ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h. */
20082 #include <netinet/in.h>
20083 #include <arpa/nameser.h>
20084 #include <resolv.h>
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20113 echo "$as_me: failed program was
:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20121 if test "$have_res_init" = no; then
20123 LIBS="$LIBS -lresolv"
20124 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20125 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20126 cat >conftest.$ac_ext <<_ACEOF
20129 cat confdefs.h >>conftest.$ac_ext
20130 cat >>conftest.$ac_ext <<_ACEOF
20131 /* end confdefs.h. */
20132 #include <netinet/in.h>
20133 #include <arpa/nameser.h>
20134 #include <resolv.h>
20143 rm -f conftest.$ac_objext conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>conftest.er1
20152 grep -v '^ *+' conftest.er1 >conftest.err
20154 cat conftest.err >&5
20155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20156 (exit $ac_status); } && {
20157 test -z "$ac_c_werror_flag" ||
20158 test ! -s conftest.err
20159 } && test -s conftest$ac_exeext &&
20160 $as_test_x conftest$ac_exeext; then
20163 echo "$as_me: failed program was
:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20170 conftest$ac_exeext conftest.$ac_ext
20171 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20172 echo "${ECHO_T}$have_res_init" >&6; }
20173 if test "$have_res_init" = yes ; then
20179 if test "$have_res_init" = yes; then
20181 cat >>confdefs.h <<\_ACEOF
20182 #define HAVE_RES_INIT 1
20187 # Do we need the Hesiod library to provide the support routines?
20188 if test "$with_hesiod" = yes ; then
20189 # Don't set $LIBS here -- see comments above.
20190 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20191 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20192 if test "${ac_cv_func_res_send+set}" = set; then
20193 echo $ECHO_N "(cached
) $ECHO_C" >&6
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20202 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20203 #define res_send innocuous_res_send
20205 /* System header to define __stub macros and hopefully few prototypes,
20206 which can conflict with char res_send (); below.
20207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20208 <limits.h> exists even on freestanding compilers. */
20211 # include <limits.h>
20213 # include <assert.h>
20218 /* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20225 /* The GNU C library defines this for functions which it implements
20226 to always fail with ENOSYS. Some functions are actually named
20227 something starting with __ and the normal name is an alias. */
20228 #if defined __stub_res_send || defined __stub___res_send
20235 return res_send ();
20240 rm -f conftest.$ac_objext conftest$ac_exeext
20241 if { (ac_try="$ac_link"
20242 case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_link") 2>conftest.er1
20249 grep -v '^ *+' conftest.er1 >conftest.err
20251 cat conftest.err >&5
20252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20253 (exit $ac_status); } && {
20254 test -z "$ac_c_werror_flag" ||
20255 test ! -s conftest.err
20256 } && test -s conftest$ac_exeext &&
20257 $as_test_x conftest$ac_exeext; then
20258 ac_cv_func_res_send=yes
20260 echo "$as_me: failed program was
:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20263 ac_cv_func_res_send=no
20266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20267 conftest$ac_exeext conftest.$ac_ext
20269 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20270 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20271 if test $ac_cv_func_res_send = yes; then
20274 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20275 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20276 if test "${ac_cv_func___res_send+set}" = set; then
20277 echo $ECHO_N "(cached
) $ECHO_C" >&6
20279 cat >conftest.$ac_ext <<_ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h. */
20285 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20287 #define __res_send innocuous___res_send
20289 /* System header to define __stub macros and hopefully few prototypes,
20290 which can conflict with char __res_send (); below.
20291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20292 <limits.h> exists even on freestanding compilers. */
20295 # include <limits.h>
20297 # include <assert.h>
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20308 char __res_send ();
20309 /* The GNU C library defines this for functions which it implements
20310 to always fail with ENOSYS. Some functions are actually named
20311 something starting with __ and the normal name is an alias. */
20312 #if defined __stub___res_send || defined __stub_____res_send
20319 return __res_send ();
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20330 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20333 grep -v '^ *+' conftest.er1 >conftest.err
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_func___res_send=yes
20344 echo "$as_me: failed program was
:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20347 ac_cv_func___res_send=no
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20353 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20354 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20355 if test $ac_cv_func___res_send = yes; then
20358 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20359 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20360 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20361 echo $ECHO_N "(cached
) $ECHO_C" >&6
20363 ac_check_lib_save_LIBS=$LIBS
20364 LIBS="-lresolv $LIBS"
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20382 return res_send ();
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_resolv_res_send=yes
20407 echo "$as_me: failed program was
:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_lib_resolv_res_send=no
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20417 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20418 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20419 if test $ac_cv_lib_resolv_res_send = yes; then
20422 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20423 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20424 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20425 echo $ECHO_N "(cached
) $ECHO_C" >&6
20427 ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-lresolv $LIBS"
20429 cat >conftest.$ac_ext <<_ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h. */
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20442 char __res_send ();
20446 return __res_send ();
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455 *) ac_try_echo=$ac_try;;
20457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20458 (eval "$ac_link") 2>conftest.er1
20460 grep -v '^ *+' conftest.er1 >conftest.err
20462 cat conftest.err >&5
20463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20464 (exit $ac_status); } && {
20465 test -z "$ac_c_werror_flag" ||
20466 test ! -s conftest.err
20467 } && test -s conftest$ac_exeext &&
20468 $as_test_x conftest$ac_exeext; then
20469 ac_cv_lib_resolv___res_send=yes
20471 echo "$as_me: failed program was
:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20474 ac_cv_lib_resolv___res_send=no
20477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20478 conftest$ac_exeext conftest.$ac_ext
20479 LIBS=$ac_check_lib_save_LIBS
20481 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20482 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20483 if test $ac_cv_lib_resolv___res_send = yes; then
20493 if test "$resolv" = yes ; then
20498 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20499 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20500 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20501 echo $ECHO_N "(cached
) $ECHO_C" >&6
20503 cat >conftest.$ac_ext <<_ACEOF
20506 cat confdefs.h >>conftest.$ac_ext
20507 cat >>conftest.$ac_ext <<_ACEOF
20508 /* end confdefs.h. */
20509 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20511 #define hes_getmailhost innocuous_hes_getmailhost
20513 /* System header to define __stub macros and hopefully few prototypes,
20514 which can conflict with char hes_getmailhost (); below.
20515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20516 <limits.h> exists even on freestanding compilers. */
20519 # include <limits.h>
20521 # include <assert.h>
20524 #undef hes_getmailhost
20526 /* Override any GCC internal prototype to avoid an error.
20527 Use char because int might match the return type of a GCC
20528 builtin and then its argument prototype would still apply. */
20532 char hes_getmailhost ();
20533 /* The GNU C library defines this for functions which it implements
20534 to always fail with ENOSYS. Some functions are actually named
20535 something starting with __ and the normal name is an alias. */
20536 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20543 return hes_getmailhost ();
20548 rm -f conftest.$ac_objext conftest$ac_exeext
20549 if { (ac_try="$ac_link"
20550 case "(($ac_try" in
20551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20552 *) ac_try_echo=$ac_try;;
20554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20555 (eval "$ac_link") 2>conftest.er1
20557 grep -v '^ *+' conftest.er1 >conftest.err
20559 cat conftest.err >&5
20560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20561 (exit $ac_status); } && {
20562 test -z "$ac_c_werror_flag" ||
20563 test ! -s conftest.err
20564 } && test -s conftest$ac_exeext &&
20565 $as_test_x conftest$ac_exeext; then
20566 ac_cv_func_hes_getmailhost=yes
20568 echo "$as_me: failed program was
:" >&5
20569 sed 's/^/| /' conftest.$ac_ext >&5
20571 ac_cv_func_hes_getmailhost=no
20574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20575 conftest$ac_exeext conftest.$ac_ext
20577 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20578 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20579 if test $ac_cv_func_hes_getmailhost = yes; then
20582 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20583 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20584 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20585 echo $ECHO_N "(cached
) $ECHO_C" >&6
20587 ac_check_lib_save_LIBS=$LIBS
20588 LIBS="-lhesiod $RESOLVLIB $LIBS"
20589 cat >conftest.$ac_ext <<_ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h. */
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20602 char hes_getmailhost ();
20606 return hes_getmailhost ();
20611 rm -f conftest.$ac_objext conftest$ac_exeext
20612 if { (ac_try="$ac_link"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_link") 2>conftest.er1
20620 grep -v '^ *+' conftest.er1 >conftest.err
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20624 (exit $ac_status); } && {
20625 test -z "$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20627 } && test -s conftest$ac_exeext &&
20628 $as_test_x conftest$ac_exeext; then
20629 ac_cv_lib_hesiod_hes_getmailhost=yes
20631 echo "$as_me: failed program was
:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20634 ac_cv_lib_hesiod_hes_getmailhost=no
20637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20641 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20642 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20643 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20645 cat >>confdefs.h <<\_ACEOF
20646 #define HAVE_LIBHESIOD 1
20657 # Do we need libresolv (due to res_init or Hesiod)?
20658 if test "$resolv" = yes ; then
20660 cat >>confdefs.h <<\_ACEOF
20661 #define HAVE_LIBRESOLV 1
20666 # These tell us which Kerberos-related libraries to use.
20667 if test "${with_kerberos+set}" = set; then
20669 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20670 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20671 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20672 echo $ECHO_N "(cached
) $ECHO_C" >&6
20674 ac_check_lib_save_LIBS=$LIBS
20675 LIBS="-lcom_err $LIBS"
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20683 /* Override any GCC internal prototype to avoid an error.
20684 Use char because int might match the return type of a GCC
20685 builtin and then its argument prototype would still apply. */
20698 rm -f conftest.$ac_objext conftest$ac_exeext
20699 if { (ac_try="$ac_link"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_link") 2>conftest.er1
20707 grep -v '^ *+' conftest.er1 >conftest.err
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest$ac_exeext &&
20715 $as_test_x conftest$ac_exeext; then
20716 ac_cv_lib_com_err_com_err=yes
20718 echo "$as_me: failed program was
:" >&5
20719 sed 's/^/| /' conftest.$ac_ext >&5
20721 ac_cv_lib_com_err_com_err=no
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 LIBS=$ac_check_lib_save_LIBS
20728 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20729 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20730 if test $ac_cv_lib_com_err_com_err = yes; then
20731 cat >>confdefs.h <<_ACEOF
20732 #define HAVE_LIBCOM_ERR 1
20735 LIBS="-lcom_err $LIBS"
20740 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20741 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20742 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20743 echo $ECHO_N "(cached
) $ECHO_C" >&6
20745 ac_check_lib_save_LIBS=$LIBS
20746 LIBS="-lk5crypto $LIBS"
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20760 char mit_des_cbc_encrypt ();
20764 return mit_des_cbc_encrypt ();
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_link") 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest$ac_exeext &&
20786 $as_test_x conftest$ac_exeext; then
20787 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20789 echo "$as_me: failed program was
:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20792 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796 conftest$ac_exeext conftest.$ac_ext
20797 LIBS=$ac_check_lib_save_LIBS
20799 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20800 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20801 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_LIBK5CRYPTO 1
20806 LIBS="-lk5crypto $LIBS"
20811 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20812 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20813 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20814 echo $ECHO_N "(cached
) $ECHO_C" >&6
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lcrypto $LIBS"
20818 cat >conftest.$ac_ext <<_ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20831 char mit_des_cbc_encrypt ();
20835 return mit_des_cbc_encrypt ();
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844 *) ac_try_echo=$ac_try;;
20846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20847 (eval "$ac_link") 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20853 (exit $ac_status); } && {
20854 test -z "$ac_c_werror_flag" ||
20855 test ! -s conftest.err
20856 } && test -s conftest$ac_exeext &&
20857 $as_test_x conftest$ac_exeext; then
20858 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20860 echo "$as_me: failed program was
:" >&5
20861 sed 's/^/| /' conftest.$ac_ext >&5
20863 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20867 conftest$ac_exeext conftest.$ac_ext
20868 LIBS=$ac_check_lib_save_LIBS
20870 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20871 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20872 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20873 cat >>confdefs.h <<_ACEOF
20874 #define HAVE_LIBCRYPTO 1
20877 LIBS="-lcrypto $LIBS"
20882 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20883 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20884 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20885 echo $ECHO_N "(cached
) $ECHO_C" >&6
20887 ac_check_lib_save_LIBS=$LIBS
20888 LIBS="-lkrb5 $LIBS"
20889 cat >conftest.$ac_ext <<_ACEOF
20892 cat confdefs.h >>conftest.$ac_ext
20893 cat >>conftest.$ac_ext <<_ACEOF
20894 /* end confdefs.h. */
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20902 char krb5_init_context ();
20906 return krb5_init_context ();
20911 rm -f conftest.$ac_objext conftest$ac_exeext
20912 if { (ac_try="$ac_link"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_link") 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest$ac_exeext &&
20928 $as_test_x conftest$ac_exeext; then
20929 ac_cv_lib_krb5_krb5_init_context=yes
20931 echo "$as_me: failed program was
:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20934 ac_cv_lib_krb5_krb5_init_context=no
20937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20938 conftest$ac_exeext conftest.$ac_ext
20939 LIBS=$ac_check_lib_save_LIBS
20941 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20942 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20943 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20944 cat >>confdefs.h <<_ACEOF
20945 #define HAVE_LIBKRB5 1
20948 LIBS="-lkrb5 $LIBS"
20952 if test "${with_kerberos5+set}" != set; then
20954 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20955 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20956 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20957 echo $ECHO_N "(cached
) $ECHO_C" >&6
20959 ac_check_lib_save_LIBS=$LIBS
20960 LIBS="-ldes425 $LIBS"
20961 cat >conftest.$ac_ext <<_ACEOF
20964 cat confdefs.h >>conftest.$ac_ext
20965 cat >>conftest.$ac_ext <<_ACEOF
20966 /* end confdefs.h. */
20968 /* Override any GCC internal prototype to avoid an error.
20969 Use char because int might match the return type of a GCC
20970 builtin and then its argument prototype would still apply. */
20974 char des_cbc_encrypt ();
20978 return des_cbc_encrypt ();
20983 rm -f conftest.$ac_objext conftest$ac_exeext
20984 if { (ac_try="$ac_link"
20985 case "(($ac_try" in
20986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20987 *) ac_try_echo=$ac_try;;
20989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20990 (eval "$ac_link") 2>conftest.er1
20992 grep -v '^ *+' conftest.er1 >conftest.err
20994 cat conftest.err >&5
20995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20996 (exit $ac_status); } && {
20997 test -z "$ac_c_werror_flag" ||
20998 test ! -s conftest.err
20999 } && test -s conftest$ac_exeext &&
21000 $as_test_x conftest$ac_exeext; then
21001 ac_cv_lib_des425_des_cbc_encrypt=yes
21003 echo "$as_me: failed program was
:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21006 ac_cv_lib_des425_des_cbc_encrypt=no
21009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21010 conftest$ac_exeext conftest.$ac_ext
21011 LIBS=$ac_check_lib_save_LIBS
21013 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21014 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21015 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21016 cat >>confdefs.h <<_ACEOF
21017 #define HAVE_LIBDES425 1
21020 LIBS="-ldes425 $LIBS"
21024 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21025 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21026 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21027 echo $ECHO_N "(cached
) $ECHO_C" >&6
21029 ac_check_lib_save_LIBS=$LIBS
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21038 /* Override any GCC internal prototype to avoid an error.
21039 Use char because int might match the return type of a GCC
21040 builtin and then its argument prototype would still apply. */
21044 char des_cbc_encrypt ();
21048 return des_cbc_encrypt ();
21053 rm -f conftest.$ac_objext conftest$ac_exeext
21054 if { (ac_try="$ac_link"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_link") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } && {
21067 test -z "$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21069 } && test -s conftest$ac_exeext &&
21070 $as_test_x conftest$ac_exeext; then
21071 ac_cv_lib_des_des_cbc_encrypt=yes
21073 echo "$as_me: failed program was
:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_cv_lib_des_des_cbc_encrypt=no
21079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21080 conftest$ac_exeext conftest.$ac_ext
21081 LIBS=$ac_check_lib_save_LIBS
21083 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21084 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21085 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21086 cat >>confdefs.h <<_ACEOF
21087 #define HAVE_LIBDES 1
21097 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21098 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21099 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21100 echo $ECHO_N "(cached
) $ECHO_C" >&6
21102 ac_check_lib_save_LIBS=$LIBS
21103 LIBS="-lkrb4 $LIBS"
21104 cat >conftest.$ac_ext <<_ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21111 /* Override any GCC internal prototype to avoid an error.
21112 Use char because int might match the return type of a GCC
21113 builtin and then its argument prototype would still apply. */
21117 char krb_get_cred ();
21121 return krb_get_cred ();
21126 rm -f conftest.$ac_objext conftest$ac_exeext
21127 if { (ac_try="$ac_link"
21128 case "(($ac_try" in
21129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21130 *) ac_try_echo=$ac_try;;
21132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21133 (eval "$ac_link") 2>conftest.er1
21135 grep -v '^ *+' conftest.er1 >conftest.err
21137 cat conftest.err >&5
21138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21139 (exit $ac_status); } && {
21140 test -z "$ac_c_werror_flag" ||
21141 test ! -s conftest.err
21142 } && test -s conftest$ac_exeext &&
21143 $as_test_x conftest$ac_exeext; then
21144 ac_cv_lib_krb4_krb_get_cred=yes
21146 echo "$as_me: failed program was
:" >&5
21147 sed 's/^/| /' conftest.$ac_ext >&5
21149 ac_cv_lib_krb4_krb_get_cred=no
21152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21153 conftest$ac_exeext conftest.$ac_ext
21154 LIBS=$ac_check_lib_save_LIBS
21156 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21157 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21158 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_LIBKRB4 1
21163 LIBS="-lkrb4 $LIBS"
21167 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21168 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21169 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21170 echo $ECHO_N "(cached
) $ECHO_C" >&6
21172 ac_check_lib_save_LIBS=$LIBS
21174 cat >conftest.$ac_ext <<_ACEOF
21177 cat confdefs.h >>conftest.$ac_ext
21178 cat >>conftest.$ac_ext <<_ACEOF
21179 /* end confdefs.h. */
21181 /* Override any GCC internal prototype to avoid an error.
21182 Use char because int might match the return type of a GCC
21183 builtin and then its argument prototype would still apply. */
21187 char krb_get_cred ();
21191 return krb_get_cred ();
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest$ac_exeext &&
21213 $as_test_x conftest$ac_exeext; then
21214 ac_cv_lib_krb_krb_get_cred=yes
21216 echo "$as_me: failed program was
:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_cv_lib_krb_krb_get_cred=no
21222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 conftest$ac_exeext conftest.$ac_ext
21224 LIBS=$ac_check_lib_save_LIBS
21226 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21227 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21228 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21229 cat >>confdefs.h <<_ACEOF
21230 #define HAVE_LIBKRB 1
21241 if test "${with_kerberos5+set}" = set; then
21243 for ac_header in krb5.h
21245 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21246 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21247 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21248 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21250 echo $ECHO_N "(cached
) $ECHO_C" >&6
21252 ac_res=`eval echo '${'$as_ac_Header'}'`
21253 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21256 # Is the header compilable?
21257 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21258 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <$ac_header>
21268 rm -f conftest.$ac_objext
21269 if { (ac_try="$ac_compile"
21270 case "(($ac_try" in
21271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21272 *) ac_try_echo=$ac_try;;
21274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21275 (eval "$ac_compile") 2>conftest.er1
21277 grep -v '^ *+' conftest.er1 >conftest.err
21279 cat conftest.err >&5
21280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21281 (exit $ac_status); } && {
21282 test -z "$ac_c_werror_flag" ||
21283 test ! -s conftest.err
21284 } && test -s conftest.$ac_objext; then
21285 ac_header_compiler=yes
21287 echo "$as_me: failed program was
:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21290 ac_header_compiler=no
21293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21294 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21295 echo "${ECHO_T}$ac_header_compiler" >&6; }
21297 # Is the header present?
21298 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21299 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 #include <$ac_header>
21308 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21309 case "(($ac_try" in
21310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311 *) ac_try_echo=$ac_try;;
21313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21314 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21316 grep -v '^ *+' conftest.er1 >conftest.err
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21320 (exit $ac_status); } >/dev/null && {
21321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21322 test ! -s conftest.err
21324 ac_header_preproc=yes
21326 echo "$as_me: failed program was
:" >&5
21327 sed 's/^/| /' conftest.$ac_ext >&5
21329 ac_header_preproc=no
21332 rm -f conftest.err conftest.$ac_ext
21333 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21334 echo "${ECHO_T}$ac_header_preproc" >&6; }
21336 # So? What about this header?
21337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21339 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21340 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21343 ac_header_preproc=yes
21346 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21347 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21348 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21349 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21350 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21351 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21352 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21353 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21354 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21356 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21357 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21361 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21362 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21364 echo $ECHO_N "(cached
) $ECHO_C" >&6
21366 eval "$as_ac_Header=\
$ac_header_preproc"
21368 ac_res=`eval echo '${'$as_ac_Header'}'`
21369 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21374 cat >>confdefs.h <<_ACEOF
21375 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21384 for ac_header in des.h
21386 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21388 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21389 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21390 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21391 echo $ECHO_N "(cached
) $ECHO_C" >&6
21393 ac_res=`eval echo '${'$as_ac_Header'}'`
21394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21395 echo "${ECHO_T}$ac_res" >&6; }
21397 # Is the header compilable?
21398 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21399 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21400 cat >conftest.$ac_ext <<_ACEOF
21403 cat confdefs.h >>conftest.$ac_ext
21404 cat >>conftest.$ac_ext <<_ACEOF
21405 /* end confdefs.h. */
21406 $ac_includes_default
21407 #include <$ac_header>
21409 rm -f conftest.$ac_objext
21410 if { (ac_try="$ac_compile"
21411 case "(($ac_try" in
21412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413 *) ac_try_echo=$ac_try;;
21415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21416 (eval "$ac_compile") 2>conftest.er1
21418 grep -v '^ *+' conftest.er1 >conftest.err
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21422 (exit $ac_status); } && {
21423 test -z "$ac_c_werror_flag" ||
21424 test ! -s conftest.err
21425 } && test -s conftest.$ac_objext; then
21426 ac_header_compiler=yes
21428 echo "$as_me: failed program was
:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 ac_header_compiler=no
21434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21435 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21436 echo "${ECHO_T}$ac_header_compiler" >&6; }
21438 # Is the header present?
21439 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21440 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21441 cat >conftest.$ac_ext <<_ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 #include <$ac_header>
21449 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21450 case "(($ac_try" in
21451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21452 *) ac_try_echo=$ac_try;;
21454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21455 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21457 grep -v '^ *+' conftest.er1 >conftest.err
21459 cat conftest.err >&5
21460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21461 (exit $ac_status); } >/dev/null && {
21462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21463 test ! -s conftest.err
21465 ac_header_preproc=yes
21467 echo "$as_me: failed program was
:" >&5
21468 sed 's/^/| /' conftest.$ac_ext >&5
21470 ac_header_preproc=no
21473 rm -f conftest.err conftest.$ac_ext
21474 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21475 echo "${ECHO_T}$ac_header_preproc" >&6; }
21477 # So? What about this header?
21478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21480 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21481 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21482 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21484 ac_header_preproc=yes
21487 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21488 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21489 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21490 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21492 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21494 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21495 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21497 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21498 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21502 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21503 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21504 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21505 echo $ECHO_N "(cached
) $ECHO_C" >&6
21507 eval "$as_ac_Header=\
$ac_header_preproc"
21509 ac_res=`eval echo '${'$as_ac_Header'}'`
21510 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21511 echo "${ECHO_T}$ac_res" >&6; }
21514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21515 cat >>confdefs.h <<_ACEOF
21516 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21521 for ac_header in kerberosIV/des.h
21523 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21525 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21526 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21528 echo $ECHO_N "(cached
) $ECHO_C" >&6
21530 ac_res=`eval echo '${'$as_ac_Header'}'`
21531 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21532 echo "${ECHO_T}$ac_res" >&6; }
21534 # Is the header compilable?
21535 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21536 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21537 cat >conftest.$ac_ext <<_ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 $ac_includes_default
21544 #include <$ac_header>
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550 *) ac_try_echo=$ac_try;;
21552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21553 (eval "$ac_compile") 2>conftest.er1
21555 grep -v '^ *+' conftest.er1 >conftest.err
21557 cat conftest.err >&5
21558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21559 (exit $ac_status); } && {
21560 test -z "$ac_c_werror_flag" ||
21561 test ! -s conftest.err
21562 } && test -s conftest.$ac_objext; then
21563 ac_header_compiler=yes
21565 echo "$as_me: failed program was
:" >&5
21566 sed 's/^/| /' conftest.$ac_ext >&5
21568 ac_header_compiler=no
21571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21572 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21573 echo "${ECHO_T}$ac_header_compiler" >&6; }
21575 # Is the header present?
21576 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21577 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <$ac_header>
21586 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21587 case "(($ac_try" in
21588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21589 *) ac_try_echo=$ac_try;;
21591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21592 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21594 grep -v '^ *+' conftest.er1 >conftest.err
21596 cat conftest.err >&5
21597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21598 (exit $ac_status); } >/dev/null && {
21599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21600 test ! -s conftest.err
21602 ac_header_preproc=yes
21604 echo "$as_me: failed program was
:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 ac_header_preproc=no
21610 rm -f conftest.err conftest.$ac_ext
21611 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21612 echo "${ECHO_T}$ac_header_preproc" >&6; }
21614 # So? What about this header?
21615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21617 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21618 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21619 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21621 ac_header_preproc=yes
21624 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21625 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21626 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21627 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21628 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21629 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21631 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21632 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21634 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21635 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21639 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21640 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21641 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21642 echo $ECHO_N "(cached
) $ECHO_C" >&6
21644 eval "$as_ac_Header=\
$ac_header_preproc"
21646 ac_res=`eval echo '${'$as_ac_Header'}'`
21647 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21648 echo "${ECHO_T}$ac_res" >&6; }
21651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21652 cat >>confdefs.h <<_ACEOF
21653 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21658 for ac_header in kerberos/des.h
21660 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21662 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21663 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21664 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21665 echo $ECHO_N "(cached
) $ECHO_C" >&6
21667 ac_res=`eval echo '${'$as_ac_Header'}'`
21668 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21669 echo "${ECHO_T}$ac_res" >&6; }
21671 # Is the header compilable?
21672 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21673 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21674 cat >conftest.$ac_ext <<_ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h. */
21680 $ac_includes_default
21681 #include <$ac_header>
21683 rm -f conftest.$ac_objext
21684 if { (ac_try="$ac_compile"
21685 case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21690 (eval "$ac_compile") 2>conftest.er1
21692 grep -v '^ *+' conftest.er1 >conftest.err
21694 cat conftest.err >&5
21695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21696 (exit $ac_status); } && {
21697 test -z "$ac_c_werror_flag" ||
21698 test ! -s conftest.err
21699 } && test -s conftest.$ac_objext; then
21700 ac_header_compiler=yes
21702 echo "$as_me: failed program was
:" >&5
21703 sed 's/^/| /' conftest.$ac_ext >&5
21705 ac_header_compiler=no
21708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21709 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21710 echo "${ECHO_T}$ac_header_compiler" >&6; }
21712 # Is the header present?
21713 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21714 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 #include <$ac_header>
21723 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21731 grep -v '^ *+' conftest.er1 >conftest.err
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21735 (exit $ac_status); } >/dev/null && {
21736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21739 ac_header_preproc=yes
21741 echo "$as_me: failed program was
:" >&5
21742 sed 's/^/| /' conftest.$ac_ext >&5
21744 ac_header_preproc=no
21747 rm -f conftest.err conftest.$ac_ext
21748 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21749 echo "${ECHO_T}$ac_header_preproc" >&6; }
21751 # So? What about this header?
21752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21754 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21755 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21756 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21758 ac_header_preproc=yes
21761 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21762 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21764 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21765 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21766 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21768 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21769 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21771 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21772 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21779 echo $ECHO_N "(cached
) $ECHO_C" >&6
21781 eval "$as_ac_Header=\
$ac_header_preproc"
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21789 cat >>confdefs.h <<_ACEOF
21790 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21806 for ac_header in krb.h
21808 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21809 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21810 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21811 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21812 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21813 echo $ECHO_N "(cached
) $ECHO_C" >&6
21815 ac_res=`eval echo '${'$as_ac_Header'}'`
21816 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21817 echo "${ECHO_T}$ac_res" >&6; }
21819 # Is the header compilable?
21820 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21821 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21822 cat >conftest.$ac_ext <<_ACEOF
21825 cat confdefs.h >>conftest.$ac_ext
21826 cat >>conftest.$ac_ext <<_ACEOF
21827 /* end confdefs.h. */
21828 $ac_includes_default
21829 #include <$ac_header>
21831 rm -f conftest.$ac_objext
21832 if { (ac_try="$ac_compile"
21833 case "(($ac_try" in
21834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21835 *) ac_try_echo=$ac_try;;
21837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21838 (eval "$ac_compile") 2>conftest.er1
21840 grep -v '^ *+' conftest.er1 >conftest.err
21842 cat conftest.err >&5
21843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21844 (exit $ac_status); } && {
21845 test -z "$ac_c_werror_flag" ||
21846 test ! -s conftest.err
21847 } && test -s conftest.$ac_objext; then
21848 ac_header_compiler=yes
21850 echo "$as_me: failed program was
:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21853 ac_header_compiler=no
21856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21857 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21858 echo "${ECHO_T}$ac_header_compiler" >&6; }
21860 # Is the header present?
21861 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21862 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 #include <$ac_header>
21871 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21872 case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21879 grep -v '^ *+' conftest.er1 >conftest.err
21881 cat conftest.err >&5
21882 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21883 (exit $ac_status); } >/dev/null && {
21884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21885 test ! -s conftest.err
21887 ac_header_preproc=yes
21889 echo "$as_me: failed program was
:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 ac_header_preproc=no
21895 rm -f conftest.err conftest.$ac_ext
21896 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21897 echo "${ECHO_T}$ac_header_preproc" >&6; }
21899 # So? What about this header?
21900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21902 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21903 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21904 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21906 ac_header_preproc=yes
21909 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21910 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21912 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21914 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21916 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21919 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21920 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21924 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21925 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21926 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21927 echo $ECHO_N "(cached
) $ECHO_C" >&6
21929 eval "$as_ac_Header=\
$ac_header_preproc"
21931 ac_res=`eval echo '${'$as_ac_Header'}'`
21932 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21933 echo "${ECHO_T}$ac_res" >&6; }
21936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21943 for ac_header in kerberosIV/krb.h
21945 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21947 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21948 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21949 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21950 echo $ECHO_N "(cached
) $ECHO_C" >&6
21952 ac_res=`eval echo '${'$as_ac_Header'}'`
21953 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21954 echo "${ECHO_T}$ac_res" >&6; }
21956 # Is the header compilable?
21957 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21958 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21959 cat >conftest.$ac_ext <<_ACEOF
21962 cat confdefs.h >>conftest.$ac_ext
21963 cat >>conftest.$ac_ext <<_ACEOF
21964 /* end confdefs.h. */
21965 $ac_includes_default
21966 #include <$ac_header>
21968 rm -f conftest.$ac_objext
21969 if { (ac_try="$ac_compile"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_compile") 2>conftest.er1
21977 grep -v '^ *+' conftest.er1 >conftest.err
21979 cat conftest.err >&5
21980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21981 (exit $ac_status); } && {
21982 test -z "$ac_c_werror_flag" ||
21983 test ! -s conftest.err
21984 } && test -s conftest.$ac_objext; then
21985 ac_header_compiler=yes
21987 echo "$as_me: failed program was
:" >&5
21988 sed 's/^/| /' conftest.$ac_ext >&5
21990 ac_header_compiler=no
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21995 echo "${ECHO_T}$ac_header_compiler" >&6; }
21997 # Is the header present?
21998 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21999 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22000 cat >conftest.$ac_ext <<_ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006 #include <$ac_header>
22008 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22009 case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22016 grep -v '^ *+' conftest.er1 >conftest.err
22018 cat conftest.err >&5
22019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22020 (exit $ac_status); } >/dev/null && {
22021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22022 test ! -s conftest.err
22024 ac_header_preproc=yes
22026 echo "$as_me: failed program was
:" >&5
22027 sed 's/^/| /' conftest.$ac_ext >&5
22029 ac_header_preproc=no
22032 rm -f conftest.err conftest.$ac_ext
22033 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22034 echo "${ECHO_T}$ac_header_preproc" >&6; }
22036 # So? What about this header?
22037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22039 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22040 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22041 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22043 ac_header_preproc=yes
22046 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22047 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22048 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22049 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22050 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22051 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22052 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22053 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22054 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22056 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22057 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22061 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22062 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22064 echo $ECHO_N "(cached
) $ECHO_C" >&6
22066 eval "$as_ac_Header=\
$ac_header_preproc"
22068 ac_res=`eval echo '${'$as_ac_Header'}'`
22069 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22070 echo "${ECHO_T}$ac_res" >&6; }
22073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22074 cat >>confdefs.h <<_ACEOF
22075 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22080 for ac_header in kerberos/krb.h
22082 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22084 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22085 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22087 echo $ECHO_N "(cached
) $ECHO_C" >&6
22089 ac_res=`eval echo '${'$as_ac_Header'}'`
22090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22091 echo "${ECHO_T}$ac_res" >&6; }
22093 # Is the header compilable?
22094 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22095 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22096 cat >conftest.$ac_ext <<_ACEOF
22099 cat confdefs.h >>conftest.$ac_ext
22100 cat >>conftest.$ac_ext <<_ACEOF
22101 /* end confdefs.h. */
22102 $ac_includes_default
22103 #include <$ac_header>
22105 rm -f conftest.$ac_objext
22106 if { (ac_try="$ac_compile"
22107 case "(($ac_try" in
22108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109 *) ac_try_echo=$ac_try;;
22111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22112 (eval "$ac_compile") 2>conftest.er1
22114 grep -v '^ *+' conftest.er1 >conftest.err
22116 cat conftest.err >&5
22117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22118 (exit $ac_status); } && {
22119 test -z "$ac_c_werror_flag" ||
22120 test ! -s conftest.err
22121 } && test -s conftest.$ac_objext; then
22122 ac_header_compiler=yes
22124 echo "$as_me: failed program was
:" >&5
22125 sed 's/^/| /' conftest.$ac_ext >&5
22127 ac_header_compiler=no
22130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22132 echo "${ECHO_T}$ac_header_compiler" >&6; }
22134 # Is the header present?
22135 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22136 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22137 cat >conftest.$ac_ext <<_ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h. */
22143 #include <$ac_header>
22145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22153 grep -v '^ *+' conftest.er1 >conftest.err
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22157 (exit $ac_status); } >/dev/null && {
22158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22161 ac_header_preproc=yes
22163 echo "$as_me: failed program was
:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 ac_header_preproc=no
22169 rm -f conftest.err conftest.$ac_ext
22170 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22171 echo "${ECHO_T}$ac_header_preproc" >&6; }
22173 # So? What about this header?
22174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22176 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22177 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22178 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22180 ac_header_preproc=yes
22183 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22184 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22185 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22186 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22187 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22188 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22189 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22190 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22193 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22194 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22198 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22199 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22200 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22201 echo $ECHO_N "(cached
) $ECHO_C" >&6
22203 eval "$as_ac_Header=\
$ac_header_preproc"
22205 ac_res=`eval echo '${'$as_ac_Header'}'`
22206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22207 echo "${ECHO_T}$ac_res" >&6; }
22210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22211 cat >>confdefs.h <<_ACEOF
22212 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22229 for ac_header in com_err.h
22231 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22232 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22233 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22234 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22235 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22236 echo $ECHO_N "(cached
) $ECHO_C" >&6
22238 ac_res=`eval echo '${'$as_ac_Header'}'`
22239 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22240 echo "${ECHO_T}$ac_res" >&6; }
22242 # Is the header compilable?
22243 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22244 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22245 cat >conftest.$ac_ext <<_ACEOF
22248 cat confdefs.h >>conftest.$ac_ext
22249 cat >>conftest.$ac_ext <<_ACEOF
22250 /* end confdefs.h. */
22251 $ac_includes_default
22252 #include <$ac_header>
22254 rm -f conftest.$ac_objext
22255 if { (ac_try="$ac_compile"
22256 case "(($ac_try" in
22257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258 *) ac_try_echo=$ac_try;;
22260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22261 (eval "$ac_compile") 2>conftest.er1
22263 grep -v '^ *+' conftest.er1 >conftest.err
22265 cat conftest.err >&5
22266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22267 (exit $ac_status); } && {
22268 test -z "$ac_c_werror_flag" ||
22269 test ! -s conftest.err
22270 } && test -s conftest.$ac_objext; then
22271 ac_header_compiler=yes
22273 echo "$as_me: failed program was
:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22276 ac_header_compiler=no
22279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22280 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22281 echo "${ECHO_T}$ac_header_compiler" >&6; }
22283 # Is the header present?
22284 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22285 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22286 cat >conftest.$ac_ext <<_ACEOF
22289 cat confdefs.h >>conftest.$ac_ext
22290 cat >>conftest.$ac_ext <<_ACEOF
22291 /* end confdefs.h. */
22292 #include <$ac_header>
22294 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22306 (exit $ac_status); } >/dev/null && {
22307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22310 ac_header_preproc=yes
22312 echo "$as_me: failed program was
:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_header_preproc=no
22318 rm -f conftest.err conftest.$ac_ext
22319 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22320 echo "${ECHO_T}$ac_header_preproc" >&6; }
22322 # So? What about this header?
22323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22325 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22326 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22327 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22328 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22329 ac_header_preproc=yes
22332 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22333 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22334 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22335 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22336 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22337 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22338 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22339 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22340 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22341 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22342 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22343 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22347 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22348 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22349 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22350 echo $ECHO_N "(cached
) $ECHO_C" >&6
22352 eval "$as_ac_Header=\
$ac_header_preproc"
22354 ac_res=`eval echo '${'$as_ac_Header'}'`
22355 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22356 echo "${ECHO_T}$ac_res" >&6; }
22359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22360 cat >>confdefs.h <<_ACEOF
22361 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22370 # Solaris requires -lintl if you want strerror (which calls dgettext)
22371 # to return localized messages.
22373 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22374 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22375 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22376 echo $ECHO_N "(cached
) $ECHO_C" >&6
22378 ac_check_lib_save_LIBS=$LIBS
22379 LIBS="-lintl $LIBS"
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22387 /* Override any GCC internal prototype to avoid an error.
22388 Use char because int might match the return type of a GCC
22389 builtin and then its argument prototype would still apply. */
22397 return dgettext ();
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22408 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_link") 2>conftest.er1
22411 grep -v '^ *+' conftest.er1 >conftest.err
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22415 (exit $ac_status); } && {
22416 test -z "$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 } && test -s conftest$ac_exeext &&
22419 $as_test_x conftest$ac_exeext; then
22420 ac_cv_lib_intl_dgettext=yes
22422 echo "$as_me: failed program was
:" >&5
22423 sed 's/^/| /' conftest.$ac_ext >&5
22425 ac_cv_lib_intl_dgettext=no
22428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22429 conftest$ac_exeext conftest.$ac_ext
22430 LIBS=$ac_check_lib_save_LIBS
22432 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22433 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22434 if test $ac_cv_lib_intl_dgettext = yes; then
22435 cat >>confdefs.h <<_ACEOF
22436 #define HAVE_LIBINTL 1
22439 LIBS="-lintl $LIBS"
22444 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22445 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22446 if test "${emacs_cv_localtime_cache+set}" = set; then
22447 echo $ECHO_N "(cached
) $ECHO_C" >&6
22449 if test x$ac_cv_func_tzset = xyes; then
22450 if test "$cross_compiling" = yes; then
22451 # If we have tzset, assume the worst when cross-compiling.
22452 emacs_cv_localtime_cache=yes
22454 cat >conftest.$ac_ext <<_ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h. */
22461 extern char **environ;
22465 for (to = from = environ; (*to = *from); from++)
22466 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22469 char TZ_GMT0[] = "TZ
=GMT0
";
22470 char TZ_PST8[] = "TZ
=PST8
";
22473 time_t now = time ((time_t *) 0);
22474 int hour_GMT0, hour_unset;
22475 if (putenv (TZ_GMT0) != 0)
22477 hour_GMT0 = localtime (&now)->tm_hour;
22479 hour_unset = localtime (&now)->tm_hour;
22480 if (putenv (TZ_PST8) != 0)
22482 if (localtime (&now)->tm_hour == hour_GMT0)
22485 if (localtime (&now)->tm_hour != hour_unset)
22490 rm -f conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_link") 2>&5
22499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22501 { (case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22506 (eval "$ac_try") 2>&5
22508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 emacs_cv_localtime_cache=no
22512 echo "$as_me: program exited with status
$ac_status" >&5
22513 echo "$as_me: failed program was
:" >&5
22514 sed 's/^/| /' conftest.$ac_ext >&5
22516 ( exit $ac_status )
22517 emacs_cv_localtime_cache=yes
22519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22524 # If we lack tzset, report that localtime does not cache TZ,
22525 # since we can't invalidate the cache if we don't have tzset.
22526 emacs_cv_localtime_cache=no
22529 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22530 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22531 if test $emacs_cv_localtime_cache = yes; then
22533 cat >>confdefs.h <<\_ACEOF
22534 #define LOCALTIME_CACHE 1
22539 if test "x
$HAVE_TIMEVAL" = xyes; then
22541 for ac_func in gettimeofday
22543 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22544 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22545 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22546 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22547 echo $ECHO_N "(cached
) $ECHO_C" >&6
22549 cat >conftest.$ac_ext <<_ACEOF
22552 cat confdefs.h >>conftest.$ac_ext
22553 cat >>conftest.$ac_ext <<_ACEOF
22554 /* end confdefs.h. */
22555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22557 #define $ac_func innocuous_$ac_func
22559 /* System header to define __stub macros and hopefully few prototypes,
22560 which can conflict with char $ac_func (); below.
22561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22562 <limits.h> exists even on freestanding compilers. */
22565 # include <limits.h>
22567 # include <assert.h>
22572 /* Override any GCC internal prototype to avoid an error.
22573 Use char because int might match the return type of a GCC
22574 builtin and then its argument prototype would still apply. */
22579 /* The GNU C library defines this for functions which it implements
22580 to always fail with ENOSYS. Some functions are actually named
22581 something starting with __ and the normal name is an alias. */
22582 #if defined __stub_$ac_func || defined __stub___$ac_func
22589 return $ac_func ();
22594 rm -f conftest.$ac_objext conftest$ac_exeext
22595 if { (ac_try="$ac_link"
22596 case "(($ac_try" in
22597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598 *) ac_try_echo=$ac_try;;
22600 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22601 (eval "$ac_link") 2>conftest.er1
22603 grep -v '^ *+' conftest.er1 >conftest.err
22605 cat conftest.err >&5
22606 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22607 (exit $ac_status); } && {
22608 test -z "$ac_c_werror_flag" ||
22609 test ! -s conftest.err
22610 } && test -s conftest$ac_exeext &&
22611 $as_test_x conftest$ac_exeext; then
22612 eval "$as_ac_var=yes"
22614 echo "$as_me: failed program was
:" >&5
22615 sed 's/^/| /' conftest.$ac_ext >&5
22617 eval "$as_ac_var=no
"
22620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22621 conftest$ac_exeext conftest.$ac_ext
22623 ac_res=`eval echo '${'$as_ac_var'}'`
22624 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22625 echo "${ECHO_T}$ac_res" >&6; }
22626 if test `eval echo '${'$as_ac_var'}'` = yes; then
22627 cat >>confdefs.h <<_ACEOF
22628 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22634 if test $ac_cv_func_gettimeofday = yes; then
22635 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22636 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22637 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22638 echo $ECHO_N "(cached
) $ECHO_C" >&6
22640 cat >conftest.$ac_ext <<_ACEOF
22643 cat confdefs.h >>conftest.$ac_ext
22644 cat >>conftest.$ac_ext <<_ACEOF
22645 /* end confdefs.h. */
22647 #ifdef TIME_WITH_SYS_TIME
22648 #include <sys/time.h>
22651 #ifdef HAVE_SYS_TIME_H
22652 #include <sys/time.h>
22660 struct timeval time;
22661 gettimeofday (&time, 0);
22666 rm -f conftest.$ac_objext
22667 if { (ac_try="$ac_compile"
22668 case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22673 (eval "$ac_compile") 2>conftest.er1
22675 grep -v '^ *+' conftest.er1 >conftest.err
22677 cat conftest.err >&5
22678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22679 (exit $ac_status); } && {
22680 test -z "$ac_c_werror_flag" ||
22681 test ! -s conftest.err
22682 } && test -s conftest.$ac_objext; then
22683 emacs_cv_gettimeofday_two_arguments=yes
22685 echo "$as_me: failed program was
:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22688 emacs_cv_gettimeofday_two_arguments=no
22691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22693 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22694 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22695 if test $emacs_cv_gettimeofday_two_arguments = no; then
22697 cat >>confdefs.h <<\_ACEOF
22698 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22706 { echo "$as_me:$LINENO: checking
for socket
" >&5
22707 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22708 if test "${ac_cv_func_socket+set}" = set; then
22709 echo $ECHO_N "(cached
) $ECHO_C" >&6
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22719 #define socket innocuous_socket
22721 /* System header to define __stub macros and hopefully few prototypes,
22722 which can conflict with char socket (); below.
22723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22724 <limits.h> exists even on freestanding compilers. */
22727 # include <limits.h>
22729 # include <assert.h>
22734 /* Override any GCC internal prototype to avoid an error.
22735 Use char because int might match the return type of a GCC
22736 builtin and then its argument prototype would still apply. */
22741 /* The GNU C library defines this for functions which it implements
22742 to always fail with ENOSYS. Some functions are actually named
22743 something starting with __ and the normal name is an alias. */
22744 #if defined __stub_socket || defined __stub___socket
22756 rm -f conftest.$ac_objext conftest$ac_exeext
22757 if { (ac_try="$ac_link"
22758 case "(($ac_try" in
22759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22760 *) ac_try_echo=$ac_try;;
22762 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22763 (eval "$ac_link") 2>conftest.er1
22765 grep -v '^ *+' conftest.er1 >conftest.err
22767 cat conftest.err >&5
22768 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22769 (exit $ac_status); } && {
22770 test -z "$ac_c_werror_flag" ||
22771 test ! -s conftest.err
22772 } && test -s conftest$ac_exeext &&
22773 $as_test_x conftest$ac_exeext; then
22774 ac_cv_func_socket=yes
22776 echo "$as_me: failed program was
:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22779 ac_cv_func_socket=no
22782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22783 conftest$ac_exeext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22786 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22787 if test $ac_cv_func_socket = yes; then
22793 if test $ok_so_far = yes; then
22794 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22795 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22796 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22797 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22798 echo $ECHO_N "(cached
) $ECHO_C" >&6
22800 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22801 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22803 # Is the header compilable?
22804 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22805 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22806 cat >conftest.$ac_ext <<_ACEOF
22809 cat confdefs.h >>conftest.$ac_ext
22810 cat >>conftest.$ac_ext <<_ACEOF
22811 /* end confdefs.h. */
22812 $ac_includes_default
22813 #include <netinet/in.h>
22815 rm -f conftest.$ac_objext
22816 if { (ac_try="$ac_compile"
22817 case "(($ac_try" in
22818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22819 *) ac_try_echo=$ac_try;;
22821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22822 (eval "$ac_compile") 2>conftest.er1
22824 grep -v '^ *+' conftest.er1 >conftest.err
22826 cat conftest.err >&5
22827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22828 (exit $ac_status); } && {
22829 test -z "$ac_c_werror_flag" ||
22830 test ! -s conftest.err
22831 } && test -s conftest.$ac_objext; then
22832 ac_header_compiler=yes
22834 echo "$as_me: failed program was
:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22837 ac_header_compiler=no
22840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22842 echo "${ECHO_T}$ac_header_compiler" >&6; }
22844 # Is the header present?
22845 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22846 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 #include <netinet/in.h>
22855 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22856 case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22863 grep -v '^ *+' conftest.er1 >conftest.err
22865 cat conftest.err >&5
22866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22867 (exit $ac_status); } >/dev/null && {
22868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22869 test ! -s conftest.err
22871 ac_header_preproc=yes
22873 echo "$as_me: failed program was
:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_header_preproc=no
22879 rm -f conftest.err conftest.$ac_ext
22880 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22881 echo "${ECHO_T}$ac_header_preproc" >&6; }
22883 # So? What about this header?
22884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22886 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22887 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22888 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22889 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22890 ac_header_preproc=yes
22893 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22894 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22895 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22896 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22897 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22898 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22899 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22900 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22901 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22902 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22903 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22904 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22908 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22909 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22910 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22911 echo $ECHO_N "(cached
) $ECHO_C" >&6
22913 ac_cv_header_netinet_in_h=$ac_header_preproc
22915 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22916 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22919 if test $ac_cv_header_netinet_in_h = yes; then
22927 if test $ok_so_far = yes; then
22928 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22929 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22930 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22931 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22932 echo $ECHO_N "(cached
) $ECHO_C" >&6
22934 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22935 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22937 # Is the header compilable?
22938 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22939 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22940 cat >conftest.$ac_ext <<_ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h. */
22946 $ac_includes_default
22947 #include <arpa/inet.h>
22949 rm -f conftest.$ac_objext
22950 if { (ac_try="$ac_compile"
22951 case "(($ac_try" in
22952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22953 *) ac_try_echo=$ac_try;;
22955 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22958 grep -v '^ *+' conftest.er1 >conftest.err
22960 cat conftest.err >&5
22961 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest.$ac_objext; then
22966 ac_header_compiler=yes
22968 echo "$as_me: failed program was
:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22971 ac_header_compiler=no
22974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22976 echo "${ECHO_T}$ac_header_compiler" >&6; }
22978 # Is the header present?
22979 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22980 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <arpa/inet.h>
22989 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22995 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22997 grep -v '^ *+' conftest.er1 >conftest.err
22999 cat conftest.err >&5
23000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23001 (exit $ac_status); } >/dev/null && {
23002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23003 test ! -s conftest.err
23005 ac_header_preproc=yes
23007 echo "$as_me: failed program was
:" >&5
23008 sed 's/^/| /' conftest.$ac_ext >&5
23010 ac_header_preproc=no
23013 rm -f conftest.err conftest.$ac_ext
23014 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23015 echo "${ECHO_T}$ac_header_preproc" >&6; }
23017 # So? What about this header?
23018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23020 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23021 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23022 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23023 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23024 ac_header_preproc=yes
23027 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23028 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23029 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23030 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23031 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23032 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23033 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23034 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23035 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23036 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23037 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23038 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23042 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23043 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23044 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23045 echo $ECHO_N "(cached
) $ECHO_C" >&6
23047 ac_cv_header_arpa_inet_h=$ac_header_preproc
23049 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23050 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23053 if test $ac_cv_header_arpa_inet_h = yes; then
23061 if test $ok_so_far = yes; then
23063 cat >>confdefs.h <<\_ACEOF
23064 #define HAVE_INET_SOCKETS 1
23070 for ac_header in sys/ioctl.h
23072 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23073 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23074 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23075 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23077 echo $ECHO_N "(cached
) $ECHO_C" >&6
23079 ac_res=`eval echo '${'$as_ac_Header'}'`
23080 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23081 echo "${ECHO_T}$ac_res" >&6; }
23083 # Is the header compilable?
23084 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23085 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23092 $ac_includes_default
23093 #include <$ac_header>
23095 rm -f conftest.$ac_objext
23096 if { (ac_try="$ac_compile"
23097 case "(($ac_try" in
23098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099 *) ac_try_echo=$ac_try;;
23101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23102 (eval "$ac_compile") 2>conftest.er1
23104 grep -v '^ *+' conftest.er1 >conftest.err
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest.$ac_objext; then
23112 ac_header_compiler=yes
23114 echo "$as_me: failed program was
:" >&5
23115 sed 's/^/| /' conftest.$ac_ext >&5
23117 ac_header_compiler=no
23120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23122 echo "${ECHO_T}$ac_header_compiler" >&6; }
23124 # Is the header present?
23125 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23126 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23127 cat >conftest.$ac_ext <<_ACEOF
23130 cat confdefs.h >>conftest.$ac_ext
23131 cat >>conftest.$ac_ext <<_ACEOF
23132 /* end confdefs.h. */
23133 #include <$ac_header>
23135 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23143 grep -v '^ *+' conftest.er1 >conftest.err
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23147 (exit $ac_status); } >/dev/null && {
23148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23151 ac_header_preproc=yes
23153 echo "$as_me: failed program was
:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23156 ac_header_preproc=no
23159 rm -f conftest.err conftest.$ac_ext
23160 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23161 echo "${ECHO_T}$ac_header_preproc" >&6; }
23163 # So? What about this header?
23164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23166 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23167 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23168 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23170 ac_header_preproc=yes
23173 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23174 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23175 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23176 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23177 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23178 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23179 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23180 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23181 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23183 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23184 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23188 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23189 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23191 echo $ECHO_N "(cached
) $ECHO_C" >&6
23193 eval "$as_ac_Header=\
$ac_header_preproc"
23195 ac_res=`eval echo '${'$as_ac_Header'}'`
23196 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23197 echo "${ECHO_T}$ac_res" >&6; }
23200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23201 cat >>confdefs.h <<_ACEOF
23202 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23210 if test -f /usr/lpp/X11/bin/smt.exp; then
23212 cat >>confdefs.h <<\_ACEOF
23213 #define HAVE_AIX_SMT_EXP 1
23218 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23219 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23220 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23221 { echo "$as_me:$LINENO: result
: yes" >&5
23222 echo "${ECHO_T}yes" >&6; }
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_DEV_PTMX 1
23229 { echo "$as_me:$LINENO: result
: no
" >&5
23230 echo "${ECHO_T}no
" >&6; }
23233 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23234 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23235 if test "${ac_cv_type_pid_t+set}" = set; then
23236 echo $ECHO_N "(cached
) $ECHO_C" >&6
23238 cat >conftest.$ac_ext <<_ACEOF
23241 cat confdefs.h >>conftest.$ac_ext
23242 cat >>conftest.$ac_ext <<_ACEOF
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 typedef pid_t ac__type_new_;
23249 if ((ac__type_new_ *) 0)
23251 if (sizeof (ac__type_new_))
23257 rm -f conftest.$ac_objext
23258 if { (ac_try="$ac_compile"
23259 case "(($ac_try" in
23260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23261 *) ac_try_echo=$ac_try;;
23263 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23264 (eval "$ac_compile") 2>conftest.er1
23266 grep -v '^ *+' conftest.er1 >conftest.err
23268 cat conftest.err >&5
23269 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23270 (exit $ac_status); } && {
23271 test -z "$ac_c_werror_flag" ||
23272 test ! -s conftest.err
23273 } && test -s conftest.$ac_objext; then
23274 ac_cv_type_pid_t=yes
23276 echo "$as_me: failed program was
:" >&5
23277 sed 's/^/| /' conftest.$ac_ext >&5
23279 ac_cv_type_pid_t=no
23282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23284 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23285 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23286 if test $ac_cv_type_pid_t = yes; then
23290 cat >>confdefs.h <<_ACEOF
23297 for ac_header in vfork.h
23299 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23300 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23301 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23302 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23303 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23304 echo $ECHO_N "(cached
) $ECHO_C" >&6
23306 ac_res=`eval echo '${'$as_ac_Header'}'`
23307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23308 echo "${ECHO_T}$ac_res" >&6; }
23310 # Is the header compilable?
23311 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23312 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23313 cat >conftest.$ac_ext <<_ACEOF
23316 cat confdefs.h >>conftest.$ac_ext
23317 cat >>conftest.$ac_ext <<_ACEOF
23318 /* end confdefs.h. */
23319 $ac_includes_default
23320 #include <$ac_header>
23322 rm -f conftest.$ac_objext
23323 if { (ac_try="$ac_compile"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_compile") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest.$ac_objext; then
23339 ac_header_compiler=yes
23341 echo "$as_me: failed program was
:" >&5
23342 sed 's/^/| /' conftest.$ac_ext >&5
23344 ac_header_compiler=no
23347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23349 echo "${ECHO_T}$ac_header_compiler" >&6; }
23351 # Is the header present?
23352 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23353 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23354 cat >conftest.$ac_ext <<_ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h. */
23360 #include <$ac_header>
23362 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23363 case "(($ac_try" in
23364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23365 *) ac_try_echo=$ac_try;;
23367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23368 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23370 grep -v '^ *+' conftest.er1 >conftest.err
23372 cat conftest.err >&5
23373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23374 (exit $ac_status); } >/dev/null && {
23375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23376 test ! -s conftest.err
23378 ac_header_preproc=yes
23380 echo "$as_me: failed program was
:" >&5
23381 sed 's/^/| /' conftest.$ac_ext >&5
23383 ac_header_preproc=no
23386 rm -f conftest.err conftest.$ac_ext
23387 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23388 echo "${ECHO_T}$ac_header_preproc" >&6; }
23390 # So? What about this header?
23391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23393 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23394 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23395 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23397 ac_header_preproc=yes
23400 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23401 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23402 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23403 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23404 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23405 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23406 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23407 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23408 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23410 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23411 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23415 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23416 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23417 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23418 echo $ECHO_N "(cached
) $ECHO_C" >&6
23420 eval "$as_ac_Header=\
$ac_header_preproc"
23422 ac_res=`eval echo '${'$as_ac_Header'}'`
23423 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23424 echo "${ECHO_T}$ac_res" >&6; }
23427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23428 cat >>confdefs.h <<_ACEOF
23429 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23438 for ac_func in fork vfork
23440 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23441 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23442 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23443 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached
) $ECHO_C" >&6
23446 cat >conftest.$ac_ext <<_ACEOF
23449 cat confdefs.h >>conftest.$ac_ext
23450 cat >>conftest.$ac_ext <<_ACEOF
23451 /* end confdefs.h. */
23452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23454 #define $ac_func innocuous_$ac_func
23456 /* System header to define __stub macros and hopefully few prototypes,
23457 which can conflict with char $ac_func (); below.
23458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23459 <limits.h> exists even on freestanding compilers. */
23462 # include <limits.h>
23464 # include <assert.h>
23469 /* Override any GCC internal prototype to avoid an error.
23470 Use char because int might match the return type of a GCC
23471 builtin and then its argument prototype would still apply. */
23476 /* The GNU C library defines this for functions which it implements
23477 to always fail with ENOSYS. Some functions are actually named
23478 something starting with __ and the normal name is an alias. */
23479 #if defined __stub_$ac_func || defined __stub___$ac_func
23486 return $ac_func ();
23491 rm -f conftest.$ac_objext conftest$ac_exeext
23492 if { (ac_try="$ac_link"
23493 case "(($ac_try" in
23494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23495 *) ac_try_echo=$ac_try;;
23497 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23498 (eval "$ac_link") 2>conftest.er1
23500 grep -v '^ *+' conftest.er1 >conftest.err
23502 cat conftest.err >&5
23503 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23504 (exit $ac_status); } && {
23505 test -z "$ac_c_werror_flag" ||
23506 test ! -s conftest.err
23507 } && test -s conftest$ac_exeext &&
23508 $as_test_x conftest$ac_exeext; then
23509 eval "$as_ac_var=yes"
23511 echo "$as_me: failed program was
:" >&5
23512 sed 's/^/| /' conftest.$ac_ext >&5
23514 eval "$as_ac_var=no
"
23517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23518 conftest$ac_exeext conftest.$ac_ext
23520 ac_res=`eval echo '${'$as_ac_var'}'`
23521 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23522 echo "${ECHO_T}$ac_res" >&6; }
23523 if test `eval echo '${'$as_ac_var'}'` = yes; then
23524 cat >>confdefs.h <<_ACEOF
23525 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23531 if test "x
$ac_cv_func_fork" = xyes; then
23532 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23533 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23534 if test "${ac_cv_func_fork_works+set}" = set; then
23535 echo $ECHO_N "(cached
) $ECHO_C" >&6
23537 if test "$cross_compiling" = yes; then
23538 ac_cv_func_fork_works=cross
23540 cat >conftest.$ac_ext <<_ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h. */
23546 $ac_includes_default
23551 /* By Ruediger Kuhlmann. */
23552 return fork () < 0;
23558 rm -f conftest$ac_exeext
23559 if { (ac_try="$ac_link"
23560 case "(($ac_try" in
23561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23562 *) ac_try_echo=$ac_try;;
23564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23565 (eval "$ac_link") 2>&5
23567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23569 { (case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23574 (eval "$ac_try") 2>&5
23576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23577 (exit $ac_status); }; }; then
23578 ac_cv_func_fork_works=yes
23580 echo "$as_me: program exited with status
$ac_status" >&5
23581 echo "$as_me: failed program was
:" >&5
23582 sed 's/^/| /' conftest.$ac_ext >&5
23584 ( exit $ac_status )
23585 ac_cv_func_fork_works=no
23587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23592 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23593 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23596 ac_cv_func_fork_works=$ac_cv_func_fork
23598 if test "x
$ac_cv_func_fork_works" = xcross; then
23600 *-*-amigaos* | *-*-msdosdjgpp*)
23601 # Override, as these systems have only a dummy fork() stub
23602 ac_cv_func_fork_works=no
23605 ac_cv_func_fork_works=yes
23608 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23609 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23611 ac_cv_func_vfork_works=$ac_cv_func_vfork
23612 if test "x
$ac_cv_func_vfork" = xyes; then
23613 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23614 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23615 if test "${ac_cv_func_vfork_works+set}" = set; then
23616 echo $ECHO_N "(cached
) $ECHO_C" >&6
23618 if test "$cross_compiling" = yes; then
23619 ac_cv_func_vfork_works=cross
23621 cat >conftest.$ac_ext <<_ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h. */
23627 /* Thanks to Paul Eggert for this test. */
23628 $ac_includes_default
23629 #include <sys/wait.h>
23630 #ifdef HAVE_VFORK_H
23631 # include <vfork.h>
23633 /* On some sparc systems, changes by the child to local and incoming
23634 argument registers are propagated back to the parent. The compiler
23635 is told about this with #include <vfork.h>, but some compilers
23636 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23637 static variable whose address is put into a register that is
23638 clobbered by the vfork. */
23641 sparc_address_test (int arg)
23643 sparc_address_test (arg) int arg;
23646 static pid_t child;
23664 pid_t parent = getpid ();
23667 sparc_address_test (0);
23672 /* Here is another test for sparc vfork register problems. This
23673 test uses lots of local variables, at least as many local
23674 variables as main has allocated so far including compiler
23675 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23676 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23677 reuse the register of parent for one of the local variables,
23678 since it will think that parent can't possibly be used any more
23679 in this routine. Assigning to the local variable will thus
23680 munge parent in the parent process. */
23682 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23683 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23684 /* Convince the compiler that p..p7 are live; otherwise, it might
23685 use the same hardware register for all 8 local variables. */
23686 if (p != p1 || p != p2 || p != p3 || p != p4
23687 || p != p5 || p != p6 || p != p7)
23690 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23691 from child file descriptors. If the child closes a descriptor
23692 before it execs or exits, this munges the parent's descriptor
23693 as well. Test for this by closing stdout in the child. */
23694 _exit(close(fileno(stdout)) != 0);
23699 while (wait(&status) != child)
23702 /* Was there some problem with vforking? */
23705 /* Did the child fail? (This shouldn't happen.) */
23708 /* Did the vfork/compiler bug occur? */
23709 || parent != getpid()
23711 /* Did the file descriptor bug occur? */
23712 || fstat(fileno(stdout), &st) != 0
23717 rm -f conftest$ac_exeext
23718 if { (ac_try="$ac_link"
23719 case "(($ac_try" in
23720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23721 *) ac_try_echo=$ac_try;;
23723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23724 (eval "$ac_link") 2>&5
23726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23728 { (case "(($ac_try" in
23729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23730 *) ac_try_echo=$ac_try;;
23732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23733 (eval "$ac_try") 2>&5
23735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23736 (exit $ac_status); }; }; then
23737 ac_cv_func_vfork_works=yes
23739 echo "$as_me: program exited with status
$ac_status" >&5
23740 echo "$as_me: failed program was
:" >&5
23741 sed 's/^/| /' conftest.$ac_ext >&5
23743 ( exit $ac_status )
23744 ac_cv_func_vfork_works=no
23746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23751 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23752 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23755 if test "x
$ac_cv_func_fork_works" = xcross; then
23756 ac_cv_func_vfork_works=$ac_cv_func_vfork
23757 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23758 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23761 if test "x
$ac_cv_func_vfork_works" = xyes; then
23763 cat >>confdefs.h <<\_ACEOF
23764 #define HAVE_WORKING_VFORK 1
23769 cat >>confdefs.h <<\_ACEOF
23774 if test "x
$ac_cv_func_fork_works" = xyes; then
23776 cat >>confdefs.h <<\_ACEOF
23777 #define HAVE_WORKING_FORK 1
23783 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23784 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23785 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23786 echo $ECHO_N "(cached
) $ECHO_C" >&6
23788 cat >conftest.$ac_ext <<_ACEOF
23791 cat confdefs.h >>conftest.$ac_ext
23792 cat >>conftest.$ac_ext <<_ACEOF
23793 /* end confdefs.h. */
23794 #include <langinfo.h>
23798 char* cs = nl_langinfo(CODESET);
23803 rm -f conftest.$ac_objext conftest$ac_exeext
23804 if { (ac_try="$ac_link"
23805 case "(($ac_try" in
23806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23807 *) ac_try_echo=$ac_try;;
23809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23810 (eval "$ac_link") 2>conftest.er1
23812 grep -v '^ *+' conftest.er1 >conftest.err
23814 cat conftest.err >&5
23815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23816 (exit $ac_status); } && {
23817 test -z "$ac_c_werror_flag" ||
23818 test ! -s conftest.err
23819 } && test -s conftest$ac_exeext &&
23820 $as_test_x conftest$ac_exeext; then
23821 emacs_cv_langinfo_codeset=yes
23823 echo "$as_me: failed program was
:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23826 emacs_cv_langinfo_codeset=no
23829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23830 conftest$ac_exeext conftest.$ac_ext
23833 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23834 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23835 if test $emacs_cv_langinfo_codeset = yes; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_LANGINFO_CODESET 1
23843 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23844 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23845 if test "${ac_cv_type_size_t+set}" = set; then
23846 echo $ECHO_N "(cached
) $ECHO_C" >&6
23848 cat >conftest.$ac_ext <<_ACEOF
23851 cat confdefs.h >>conftest.$ac_ext
23852 cat >>conftest.$ac_ext <<_ACEOF
23853 /* end confdefs.h. */
23854 $ac_includes_default
23855 typedef size_t ac__type_new_;
23859 if ((ac__type_new_ *) 0)
23861 if (sizeof (ac__type_new_))
23867 rm -f conftest.$ac_objext
23868 if { (ac_try="$ac_compile"
23869 case "(($ac_try" in
23870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23871 *) ac_try_echo=$ac_try;;
23873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23874 (eval "$ac_compile") 2>conftest.er1
23876 grep -v '^ *+' conftest.er1 >conftest.err
23878 cat conftest.err >&5
23879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest.$ac_objext; then
23884 ac_cv_type_size_t=yes
23886 echo "$as_me: failed program was
:" >&5
23887 sed 's/^/| /' conftest.$ac_ext >&5
23889 ac_cv_type_size_t=no
23892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23894 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23895 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23896 if test $ac_cv_type_size_t = yes; then
23898 cat >>confdefs.h <<_ACEOF
23899 #define HAVE_SIZE_T 1
23906 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23907 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23908 if test "${ac_cv_type_mbstate_t+set}" = set; then
23909 echo $ECHO_N "(cached
) $ECHO_C" >&6
23911 cat >conftest.$ac_ext <<_ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917 $ac_includes_default
23918 # include <wchar.h>
23922 mbstate_t x; return sizeof x;
23927 rm -f conftest.$ac_objext
23928 if { (ac_try="$ac_compile"
23929 case "(($ac_try" in
23930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931 *) ac_try_echo=$ac_try;;
23933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23934 (eval "$ac_compile") 2>conftest.er1
23936 grep -v '^ *+' conftest.er1 >conftest.err
23938 cat conftest.err >&5
23939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23940 (exit $ac_status); } && {
23941 test -z "$ac_c_werror_flag" ||
23942 test ! -s conftest.err
23943 } && test -s conftest.$ac_objext; then
23944 ac_cv_type_mbstate_t=yes
23946 echo "$as_me: failed program was
:" >&5
23947 sed 's/^/| /' conftest.$ac_ext >&5
23949 ac_cv_type_mbstate_t=no
23952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23955 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23956 if test $ac_cv_type_mbstate_t = yes; then
23958 cat >>confdefs.h <<\_ACEOF
23959 #define HAVE_MBSTATE_T 1
23964 cat >>confdefs.h <<\_ACEOF
23965 #define mbstate_t int
23970 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23971 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23972 if test "${emacs_cv_c_restrict+set}" = set; then
23973 echo $ECHO_N "(cached
) $ECHO_C" >&6
23975 cat >conftest.$ac_ext <<_ACEOF
23978 cat confdefs.h >>conftest.$ac_ext
23979 cat >>conftest.$ac_ext <<_ACEOF
23980 /* end confdefs.h. */
23981 void fred (int *restrict x);
23990 rm -f conftest.$ac_objext
23991 if { (ac_try="$ac_compile"
23992 case "(($ac_try" in
23993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23994 *) ac_try_echo=$ac_try;;
23996 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23997 (eval "$ac_compile") 2>conftest.er1
23999 grep -v '^ *+' conftest.er1 >conftest.err
24001 cat conftest.err >&5
24002 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24003 (exit $ac_status); } && {
24004 test -z "$ac_c_werror_flag" ||
24005 test ! -s conftest.err
24006 } && test -s conftest.$ac_objext; then
24007 emacs_cv_c_restrict=yes
24009 echo "$as_me: failed program was
:" >&5
24010 sed 's/^/| /' conftest.$ac_ext >&5
24012 cat >conftest.$ac_ext <<_ACEOF
24015 cat confdefs.h >>conftest.$ac_ext
24016 cat >>conftest.$ac_ext <<_ACEOF
24017 /* end confdefs.h. */
24018 void fred (int *__restrict x);
24027 rm -f conftest.$ac_objext
24028 if { (ac_try="$ac_compile"
24029 case "(($ac_try" in
24030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24031 *) ac_try_echo=$ac_try;;
24033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24034 (eval "$ac_compile") 2>conftest.er1
24036 grep -v '^ *+' conftest.er1 >conftest.err
24038 cat conftest.err >&5
24039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24040 (exit $ac_status); } && {
24041 test -z "$ac_c_werror_flag" ||
24042 test ! -s conftest.err
24043 } && test -s conftest.$ac_objext; then
24044 emacs_cv_c_restrict=__restrict
24046 echo "$as_me: failed program was
:" >&5
24047 sed 's/^/| /' conftest.$ac_ext >&5
24049 emacs_cv_c_restrict=no
24052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24058 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24059 case "$emacs_cv_c_restrict" in
24060 yes) emacs_restrict=restrict;;
24061 no) emacs_restrict="";;
24062 *) emacs_restrict="$emacs_cv_c_restrict";;
24064 if test "$emacs_restrict" != __restrict; then
24066 cat >>confdefs.h <<_ACEOF
24067 #define __restrict $emacs_restrict
24072 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24073 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24074 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24075 echo $ECHO_N "(cached
) $ECHO_C" >&6
24077 cat >conftest.$ac_ext <<_ACEOF
24080 cat confdefs.h >>conftest.$ac_ext
24081 cat >>conftest.$ac_ext <<_ACEOF
24082 /* end confdefs.h. */
24083 void fred (int x[__restrict]);
24092 rm -f conftest.$ac_objext
24093 if { (ac_try="$ac_compile"
24094 case "(($ac_try" in
24095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096 *) ac_try_echo=$ac_try;;
24098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24099 (eval "$ac_compile") 2>conftest.er1
24101 grep -v '^ *+' conftest.er1 >conftest.err
24103 cat conftest.err >&5
24104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24105 (exit $ac_status); } && {
24106 test -z "$ac_c_werror_flag" ||
24107 test ! -s conftest.err
24108 } && test -s conftest.$ac_objext; then
24109 emacs_cv_c_restrict_arr=yes
24111 echo "$as_me: failed program was
:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24114 emacs_cv_c_restrict_arr=no
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24119 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24120 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24121 if test "$emacs_cv_c_restrict_arr" = yes; then
24123 cat >>confdefs.h <<\_ACEOF
24124 #define __restrict_arr __restrict
24131 # Set up the CFLAGS for real compilation, so we can substitute it.
24132 CFLAGS="$REAL_CFLAGS"
24133 CPPFLAGS="$REAL_CPPFLAGS"
24135 #### Find out which version of Emacs this is.
24136 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24137 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24138 if test x"${version}" = x; then
24139 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24140 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24141 { (exit 1); exit 1; }; }
24144 ### Specify what sort of things we'll be editing into Makefile and config.h.
24145 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24181 cat >>confdefs.h <<_ACEOF
24182 #define EMACS_CONFIGURATION "${canonical}"
24186 cat >>confdefs.h <<_ACEOF
24187 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24191 cat >>confdefs.h <<_ACEOF
24192 #define config_machfile "${machfile}"
24196 cat >>confdefs.h <<_ACEOF
24197 #define config_opsysfile "${opsysfile}"
24201 cat >>confdefs.h <<_ACEOF
24202 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24206 cat >>confdefs.h <<_ACEOF
24207 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24211 cat >>confdefs.h <<_ACEOF
24212 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24216 cat >>confdefs.h <<_ACEOF
24217 #define UNEXEC_SRC ${UNEXEC_SRC}
24221 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24223 cat >>confdefs.h <<\_ACEOF
24224 #define HAVE_X_WINDOWS 1
24228 if test "${USE_X_TOOLKIT}" != "none
" ; then
24230 cat >>confdefs.h <<\_ACEOF
24231 #define USE_X_TOOLKIT 1
24234 if test "${USE_X_TOOLKIT}" == "LUCID
"; then
24236 cat >>confdefs.h <<\_ACEOF
24237 #define USE_LUCID 1
24240 elif test "${USE_X_TOOLKIT}" == "MOTIF
"; then
24242 cat >>confdefs.h <<\_ACEOF
24243 #define USE_MOTIF 1
24248 if test "${HAVE_X11}" = "yes" ; then
24250 cat >>confdefs.h <<\_ACEOF
24255 if test "${HAVE_MENUS}" = "yes" ; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define HAVE_MENUS 1
24262 if test "${GNU_MALLOC}" = "yes" ; then
24264 cat >>confdefs.h <<\_ACEOF
24265 #define GNU_MALLOC 1
24269 if test "${REL_ALLOC}" = "yes" ; then
24271 cat >>confdefs.h <<\_ACEOF
24272 #define REL_ALLOC 1
24282 #### Report on what we decided to do.
24283 #### Report GTK as a toolkit, even if it doesn't use Xt.
24284 #### It makes printing result more understandable as using GTK sets
24285 #### toolkit_scroll_bars to yes by default.
24286 if test "${HAVE_GTK}" = "yes"; then
24291 Configured
for \
`${canonical}'.
24293 Where should the build process find the source code? ${srcdir}
24294 What operating system and machine description files should Emacs use?
24295 \`${opsysfile}' and \`${machfile}'
24296 What compiler should emacs be built with?
${CC} ${CFLAGS}
24297 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24298 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24299 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24300 What window system should Emacs use?
${window_system}
24301 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24303 if test -n "${x_includes}"; then
24304 echo " Where
do we
find X Windows header files?
${x_includes}"
24306 echo " Where
do we
find X Windows header files? Standard
dirs"
24308 if test -n "${x_libraries}"; then
24309 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24311 echo " Where
do we
find X Windows libraries? Standard
dirs"
24314 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24315 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24316 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24317 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24318 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24319 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24320 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24321 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24322 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24323 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
24325 if test "${USE_FONT_BACKEND}" = "yes"; then
24326 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24327 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24328 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24329 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24331 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24334 if test $USE_XASSERTS = yes; then
24335 echo " Compiling with asserts turned on.
"
24336 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24341 if test "$USE_X_TOOLKIT" = GTK; then
24342 case "$canonical" in
24344 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24345 will probably get a crash on startup. If this happens
, please use another
24346 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24352 if test "$HAVE_CARBON" = "yes"; then
24354 echo "Warning
: The Mac Carbon port is currently unsupported and has
24355 known problems. It is not recommended
for use by non-developers.
24356 Read the emacs-devel archives
for more information.
"
24360 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24361 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24366 # Remove any trailing slashes in these variables.
24367 test "${prefix}" != NONE &&
24368 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24369 test "${exec_prefix}" != NONE &&
24370 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24372 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24373 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24374 ## from Makefile.c can correctly provide the arg `-traditional' to the
24377 cat >conftest.$ac_ext <<_ACEOF
24380 cat confdefs.h >>conftest.$ac_ext
24381 cat >>conftest.$ac_ext <<_ACEOF
24382 /* end confdefs.h. */
24385 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24386 $EGREP "yes..
yes" >/dev/null 2>&1; then
24387 CPP_NEED_TRADITIONAL=no
24389 CPP_NEED_TRADITIONAL=yes
24394 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
24396 ac_config_commands="$ac_config_commands default
"
24398 cat >confcache <<\_ACEOF
24399 # This file is a shell script that caches the results of configure
24400 # tests run on this system so they can be shared between configure
24401 # scripts and configure runs, see configure's option --config-cache.
24402 # It is not useful on other systems. If it contains results you don't
24403 # want to keep, you may remove or edit it.
24405 # config.status only pays attention to the cache file if you give it
24406 # the --recheck option to rerun configure.
24408 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24409 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24410 # following values.
24414 # The following way of writing the cache mishandles newlines in values,
24415 # but we know of no workaround that is simple, portable, and efficient.
24416 # So, we kill variables containing newlines.
24417 # Ultrix sh set writes to stderr and can't be redirected directly,
24418 # and sets the high bit in the cache file unless we assign to the vars.
24420 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24421 eval ac_val=\$$ac_var
24425 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24426 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24429 _ | IFS | as_nl) ;; #(
24430 *) $as_unset $ac_var ;;
24436 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24437 *${as_nl}ac_space=\ *)
24438 # `set' does not quote correctly, so add quotes (double-quote
24439 # substitution turns \\\\ into \\, and sed turns \\ into \).
24442 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24445 # `set' quotes correctly as required by POSIX, so do not add quotes.
24446 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24455 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24457 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24459 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24460 if test -w "$cache_file"; then
24461 test "x
$cache_file" != "x
/dev
/null
" &&
24462 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24463 echo "$as_me: updating cache
$cache_file" >&6;}
24464 cat confcache >$cache_file
24466 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24467 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24472 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24473 # Let make expand exec_prefix.
24474 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24476 DEFS=-DHAVE_CONFIG_H
24480 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24481 # 1. Remove the extension, and $U if already installed.
24482 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24483 ac_i=`echo "$ac_i" | sed "$ac_script"`
24484 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24485 # will be set to the directory where LIBOBJS objects are built.
24486 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24487 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24489 LIBOBJS=$ac_libobjs
24491 LTLIBOBJS=$ac_ltlibobjs
24495 : ${CONFIG_STATUS=./config.status}
24496 ac_clean_files_save=$ac_clean_files
24497 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24498 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24499 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24500 cat >$CONFIG_STATUS <<_ACEOF
24502 # Generated by $as_me.
24503 # Run this file to recreate the current configuration.
24504 # Compiler output produced by configure, useful for debugging
24505 # configure, is in config.log if it exists.
24508 ac_cs_recheck=false
24510 SHELL=\${CONFIG_SHELL-$SHELL}
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24514 ## --------------------- ##
24515 ## M4sh Initialization. ##
24516 ## --------------------- ##
24518 # Be more Bourne compatible
24519 DUALCASE=1; export DUALCASE # for MKS sh
24520 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24523 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24524 # is contrary to our usage. Disable this feature.
24525 alias -g '${1+"$@"}'='"$@
"'
24526 setopt NO_GLOB_SUBST
24528 case `(set -o) 2>/dev/null` in
24529 *posix*) set -o posix ;;
24538 # Avoid depending upon Character Ranges.
24539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24542 as_cr_digits='0123456789'
24543 as_cr_alnum=$as_cr_Letters$as_cr_digits
24545 # The user is always right.
24546 if test "${PATH_SEPARATOR+set}" != set; then
24547 echo "#! /bin/sh" >conf$$.sh
24548 echo "exit 0" >>conf$$.sh
24550 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24558 # Support unset when possible.
24559 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24567 # We need space, tab and new line, in precisely that order. Quoting is
24568 # there to prevent editors from complaining about space-tab.
24569 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24570 # splitting by setting IFS to empty value.)
24575 # Find who we are. Look in the path if we contain no directory separator.
24577 *[\\/]* ) as_myself
=$0 ;;
24578 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24579 for as_dir
in $PATH
24582 test -z "$as_dir" && as_dir
=.
24583 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24589 # We did not find ourselves, most probably we were run as `sh COMMAND'
24590 # in which case we are not to be found in the path.
24591 if test "x$as_myself" = x
; then
24594 if test ! -f "$as_myself"; then
24595 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24596 { (exit 1); exit 1; }
24599 # Work around bugs in pre-3.0 UWIN ksh.
24600 for as_var
in ENV MAIL MAILPATH
24601 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24609 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24610 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24611 LC_TELEPHONE LC_TIME
24613 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24614 eval $as_var=C
; export $as_var
24616 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24620 # Required to use basename.
24621 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24622 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24628 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24629 as_basename
=basename
24635 # Name of the executable.
24636 as_me
=`$as_basename -- "$0" ||
24637 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24638 X"$0" : 'X\(//\)$' \| \
24639 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24641 sed '/^.*\/\([^/][^/]*\)\/*$/{
24660 as_lineno_1
=$LINENO
24661 as_lineno_2
=$LINENO
24662 test "x$as_lineno_1" != "x$as_lineno_2" &&
24663 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24665 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24666 # uniformly replaced by the line number. The first 'sed' inserts a
24667 # line-number line after each line using $LINENO; the second 'sed'
24668 # does the real work. The second script uses 'N' to pair each
24669 # line-number line with the line containing $LINENO, and appends
24670 # trailing '-' during substitution so that $LINENO is not a special
24671 # case at line end.
24672 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24673 # scripts with optimization help from Paolo Bonzini. Blame Lee
24674 # E. McMahon (1931-1989) for sed's syntax. :-)
24686 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24689 ' >$as_me.lineno
&&
24690 chmod +x
"$as_me.lineno" ||
24691 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24692 { (exit 1); exit 1; }; }
24694 # Don't try to exec as it changes $[0], causing all sort of problems
24695 # (the dirname of $[0] is not the place where we might find the
24696 # original and so on. Autoconf is especially sensitive to this).
24697 .
"./$as_me.lineno"
24698 # Exit status is that of the last command.
24703 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24709 ECHO_C
= ECHO_N
= ECHO_T
=
24710 case `echo -n x` in
24712 case `echo 'x\c'` in
24713 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24720 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24721 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24727 rm -f conf$$ conf$$.exe conf$$.
file
24728 if test -d conf$$.dir
; then
24729 rm -f conf$$.dir
/conf$$.
file
24735 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24737 # ... but there are two gotchas:
24738 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24739 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24740 # In both cases, we have to default to `cp -p'.
24741 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24743 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24748 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24749 rmdir conf$$.dir
2>/dev
/null
24751 if mkdir
-p .
2>/dev
/null
; then
24754 test -d .
/-p && rmdir .
/-p
24758 if test -x / >/dev
/null
2>&1; then
24759 as_test_x
='test -x'
24761 if ls -dL / >/dev
/null
2>&1; then
24768 if test -d "$1"; then
24774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24775 ???[sx]*):;;*)false;;esac;fi
24779 as_executable_p
=$as_test_x
24781 # Sed expression to map a string onto a valid CPP name.
24782 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24784 # Sed expression to map a string onto a valid variable name.
24785 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24790 # Save the log message, to keep $[0] and so on meaningful, and to
24791 # report actual input values of CONFIG_FILES etc. instead of their
24792 # values after options handling.
24794 This file was extended by emacs $as_me 23.0.60, which was
24795 generated by GNU Autoconf 2.61. Invocation command line was
24797 CONFIG_FILES = $CONFIG_FILES
24798 CONFIG_HEADERS = $CONFIG_HEADERS
24799 CONFIG_LINKS = $CONFIG_LINKS
24800 CONFIG_COMMANDS = $CONFIG_COMMANDS
24803 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24808 cat >>$CONFIG_STATUS <<_ACEOF
24809 # Files that config.status was made for.
24810 config_files="$ac_config_files"
24811 config_headers="$ac_config_headers"
24812 config_commands="$ac_config_commands"
24816 cat >>$CONFIG_STATUS <<\_ACEOF
24818 \`$as_me' instantiates files from templates according to the
24819 current configuration.
24821 Usage: $0 [OPTIONS] [FILE]...
24823 -h, --help print this help, then exit
24824 -V, --version print version number and configuration settings, then exit
24825 -q, --quiet do not print progress messages
24826 -d, --debug don't remove temporary files
24827 --recheck update $as_me by reconfiguring in the same conditions
24828 --file=FILE[:TEMPLATE]
24829 instantiate the configuration file FILE
24830 --header=FILE[:TEMPLATE]
24831 instantiate the configuration header FILE
24833 Configuration files:
24836 Configuration headers:
24839 Configuration commands:
24842 Report bugs to <bug-autoconf@gnu.org>."
24845 cat >>$CONFIG_STATUS <<_ACEOF
24847 emacs config.status 23.0.60
24848 configured by $0, generated by GNU Autoconf 2.61,
24849 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24851 Copyright (C) 2006 Free Software Foundation, Inc.
24852 This config.status script is free software; the Free Software Foundation
24853 gives unlimited permission to copy, distribute and modify it."
24860 cat >>$CONFIG_STATUS <<\_ACEOF
24861 # If no file are specified by the user, then we need to provide default
24862 # value. By we need to know if files were specified by the user.
24868 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24869 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24880 # Handling of the options.
24881 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24883 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24884 echo "$ac_cs_version"; exit ;;
24885 --debug |
--debu |
--deb |
--de |
--d |
-d )
24887 --file |
--fil |
--fi |
--f )
24889 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24890 ac_need_defaults
=false
;;
24891 --header |
--heade |
--head |
--hea )
24893 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24894 ac_need_defaults
=false
;;
24896 # Conflict between --help and --header
24897 { echo "$as_me: error: ambiguous option: $1
24898 Try \`$0 --help' for more information." >&2
24899 { (exit 1); exit 1; }; };;
24900 --help |
--hel |
-h )
24901 echo "$ac_cs_usage"; exit ;;
24902 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24903 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24906 # This is an error.
24907 -*) { echo "$as_me: error: unrecognized option: $1
24908 Try \`$0 --help' for more information." >&2
24909 { (exit 1); exit 1; }; } ;;
24911 *) ac_config_targets
="$ac_config_targets $1"
24912 ac_need_defaults
=false
;;
24918 ac_configure_extra_args
=
24920 if $ac_cs_silent; then
24922 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24926 cat >>$CONFIG_STATUS <<_ACEOF
24927 if \$ac_cs_recheck; then
24928 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24929 CONFIG_SHELL=$SHELL
24930 export CONFIG_SHELL
24931 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24935 cat >>$CONFIG_STATUS <<\_ACEOF
24939 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24940 ## Running $as_me. ##
24946 cat >>$CONFIG_STATUS <<_ACEOF
24950 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24954 cat >>$CONFIG_STATUS <<\_ACEOF
24956 # Handling of arguments.
24957 for ac_config_target
in $ac_config_targets
24959 case $ac_config_target in
24960 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24961 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24962 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24963 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24964 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24965 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24966 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24967 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24968 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24969 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24970 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24971 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24972 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24974 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24975 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24976 { (exit 1); exit 1; }; };;
24981 # If the user did not use the arguments to specify the items to instantiate,
24982 # then the envvar interface is used. Set only those that are not.
24983 # We use the long form for the default assignment because of an extremely
24984 # bizarre bug on SunOS 4.1.3.
24985 if $ac_need_defaults; then
24986 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24987 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24988 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24991 # Have a temporary directory for convenience. Make it in the build tree
24992 # simply because there is no reason against having it here, and in addition,
24993 # creating and moving files from /tmp can sometimes cause problems.
24994 # Hook for its removal unless debugging.
24995 # Note that there is a small window in which the directory will not be cleaned:
24996 # after its creation but before its name has been assigned to `$tmp'.
25000 trap 'exit_status=$?
25001 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25003 trap '{ (exit 1); exit 1; }' 1 2 13 15
25005 # Create a (secure) tmp directory for tmp files.
25008 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25009 test -n "$tmp" && test -d "$tmp"
25012 tmp
=.
/conf$$
-$RANDOM
25013 (umask 077 && mkdir
"$tmp")
25016 echo "$me: cannot create a temporary directory in ." >&2
25017 { (exit 1); exit 1; }
25021 # Set up the sed scripts for CONFIG_FILES section.
25024 # No need to generate the scripts if there are no CONFIG_FILES.
25025 # This happens for instance when ./config.status config.h
25026 if test -n "$CONFIG_FILES"; then
25033 for ac_last_try
in false false false false false
:; do
25034 cat >conf$
$subs.
sed <<_ACEOF
25035 SHELL!$SHELL$ac_delim
25036 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25037 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25038 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25039 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25040 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25041 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25042 exec_prefix!$exec_prefix$ac_delim
25043 prefix!$prefix$ac_delim
25044 program_transform_name!$program_transform_name$ac_delim
25045 bindir!$bindir$ac_delim
25046 sbindir!$sbindir$ac_delim
25047 libexecdir!$libexecdir$ac_delim
25048 datarootdir!$datarootdir$ac_delim
25049 datadir!$datadir$ac_delim
25050 sysconfdir!$sysconfdir$ac_delim
25051 sharedstatedir!$sharedstatedir$ac_delim
25052 localstatedir!$localstatedir$ac_delim
25053 includedir!$includedir$ac_delim
25054 oldincludedir!$oldincludedir$ac_delim
25055 docdir!$docdir$ac_delim
25056 infodir!$infodir$ac_delim
25057 htmldir!$htmldir$ac_delim
25058 dvidir!$dvidir$ac_delim
25059 pdfdir!$pdfdir$ac_delim
25060 psdir!$psdir$ac_delim
25061 libdir!$libdir$ac_delim
25062 localedir!$localedir$ac_delim
25063 mandir!$mandir$ac_delim
25064 DEFS!$DEFS$ac_delim
25065 ECHO_C!$ECHO_C$ac_delim
25066 ECHO_N!$ECHO_N$ac_delim
25067 ECHO_T!$ECHO_T$ac_delim
25068 LIBS!$LIBS$ac_delim
25069 build_alias!$build_alias$ac_delim
25070 host_alias!$host_alias$ac_delim
25071 target_alias!$target_alias$ac_delim
25072 MAINT!$MAINT$ac_delim
25073 build!$build$ac_delim
25074 build_cpu!$build_cpu$ac_delim
25075 build_vendor!$build_vendor$ac_delim
25076 build_os!$build_os$ac_delim
25077 host!$host$ac_delim
25078 host_cpu!$host_cpu$ac_delim
25079 host_vendor!$host_vendor$ac_delim
25080 host_os!$host_os$ac_delim
25082 CFLAGS!$CFLAGS$ac_delim
25083 LDFLAGS!$LDFLAGS$ac_delim
25084 CPPFLAGS!$CPPFLAGS$ac_delim
25085 ac_ct_CC!$ac_ct_CC$ac_delim
25086 EXEEXT!$EXEEXT$ac_delim
25087 OBJEXT!$OBJEXT$ac_delim
25089 GREP!$GREP$ac_delim
25090 EGREP!$EGREP$ac_delim
25091 LN_S!$LN_S$ac_delim
25092 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25093 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25094 INSTALL_DATA!$INSTALL_DATA$ac_delim
25095 RANLIB!$RANLIB$ac_delim
25096 INSTALL_INFO!$INSTALL_INFO$ac_delim
25097 GZIP_PROG!$GZIP_PROG$ac_delim
25098 MAKEINFO!$MAKEINFO$ac_delim
25099 LIBSOUND!$LIBSOUND$ac_delim
25100 PKG_CONFIG!$PKG_CONFIG$ac_delim
25101 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25102 ALSA_LIBS!$ALSA_LIBS$ac_delim
25103 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25104 SET_MAKE!$SET_MAKE$ac_delim
25105 XMKMF!$XMKMF$ac_delim
25106 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25107 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25108 RSVG_LIBS!$RSVG_LIBS$ac_delim
25109 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25110 GTK_LIBS!$GTK_LIBS$ac_delim
25111 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25112 DBUS_LIBS!$DBUS_LIBS$ac_delim
25113 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25114 XFT_LIBS!$XFT_LIBS$ac_delim
25115 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25116 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25117 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25118 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25119 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25120 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25121 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25122 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25123 ALLOCA!$ALLOCA$ac_delim
25124 liblockfile!$liblockfile$ac_delim
25125 LIBOBJS!$LIBOBJS$ac_delim
25126 NEED_SETGID!$NEED_SETGID$ac_delim
25127 KMEM_GROUP!$KMEM_GROUP$ac_delim
25128 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25129 GETOPT_H!$GETOPT_H$ac_delim
25130 GETOPTOBJS!$GETOPTOBJS$ac_delim
25131 version!$version$ac_delim
25134 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25136 elif $ac_last_try; then
25137 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25138 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25139 { (exit 1); exit 1; }; }
25141 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25145 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25146 if test -n "$ac_eof"; then
25147 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25148 ac_eof
=`expr $ac_eof + 1`
25151 cat >>$CONFIG_STATUS <<_ACEOF
25152 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25153 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25156 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25157 s/^/s,@/; s/!/@,|#_!!_#|/
25160 s/'"$ac_delim"'$/,g/; t
25162 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25163 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25164 rm -f conf$
$subs.
sed
25165 cat >>$CONFIG_STATUS <<_ACEOF
25171 for ac_last_try
in false false false false false
:; do
25172 cat >conf$
$subs.
sed <<_ACEOF
25173 configuration!$configuration$ac_delim
25174 canonical!$canonical$ac_delim
25175 srcdir!$srcdir$ac_delim
25176 lispdir!$lispdir$ac_delim
25177 locallisppath!$locallisppath$ac_delim
25178 lisppath!$lisppath$ac_delim
25179 x_default_search_path!$x_default_search_path$ac_delim
25180 etcdir!$etcdir$ac_delim
25181 archlibdir!$archlibdir$ac_delim
25182 bitmapdir!$bitmapdir$ac_delim
25183 gamedir!$gamedir$ac_delim
25184 gameuser!$gameuser$ac_delim
25185 c_switch_system!$c_switch_system$ac_delim
25186 c_switch_machine!$c_switch_machine$ac_delim
25187 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25188 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25189 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25190 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25191 machfile!$machfile$ac_delim
25192 opsysfile!$opsysfile$ac_delim
25193 carbon_appdir!$carbon_appdir$ac_delim
25194 LTLIBOBJS!$LTLIBOBJS$ac_delim
25197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25199 elif $ac_last_try; then
25200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25202 { (exit 1); exit 1; }; }
25204 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25208 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25209 if test -n "$ac_eof"; then
25210 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25211 ac_eof
=`expr $ac_eof + 1`
25214 cat >>$CONFIG_STATUS <<_ACEOF
25215 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25220 s/^/s,@/; s/!/@,|#_!!_#|/
25223 s/'"$ac_delim"'$/,g/; t
25225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25226 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25227 rm -f conf$
$subs.
sed
25228 cat >>$CONFIG_STATUS <<_ACEOF
25235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25237 # trailing colons and then remove the whole line if VPATH becomes empty
25238 # (actually we leave an empty line to preserve line numbers).
25239 if test "x$srcdir" = x.
; then
25240 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25241 s/:*\$(srcdir):*/:/
25242 s/:*\${srcdir}:*/:/
25244 s/^\([^=]*=[ ]*\):*/\1/
25250 cat >>$CONFIG_STATUS <<\_ACEOF
25251 fi # test -n "$CONFIG_FILES"
25254 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25257 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25259 case $ac_mode$ac_tag in
25261 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25263 { (exit 1); exit 1; }; };;
25264 :[FH
]-) ac_tag
=-:-;;
25265 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25282 -) ac_f
="$tmp/stdin";;
25283 *) # Look for the file first in the build tree, then in the source tree
25284 # (if the path is not absolute). The absolute path cannot be DOS-style,
25285 # because $ac_f cannot contain `:'.
25289 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25293 { (exit 1); exit 1; }; };;
25295 ac_file_inputs
="$ac_file_inputs $ac_f"
25298 # Let's still pretend it is `configure' which instantiates (i.e., don't
25299 # use $as_me), people would be surprised to read:
25300 # /* config.h. Generated by config.status. */
25301 configure_input
="Generated from "`IFS=:
25302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25303 if test x
"$ac_file" != x-
; then
25304 configure_input
="$ac_file. $configure_input"
25305 { echo "$as_me:$LINENO: creating $ac_file" >&5
25306 echo "$as_me: creating $ac_file" >&6;}
25310 *:-:* |
*:-) cat >"$tmp/stdin";;
25315 ac_dir
=`$as_dirname -- "$ac_file" ||
25316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25317 X"$ac_file" : 'X\(//\)[^/]' \| \
25318 X"$ac_file" : 'X\(//\)$' \| \
25319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25325 /^X\(\/\/\)[^/].*/{
25340 -*) as_dir
=.
/$as_dir;;
25342 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25346 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25347 *) as_qdir
=$as_dir;;
25349 as_dirs
="'$as_qdir' $as_dirs"
25350 as_dir
=`$as_dirname -- "$as_dir" ||
25351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25352 X"$as_dir" : 'X\(//\)[^/]' \| \
25353 X"$as_dir" : 'X\(//\)$' \| \
25354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25360 /^X\(\/\/\)[^/].*/{
25373 test -d "$as_dir" && break
25375 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25376 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25378 { (exit 1); exit 1; }; }; }
25382 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25384 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25385 # A ".." for each directory in $ac_dir_suffix.
25386 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25387 case $ac_top_builddir_sub in
25388 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25389 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25392 ac_abs_top_builddir
=$ac_pwd
25393 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25394 # for backward compatibility:
25395 ac_top_builddir
=$ac_top_build_prefix
25398 .
) # We are building in place.
25400 ac_top_srcdir
=$ac_top_builddir_sub
25401 ac_abs_top_srcdir
=$ac_pwd ;;
25402 [\\/]* | ?
:[\\/]* ) # Absolute name.
25403 ac_srcdir
=$srcdir$ac_dir_suffix;
25404 ac_top_srcdir
=$srcdir
25405 ac_abs_top_srcdir
=$srcdir ;;
25406 *) # Relative name.
25407 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25408 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25409 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25411 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25421 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25422 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25426 cat >>$CONFIG_STATUS <<\_ACEOF
25427 # If the template does not know about datarootdir, expand it.
25428 # FIXME: This hack should be removed a few years after 2.60.
25429 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25431 case `sed -n '/datarootdir/ {
25440 ' $ac_file_inputs` in
25441 *datarootdir
*) ac_datarootdir_seen
=yes;;
25442 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25446 cat >>$CONFIG_STATUS <<_ACEOF
25447 ac_datarootdir_hack='
25448 s&@datadir@&$datadir&g
25449 s&@docdir@&$docdir&g
25450 s&@infodir@&$infodir&g
25451 s&@localedir@&$localedir&g
25452 s&@mandir@&$mandir&g
25453 s&\\\${datarootdir}&$datarootdir&g' ;;
25457 # Neutralize VPATH when `$srcdir' = `.'.
25458 # Shell code in configure.ac might set extrasub.
25459 # FIXME: do we really want to maintain this feature?
25460 cat >>$CONFIG_STATUS <<_ACEOF
25464 cat >>$CONFIG_STATUS <<\_ACEOF
25466 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25467 s
&@configure_input@
&$configure_input&;t t
25468 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25469 s
&@srcdir@
&$ac_srcdir&;t t
25470 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25471 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25472 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25473 s
&@builddir@
&$ac_builddir&;t t
25474 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25475 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25476 s
&@INSTALL@
&$ac_INSTALL&;t t
25477 $ac_datarootdir_hack
25478 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25483 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25484 which seems to be undefined. Please make sure it is defined." >&5
25485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25486 which seems to be undefined. Please make sure it is defined." >&2;}
25490 -) cat "$tmp/out"; rm -f "$tmp/out";;
25491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25500 # Transform confdefs.h into a sed script `conftest.defines', that
25501 # substitutes the proper values into config.h.in to produce config.h.
25502 rm -f conftest.defines conftest.
tail
25503 # First, append a space to every undef/define line, to ease matching.
25504 echo 's/$/ /' >conftest.defines
25505 # Then, protect against being on the right side of a sed subst, or in
25506 # an unquoted here document, in config.status. If some macros were
25507 # called several times there might be several #defines for the same
25508 # symbol, which is useless. But do not sort them, since the last
25509 # AC_DEFINE must be honored.
25510 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25513 # PARAMS is the parameter list in the macro definition--in most cases, it's
25514 # just an empty string.
25515 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25516 ac_dB
='\\)[ (].*,\\1define\\2'
25524 s/^[ ]*#[ ]*define[ ][ ]*//
25529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25531 ' >>conftest.defines
25533 # Remove the space that was appended to ease matching.
25534 # Then replace #undef with comments. This is necessary, for
25535 # example, in the case of _POSIX_SOURCE, which is predefined and required
25536 # on some systems where configure will not decide to define it.
25537 # (The regexp can be short, since the line contains either #define or #undef.)
25539 s,^[ #]*u.*,/* & */,' >>conftest.defines
25541 # Break up conftest.defines:
25542 ac_max_sed_lines
=50
25544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25548 ac_in
='$ac_file_inputs'
25549 ac_out
='"$tmp/out1"'
25550 ac_nxt
='"$tmp/out2"'
25554 # Write a here document:
25555 cat >>$CONFIG_STATUS <<_ACEOF
25556 # First, check the format of the line:
25557 cat >"\$tmp/defines.sed" <<\\CEOF
25558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25563 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25566 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25567 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25568 grep . conftest.
tail >/dev
/null ||
break
25569 rm -f conftest.defines
25570 mv conftest.
tail conftest.defines
25572 rm -f conftest.defines conftest.
tail
25574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25575 cat >>$CONFIG_STATUS <<\_ACEOF
25576 if test x
"$ac_file" != x-
; then
25577 echo "/* $configure_input */" >"$tmp/config.h"
25578 cat "$ac_result" >>"$tmp/config.h"
25579 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25581 echo "$as_me: $ac_file is unchanged" >&6;}
25584 mv "$tmp/config.h" $ac_file
25587 echo "/* $configure_input */"
25593 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25594 echo "$as_me: executing $ac_file commands" >&6;}
25599 case $ac_file$ac_mode in
25602 ### Make the necessary directories, if they don't exist.
25603 for dir
in etc lisp
; do
25604 test -d ${dir} || mkdir
${dir}
25607 # Build src/Makefile from ${srcdir}/src/Makefile.c
25608 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25609 # This must be done after src/config.h is built, since we rely on that file.
25611 # Now get this: Some word that is part of the ${srcdir} directory name
25612 # or the ${configuration} value might, just might, happen to be an
25613 # identifier like `sun4' or `i386' or something, and be predefined by
25614 # the C preprocessor to some helpful value like 1, or maybe the empty
25615 # string. Needless to say consequent macro substitutions are less
25616 # than conducive to the makefile finding the correct directory.
25617 undefs
="`echo $top_srcdir $configuration $canonical |
25618 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25619 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25622 echo creating src
/epaths.h
25623 ${MAKE-make} epaths-force
25625 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25626 # `..' to `. .' unless invoked with -traditional
25628 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25629 CPPFLAGS
="$CPPFLAGS -traditional"
25632 echo creating lib-src
/Makefile
25634 rm -f junk.c junk1.c junk2.c
25635 sed -e '/start of cpp stuff/q' \
25636 < Makefile.c
> junk1.c
25637 sed -e '1,/start of cpp stuff/d'\
25638 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25639 < Makefile.c
> junk.c
25640 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25641 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25642 cat junk1.c junk2.c
> Makefile.new
25643 rm -f junk.c junk1.c junk2.c
25644 chmod 444 Makefile.new
25645 mv -f Makefile.new Makefile
25648 echo creating src
/Makefile
25650 rm -f junk.c junk1.c junk2.c
25651 sed -e '/start of cpp stuff/q' \
25652 < Makefile.c
> junk1.c
25653 sed -e '1,/start of cpp stuff/d'\
25654 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25655 < Makefile.c
> junk.c
25656 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25657 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25658 cat junk1.c junk2.c
> Makefile.new
25659 rm -f junk.c junk1.c junk2.c
25660 chmod 444 Makefile.new
25661 mv -f Makefile.new Makefile
25664 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25665 echo creating src
/.gdbinit
25666 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25669 # This is how we know whether to re-run configure in certain cases.
25670 touch src
/config.stamp
25678 { (exit 0); exit 0; }
25680 chmod +x
$CONFIG_STATUS
25681 ac_clean_files
=$ac_clean_files_save
25684 # configure is writing to config.log, and then calls config.status.
25685 # config.status does its own redirection, appending to config.log.
25686 # Unfortunately, on DOS this fails, as config.log is still kept open
25687 # by configure, so config.status won't be able to write to it; its
25688 # output is simply discarded. So we exec the FD to /dev/null,
25689 # effectively closing config.log, so it can be properly (re)opened and
25690 # appended to by config.status. When coming back to configure, we
25691 # need to make the FD available again.
25692 if test "$no_create" != yes; then
25694 ac_config_status_args
=
25695 test "$silent" = yes &&
25696 ac_config_status_args
="$ac_config_status_args --quiet"
25698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25701 # would make configure fail if this is the last instruction.
25702 $ac_cs_success ||
{ (exit 1); exit 1; }